:root {
    --ascent-navy: #072f60;
    --ascent-navy-2: #0b3c75;
    --ascent-navy-3: #041f40;
    --ascent-gold: #fea501;
    --ascent-orange: #fea501;
    --ascent-gold-2: #ffd36a;
    --ascent-silver: #aeb0b3;
    --ascent-sky: #eaf2fb;
    --ascent-cream: #fff8ea;
    --ascent-white: #ffffff;
    --ink: #102033;
    --muted: #637083;
    --line: rgba(7, 47, 96, 0.14);
    --shadow-soft: 0 22px 60px rgba(7, 47, 96, 0.16);
    --shadow-card: 0 14px 34px rgba(7, 47, 96, 0.12);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--ascent-navy-3);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 10%, rgba(254, 165, 1, 0.22), transparent 28rem),
        radial-gradient(circle at 86% 0%, rgba(7, 47, 96, 0.25), transparent 30rem),
        linear-gradient(180deg, #eef5fc 0%, #ffffff 42%, #f6f8fb 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(7, 47, 96, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 47, 96, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 70%);
}

a {
    color: var(--ascent-navy);
}

.site-header,
.site-footer,
.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    position: relative;
    z-index: 2;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    color: var(--ascent-navy);
    text-decoration: none;
}

.brand-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 16px;
    background: var(--ascent-white);
    box-shadow: 0 8px 22px rgba(7, 47, 96, 0.13);
    padding: 0.25rem;
}

.brand-copy {
    display: grid;
    line-height: 1.05;
}

.brand-title {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-subtitle {
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.site-nav a,
.pill {
    border: 1px solid rgba(7, 47, 96, 0.18);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    color: var(--ascent-navy);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 6px 18px rgba(7, 47, 96, 0.08);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.72rem 1rem;
    text-decoration: none;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
    backdrop-filter: blur(14px);
}

.site-nav a:hover,
.pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(7, 47, 96, 0.14);
    background: var(--ascent-white);
}

.nav-user-link {
    gap: 0.45rem;
}

.nav-user-thumb {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    flex: 0 0 auto;
    object-fit: cover;
    background: var(--ascent-white);
    border: 2px solid rgba(254, 165, 1, 0.58);
    box-shadow: 0 4px 12px rgba(7, 47, 96, 0.14);
}

.site-nav .nav-cta,
.pill-primary {
    color: var(--ascent-navy-3);
    background: linear-gradient(135deg, var(--ascent-gold-2), var(--ascent-gold));
    border-color: rgba(254, 165, 1, 0.52);
}

.pill-secondary {
    color: var(--ascent-white);
    background: linear-gradient(135deg, var(--ascent-navy-2), var(--ascent-navy));
    border-color: rgba(7, 47, 96, 0.52);
}

.page-shell {
    min-height: calc(100vh - 158px);
    padding: clamp(1rem, 4vw, 3rem) 0;
    position: relative;
    z-index: 1;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0 2rem;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.hero-card {
    width: min(1060px, 100%);
    margin: 0 auto;
    border: 1px solid rgba(7, 47, 96, 0.12);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    padding: clamp(1.35rem, 3.2vw, 3rem);
    position: relative;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(254, 165, 1, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(234, 242, 251, 0.9), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.hero-card > * {
    position: relative;
    z-index: 1;
}

.hero-card.compact {
    width: min(680px, 100%);
    text-align: center;
}

.hero-card.wide {
    width: min(1100px, 100%);
}

.hero-card-home {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--ascent-navy);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 1.85rem;
    height: 0.28rem;
    border-radius: 99px;
    background: var(--ascent-gold);
}

h1 {
    margin: 0;
    color: var(--ascent-navy-3);
    font-size: clamp(2.7rem, 8vw, 6.2rem);
    line-height: 0.92;
    letter-spacing: -0.07em;
}

.compact h1 {
    font-size: clamp(2.35rem, 7vw, 4.6rem);
}

.lead {
    max-width: 44rem;
    margin: 1.1rem 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.65;
}

.compact .lead {
    margin-left: auto;
    margin-right: auto;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

.hero-actions {
    justify-content: flex-start;
    margin-top: 1.65rem;
}

.hero-media {
    min-height: 455px;
    border-radius: calc(var(--radius-xl) - 8px);
    background-image: url("img/ascent-hero-pattern.svg");
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), var(--shadow-card);
    display: grid;
    place-items: center;
    padding: 2rem;
    overflow: hidden;
    position: relative;
}

.hero-media::after {
    content: "";
    position: absolute;
    right: -82px;
    bottom: -66px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    border: 38px solid rgba(254, 165, 1, 0.24);
}

.logo-card {
    width: min(300px, 82%);
    border-radius: 30px;
    background: var(--ascent-white);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
    padding: 1.2rem;
    transform: rotate(-2deg);
}

.logo-card img {
    display: block;
    width: 100%;
    height: auto;
}

.ribbon-card {
    position: absolute;
    left: -62px;
    bottom: 18px;
    width: 330px;
    height: 90px;
    background-image: url("img/ascent-ribbon.svg");
    background-repeat: no-repeat;
    background-size: contain;
    transform: rotate(-10deg);
    opacity: 0.96;
}

.status-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.status-grid > div,
.signed-in-card,
.feature-grid article {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(7, 47, 96, 0.08);
}

.status-grid > div {
    padding: 1rem;
}

.label {
    display: block;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status-grid strong {
    display: block;
    margin-top: 0.28rem;
    color: var(--ascent-navy);
    overflow-wrap: anywhere;
}

.signed-in-card {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.15rem;
}

.signed-in-card strong,
.signed-in-card span:not(.label) {
    display: block;
    overflow-wrap: anywhere;
}

.feature-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature-grid article {
    padding: 1.15rem;
}

.feature-icon {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    color: var(--ascent-navy-3);
    background: var(--ascent-gold);
    font-size: 0.82rem;
    font-weight: 950;
}

.feature-grid h2 {
    color: var(--ascent-navy);
    font-size: 1.03rem;
    margin: 0.75rem 0 0.35rem;
}

.feature-grid p {
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.flash-stack {
    width: min(1060px, 100%);
    margin: 0 auto 1rem;
}

.flash {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(7, 47, 96, 0.08);
    font-weight: 800;
    margin-bottom: 0.75rem;
    padding: 0.85rem 1rem;
}

.flash-success {
    border-color: rgba(54, 149, 90, 0.45);
    background: #f0fff5;
}

.auth-card .auth-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    border-radius: 24px;
    background: var(--ascent-white);
    box-shadow: 0 12px 30px rgba(7, 47, 96, 0.12);
    padding: 0.45rem;
    margin-bottom: 1rem;
}

.detail-list {
    display: grid;
    gap: 0.8rem;
    margin: 2rem auto;
    max-width: 42rem;
    text-align: left;
}

.detail-list > div {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.74);
}

.detail-list dt {
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.detail-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}


.admin-panel {
    margin-top: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 28px rgba(7, 47, 96, 0.08);
    padding: 1.2rem;
    text-align: left;
}

.admin-panel h2 {
    color: var(--ascent-navy);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    margin: 0 0 0.35rem;
}

.panel-note {
    color: var(--muted);
    margin: 0 0 1rem;
}

.admin-user-form {
    align-items: end;
    display: grid;
    gap: 0.85rem;
}

.add-user-form {
    gap: 0.85rem 1rem;
    grid-template-columns: minmax(16rem, 1fr) minmax(14rem, 0.82fr) minmax(7.7rem, 0.34fr) minmax(7.7rem, 0.34fr) minmax(11rem, 0.44fr) minmax(5.8rem, auto);
}

.row-user-form {
    grid-template-columns: minmax(8rem, 0.7fr) minmax(8rem, 0.7fr) minmax(10rem, 1fr) auto;
}

.admin-user-form label {
    display: grid;
    gap: 0.28rem;
    margin: 0;
}

.admin-user-form label > span:not(.sr-only) {
    color: var(--ascent-navy);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-user-form .span-2 {
    grid-column: span 2;
}

.field-help {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
}

.admin-user-form input,
.admin-user-form select {
    border: 1px solid rgba(7, 47, 96, 0.2);
    border-radius: 0.8rem;
    color: var(--ascent-navy);
    font: inherit;
    min-height: 2.7rem;
    padding: 0.6rem 0.75rem;
    width: 100%;
}

.send-invite-label {
    justify-content: flex-start;
    min-width: 12.5rem;
    white-space: normal;
}

.send-invite-label span {
    line-height: 1.15;
}

.admin-user-form button {
    background: var(--ascent-orange);
    border: 0;
    border-radius: 999px;
    color: var(--ascent-navy);
    cursor: pointer;
    font-weight: 950;
    min-height: 2.7rem;
    min-width: 6.5rem;
    padding: 0.55rem 1rem;
    white-space: nowrap;
}

.admin-user-form button:hover,
.admin-user-form button:focus-visible {
    filter: brightness(0.96);
}

.last-login {
    align-self: center;
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

.sr-only {
    clip: rect(0, 0, 0, 0);
    border: 0;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.table-wrap {
    margin-top: 2rem;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 28px rgba(7, 47, 96, 0.08);
}

.user-table {
    border-collapse: collapse;
    width: 100%;
    text-align: left;
}

.user-table th,
.user-table td {
    border-bottom: 1px solid rgba(7, 47, 96, 0.12);
    padding: 0.95rem;
    vertical-align: top;
}

.user-table tr:last-child td {
    border-bottom: 0;
}

.user-table th {
    color: var(--ascent-navy);
    background: rgba(234, 242, 251, 0.72);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.user-photo-cell {
    width: 4.6rem;
}

.user-table-thumb,
.user-table-thumb-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
}

.user-table-thumb {
    background: var(--ascent-white);
    border: 2px solid rgba(254, 165, 1, 0.48);
    box-shadow: 0 6px 16px rgba(7, 47, 96, 0.13);
}

.user-table-thumb-placeholder {
    color: var(--muted);
    background: rgba(234, 242, 251, 0.9);
    border: 1px dashed rgba(7, 47, 96, 0.24);
    font-weight: 950;
}

.role-pill,
.status-pill {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    padding: 0.38rem 0.68rem;
}

.role-pill {
    color: var(--ascent-navy);
    background: rgba(254, 165, 1, 0.18);
    border: 1px solid rgba(254, 165, 1, 0.34);
}

.status-active {
    color: #155f31;
    background: #e8f8ee;
}

.status-inactive {
    color: #8a2b22;
    background: #fff0ec;
}

.status-pending {
    color: #7a5300;
    background: #fff7dc;
}


@media (max-width: 760px) {
    .add-user-form,
    .row-user-form {
        grid-template-columns: 1fr;
    }

    .add-user-form .send-invite-label {
        grid-column: auto;
    }

    .add-user-form button {
        justify-self: stretch;
    }

    .last-login {
        white-space: normal;
    }
}

@media (max-width: 900px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .hero-card-home {
        grid-template-columns: 1fr;
    }

    .hero-media {
        min-height: 360px;
        order: -1;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-copy {
        text-align: center;
    }

    .eyebrow {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .site-header,
    .site-footer,
    .page-shell {
        width: min(100% - 22px, 1180px);
    }

    .brand-logo {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .brand-subtitle {
        display: none;
    }

    .site-nav a {
        flex: 1 1 calc(50% - 0.55rem);
        padding-inline: 0.7rem;
    }

    .hero-card {
        border-radius: 24px;
        padding: 1.1rem;
    }

    .hero-media {
        min-height: 295px;
        padding: 1.3rem;
    }

    .logo-card {
        width: min(245px, 88%);
        border-radius: 24px;
    }

    .status-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .actions {
        flex-direction: column;
    }

    .actions .pill {
        width: 100%;
    }

    .detail-list > div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .site-footer {
        flex-direction: column;
    }
}

/* Compact sortable Users admin table */
.admin-users-page.hero-card.wide {
    width: min(1180px, 100%);
}

.admin-users-page h1 {
    font-size: clamp(2.45rem, 6vw, 4.9rem);
}

.admin-users-page .lead {
    max-width: 52rem;
}

.compact-user-table-wrap {
    max-width: 900px;
    margin-inline: auto;
}

.compact-user-table {
    table-layout: auto;
}

.compact-user-table th,
.compact-user-table td {
    padding: 0.62rem 0.7rem;
    vertical-align: middle;
}

.compact-user-table th {
    white-space: nowrap;
}

.compact-user-table .user-identity-cell {
    min-width: 16rem;
    width: 38%;
}

.compact-user-table .badge-cell,
.compact-user-table .edit-cell,
.compact-user-table .last-login-cell,
.compact-user-table .action-cell {
    width: 1%;
    white-space: nowrap;
}

.user-identity {
    align-items: center;
    display: flex;
    gap: 0.72rem;
    min-width: 0;
}

.user-identity-copy {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.user-identity-copy strong,
.user-identity-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-identity-copy strong {
    color: var(--ascent-navy-3);
    font-size: 0.98rem;
    font-weight: 950;
}

.user-identity-copy span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 750;
}

.compact-user-table .user-table-thumb,
.compact-user-table .user-table-thumb-placeholder {
    flex: 0 0 auto;
    height: 36px;
    width: 36px;
}

.compact-user-table .user-table-thumb-placeholder {
    color: var(--ascent-navy);
    font-size: 0.86rem;
    text-transform: uppercase;
}

.sort-button {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    gap: 0.32rem;
    letter-spacing: inherit;
    padding: 0;
    text-transform: inherit;
}

.sort-button:hover,
.sort-button:focus-visible,
.sort-button.is-active {
    color: var(--ascent-navy-3);
}

.sort-mark {
    color: var(--ascent-gold);
    display: inline-block;
    font-size: 0.72rem;
    min-width: 1rem;
    text-align: center;
}

.action-heading {
    text-align: right;
}

.compact-row-user-form {
    align-items: center;
    display: grid;
    gap: 0.3rem;
    justify-items: start;
}

.compact-row-user-form select,
.compact-user-table td > label select {
    border-radius: 0.7rem;
    font-size: 0.84rem;
    min-height: 2.15rem;
    padding: 0.32rem 0.58rem;
    width: 7.4rem;
}

.compact-user-table td > label {
    display: block;
    margin-top: 0.38rem;
}

.compact-save-button {
    background: var(--ascent-orange);
    border: 0;
    border-radius: 999px;
    color: var(--ascent-navy);
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 950;
    min-height: 2.15rem;
    padding: 0.36rem 0.82rem;
    white-space: nowrap;
}

.compact-save-button:hover,
.compact-save-button:focus-visible {
    filter: brightness(0.96);
}

.compact-user-table .role-pill,
.compact-user-table .status-pill {
    gap: 0.34rem;
    font-size: 0.78rem;
    padding: 0.34rem 0.58rem;
}

.role-admin {
    color: #6d3f00;
    background: #fff1cf;
    border: 1px solid rgba(254, 165, 1, 0.42);
}

.role-user {
    color: #134f86;
    background: #eaf4ff;
    border: 1px solid rgba(19, 79, 134, 0.18);
}

.last-login-cell .last-login {
    display: inline-block;
    font-size: 0.78rem;
    max-width: 8.5rem;
    white-space: normal;
}

@media (max-width: 880px) {
    .compact-user-table,
    .compact-user-table thead,
    .compact-user-table tbody,
    .compact-user-table th,
    .compact-user-table td,
    .compact-user-table tr {
        display: block;
    }

    .compact-user-table thead {
        border-bottom: 1px solid rgba(7, 47, 96, 0.12);
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        padding: 0.65rem;
    }

    .compact-user-table thead tr {
        display: contents;
    }

    .compact-user-table th {
        background: transparent;
        border: 0;
        padding: 0;
    }

    .compact-user-table .action-heading {
        display: none;
    }

    .compact-user-table tbody tr.user-row {
        display: grid;
        gap: 0.52rem 0.7rem;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 0.75rem;
    }

    .compact-user-table tbody tr.user-row + tr.user-row {
        border-top: 1px solid rgba(7, 47, 96, 0.12);
    }

    .compact-user-table tbody td {
        border: 0;
        padding: 0;
    }

    .compact-user-table .user-identity-cell {
        grid-column: 1 / -1;
        min-width: 0;
        width: auto;
    }

    .compact-user-table .badge-cell,
    .compact-user-table .edit-cell,
    .compact-user-table .last-login-cell,
    .compact-user-table .action-cell {
        width: auto;
        white-space: normal;
    }

    .compact-user-table .badge-cell {
        justify-self: start;
    }

    .compact-user-table .action-cell {
        align-self: end;
        grid-column: 2;
        grid-row: 4 / span 2;
        justify-self: end;
    }

    .user-identity-copy strong,
    .user-identity-copy span {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 560px) {
    .admin-users-page.hero-card.wide {
        padding-inline: 0.85rem;
    }

    .admin-panel {
        padding: 0.9rem;
    }

    .compact-user-table tbody tr.user-row {
        grid-template-columns: 1fr;
    }

    .compact-user-table .action-cell {
        grid-column: auto;
        grid-row: auto;
        justify-self: start;
    }

    .compact-row-user-form select,
    .compact-user-table td > label select {
        width: 100%;
    }
}

/* Static compact Users admin list + edit page */
.admin-users-page.hero-card.wide {
    width: min(1180px, 100%);
}

.admin-user-list-card {
    max-width: 1120px;
    margin: 1.35rem auto 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 28px rgba(7, 47, 96, 0.08);
    overflow: hidden;
    text-align: left;
}

.admin-user-list-toolbar,
.admin-user-list-row {
    display: grid;
    grid-template-columns: minmax(15rem, 1.35fr) minmax(5.4rem, 0.42fr) minmax(9.2rem, 0.82fr) minmax(5.5rem, 0.42fr) minmax(5.8rem, 0.46fr) minmax(5rem, 0.36fr) minmax(7.6rem, 0.52fr) minmax(5rem, auto);
    gap: 0.7rem;
    align-items: center;
}

.admin-user-list-toolbar {
    background: rgba(234, 242, 251, 0.72);
    color: var(--ascent-navy);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    padding: 0.62rem 1rem;
    text-transform: uppercase;
}

.admin-user-list-action-head {
    text-align: right;
}

.admin-user-list-row {
    padding: 0.7rem 1rem;
}

.admin-user-list-row + .admin-user-list-row {
    border-top: 1px solid rgba(7, 47, 96, 0.11);
}

.user-list-identity {
    min-width: 0;
}

.user-list-identity .user-table-thumb {
    flex: 0 0 auto;
    height: 38px;
    width: 38px;
}

.user-list-meta,
.user-list-last-login,
.user-list-action {
    min-width: 0;
}

.user-list-last-login .last-login {
    display: inline-block;
    font-size: 0.74rem;
    line-height: 1.25;
    white-space: normal;
}

.admin-user-list-row .role-pill,
.admin-user-list-row .status-pill {
    gap: 0.28rem;
    font-size: 0.72rem;
    padding: 0.3rem 0.5rem;
}

.compact-edit-button {
    align-items: center;
    background: var(--ascent-orange);
    border: 0;
    border-radius: 999px;
    color: var(--ascent-navy);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 950;
    justify-content: center;
    min-height: 2rem;
    padding: 0.34rem 0.78rem;
    text-decoration: none;
    white-space: nowrap;
}

.compact-edit-button:hover,
.compact-edit-button:focus-visible {
    filter: brightness(0.96);
}

.user-list-action {
    justify-self: end;
}

.empty-list-note {
    margin: 0;
    padding: 1rem;
    color: var(--muted);
    font-weight: 800;
}

.admin-user-edit-page.hero-card.compact {
    width: min(680px, 100%);
    text-align: left;
}

.admin-user-edit-page h1,
.admin-user-edit-page .lead {
    text-align: left;
}

.edit-user-panel {
    margin-inline: auto;
    max-width: 520px;
}

.edit-user-summary {
    align-items: center;
    border: 1px solid rgba(7, 47, 96, 0.12);
    border-radius: var(--radius-md);
    background: rgba(234, 242, 251, 0.55);
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
}

.edit-user-summary > div {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.edit-user-summary strong {
    color: var(--ascent-navy-3);
    font-size: 1rem;
    font-weight: 950;
}

.edit-user-summary span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.edit-user-photo {
    border: 2px solid rgba(254, 165, 1, 0.5);
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(7, 47, 96, 0.13);
    flex: 0 0 auto;
    height: 48px;
    object-fit: cover;
    width: 48px;
}

.edit-user-google-state {
    color: var(--ascent-navy) !important;
}

.edit-user-form {
    gap: 0.95rem;
}

.edit-user-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 0.2rem;
}

.edit-user-actions .pill,
.edit-user-actions button {
    min-width: 8rem;
}

.edit-user-warning {
    border-left: 4px solid var(--ascent-gold);
    margin: 0;
    padding-left: 0.75rem;
}

@media (max-width: 1080px) {
    .add-user-form {
        grid-template-columns: minmax(18rem, 1fr) minmax(8.75rem, 0.35fr) minmax(8.75rem, 0.35fr);
    }

    .add-user-form .send-invite-label {
        grid-column: 1 / span 2;
    }

    .add-user-form button {
        justify-self: end;
    }
}

@media (max-width: 920px) {
    .admin-user-list-card {
        max-width: 100%;
    }

    .admin-user-list-toolbar,
    .admin-user-list-row {
        grid-template-columns: minmax(12rem, 1fr) minmax(5rem, auto) minmax(8rem, auto) minmax(5rem, auto) minmax(5.4rem, auto) minmax(4.7rem, auto) minmax(6.5rem, auto) minmax(4.5rem, auto);
        gap: 0.45rem;
    }

    .admin-user-list-toolbar {
        padding-inline: 0.8rem;
    }

    .admin-user-list-row {
        padding-inline: 0.8rem;
    }
}

@media (max-width: 740px) {
    .admin-user-list-toolbar {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem 0.65rem;
    }

    .admin-user-list-action-head {
        display: none;
    }

    .admin-user-list-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.52rem 0.75rem;
        padding: 0.8rem;
    }

    .user-list-identity {
        grid-column: 1 / -1;
    }

    .user-list-meta,
    .user-list-last-login {
        align-items: center;
        display: flex;
        gap: 0.4rem;
    }

    .user-list-meta::before,
    .user-list-last-login::before {
        color: var(--muted);
        content: attr(data-label);
        font-size: 0.68rem;
        font-weight: 950;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .user-list-action {
        align-self: end;
        grid-column: 2;
        grid-row: 2 / span 4;
    }
}

@media (max-width: 520px) {
    .admin-user-list-row {
        grid-template-columns: 1fr;
    }

    .user-list-action {
        grid-column: auto;
        grid-row: auto;
        justify-self: start;
    }

    .edit-user-actions {
        justify-content: stretch;
    }

    .edit-user-actions .pill,
    .edit-user-actions button {
        width: 100%;
    }
}

/* Ascent Scholar directory, profile, and edit screens */
.scholars-page.hero-card.wide,
.scholar-detail-page.hero-card.wide,
.scholar-edit-page.hero-card.wide {
    width: min(1120px, 100%);
    text-align: left;
}

.scholars-page-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.scholars-page-header h1,
.scholar-detail-page h1,
.scholar-edit-page h1 {
    color: var(--ascent-navy);
    margin-bottom: 0.35rem;
}

.scholar-filter-bar {
    align-items: end;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    display: grid;
    gap: 0.8rem;
    grid-template-columns: minmax(16rem, 1fr) minmax(12rem, 0.35fr) auto auto;
    margin: 1rem 0;
    padding: 1rem;
}

.scholar-filter-bar label,
.scholar-edit-form label {
    display: grid;
    gap: 0.35rem;
}

.scholar-filter-bar span,
.scholar-edit-form label > span,
.checkbox-label span {
    color: var(--ascent-navy);
    font-size: 0.75rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.scholar-filter-bar input,
.scholar-filter-bar select,
.scholar-edit-form input,
.scholar-edit-form select,
.scholar-edit-form textarea {
    border: 1px solid rgba(7, 47, 96, 0.2);
    border-radius: 0.8rem;
    color: var(--ascent-navy);
    font: inherit;
    min-height: 2.7rem;
    padding: 0.6rem 0.75rem;
    width: 100%;
}

.scholar-edit-form textarea {
    min-height: 5rem;
    resize: vertical;
}

.scholar-filter-bar button,
.scholar-edit-form button,
.photo-admin-card button {
    background: var(--ascent-orange);
    border: 0;
    border-radius: 999px;
    color: var(--ascent-navy);
    cursor: pointer;
    font-weight: 950;
    min-height: 2.7rem;
    padding: 0.55rem 1rem;
    white-space: nowrap;
}

.scholar-count-line {
    color: var(--muted);
    font-weight: 800;
    margin: 1rem 0;
}

.scholar-card-grid {
    display: grid;
    gap: 1rem;
}

.scholar-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 28px rgba(7, 47, 96, 0.08);
    display: grid;
    gap: 1rem;
    grid-template-columns: 92px minmax(0, 1fr);
    padding: 1rem;
}

.scholar-card-photo,
.scholar-detail-photo {
    align-items: center;
    background: rgba(234, 242, 251, 0.9);
    border: 2px solid rgba(254, 165, 1, 0.45);
    color: var(--ascent-navy);
    display: flex;
    font-size: 2rem;
    font-weight: 950;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
}

.scholar-card-photo {
    border-radius: 22px;
    height: 92px;
    width: 92px;
}

.scholar-card-photo img,
.scholar-detail-photo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.scholar-card-title-row {
    align-items: start;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: space-between;
}

.scholar-card h2 {
    font-size: 1.18rem;
    margin: 0;
}

.scholar-card h2 a {
    color: var(--ascent-navy);
    text-decoration: none;
}

.scholar-card h2 a:hover,
.scholar-card h2 a:focus-visible {
    text-decoration: underline;
}

.scholar-status-badge {
    background: rgba(254, 165, 1, 0.2);
    border: 1px solid rgba(254, 165, 1, 0.45);
    border-radius: 999px;
    color: var(--ascent-navy);
    font-size: 0.72rem;
    font-weight: 950;
    padding: 0.26rem 0.55rem;
    text-transform: uppercase;
}

.scholar-goes-by {
    color: var(--muted);
    font-weight: 800;
    margin: 0.12rem 0 0.65rem;
}

.scholar-mini-list {
    display: grid;
    gap: 0.48rem 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.scholar-mini-list div,
.scholar-detail-list {
    min-width: 0;
}

.scholar-mini-list dt {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.scholar-mini-list dd {
    color: var(--ink);
    font-weight: 750;
    margin: 0.08rem 0 0;
    overflow-wrap: anywhere;
}

.scholar-card-actions,
.detail-action-row,
.scholar-form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.scholar-detail-hero {
    align-items: center;
    display: grid;
    gap: 1.3rem;
    grid-template-columns: 180px minmax(0, 1fr);
    margin-bottom: 1.4rem;
}

.scholar-detail-photo {
    border-radius: 30px;
    height: 180px;
    width: 180px;
}

.scholar-section-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scholar-info-panel {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 28px rgba(7, 47, 96, 0.08);
    margin-top: 1rem;
    padding: 1rem;
}

.scholar-info-panel h2,
.scholar-form-panel h2,
.scholar-form-panel h3 {
    color: var(--ascent-navy);
    margin: 0 0 0.75rem;
}

.full-width-panel {
    width: 100%;
}

.scholar-detail-list {
    display: grid;
    gap: 0.55rem 1rem;
    grid-template-columns: 10rem minmax(0, 1fr);
}

.profile-record-list {
    display: grid;
    gap: 0.75rem;
}

.profile-record-list article {
    border-left: 4px solid rgba(254, 165, 1, 0.55);
    padding-left: 0.75rem;
}

.profile-record-list strong,
.profile-record-list span,
.profile-record-list small {
    display: block;
}

.profile-record-list small {
    color: var(--muted);
    font-weight: 800;
    margin-top: 0.12rem;
}

.profile-record-list p,
.scholar-long-text {
    color: var(--ink);
    line-height: 1.55;
    margin: 0.45rem 0 0;
    white-space: pre-line;
}

.social-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.social-link-list a {
    background: rgba(234, 242, 251, 0.72);
    border: 1px solid rgba(7, 47, 96, 0.12);
    border-radius: 999px;
    color: var(--ascent-navy);
    display: inline-flex;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    text-decoration: none;
}

.social-link-list span {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.scholar-form-panel {
    margin-top: 1.2rem;
}

.scholar-edit-form {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scholar-edit-form .span-2 {
    grid-column: 1 / -1;
}

.checkbox-label {
    align-items: center;
    display: flex !important;
    gap: 0.55rem;
    min-height: 2.7rem;
}

.checkbox-label input {
    min-height: auto;
    width: auto;
}

.child-record-stack {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.child-record-form,
.compact-child-form {
    background: rgba(234, 242, 251, 0.42);
    border: 1px solid rgba(7, 47, 96, 0.1);
    border-radius: var(--radius-md);
    padding: 0.9rem;
}

.photo-admin-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.photo-admin-card {
    align-items: center;
    background: rgba(234, 242, 251, 0.42);
    border: 1px solid rgba(7, 47, 96, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
}

.photo-admin-card img {
    border-radius: 16px;
    height: 76px;
    object-fit: cover;
    width: 76px;
}

.photo-admin-card div {
    display: grid;
    gap: 0.25rem;
}

.photo-admin-card span {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 750;
}

.photo-admin-card button {
    min-height: 2.2rem;
    padding: 0.3rem 0.75rem;
}

@media (max-width: 820px) {
    .scholars-page-header,
    .scholar-detail-hero {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .scholars-page-header {
        flex-direction: column;
    }

    .scholar-filter-bar,
    .scholar-section-grid,
    .scholar-edit-form {
        grid-template-columns: 1fr;
    }

    .scholar-edit-form .span-2 {
        grid-column: auto;
    }

    .scholar-detail-list {
        grid-template-columns: 1fr;
    }

    .scholar-detail-photo {
        height: 150px;
        width: 150px;
    }
}

@media (max-width: 600px) {
    .scholar-card {
        grid-template-columns: 1fr;
    }

    .scholar-card-photo {
        height: 130px;
        width: 130px;
    }

    .scholar-mini-list {
        grid-template-columns: 1fr;
    }
}

/* Admin lookup table editor */
.lookup-admin-page.hero-card.wide {
    width: min(1180px, 100%);
    text-align: left;
}

.lookup-page-header,
.lookup-section-heading {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.lookup-header-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

.lookup-picker {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    margin-top: 1.35rem;
}

.lookup-picker-card {
    border: 1px solid rgba(7, 47, 96, 0.14);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 22px rgba(7, 47, 96, 0.08);
    color: var(--ink);
    display: grid;
    gap: 0.28rem;
    padding: 0.9rem 1rem;
    text-decoration: none;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.lookup-picker-card:hover,
.lookup-picker-card:focus-visible {
    border-color: rgba(254, 165, 1, 0.55);
    box-shadow: 0 14px 30px rgba(7, 47, 96, 0.12);
    transform: translateY(-1px);
}

.lookup-picker-card.is-active {
    background: linear-gradient(135deg, rgba(255, 211, 106, 0.85), rgba(254, 165, 1, 0.55));
    border-color: rgba(254, 165, 1, 0.7);
}

.lookup-picker-card strong {
    color: var(--ascent-navy-3);
    font-size: 1rem;
    font-weight: 950;
}

.lookup-picker-card span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.lookup-table-panel {
    overflow: hidden;
}

.lookup-section-heading h2 {
    margin: 0;
}

.lookup-section-heading .pill {
    flex: 0 0 auto;
}

.lookup-grid-note {
    background: rgba(234, 242, 251, 0.72);
    border: 1px solid rgba(7, 47, 96, 0.1);
    border-radius: var(--radius-md);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 750;
    margin: 1rem 0;
    padding: 0.75rem 0.9rem;
}

.lookup-grid-scroll {
    border: 1px solid rgba(7, 47, 96, 0.14);
    border-radius: var(--radius-md);
    box-shadow: 0 14px 30px rgba(7, 47, 96, 0.08);
    overflow-x: auto;
    overflow-y: hidden;
}

.lookup-edit-grid {
    background: rgba(255, 255, 255, 0.92);
    border-collapse: collapse;
    min-width: 820px;
    table-layout: auto;
    width: 100%;
}

.lookup-edit-grid th,
.lookup-edit-grid td {
    border-bottom: 1px solid rgba(7, 47, 96, 0.11);
    padding: 0.48rem;
    text-align: left;
    vertical-align: middle;
}

.lookup-edit-grid thead th {
    background: linear-gradient(180deg, rgba(234, 242, 251, 0.98), rgba(234, 242, 251, 0.78));
    color: var(--ascent-navy);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.07em;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    z-index: 1;
}

.lookup-edit-grid tbody tr:hover {
    background: rgba(255, 248, 231, 0.58);
}

.lookup-edit-grid tfoot tr {
    background: rgba(234, 242, 251, 0.58);
}

.lookup-edit-grid tfoot th,
.lookup-edit-grid tfoot td {
    border-bottom: 0;
    border-top: 2px solid rgba(7, 47, 96, 0.18);
}

.lookup-id-column,
.lookup-id-cell {
    width: 4.4rem;
}

.lookup-id-cell {
    color: var(--ascent-navy);
    font-size: 0.86rem;
    font-weight: 950;
    white-space: nowrap;
}

.lookup-actions-column,
.lookup-grid-action-cell {
    text-align: right;
    width: 5.8rem;
}

.lookup-column-number {
    width: 5.6rem;
}

.lookup-column-checkbox {
    text-align: center;
    width: 5.2rem;
}

.lookup-column-textarea {
    min-width: 14rem;
}

.lookup-grid-cell input,
.lookup-grid-cell textarea {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(7, 47, 96, 0.2);
    border-radius: 0.58rem;
    color: var(--ascent-navy);
    font: inherit;
    min-height: 2.25rem;
    padding: 0.42rem 0.5rem;
    width: 100%;
}

.lookup-grid-cell input:focus,
.lookup-grid-cell textarea:focus {
    border-color: rgba(254, 165, 1, 0.9);
    box-shadow: 0 0 0 3px rgba(254, 165, 1, 0.18);
    outline: none;
}

.lookup-grid-cell textarea {
    min-height: 2.25rem;
    resize: vertical;
}

.lookup-grid-check {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 2.25rem;
    width: 100%;
}

.lookup-grid-check input {
    accent-color: var(--ascent-gold);
    height: 1.1rem;
    min-height: 0;
    width: 1.1rem;
}

.lookup-grid-button {
    background: var(--ascent-orange);
    border: 0;
    border-radius: 999px;
    color: var(--ascent-navy);
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 950;
    min-height: 2.25rem;
    padding: 0.45rem 0.9rem;
    white-space: nowrap;
}

.lookup-grid-button:hover,
.lookup-grid-button:focus-visible {
    filter: brightness(0.96);
}

.lookup-add-button {
    background: var(--ascent-gold);
}

.lookup-grid-empty {
    color: var(--muted);
    font-weight: 850;
    padding: 1rem !important;
    text-align: center !important;
}

.lookup-grid-cell small {
    color: var(--muted);
    display: block;
    font-size: 0.74rem;
    font-weight: 750;
    margin-top: 0.22rem;
}

@media (max-width: 760px) {
    .lookup-page-header,
    .lookup-section-heading {
        display: grid;
    }

    .lookup-header-actions {
        justify-content: flex-start;
    }

    .lookup-grid-scroll {
        border: 0;
        box-shadow: none;
        overflow: visible;
    }

    .lookup-edit-grid,
    .lookup-edit-grid thead,
    .lookup-edit-grid tbody,
    .lookup-edit-grid tfoot,
    .lookup-edit-grid tr,
    .lookup-edit-grid th,
    .lookup-edit-grid td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .lookup-edit-grid {
        background: transparent;
    }

    .lookup-edit-grid thead {
        height: 1px;
        left: -10000px;
        overflow: hidden;
        position: absolute;
        top: auto;
        width: 1px;
    }

    .lookup-edit-grid tbody tr,
    .lookup-edit-grid tfoot tr {
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(7, 47, 96, 0.13);
        border-radius: var(--radius-md);
        box-shadow: 0 12px 24px rgba(7, 47, 96, 0.08);
        margin-bottom: 0.8rem;
        overflow: hidden;
    }

    .lookup-edit-grid tfoot tr {
        background: rgba(234, 242, 251, 0.72);
    }

    .lookup-edit-grid th,
    .lookup-edit-grid td,
    .lookup-edit-grid tfoot th,
    .lookup-edit-grid tfoot td {
        border-bottom: 1px solid rgba(7, 47, 96, 0.09);
        border-top: 0;
        padding: 0.62rem 0.72rem;
    }

    .lookup-id-cell {
        background: rgba(234, 242, 251, 0.8);
        font-size: 0.8rem;
    }

    .lookup-grid-cell::before,
    .lookup-grid-action-cell::before {
        color: var(--ascent-navy);
        content: attr(data-label);
        display: block;
        font-size: 0.68rem;
        font-weight: 950;
        letter-spacing: 0.08em;
        margin-bottom: 0.28rem;
        text-transform: uppercase;
    }

    .lookup-column-checkbox,
    .lookup-grid-action-cell {
        text-align: left;
    }

    .lookup-grid-check {
        justify-content: flex-start;
    }

    .lookup-grid-action-cell {
        border-bottom: 0 !important;
    }
}

/* Mobile-first polish: icon navigation, compact cards, and touch-friendly controls */
.icon-text,
.section-icon,
.nav-link {
    align-items: center;
    display: inline-flex;
    gap: 0.42rem;
}

.nav-icon,
.section-icon,
.icon-text > span[aria-hidden="true"] {
    flex: 0 0 auto;
    line-height: 1;
}

.nav-icon {
    color: var(--ascent-navy);
    font-size: 1rem;
    font-weight: 950;
}

.nav-text {
    min-width: 0;
}

.page-symbol {
    align-items: center;
    background: rgba(254, 165, 1, 0.2);
    border: 1px solid rgba(254, 165, 1, 0.38);
    border-radius: 999px;
    color: var(--ascent-navy);
    display: inline-flex;
    font-size: 1.8rem;
    height: 3.35rem;
    justify-content: center;
    margin: 0 auto 0.85rem;
    width: 3.35rem;
}

.section-icon {
    background: rgba(254, 165, 1, 0.18);
    border-radius: 999px;
    height: 1.75rem;
    justify-content: center;
    margin-right: 0.45rem;
    width: 1.75rem;
}

.icon-detail-list dt[data-icon],
.scholar-mini-list dt[data-icon],
.scholar-detail-list dt[data-icon] {
    align-items: center;
    display: inline-flex;
    gap: 0.3rem;
}

.icon-detail-list dt[data-icon]::before,
.scholar-mini-list dt[data-icon]::before,
.scholar-detail-list dt[data-icon]::before {
    content: attr(data-icon);
    font-size: 0.98rem;
    letter-spacing: 0;
    text-transform: none;
}

.lookup-picker-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
}

.lookup-picker-card .lookup-picker-icon {
    align-items: center;
    background: rgba(254, 165, 1, 0.2);
    border-radius: 999px;
    display: inline-flex;
    grid-row: span 2;
    height: 2.15rem;
    justify-content: center;
    width: 2.15rem;
}

.lookup-grid-note {
    align-items: center;
    display: flex;
    gap: 0.55rem;
}

button.icon-text,
.lookup-grid-button.icon-text {
    align-items: center;
    display: inline-flex;
    gap: 0.42rem;
    justify-content: center;
}

@media (max-width: 720px) {
    body {
        background:
            radial-gradient(circle at 8% 0%, rgba(254, 165, 1, 0.15), transparent 18rem),
            linear-gradient(180deg, #eef5fc 0%, #ffffff 46%, #f6f8fb 100%);
    }

    body::before {
        background-size: 30px 30px;
        opacity: 0.72;
    }

    .site-header,
    .site-footer,
    .page-shell {
        width: min(100% - 18px, 1180px);
    }

    .site-header {
        gap: 0.7rem;
        padding: 0.72rem 0 0.58rem;
    }

    .brand {
        gap: 0.58rem;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .brand-title {
        font-size: 1rem;
        letter-spacing: -0.035em;
    }

    .brand-subtitle {
        display: none;
    }

    .site-nav {
        display: grid;
        gap: 0.3rem;
        grid-template-columns: repeat(auto-fit, minmax(4.25rem, 1fr));
        width: 100%;
    }

    .site-nav a,
    .site-nav .nav-link {
        border-radius: 16px;
        flex: none;
        flex-direction: column;
        gap: 0.2rem;
        min-height: 3.2rem;
        padding: 0.42rem 0.3rem;
    }

    .site-nav .nav-icon,
    .site-nav .nav-user-thumb {
        font-size: 1.12rem;
        line-height: 1;
    }

    .site-nav .nav-user-thumb {
        height: 24px;
        width: 24px;
    }

    .site-nav .nav-text {
        font-size: 0.68rem;
        line-height: 1.05;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .page-shell {
        min-height: calc(100vh - 132px);
        padding: 0.65rem 0 1rem;
    }

    .site-footer {
        align-items: center;
        flex-direction: row;
        font-size: 0.76rem;
        padding: 0.7rem 0 1.1rem;
    }

    .hero-card {
        border-radius: 20px;
        padding: 0.95rem;
    }

    h1,
    .compact h1,
    .admin-users-page h1 {
        font-size: clamp(2rem, 11vw, 3.35rem);
        letter-spacing: -0.055em;
        line-height: 0.98;
    }

    .scholars-page-header h1,
    .scholar-detail-page h1,
    .scholar-edit-page h1 {
        font-size: clamp(1.95rem, 10vw, 3.2rem);
    }

    .lead {
        font-size: 0.96rem;
        line-height: 1.45;
        margin-top: 0.65rem;
    }

    .eyebrow {
        font-size: 0.72rem;
        gap: 0.34rem;
        letter-spacing: 0.12em;
        margin-bottom: 0.55rem;
    }

    .eyebrow::before {
        height: 0.22rem;
        width: 1.2rem;
    }

    .pill,
    .admin-user-form button,
    .scholar-filter-bar button,
    .scholar-edit-form button,
    .photo-admin-card button,
    .compact-edit-button,
    .lookup-grid-button {
        min-height: 2.65rem;
        padding: 0.55rem 0.8rem;
    }

    .actions,
    .detail-action-row,
    .scholar-card-actions,
    .scholar-form-actions,
    .edit-user-actions,
    .lookup-header-actions {
        gap: 0.5rem;
    }

    .hero-card-home {
        gap: 0.75rem;
    }

    .hero-media {
        display: none;
    }

    .hero-copy,
    .hero-card.compact {
        text-align: left;
    }

    .hero-actions,
    .actions {
        justify-content: stretch;
    }

    .actions .pill,
    .hero-actions .pill,
    .detail-action-row .pill,
    .scholar-card-actions .pill,
    .scholar-card-actions .compact-edit-button,
    .scholar-form-actions button {
        flex: 1 1 calc(50% - 0.5rem);
        width: auto;
    }

    .status-grid {
        gap: 0.55rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .status-grid > div,
    .signed-in-card {
        border-radius: 16px;
        padding: 0.68rem;
    }

    .label,
    .status-grid .label {
        font-size: 0.62rem;
        letter-spacing: 0.08em;
    }

    .status-grid strong,
    .signed-in-card strong,
    .signed-in-card span:not(.label) {
        font-size: 0.82rem;
        line-height: 1.2;
    }

    .feature-grid {
        gap: 0.62rem;
    }

    .feature-grid article {
        align-items: flex-start;
        display: grid;
        gap: 0.1rem 0.7rem;
        grid-template-columns: auto minmax(0, 1fr);
        padding: 0.82rem;
    }

    .feature-icon {
        grid-row: span 2;
        height: 2.1rem;
        width: 2.1rem;
    }

    .feature-grid h2 {
        font-size: 0.98rem;
        margin: 0;
    }

    .feature-grid p,
    .panel-note,
    .lookup-grid-note {
        font-size: 0.86rem;
        line-height: 1.35;
    }

    .admin-panel,
    .scholar-info-panel,
    .child-record-form,
    .compact-child-form {
        border-radius: 16px;
        margin-top: 0.75rem;
        padding: 0.82rem;
    }

    .admin-panel h2,
    .scholar-info-panel h2,
    .scholar-form-panel h2,
    .scholar-form-panel h3,
    .lookup-section-heading h2 {
        align-items: center;
        display: flex;
        font-size: 1.12rem;
        gap: 0.1rem;
        margin-bottom: 0.55rem;
    }

    .section-icon {
        height: 1.55rem;
        margin-right: 0.25rem;
        width: 1.55rem;
    }

    .detail-list {
        gap: 0.55rem;
        margin: 1rem auto;
    }

    .detail-list > div {
        border-radius: 14px;
        gap: 0.16rem;
        padding: 0.68rem 0.75rem;
    }

    .detail-list dt {
        font-size: 0.66rem;
        letter-spacing: 0.07em;
    }

    .detail-list dd {
        font-size: 0.92rem;
        line-height: 1.35;
    }

    .admin-user-form,
    .scholar-filter-bar,
    .scholar-edit-form {
        gap: 0.65rem;
    }

    .admin-user-form label > span:not(.sr-only),
    .scholar-filter-bar span,
    .scholar-edit-form label > span,
    .checkbox-label span {
        font-size: 0.66rem;
        letter-spacing: 0.07em;
    }

    .admin-user-form input,
    .admin-user-form select,
    .scholar-filter-bar input,
    .scholar-filter-bar select,
    .scholar-edit-form input,
    .scholar-edit-form select,
    .scholar-edit-form textarea,
    .lookup-grid-cell input,
    .lookup-grid-cell textarea {
        border-radius: 0.72rem;
        font-size: 0.95rem;
        min-height: 2.65rem;
        padding: 0.55rem 0.65rem;
    }

    .scholars-page-header,
    .lookup-page-header,
    .lookup-section-heading {
        gap: 0.65rem;
        margin-bottom: 0.7rem;
    }

    .scholar-filter-bar {
        border-radius: 16px;
        margin: 0.75rem 0;
        padding: 0.78rem;
    }

    .scholar-count-line {
        font-size: 0.84rem;
        margin: 0.62rem 0;
    }

    .scholar-card-grid {
        gap: 0.68rem;
    }

    .scholar-card {
        border-radius: 16px;
        gap: 0.7rem;
        grid-template-columns: 72px minmax(0, 1fr);
        padding: 0.72rem;
    }

    .scholar-card-photo {
        border-radius: 16px;
        height: 72px;
        width: 72px;
    }

    .scholar-card-title-row {
        gap: 0.35rem;
    }

    .scholar-card h2 {
        font-size: 1.02rem;
        line-height: 1.15;
    }

    .scholar-status-badge,
    .role-pill,
    .status-pill {
        font-size: 0.68rem;
        padding: 0.3rem 0.48rem;
    }

    .scholar-goes-by {
        font-size: 0.82rem;
        margin-bottom: 0.42rem;
    }

    .scholar-mini-list {
        gap: 0.36rem;
        grid-template-columns: 1fr;
    }

    .scholar-mini-list div {
        align-items: start;
        display: grid;
        gap: 0.35rem;
        grid-template-columns: 1.35rem minmax(0, 1fr);
    }

    .scholar-mini-list dt {
        font-size: 0;
        line-height: 1.2;
    }

    .scholar-mini-list dt::before {
        font-size: 0.95rem;
    }

    .scholar-mini-list dd {
        font-size: 0.82rem;
        line-height: 1.25;
        margin: 0;
    }

    .scholar-detail-hero {
        align-items: center;
        gap: 0.8rem;
        grid-template-columns: 88px minmax(0, 1fr);
        margin-bottom: 0.85rem;
    }

    .scholar-detail-photo {
        border-radius: 18px;
        height: 88px;
        width: 88px;
    }

    .scholar-detail-copy .lead {
        font-size: 0.9rem;
        margin-top: 0.45rem;
    }

    .scholar-section-grid,
    .scholar-edit-form {
        gap: 0.75rem;
    }

    .scholar-detail-list {
        display: grid;
        gap: 0.45rem 0.75rem;
        grid-template-columns: 1fr;
        margin: 0;
    }

    .scholar-detail-list dt,
    .scholar-detail-list dd {
        margin: 0;
    }

    .profile-record-list {
        gap: 0.6rem;
    }

    .profile-record-list article {
        border-left-width: 3px;
        padding-left: 0.6rem;
    }

    .profile-record-list strong,
    .profile-record-list span,
    .profile-record-list small,
    .scholar-long-text {
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .social-link-list {
        display: grid;
        gap: 0.5rem;
    }

    .social-link-list a {
        border-radius: 14px;
        justify-content: space-between;
        padding: 0.62rem 0.7rem;
    }

    .photo-admin-card {
        align-items: center;
        border-radius: 14px;
        padding: 0.62rem;
    }

    .photo-admin-card img {
        border-radius: 12px;
        height: 58px;
        width: 58px;
    }

    .photo-admin-card button {
        min-height: 2.2rem;
    }

    .admin-user-list-card {
        border-radius: 16px;
        margin-top: 0.85rem;
    }

    .admin-user-list-toolbar {
        gap: 0.3rem;
        padding: 0.55rem;
    }

    .sort-button {
        background: rgba(255, 255, 255, 0.75);
        border: 1px solid rgba(7, 47, 96, 0.12);
        border-radius: 999px;
        font-size: 0.68rem;
        min-height: 2rem;
        padding: 0.32rem 0.5rem;
    }

    .admin-user-list-row {
        border-radius: 0;
        gap: 0.45rem 0.6rem;
        padding: 0.7rem;
    }

    .user-identity-copy strong {
        font-size: 0.92rem;
    }

    .user-identity-copy span,
    .user-list-last-login .last-login {
        font-size: 0.76rem;
        line-height: 1.2;
    }

    .user-list-meta::before,
    .user-list-last-login::before {
        font-size: 0.62rem;
    }

    .edit-user-summary {
        border-radius: 14px;
        padding: 0.68rem;
    }

    .edit-user-photo {
        height: 42px;
        width: 42px;
    }

    .lookup-picker {
        gap: 0.55rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 0.85rem;
    }

    .lookup-picker-card {
        border-radius: 15px;
        gap: 0.12rem 0.45rem;
        padding: 0.68rem;
    }

    .lookup-picker-card .lookup-picker-icon {
        height: 1.85rem;
        width: 1.85rem;
    }

    .lookup-picker-card strong {
        font-size: 0.86rem;
        line-height: 1.1;
    }

    .lookup-picker-card span:not(.lookup-picker-icon) {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .lookup-edit-grid tbody tr,
    .lookup-edit-grid tfoot tr {
        border-radius: 15px;
        margin-bottom: 0.65rem;
    }

    .lookup-grid-cell::before,
    .lookup-grid-action-cell::before {
        font-size: 0.62rem;
    }
}

@media (max-width: 430px) {
    .site-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .site-nav a,
    .site-nav .nav-link {
        min-height: 3rem;
    }

    .site-nav .nav-text {
        font-size: 0.62rem;
    }

    .hero-card {
        padding: 0.78rem;
    }

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

    .actions .pill,
    .hero-actions .pill,
    .detail-action-row .pill,
    .scholar-card-actions .pill,
    .scholar-card-actions .compact-edit-button,
    .scholar-form-actions button,
    .edit-user-actions .pill,
    .edit-user-actions button {
        flex: 1 1 100%;
        width: 100%;
    }

    .scholar-card {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .scholar-card-photo {
        height: 62px;
        width: 62px;
    }

    .scholar-detail-hero {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .scholar-detail-photo {
        height: 76px;
        width: 76px;
    }

    .lookup-picker {
        grid-template-columns: 1fr;
    }
}

/* Google Authenticator two-factor authentication */
.two-factor-page.hero-card.compact {
    width: min(620px, 100%);
}

.two-factor-card,
.account-security-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 28px rgba(7, 47, 96, 0.08);
    margin: 1.25rem auto 0;
    padding: 1.15rem;
    text-align: left;
}

.two-factor-qr-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.two-factor-qr {
    background: var(--ascent-white);
    border: 1px solid rgba(7, 47, 96, 0.12);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(7, 47, 96, 0.08);
    max-width: min(260px, 100%);
    padding: 0.65rem;
    width: 100%;
}

.two-factor-manual-key {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.two-factor-manual-key span,
.two-factor-form label > span:not(.sr-only),
.account-security-panel h3 {
    color: var(--ascent-navy);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.two-factor-manual-key code {
    background: rgba(234, 242, 251, 0.78);
    border: 1px solid rgba(7, 47, 96, 0.12);
    border-radius: 0.8rem;
    color: var(--ascent-navy-3);
    display: block;
    font-size: 1rem;
    font-weight: 900;
    overflow-wrap: anywhere;
    padding: 0.75rem;
}

.two-factor-form {
    display: grid;
    gap: 0.85rem;
}

.two-factor-form label {
    display: grid;
    gap: 0.35rem;
}

.two-factor-form input[type="text"] {
    border: 1px solid rgba(7, 47, 96, 0.2);
    border-radius: 0.8rem;
    color: var(--ascent-navy);
    font: inherit;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    min-height: 3rem;
    padding: 0.65rem 0.85rem;
    text-align: center;
    width: 100%;
}

.two-factor-form button,
.security-actions button {
    background: var(--ascent-orange);
    border: 0;
    border-radius: 999px;
    color: var(--ascent-navy);
    cursor: pointer;
    font-weight: 950;
    min-height: 2.7rem;
    padding: 0.55rem 1rem;
}

.two-factor-checkbox,
.reset-2fa-label {
    align-items: center;
    display: flex !important;
    gap: 0.5rem !important;
}

.two-factor-note {
    margin-top: 1rem;
}

.account-security-panel h2,
.account-security-panel h3 {
    margin-top: 0;
}

.security-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.security-actions form {
    margin: 0;
}

.remembered-device-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.remembered-device-row {
    align-items: center;
    border: 1px solid rgba(7, 47, 96, 0.12);
    border-radius: var(--radius-md);
    display: flex;
    gap: 0.8rem;
    justify-content: space-between;
    padding: 0.75rem;
}

.remembered-device-row > div {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.remembered-device-row strong {
    color: var(--ascent-navy-3);
    font-weight: 950;
    overflow-wrap: anywhere;
}

.remembered-device-row span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 750;
}

.remembered-device-row form {
    flex: 0 0 auto;
    margin: 0;
}

@media (min-width: 921px) {
    .admin-user-list-card {
        max-width: 1120px;
    }

    .admin-user-list-toolbar,
    .admin-user-list-row {
        grid-template-columns: minmax(15rem, 1.35fr) minmax(5.4rem, 0.42fr) minmax(9.2rem, 0.82fr) minmax(5.5rem, 0.42fr) minmax(5.8rem, 0.46fr) minmax(5rem, 0.36fr) minmax(7.6rem, 0.52fr) minmax(5rem, auto);
    }
}

@media (max-width: 920px) and (min-width: 741px) {
    .admin-user-list-toolbar,
    .admin-user-list-row {
        grid-template-columns: minmax(12rem, 1fr) minmax(5rem, auto) minmax(8rem, auto) minmax(5rem, auto) minmax(5.4rem, auto) minmax(4.7rem, auto) minmax(6.5rem, auto) minmax(4.5rem, auto);
    }
}

@media (max-width: 560px) {
    .remembered-device-row,
    .security-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .remembered-device-row form,
    .remembered-device-row button,
    .security-actions form,
    .security-actions button,
    .security-actions .pill {
        width: 100%;
    }
}

/* Scholarship application workflow */
.applications-page .scholars-page-header form,
.application-detail-page .detail-action-row form,
.application-card .scholar-card-actions form {
    margin: 0;
}

.application-card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 1rem;
}

.application-card,
.application-empty-card,
.application-progress-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 28px rgba(7, 47, 96, 0.08);
    padding: 1rem;
}

.application-empty-card {
    display: grid;
    gap: 0.55rem;
    min-height: 220px;
    place-items: center;
    text-align: center;
}

.application-empty-card > span {
    font-size: 2.5rem;
}

.application-card-head,
.application-progress-top {
    align-items: flex-start;
    display: flex;
    gap: 0.85rem;
    justify-content: space-between;
}

.application-card h2 {
    font-size: 1.2rem;
    margin: 0.15rem 0 0;
}

.application-card h2 a {
    color: var(--ascent-navy);
    text-decoration: none;
}

.application-card p {
    color: var(--muted);
    font-weight: 750;
    margin: 0.3rem 0 0;
}

.application-status {
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    padding: 0.34rem 0.64rem;
    text-transform: uppercase;
}

.application-status-draft {
    background: rgba(234, 242, 251, 0.95);
    border: 1px solid rgba(7, 47, 96, 0.14);
    color: var(--ascent-navy);
}

.application-status-submitted {
    background: rgba(222, 247, 230, 0.95);
    border: 1px solid rgba(30, 123, 72, 0.25);
    color: #14633a;
}

.progress-bar {
    background: rgba(7, 47, 96, 0.1);
    border-radius: 999px;
    height: 0.8rem;
    margin: 0.9rem 0;
    overflow: hidden;
}

.progress-bar span {
    background: linear-gradient(135deg, var(--ascent-gold-2), var(--ascent-gold));
    border-radius: inherit;
    display: block;
    height: 100%;
    min-width: 0.35rem;
}

.application-meta-list {
    display: grid;
    gap: 0.65rem 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0.8rem 0 0;
}

.application-meta-list.stacked {
    grid-template-columns: 1fr;
    margin-bottom: 1rem;
}

.application-meta-list dt {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.application-meta-list dd {
    color: var(--ink);
    font-weight: 800;
    margin: 0.12rem 0 0;
    overflow-wrap: anywhere;
}

.application-progress-card {
    margin: 1rem 0 1.2rem;
}

.application-progress-top strong {
    color: var(--ascent-navy);
    display: block;
    font-size: 2.2rem;
    line-height: 1;
}

.application-step-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.application-step {
    align-items: center;
    background: rgba(234, 242, 251, 0.58);
    border: 1px solid rgba(7, 47, 96, 0.12);
    border-radius: var(--radius-md);
    color: var(--ink);
    display: flex;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.75rem;
    text-decoration: none;
}

.application-step.complete {
    background: rgba(222, 247, 230, 0.72);
    border-color: rgba(30, 123, 72, 0.2);
}

.application-step.incomplete {
    background: rgba(255, 248, 234, 0.72);
    border-color: rgba(254, 165, 1, 0.24);
}

.application-step-icon {
    align-items: center;
    background: var(--ascent-white);
    border-radius: 14px;
    display: flex;
    flex: 0 0 auto;
    height: 2.35rem;
    justify-content: center;
    width: 2.35rem;
}

.application-step strong,
.application-step small {
    display: block;
}

.application-step strong {
    color: var(--ascent-navy);
    font-size: 0.86rem;
    font-weight: 950;
}

.application-step small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    margin-top: 0.12rem;
}

.application-summary-grid,
.application-edit-layout {
    display: grid;
    gap: 1rem;
}

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

.application-edit-layout {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 340px;
}

.application-summary-panel,
.application-form-panel,
.application-help-panel,
.application-faq-panel {
    margin-top: 1rem;
}

.question-review-stack {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.question-review-stack article {
    background: rgba(234, 242, 251, 0.42);
    border: 1px solid rgba(7, 47, 96, 0.1);
    border-radius: var(--radius-md);
    padding: 0.8rem;
}

.question-review-stack h3 {
    color: var(--ascent-navy);
    font-size: 0.95rem;
    margin: 0 0 0.3rem;
}

.question-review-stack p {
    line-height: 1.55;
    margin: 0;
    white-space: pre-line;
}

.application-notice-card {
    background: rgba(255, 248, 234, 0.82);
    border: 1px solid rgba(254, 165, 1, 0.28);
    border-radius: var(--radius-md);
    padding: 0.85rem;
}

.application-notice-card strong {
    color: var(--ascent-navy);
    display: block;
    font-weight: 950;
    margin-bottom: 0.25rem;
}

.application-notice-card p {
    color: var(--ink);
    line-height: 1.5;
    margin: 0;
}


.application-profile-required-panel {
    margin: 1rem 0 1.25rem;
}

.application-profile-readonly-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.application-profile-readonly-grid div {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(7, 47, 96, 0.11);
    border-radius: 0.9rem;
    display: grid;
    gap: 0.2rem;
    padding: 0.75rem;
}

.application-profile-readonly-grid span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.application-profile-readonly-grid strong {
    color: var(--ascent-navy);
    overflow-wrap: anywhere;
}

.application-choice-label {
    gap: 0.55rem;
}

.segmented-choice {
    background: rgba(234, 242, 251, 0.62);
    border: 1px solid rgba(7, 47, 96, 0.12);
    border-radius: 999px;
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.25rem;
    width: fit-content;
}

.segmented-choice label {
    display: block !important;
}

.segmented-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segmented-choice span {
    border-radius: 999px;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    font-weight: 950;
    min-width: 4.6rem;
    padding: 0.52rem 0.85rem;
    justify-content: center;
}

.segmented-choice input:checked + span {
    background: var(--ascent-white);
    box-shadow: 0 4px 12px rgba(7, 47, 96, 0.1);
    color: var(--ascent-navy);
}

.essay-label em {
    color: var(--muted);
    font-size: 0.86rem;
    font-style: normal;
    font-weight: 750;
    line-height: 1.45;
}

.essay-label small {
    color: var(--muted);
    font-weight: 800;
}

.agreement-checkbox {
    align-items: flex-start;
    background: rgba(234, 242, 251, 0.42);
    border: 1px solid rgba(7, 47, 96, 0.1);
    border-radius: var(--radius-md);
    padding: 0.75rem;
}

.agreement-checkbox input {
    margin-top: 0.25rem;
}

.application-help-stack {
    display: grid;
    gap: 1rem;
}

.eligible-school-list,
.faq-grid {
    display: grid;
    gap: 0.65rem;
}

.eligible-school-list article,
.faq-grid details {
    background: rgba(234, 242, 251, 0.46);
    border: 1px solid rgba(7, 47, 96, 0.1);
    border-radius: var(--radius-md);
    padding: 0.75rem;
}

.eligible-school-list strong,
.eligible-school-list span {
    display: block;
}

.eligible-school-list strong,
.faq-grid summary {
    color: var(--ascent-navy);
    font-weight: 950;
}

.eligible-school-list span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    margin-top: 0.1rem;
    text-transform: uppercase;
}

.eligible-school-list p,
.faq-grid p {
    line-height: 1.5;
    margin: 0.35rem 0 0;
}

.eligible-school-application-link {
    align-items: center;
    display: inline-flex;
    gap: 0.3rem;
    margin-top: 0.55rem;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
}

.eligible-school-application-link:hover,
.eligible-school-application-link:focus {
    text-decoration: underline;
}

.faq-grid.compact details {
    padding: 0.65rem;
}

.application-form-actions .pill {
    border: 1px solid rgba(7, 47, 96, 0.18);
}

@media (max-width: 980px) {
    .application-edit-layout,
    .application-summary-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .application-card-head,
    .application-progress-top {
        align-items: stretch;
        flex-direction: column;
    }

    .application-meta-list,
    .application-step-grid {
        grid-template-columns: 1fr;
    }

    .segmented-choice {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .segmented-choice span {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .application-profile-readonly-grid {
        grid-template-columns: 1fr;
    }

    .admin-user-form .span-2 {
        grid-column: 1 / -1;
    }
}

/* Scholar profile wizard */
.scholar-progress-card .application-progress-top span:not(.application-status) {
    color: var(--muted);
    display: block;
    font-weight: 800;
    margin-top: 0.25rem;
}

.scholar-step-grid {
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
}

.application-step.active,
.scholar-step.active {
    border-color: rgba(7, 47, 96, 0.42);
    box-shadow: 0 0 0 3px rgba(7, 47, 96, 0.08);
}

.application-step.disabled,
.scholar-step.disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.scholar-wizard-layout .child-record-stack {
    margin-bottom: 1rem;
}

.scholar-wizard-nav {
    border-top: 1px solid var(--line);
    margin-top: 1.1rem;
    padding-top: 1rem;
}

.scholar-checklist-progress {
    background: rgba(234, 242, 251, 0.46);
    border: 1px solid rgba(7, 47, 96, 0.1);
    border-radius: var(--radius-md);
    margin: 0.7rem 0 0.85rem;
    padding: 0.75rem;
}

.scholar-checklist-progress-top {
    align-items: center;
    display: flex;
    gap: 0.7rem;
    justify-content: space-between;
}

.scholar-checklist-progress strong {
    color: var(--ascent-navy);
    font-size: 1.8rem;
    line-height: 1;
}

.scholar-checklist-progress .progress-bar {
    height: 0.55rem;
    margin: 0.65rem 0 0.45rem;
}

.scholar-checklist-progress p {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 850;
    margin: 0;
}

.scholar-section-checklist {
    display: grid;
    gap: 0.55rem;
}

.scholar-section-checklist a,
.scholar-section-checklist div {
    align-items: center;
    background: rgba(234, 242, 251, 0.58);
    border: 1px solid rgba(7, 47, 96, 0.12);
    border-radius: var(--radius-md);
    color: var(--ink);
    display: grid;
    gap: 0.45rem;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    padding: 0.65rem;
    text-decoration: none;
}

.scholar-section-checklist a:hover,
.scholar-section-checklist a:focus-visible {
    border-color: rgba(7, 47, 96, 0.35);
    box-shadow: 0 0 0 3px rgba(7, 47, 96, 0.07);
    outline: none;
    transform: translateY(-1px);
}

.scholar-section-checklist a.complete,
.scholar-section-checklist div.complete {
    background: rgba(222, 247, 230, 0.72);
    border-color: rgba(30, 123, 72, 0.2);
}

.scholar-section-checklist a.incomplete,
.scholar-section-checklist div.incomplete {
    background: rgba(255, 248, 234, 0.72);
    border-color: rgba(254, 165, 1, 0.24);
}

.scholar-section-checklist a.active,
.scholar-section-checklist div.active {
    border-color: rgba(7, 47, 96, 0.42);
}

.scholar-section-checklist div.disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

.scholar-section-checklist span {
    align-items: center;
    background: var(--ascent-white);
    border-radius: 12px;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.scholar-section-checklist strong {
    color: var(--ascent-navy);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.scholar-section-checklist small {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
}

.scholar-family-instructions {
    background: rgba(234, 242, 251, 0.58);
    border: 1px solid rgba(7, 47, 96, 0.12);
    border-radius: var(--radius-md);
    color: var(--ascent-navy);
    padding: 0.75rem 0.85rem;
}

.scholar-family-instructions strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 950;
    margin-bottom: 0.25rem;
}

.scholar-family-instructions p {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 750;
    line-height: 1.35;
    margin: 0;
}

.social-profile-link-preview {
    align-content: start;
    display: grid;
    gap: 0.35rem;
}

.social-profile-link-preview > span {
    color: var(--ascent-navy);
    font-size: 0.75rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Edit Scholar wizard: keep scholar names readable without overpowering the page. */
.scholar-wizard-page .scholars-page-header h1 {
    font-size: clamp(1.35rem, 3vw, 3.05rem);
    letter-spacing: -0.035em;
    line-height: 1.05;
}

/* Admin landing page, admin health, and development login */
.admin-dashboard-grid,
.health-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.admin-tool-card,
.health-summary-card {
    border: 1px solid rgba(7, 47, 96, 0.14);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 45px rgba(7, 47, 96, 0.08);
    padding: 1.1rem;
}

.admin-tool-card {
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 13rem;
    text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.admin-tool-card:hover,
.admin-tool-card:focus-visible {
    border-color: rgba(7, 47, 96, 0.35);
    box-shadow: 0 22px 55px rgba(7, 47, 96, 0.14);
    transform: translateY(-2px);
}

.admin-tool-icon {
    align-items: center;
    background: rgba(7, 47, 96, 0.09);
    border-radius: 999px;
    display: inline-flex;
    font-size: 1.45rem;
    height: 3rem;
    justify-content: center;
    margin-bottom: 0.85rem;
    width: 3rem;
}

.admin-tool-card strong {
    color: #072f60;
    font-size: 1.18rem;
    margin-bottom: 0.45rem;
}

.admin-tool-card span:not(.admin-tool-icon) {
    color: #4b5563;
    line-height: 1.45;
}

.admin-tool-card em {
    color: #6b7280;
    font-style: normal;
    font-weight: 700;
    margin-top: auto;
    padding-top: 1rem;
}

.admin-dev-login-panel,
.health-detail-panel {
    margin-top: 1.25rem;
}

.health-summary-card span,
.health-summary-card small {
    color: #4b5563;
    display: block;
}

.health-summary-card strong {
    color: #072f60;
    display: block;
    font-size: 1.7rem;
    margin: 0.2rem 0;
}

.health-detail-list {
    display: grid;
    gap: 0.65rem;
    margin: 0;
}

.health-detail-list div {
    align-items: start;
    border-bottom: 1px solid rgba(7, 47, 96, 0.08);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(9rem, 0.5fr) 1fr;
    padding: 0.55rem 0;
}

.health-detail-list dt {
    color: #4b5563;
    font-weight: 700;
}

.health-detail-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.dev-login-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.dev-login-form label {
    display: grid;
    gap: 0.4rem;
    text-align: left;
}

.dev-login-form select {
    border: 1px solid rgba(7, 47, 96, 0.22);
    border-radius: 0.85rem;
    font: inherit;
    padding: 0.75rem 0.85rem;
    width: 100%;
}

.dev-login-warning {
    background: rgba(245, 158, 11, 0.11);
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 0.9rem;
    color: #78350f;
    margin: 1.1rem 0 0;
    padding: 0.75rem 0.9rem;
}

@media (max-width: 640px) {
    .admin-tool-card {
        min-height: 0;
    }

    .health-detail-list div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

/* My Applications list title: keep the page heading compact. */
.applications-page .compact-application-title h1 {
    font-size: clamp(1.35rem, 3vw, 3.05rem);
    letter-spacing: -0.035em;
    line-height: 1.05;
}

/* Ledger dashboards */
.ledger-page h1 {
    font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.ledger-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 1.6rem;
}

.ledger-summary-grid article {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 28px rgba(7, 47, 96, 0.08);
    padding: 1rem;
}

.ledger-summary-grid strong {
    display: block;
    color: var(--ascent-navy);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    letter-spacing: -0.04em;
    margin-top: 0.35rem;
}

.ledger-summary-grid small {
    color: var(--muted);
    display: block;
    font-weight: 800;
    margin-top: 0.25rem;
}

.ledger-form-grid,
.ledger-dashboard-grid {
    display: grid;
    gap: 1rem;
    margin: 1.25rem 0;
}

.ledger-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.ledger-form-grid.two-column {
    grid-template-columns: minmax(0, 1fr);
}

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

.ledger-dashboard-grid .ledger-panel:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.ledger-panel {
    margin-top: 1rem;
}

.ledger-panel h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ledger-form,
.ledger-inline-form {
    display: grid;
    gap: 0.85rem;
}

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

.ledger-form label,
.ledger-inline-form label {
    display: grid;
    gap: 0.35rem;
    margin: 0;
}

.ledger-form label > span,
.ledger-inline-form label > span {
    color: var(--ascent-navy);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ledger-form .span-2 {
    grid-column: 1 / -1;
}

.ledger-form input,
.ledger-form select,
.ledger-form textarea,
.ledger-inline-form select {
    border: 1px solid rgba(7, 47, 96, 0.2);
    border-radius: 0.8rem;
    color: var(--ascent-navy);
    font: inherit;
    min-height: 2.7rem;
    padding: 0.6rem 0.75rem;
    width: 100%;
}

.ledger-form textarea {
    min-height: 5.5rem;
    resize: vertical;
}

.ledger-form button,
.ledger-inline-form button {
    background: var(--ascent-orange);
    border: 0;
    border-radius: 999px;
    color: var(--ascent-navy);
    cursor: pointer;
    font-weight: 950;
    min-height: 2.7rem;
    padding: 0.55rem 1rem;
}

.ledger-form button {
    justify-self: start;
}

.ledger-inline-form {
    align-items: end;
    grid-template-columns: minmax(18rem, 0.45fr) auto;
}

.ledger-table-wrap {
    margin-top: 1rem;
}

.ledger-table th,
.ledger-table td {
    white-space: nowrap;
}

.ledger-table td:nth-child(4),
.ledger-table td:nth-child(8) {
    white-space: normal;
    min-width: 12rem;
}

.ledger-status-open {
    color: #7a5300;
    background: #fff7dc;
}

.ledger-status-partially_paid {
    color: #174d7a;
    background: #e9f4ff;
}

.ledger-status-paid,
.ledger-transaction-scholar_donation {
    color: #155f31;
    background: #e8f8ee;
}

.ledger-status-cancelled,
.ledger-transaction-foundation_payment {
    color: #8a2b22;
    background: #fff0ec;
}

@media (max-width: 1050px) {
    .ledger-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .ledger-dashboard-grid .ledger-panel:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

@media (max-width: 680px) {
    .ledger-summary-grid,
    .ledger-form,
    .ledger-inline-form {
        grid-template-columns: 1fr;
    }

    .ledger-form button,
    .ledger-inline-form button {
        justify-self: stretch;
    }
}

.feature-access-panel {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 18px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.72);
}

.feature-access-panel legend {
    font-weight: 800;
    padding: 0 0.35rem;
}

.feature-checkbox-groups {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 0.75rem;
}

.feature-checkbox-group {
    display: grid;
    gap: 0.45rem;
    align-content: start;
}

.feature-checkbox-group > strong {
    color: var(--ink);
    font-size: 0.88rem;
}

.feature-checkbox-label {
    align-items: flex-start;
    min-height: auto;
}

/* Application submit and board review workflow */
.application-detail-page.review-mode .scholars-page-header h1 {
    font-size: clamp(1.35rem, 3vw, 2.4rem);
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.application-status-accepted {
    background: rgba(222, 247, 230, 0.95);
    border: 1px solid rgba(30, 123, 72, 0.28);
    color: #14633a;
}

.application-status-rejected {
    background: rgba(254, 226, 226, 0.95);
    border: 1px solid rgba(185, 28, 28, 0.25);
    color: #991b1b;
}

.pill-danger {
    background: #fee2e2;
    border: 1px solid rgba(185, 28, 28, 0.24);
    color: #991b1b;
}

.application-modal-backdrop {
    align-items: center;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 50;
}

.application-modal-card {
    background: var(--ascent-white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 28px 70px rgba(7, 47, 96, 0.28);
    max-width: 560px;
    padding: 1.35rem;
    width: min(100%, 560px);
}

.application-modal-card h2 {
    color: var(--ascent-navy);
    margin: 0 0 0.5rem;
}

.application-modal-card p {
    line-height: 1.5;
    margin: 0 0 0.9rem;
}

.application-modal-card ul {
    display: grid;
    gap: 0.4rem;
    margin: 0 0 1rem 1.2rem;
}

.modal-action-row,
.review-action-row,
.review-workspace-header,
.review-section-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
}

.modal-action-row form,
.review-action-row form {
    margin: 0;
}

.application-review-workspace {
    margin: 1rem 0 1.2rem;
}

.review-workspace-header h2,
.review-section-header h2 {
    color: var(--ascent-navy);
    margin: 0.15rem 0 0;
}

.review-workspace-header h2 {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.review-decision-stack {
    display: grid;
    gap: 0.35rem;
    justify-items: end;
}

.review-decision-stack small {
    color: var(--muted);
    font-weight: 800;
}

.review-action-row {
    justify-content: flex-start;
    margin: 0.9rem 0 1rem;
}

.review-chat-layout {
    background: rgba(234, 242, 251, 0.42);
    border: 1px solid rgba(7, 47, 96, 0.1);
    border-radius: var(--radius-lg);
    display: grid;
    gap: 0;
    grid-template-columns: 1fr;
    margin-top: 1rem;
    overflow: hidden;
}

.review-chat-thread {
    align-content: start;
    display: grid;
    gap: 0.35rem;
    max-height: 460px;
    min-height: 220px;
    overflow-y: auto;
    padding: 0.62rem;
    scroll-behavior: smooth;
}

.review-chat-message,
.review-chat-empty {
    align-items: flex-end;
    display: flex;
    gap: 0.3rem;
}

.review-chat-message.is-own-message {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.review-chat-bubble,
.review-chat-empty {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(7, 47, 96, 0.1);
    border-radius: 0.95rem 0.95rem 0.95rem 0.3rem;
    max-width: min(680px, 84%);
    padding: 0.38rem 0.52rem;
}

.review-chat-message.is-own-message .review-chat-bubble {
    background: rgba(255, 247, 220, 0.98);
    border-color: rgba(245, 158, 11, 0.24);
    border-radius: 0.95rem 0.95rem 0.3rem 0.95rem;
}

.review-user-avatar {
    align-items: center;
    background: var(--ascent-white);
    border: 2px solid rgba(254, 165, 1, 0.48);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(7, 47, 96, 0.12);
    color: var(--ascent-navy);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 950;
    height: 34px;
    justify-content: center;
    object-fit: cover;
    width: 34px;
}

.review-chat-avatar {
    height: 24px;
    width: 24px;
}

.review-user-avatar-placeholder {
    background: rgba(234, 242, 251, 0.95);
    border-color: rgba(7, 47, 96, 0.14);
}

.review-chat-meta {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: space-between;
}

.review-chat-meta strong,
.review-chat-empty strong {
    color: var(--ascent-navy);
}

.review-chat-meta span {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 850;
}

.review-chat-message p,
.review-chat-empty p {
    font-size: 0.9rem;
    line-height: 1.3;
    margin: 0.12rem 0 0;
    white-space: pre-line;
}

.review-chat-form {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(7, 47, 96, 0.1);
    display: block;
    padding: 0.58rem;
    position: relative;
}

.review-emoji-palette {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0 4.8rem 0.38rem 0;
}

.review-emoji-button {
    align-items: center;
    background: rgba(234, 242, 251, 0.88);
    border: 1px solid rgba(7, 47, 96, 0.1);
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 1rem;
    height: 1.9rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: transform 0.15s ease, background 0.15s ease;
    width: 1.9rem;
}

.review-emoji-button:hover,
.review-emoji-button:focus-visible {
    background: rgba(255, 247, 220, 0.98);
    transform: translateY(-1px);
}

.review-chat-form textarea {
    border-radius: 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.3;
    min-height: 48px;
    padding: 0.6rem 5.6rem 0.6rem 0.8rem;
    resize: vertical;
    width: 100%;
}

.review-chat-submit {
    bottom: 1rem;
    min-height: 36px;
    padding: 0.45rem 0.7rem;
    position: absolute;
    right: 1rem;
}

.review-vote-panel {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(7, 47, 96, 0.1);
    border-radius: var(--radius-lg);
    display: grid;
    gap: 0.8rem;
    margin: 0.95rem 0 1rem;
    padding: 0.9rem;
}

.review-vote-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.review-vote-summary span,
.vote-status {
    background: rgba(234, 242, 251, 0.95);
    border: 1px solid rgba(7, 47, 96, 0.1);
    border-radius: 999px;
    color: var(--ascent-navy);
    font-weight: 900;
    padding: 0.35rem 0.65rem;
}

.review-voter-list {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.review-voter-row,
.review-voter-empty {
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(7, 47, 96, 0.09);
    border-radius: var(--radius-md);
    display: flex;
    gap: 0.7rem;
    justify-content: space-between;
    padding: 0.55rem 0.65rem;
}

.review-voter-identity {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    min-width: 0;
}

.review-voter-row strong {
    color: var(--ascent-navy);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vote-status-accept {
    background: rgba(222, 247, 230, 0.95);
    border-color: rgba(30, 123, 72, 0.24);
    color: #14633a;
}

.vote-status-reject {
    background: rgba(254, 226, 226, 0.95);
    border-color: rgba(185, 28, 28, 0.24);
    color: #991b1b;
}

.vote-status-none {
    background: rgba(241, 245, 249, 0.95);
    color: var(--muted);
}

.review-vote-rule,
.review-vote-unavailable {
    margin: 0;
}

.review-dashboard-section {
    margin-top: 1rem;
}

.status-count-pill {
    background: rgba(234, 242, 251, 0.95);
    border: 1px solid rgba(7, 47, 96, 0.12);
    border-radius: 999px;
    color: var(--ascent-navy);
    font-weight: 950;
    padding: 0.35rem 0.7rem;
}

.compact-empty-card {
    min-height: 120px;
}

.compact-empty-card h3 {
    color: var(--ascent-navy);
    margin: 0;
}

@media (max-width: 980px) {
    .review-chat-submit {
        bottom: 0.95rem;
        right: 0.95rem;
    }

    .review-decision-stack {
        justify-items: start;
    }
}

.feature-access-panel.span-2 {
    grid-column: 1 / -1;
}

.feature-access-sections {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-access-section {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 14px;
    padding: 0.75rem;
}

.feature-context-select-label {
    margin-bottom: 0.35rem;
}

.feature-access-section.is-context-disabled {
    background: rgba(148, 163, 184, 0.08);
    opacity: 0.72;
}

.feature-access-section.is-context-disabled .feature-checkbox-label {
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Closed Ascent Community
   -------------------------------------------------------------------------- */

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.community-shell {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.community-page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.2rem;
}

.community-page-heading h1,
.community-member-profile-card h1 {
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 4.1rem);
    line-height: 1;
}

.community-page-heading p:not(.eyebrow) {
    max-width: 760px;
    margin: 0.75rem 0 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

.community-page-heading-compact {
    margin-bottom: 0.65rem;
}

.community-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 24px rgba(7, 47, 96, 0.08);
}

.community-nav a {
    flex: 0 0 auto;
    padding: 0.72rem 1rem;
    border-radius: 13px;
    color: var(--muted);
    font-weight: 850;
    text-decoration: none;
}

.community-nav a:hover,
.community-nav a.is-active {
    color: var(--ascent-navy);
    background: var(--ascent-sky);
}

.community-panel {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
}

.community-feed-layout {
    display: grid;
    grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1.75fr) minmax(210px, 0.78fr);
    gap: 1.1rem;
    align-items: start;
}

.community-side-column {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 1rem;
}

.community-feed-column,
.community-post-list {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.community-profile-summary,
.community-member-profile-card {
    padding: 1.25rem;
    text-align: center;
}

.community-profile-summary h2,
.community-member-profile-card h1 {
    margin: 0.8rem 0 0.35rem;
    color: var(--ascent-navy-3);
}

.community-profile-summary p,
.community-member-profile-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.community-profile-summary dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 1rem 0;
    border-block: 1px solid var(--line);
}

.community-profile-summary dl div {
    padding: 0.75rem 0.35rem;
}

.community-profile-summary dl div + div {
    border-left: 1px solid var(--line);
}

.community-profile-summary dt {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.community-profile-summary dd {
    margin: 0.15rem 0 0;
    font-size: 1.25rem;
    font-weight: 900;
}

.community-text-link {
    display: inline-block;
    color: var(--ascent-navy);
    font-weight: 850;
    text-decoration: none;
}

.community-text-link:hover {
    text-decoration: underline;
}

.community-avatar-link {
    display: inline-flex;
    flex: 0 0 auto;
    border-radius: 999px;
}

.community-avatar {
    display: block;
    flex: 0 0 auto;
    border-radius: 999px;
    object-fit: cover;
    background: var(--ascent-sky);
    border: 3px solid var(--ascent-white);
    box-shadow: 0 5px 16px rgba(7, 47, 96, 0.18);
}

.community-avatar-xs { width: 34px; height: 34px; border-width: 2px; }
.community-avatar-xxs { width: 25px; height: 25px; border-width: 1px; }
.community-avatar-sm { width: 46px; height: 46px; border-width: 2px; }
.community-avatar-md { width: 58px; height: 58px; }
.community-avatar-xl { width: 92px; height: 92px; border-width: 4px; }
.community-avatar-xxl { width: 132px; height: 132px; border-width: 5px; }

.community-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.65rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
}

.community-button-primary {
    color: var(--ascent-white);
    background: var(--ascent-navy);
    border-color: var(--ascent-navy);
}

.community-button-primary:hover {
    background: var(--ascent-navy-2);
}

.community-button-muted {
    color: var(--ascent-navy);
    background: var(--ascent-white);
    border-color: rgba(7, 47, 96, 0.22);
}

.community-button-muted:hover {
    background: var(--ascent-sky);
}

.community-composer {
    padding: 1.15rem;
}

.community-composer-intro {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.community-composer-intro div {
    display: grid;
    gap: 0.15rem;
}

.community-composer-intro strong {
    color: var(--ascent-navy-3);
}

.community-composer-intro span {
    color: var(--muted);
    font-size: 0.87rem;
}

.community-composer textarea,
.community-settings-form input[type="text"],
.community-settings-form textarea,
.community-member-search input,
.community-message-composer textarea {
    width: 100%;
    border: 1px solid rgba(7, 47, 96, 0.2);
    border-radius: 16px;
    color: var(--ink);
    background: #fbfdff;
    font: inherit;
    line-height: 1.5;
    padding: 0.85rem 0.95rem;
    resize: vertical;
}

.community-composer textarea:focus,
.community-settings-form input:focus,
.community-settings-form textarea:focus,
.community-member-search input:focus,
.community-message-composer textarea:focus {
    outline: 3px solid rgba(254, 165, 1, 0.22);
    border-color: var(--ascent-gold);
}

.community-composer-tools,
.community-composer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 0.75rem;
}

.community-tool-buttons,
.community-friend-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.community-tool-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 36px;
    padding: 0.48rem 0.7rem;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    color: var(--ascent-navy);
    background: var(--ascent-sky);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 850;
}

.community-audience-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.community-audience-control select {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--ascent-white);
    padding: 0.45rem 0.55rem;
    font: inherit;
    font-weight: 800;
}

.community-emoji-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.65rem;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--ascent-white);
}

.community-emoji-panel[hidden] {
    display: none;
}

.community-emoji-panel button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    background: transparent;
    font-size: 1.25rem;
}

.community-emoji-panel button:hover {
    background: var(--ascent-sky);
}

.community-upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.55rem;
    margin-top: 0.7rem;
}

.community-upload-item {
    display: grid;
    align-content: start;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fbff;
}

.community-upload-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 9px;
    object-fit: cover;
}

.community-upload-item span {
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-upload-item small,
.community-composer-footer small {
    color: var(--muted);
}

.community-post-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-card);
}

.community-post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem 0.8rem;
}

.community-post-author {
    display: grid;
    min-width: 0;
    gap: 0.08rem;
}

.community-post-author > a,
.community-comment-heading a,
.community-member-card h2 a,
.community-friend-list h3 a,
.community-thread-header h2 a {
    color: var(--ascent-navy-3);
    font-weight: 900;
    text-decoration: none;
}

.community-post-author > a:hover,
.community-comment-heading a:hover,
.community-member-card h2 a:hover,
.community-friend-list h3 a:hover,
.community-thread-header h2 a:hover {
    text-decoration: underline;
}

.community-post-author span,
.community-post-author small {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-post-delete {
    margin-left: auto;
    align-self: start;
}

.community-post-delete button,
.community-comment-delete {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: var(--muted);
    background: transparent;
    font: inherit;
    font-size: 1.4rem;
    font-weight: 900;
}

.community-post-delete button:hover,
.community-comment-delete:hover {
    color: #9b1c1c;
    background: #fff1f1;
}

.community-post-body,
.community-long-copy {
    padding: 0 1rem 1rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.community-media-grid {
    display: grid;
    gap: 3px;
    background: #dbe5ef;
}

.community-media-count-2,
.community-media-count-3,
.community-media-count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-media-item {
    min-width: 0;
    background: #eef3f7;
}

.community-media-item img,
.community-media-item video {
    display: block;
    width: 100%;
    max-height: 560px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #07111f;
}

.community-media-count-1 .community-media-item img,
.community-media-count-1 .community-media-item video {
    aspect-ratio: auto;
    max-height: 620px;
    object-fit: contain;
}

.community-audio-file,
.community-document-file {
    display: grid;
    gap: 0.45rem;
    min-height: 120px;
    padding: 1rem;
    color: var(--ascent-navy-3);
    background: var(--ascent-sky);
    text-decoration: none;
}

.community-audio-file audio {
    width: 100%;
}

.community-document-file span {
    font-size: 1.6rem;
}

.community-document-file small {
    color: var(--muted);
}

.community-post-counts {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.community-count-hover {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted currentColor;
    outline: none;
}

.community-count-hover::after {
    position: absolute;
    z-index: 30;
    right: 0;
    bottom: calc(100% + 0.45rem);
    display: none;
    width: max-content;
    max-width: min(260px, 78vw);
    padding: 0.55rem 0.68rem;
    border-radius: 10px;
    content: attr(data-roster);
    color: white;
    background: rgba(7, 47, 96, 0.97);
    box-shadow: 0 10px 24px rgba(7, 47, 96, 0.24);
    font-size: 0.75rem;
    font-weight: 750;
    line-height: 1.4;
    text-align: left;
    white-space: pre-line;
}

.community-count-hover:hover::after,
.community-count-hover:focus-visible::after {
    display: block;
}

.community-post-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-block: 1px solid var(--line);
}

.community-post-actions form {
    display: contents;
}

.community-post-actions button {
    min-height: 44px;
    border: 0;
    cursor: pointer;
    color: var(--muted);
    background: transparent;
    font: inherit;
    font-weight: 850;
}

.community-post-actions button:hover,
.community-post-actions button.is-selected {
    color: var(--ascent-navy);
    background: var(--ascent-sky);
}

.community-post-actions button.is-selected span {
    color: #b72032;
}

.community-comments {
    display: grid;
    gap: 0.24rem;
    padding: 0.4rem 0.85rem 0;
}

.community-comment {
    display: flex;
    align-items: flex-start;
    gap: 0.32rem;
}

.community-comment-bubble {
    display: grid;
    flex: 1;
    min-width: 0;
    gap: 0;
    padding: 0.22rem 0.46rem 0.28rem;
    border-radius: 3px 10px 10px;
    background: #edf3f8;
    font-size: 0.79rem;
    line-height: 1.22;
    overflow-wrap: anywhere;
    white-space: normal;
}

.community-comment-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    line-height: 1.1;
}

.community-comment-heading a {
    font-size: 0.76rem;
    line-height: 1.1;
}

.community-comment-heading small {
    color: var(--muted);
    font-size: 0.6rem;
    line-height: 1.1;
    white-space: nowrap;
}

.community-comment-body {
    margin: 0;
    padding: 0;
    line-height: 1.22;
    white-space: pre-wrap;
}

.community-comment-delete {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    font-size: 0.85rem;
}

.community-comment-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem 0.65rem;
}

.community-comment-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f5f8fb;
    min-height: 32px;
    padding: 0.38rem 0.68rem;
    font: inherit;
    font-size: 0.79rem;
}

.community-comment-form button {
    border: 0;
    cursor: pointer;
    color: var(--ascent-navy);
    background: transparent;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
}

.community-comment-drawer[hidden] {
    display: none;
}

.community-callout,
.community-right-column > .community-panel {
    padding: 1rem;
}

.community-callout {
    background: linear-gradient(145deg, #fff8e8, #ffffff);
    border-color: rgba(254, 165, 1, 0.3);
}

.community-callout p,
.community-muted {
    color: var(--muted);
}

.community-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.community-panel-heading h2,
.community-profile-section h2,
.community-section-heading h2,
.community-friend-section h2,
.community-message-index h2 {
    margin: 0;
    color: var(--ascent-navy-3);
    font-size: 1.2rem;
}

.community-panel-heading a {
    font-size: 0.8rem;
    font-weight: 850;
    text-decoration: none;
}

.community-mini-member-list {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 0.75rem;
}

.community-mini-member-list > a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
}

.community-mini-member-list > a > .community-unread-badge {
    margin-left: auto;
}

.community-mini-member-list > a > span {
    display: grid;
    min-width: 0;
}

.community-mini-member-list strong,
.community-mini-member-list small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-mini-member-list small {
    color: var(--muted);
    font-size: 0.72rem;
}

.community-empty-state {
    padding: 2rem;
    text-align: center;
}

.community-empty-state > span {
    display: block;
    font-size: 2rem;
}

.community-empty-state h2 {
    margin: 0.55rem 0 0.25rem;
}

.community-empty-state p {
    margin: 0;
    color: var(--muted);
}

.community-settings-form {
    display: grid;
    gap: 1rem;
}

.community-settings-form > .community-panel {
    padding: clamp(1rem, 3vw, 1.5rem);
}

.community-settings-intro {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.3rem;
    align-items: start;
}

.community-settings-intro h2 {
    margin: 0 0 0.9rem;
}

.community-settings-intro label {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.8rem;
    color: var(--ascent-navy-3);
    font-weight: 850;
}

.community-panel-heading-stacked {
    align-items: start;
}

.community-panel-heading-stacked p {
    margin: 0.3rem 0 0;
    color: var(--muted);
}

.community-privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.community-privacy-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfdff;
    cursor: pointer;
}

.community-privacy-option:hover {
    border-color: rgba(7, 47, 96, 0.34);
}

.community-privacy-option > span:last-child {
    display: grid;
    gap: 0.2rem;
}

.community-privacy-option small {
    color: var(--muted);
    line-height: 1.4;
}

.community-privacy-option.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.community-switch {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.community-switch input {
    position: absolute;
    opacity: 0;
}

.community-switch > span {
    width: 44px;
    height: 25px;
    border-radius: 999px;
    background: #cbd5df;
    transition: background 160ms ease;
}

.community-switch > span::after {
    content: "";
    display: block;
    width: 19px;
    height: 19px;
    margin: 3px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 8px rgba(7, 47, 96, 0.22);
    transition: transform 160ms ease;
}

.community-switch input:checked + span {
    background: var(--ascent-navy);
}

.community-switch input:checked + span::after {
    transform: translateX(19px);
}

.community-notice {
    margin-bottom: 1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(254, 165, 1, 0.34);
    border-radius: 14px;
    background: var(--ascent-cream);
    color: #68460b;
}

.community-settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
}

.community-heading-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.community-member-search {
    padding: 1rem;
    margin-bottom: 1rem;
}

.community-member-search > label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--ascent-navy-3);
    font-weight: 850;
}

.community-member-search > div {
    display: flex;
    gap: 0.55rem;
}

.community-member-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.community-member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem;
    text-align: center;
}

.community-member-card-copy {
    display: grid;
    gap: 0.3rem;
}

.community-member-card h2 {
    margin: 0;
    font-size: 1.15rem;
}

.community-member-card p,
.community-member-card small {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.community-member-card .community-friend-actions {
    justify-content: center;
    margin-top: auto;
}

.community-grid-empty {
    grid-column: 1 / -1;
}

.community-status-pill,
.community-count-badge,
.community-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    color: var(--ascent-navy);
    background: var(--ascent-sky);
    font-size: 0.76rem;
    font-weight: 900;
}

.community-profile-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.85fr);
    gap: 1rem;
    align-items: start;
}

.community-profile-sidebar {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 1rem;
}

.community-member-profile-card .community-friend-actions {
    justify-content: center;
    margin-top: 1rem;
}

.community-profile-headline {
    margin-bottom: 1rem !important;
}

.community-profile-details {
    padding: 1rem;
}

.community-profile-details h2 {
    margin: 0 0 0.75rem;
}

.community-profile-details dl {
    display: grid;
    gap: 0.7rem;
    margin: 0;
}

.community-profile-details dl div {
    display: grid;
    gap: 0.1rem;
}

.community-profile-details dt {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
}

.community-profile-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.community-profile-main {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.community-profile-section {
    padding: 1.2rem;
}

.community-profile-section .community-long-copy {
    padding: 0;
    margin-top: 0.7rem;
}

.community-timeline {
    display: grid;
    gap: 1rem;
    margin-top: 0.9rem;
}

.community-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.community-timeline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 13px;
    background: var(--ascent-sky);
}

.community-timeline-item > div {
    display: grid;
    gap: 0.15rem;
}

.community-timeline-item span:not(.community-timeline-icon),
.community-timeline-item small {
    color: var(--muted);
}

.community-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.community-social-links a {
    display: grid;
    gap: 0.1rem;
    min-width: 145px;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 13px;
    text-decoration: none;
}

.community-social-links span {
    color: var(--muted);
    font-size: 0.8rem;
}

.community-profile-posts {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.25rem;
}

.community-friend-section {
    padding: 1.1rem;
    margin-bottom: 1rem;
}

.community-friend-list {
    display: grid;
    gap: 0.65rem;
}

.community-friend-list article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfdff;
}

.community-friend-list h3,
.community-friend-list p {
    margin: 0;
}

.community-friend-list h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.community-friend-list h3 .community-unread-badge {
    text-decoration: none;
}

.community-friend-list p {
    margin-top: 0.15rem;
    color: var(--muted);
}

.community-empty-inline {
    padding: 1rem 0.25rem;
    text-align: center;
}

.community-message-index {
    padding: 1rem;
}

.community-conversation-list {
    display: grid;
}

.community-conversation-list > a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.8rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

.community-conversation-list > a:last-child {
    border-bottom: 0;
}

.community-conversation-list > a:hover,
.community-conversation-list > a.is-active {
    background: var(--ascent-sky);
}

.community-conversation-copy {
    display: grid;
    min-width: 0;
    gap: 0.1rem;
}

.community-conversation-copy strong,
.community-conversation-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-conversation-copy small,
.community-conversation-meta small {
    color: var(--muted);
}

.community-conversation-meta {
    display: grid;
    justify-items: end;
    gap: 0.25rem;
    margin-left: auto;
}

.community-conversation-meta strong,
.community-unread-badge {
    min-width: 25px;
    height: 25px;
    padding: 0 0.35rem;
    color: white;
    background: var(--ascent-navy);
}

.community-messaging-layout {
    display: grid;
    grid-template-columns: minmax(210px, 0.72fr) minmax(0, 2fr);
    min-height: 650px;
    overflow: hidden;
}

.community-message-sidebar {
    border-right: 1px solid var(--line);
    background: #fbfdff;
}

.community-message-sidebar-heading,
.community-thread-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 74px;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
}

.community-message-sidebar-heading {
    justify-content: space-between;
}

.community-message-sidebar-heading h2,
.community-thread-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.community-message-sidebar-heading a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ascent-sky);
    font-size: 1.2rem;
    font-weight: 900;
    text-decoration: none;
}

.community-conversation-list-compact {
    max-height: 575px;
    overflow-y: auto;
}

.community-conversation-list-compact > a {
    padding: 0.7rem;
}

.community-message-thread {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 650px;
}

.community-thread-header > div {
    display: grid;
    min-width: 0;
}

.community-thread-header span {
    overflow: hidden;
    color: var(--muted);
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-thread-messages {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 505px;
    padding: 1rem;
    overflow-y: auto;
    background:
        radial-gradient(circle at 10% 10%, rgba(254, 165, 1, 0.08), transparent 15rem),
        #f6f9fc;
}

.community-message-row {
    display: flex;
    align-items: flex-end;
    gap: 0.45rem;
    max-width: min(78%, 680px);
}

.community-message-row.is-mine {
    align-self: flex-end;
}

.community-message-row.is-theirs {
    align-self: flex-start;
}

.community-message-bubble {
    display: grid;
    gap: 0.3rem;
    padding: 0.7rem 0.85rem;
    border-radius: 17px 17px 17px 4px;
    background: white;
    box-shadow: 0 5px 14px rgba(7, 47, 96, 0.09);
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.community-message-row.is-mine .community-message-bubble {
    color: white;
    background: var(--ascent-navy);
    border-radius: 17px 17px 4px 17px;
}

.community-message-bubble small {
    color: var(--muted);
    font-size: 0.66rem;
}

.community-message-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.community-message-receipt {
    font-weight: 800;
    white-space: nowrap;
}

.community-message-receipt.is-read {
    color: rgba(255, 255, 255, 0.96);
}

.community-message-row.is-mine .community-message-bubble small {
    color: rgba(255, 255, 255, 0.72);
}

.community-thread-empty {
    margin: auto;
    padding: 2rem;
    text-align: center;
}

.community-thread-empty span {
    font-size: 2rem;
}

.community-thread-empty h3 {
    margin: 0.55rem 0 0.25rem;
}

.community-thread-empty p {
    margin: 0;
    color: var(--muted);
}

.community-message-composer {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--line);
    background: white;
}

.community-message-input-wrap {
    position: relative;
    min-width: 0;
}

.community-message-composer textarea {
    min-height: 48px;
    max-height: 150px;
}

.community-message-emoji-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    color: var(--ascent-navy);
    background: var(--ascent-sky);
    font: inherit;
    font-size: 1.2rem;
}

.community-message-emoji-button:hover,
.community-message-emoji-button[aria-expanded="true"] {
    background: var(--ascent-cream);
    border-color: rgba(254, 165, 1, 0.5);
}

.community-message-emoji-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.4rem);
    z-index: 20;
    width: min(330px, 78vw);
    margin: 0;
    box-shadow: 0 14px 34px rgba(7, 47, 96, 0.2);
}

.community-message-send-status {
    display: block;
    min-height: 0.9rem;
    margin-top: 0.15rem;
    color: #9b1c1c;
    font-size: 0.7rem;
}

.community-message-composer button:disabled {
    cursor: wait;
    opacity: 0.65;
}

@media (max-width: 1000px) {
    .community-feed-layout {
        grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.6fr);
    }

    .community-right-column {
        grid-column: 1 / -1;
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .community-page-heading,
    .community-composer-tools,
    .community-composer-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .community-page-heading .community-button {
        align-self: flex-start;
    }

    .community-heading-actions {
        justify-content: flex-start;
    }

    .community-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .community-feed-layout,
    .community-profile-layout,
    .community-messaging-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .community-side-column,
    .community-profile-sidebar {
        position: static;
    }

    .community-side-column:first-child {
        display: none;
    }

    .community-right-column {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .community-privacy-grid,
    .community-member-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .community-settings-intro {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
    }

    .community-settings-intro > div {
        width: 100%;
    }

    .community-friend-list article {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .community-friend-list article > .community-friend-actions,
    .community-friend-list article > form {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .community-friend-list article > form .community-button {
        width: 100%;
    }

    .community-message-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .community-conversation-list-compact {
        display: flex;
        max-height: none;
        overflow-x: auto;
    }

    .community-conversation-list-compact > a {
        min-width: 210px;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .community-message-thread {
        min-height: 560px;
    }

    .community-thread-messages {
        max-height: 430px;
    }
}

@media (max-width: 520px) {
    .community-page-heading h1,
    .community-member-profile-card h1 {
        font-size: 2.2rem;
    }

    .community-composer,
    .community-post-header,
    .community-comments,
    .community-comment-form {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .community-audience-control {
        justify-content: space-between;
    }

    .community-tool-buttons {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .community-tool-button {
        justify-content: center;
    }

    .community-media-count-2,
    .community-media-count-3,
    .community-media-count-4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .community-member-search > div,
    .community-settings-actions {
        flex-direction: column;
    }

    .community-member-search .community-button,
    .community-settings-actions .community-button {
        width: 100%;
    }

    .community-message-row {
        max-width: 90%;
    }

    .community-message-composer {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .community-message-composer .community-avatar {
        display: none;
    }
}

/* Compact grouped application navigation */
.site-header {
    gap: 0.75rem;
    padding: 0.48rem 0;
}

.brand {
    gap: 0.58rem;
}

.brand-logo {
    border-radius: 11px;
    height: 40px;
    padding: 0.18rem;
    width: 40px;
}

.brand-title {
    font-size: 1rem;
}

.brand-subtitle {
    display: none;
}

.site-nav {
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.28rem;
}

.site-nav .nav-link,
.account-menu-trigger {
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(7, 47, 96, 0.16);
    border-radius: 11px;
    box-shadow: 0 4px 12px rgba(7, 47, 96, 0.07);
    color: var(--ascent-navy);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    gap: 0.35rem;
    justify-content: center;
    line-height: 1;
    min-height: 34px;
    padding: 0.44rem 0.66rem;
    text-decoration: none;
    transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible,
.account-menu-trigger:hover,
.account-menu-trigger:focus-visible,
.account-menu[open] .account-menu-trigger {
    background: var(--ascent-white);
    border-color: rgba(7, 47, 96, 0.3);
    box-shadow: 0 7px 18px rgba(7, 47, 96, 0.12);
    transform: translateY(-1px);
}

.site-nav .nav-link.is-active,
.account-menu.is-active .account-menu-trigger {
    background: rgba(254, 165, 1, 0.16);
    border-color: rgba(254, 165, 1, 0.54);
}

.site-nav .nav-icon {
    font-size: 0.94rem;
}

.account-menu {
    position: relative;
}

.account-menu > summary {
    list-style: none;
}

.account-menu > summary::-webkit-details-marker {
    display: none;
}

.account-menu-trigger {
    height: 34px;
    padding: 0.18rem;
    width: 34px;
}

.nav-user-thumb,
.nav-account-fallback {
    border: 2px solid rgba(254, 165, 1, 0.58);
    border-radius: 999px;
    height: 27px;
    width: 27px;
}

.nav-user-thumb {
    background: var(--ascent-white);
    object-fit: cover;
}

.nav-account-fallback {
    align-items: center;
    background: var(--ascent-navy);
    color: var(--ascent-white);
    display: none;
    font-size: 0.78rem;
    font-weight: 950;
    justify-content: center;
}

.nav-account-fallback.is-visible {
    display: inline-flex;
}

.account-menu-popover {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(7, 47, 96, 0.16);
    border-radius: 13px;
    box-shadow: 0 18px 45px rgba(7, 47, 96, 0.2);
    display: grid;
    gap: 0.18rem;
    min-width: 168px;
    padding: 0.38rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.38rem);
    z-index: 30;
}

.site-nav .account-menu-popover a {
    background: transparent;
    border: 0;
    border-radius: 9px;
    box-shadow: none;
    display: flex;
    font-size: 0.86rem;
    gap: 0.55rem;
    justify-content: flex-start;
    min-height: 36px;
    padding: 0.55rem 0.65rem;
    width: 100%;
}

.site-nav .account-menu-popover a:hover,
.site-nav .account-menu-popover a:focus-visible {
    background: var(--ascent-sky);
    box-shadow: none;
    transform: none;
}

/* Group landing pages */
.tool-hub-page {
    max-width: 980px;
}

.tool-hub-header h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 0.45rem;
}

.tool-hub-header .lead {
    max-width: 720px;
}

.tool-hub-grid {
    display: grid;
    gap: 0.72rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.tool-hub-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(7, 47, 96, 0.14);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(7, 47, 96, 0.08);
    color: inherit;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 94px;
    padding: 0.88rem;
    text-decoration: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.tool-hub-card:hover,
.tool-hub-card:focus-visible {
    border-color: rgba(7, 47, 96, 0.34);
    box-shadow: 0 15px 36px rgba(7, 47, 96, 0.14);
    transform: translateY(-2px);
}

.tool-hub-icon {
    align-items: center;
    background: rgba(254, 165, 1, 0.18);
    border-radius: 12px;
    color: var(--ascent-navy);
    display: inline-flex;
    font-size: 1.18rem;
    font-weight: 950;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.tool-hub-copy {
    display: grid;
    gap: 0.22rem;
}

.tool-hub-copy strong {
    color: var(--ascent-navy);
    font-size: 1rem;
}

.tool-hub-copy > span {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.35;
}

.tool-hub-arrow {
    color: var(--ascent-navy);
    font-size: 1.45rem;
    font-weight: 900;
}

@media (max-width: 900px) {
    .site-header {
        align-items: center;
        flex-direction: row;
    }

    .site-nav {
        justify-content: flex-end;
        width: auto;
    }
}

@media (max-width: 720px) {
    .site-header,
    .site-footer,
    .page-shell {
        width: min(100% - 12px, 1180px);
    }

    .site-header {
        gap: 0.3rem;
        padding: 0.32rem 0;
    }

    .brand-copy {
        display: none;
    }

    .brand-logo {
        border-radius: 9px;
        height: 34px;
        width: 34px;
    }

    .site-nav {
        display: flex;
        gap: 0.18rem;
        margin-left: auto;
        width: auto;
    }

    .site-nav .nav-link,
    .account-menu-trigger {
        border-radius: 9px;
        flex: 0 0 34px;
        height: 34px;
        min-height: 34px;
        padding: 0;
        width: 34px;
    }

    .site-nav .nav-link {
        flex-direction: row;
    }

    .site-nav .nav-text {
        border: 0;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        white-space: nowrap;
        width: 1px;
    }

    .site-nav .nav-icon {
        font-size: 1rem;
    }

    .nav-user-thumb,
    .nav-account-fallback {
        height: 27px;
        width: 27px;
    }

    .account-menu-popover {
        right: -1px;
    }

    .page-shell {
        padding-top: 0.55rem;
    }

    .tool-hub-grid {
        grid-template-columns: 1fr;
        margin-top: 0.9rem;
    }

    .tool-hub-card {
        gap: 0.62rem;
        grid-template-columns: 38px minmax(0, 1fr) auto;
        min-height: 76px;
        padding: 0.7rem;
    }

    .tool-hub-icon {
        border-radius: 10px;
        height: 38px;
        width: 38px;
    }

    .tool-hub-copy > span {
        display: none;
    }
}

/* Ascent public-facing member home page */
.ascent-home {
    display: grid;
    gap: clamp(1rem, 2vw, 1.55rem);
    margin-inline: auto;
    max-width: 1160px;
}

.ascent-home h1,
.ascent-home h2,
.ascent-home h3,
.ascent-home p {
    text-wrap: pretty;
}

.ascent-home-hero,
.ascent-home-section {
    border: 1px solid rgba(7, 47, 96, 0.12);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(7, 47, 96, 0.11);
    overflow: hidden;
    position: relative;
}

.ascent-home-hero {
    align-items: stretch;
    background:
        radial-gradient(circle at 8% 12%, rgba(254, 165, 1, 0.24), transparent 29rem),
        linear-gradient(135deg, #ffffff 0%, #edf5fd 54%, #dceafa 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
    min-height: 560px;
}

.ascent-home-hero::after {
    background-image:
        linear-gradient(rgba(7, 47, 96, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 47, 96, 0.055) 1px, transparent 1px);
    background-size: 34px 34px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.62), transparent 76%);
    pointer-events: none;
    position: absolute;
}

.ascent-home-hero-copy,
.ascent-home-hero-visual {
    position: relative;
    z-index: 1;
}

.ascent-home-hero-copy {
    align-content: center;
    display: grid;
    padding: clamp(1.6rem, 5vw, 4.6rem);
}

.ascent-home-hero h1 {
    font-size: clamp(2.65rem, 6vw, 5.45rem);
    letter-spacing: -0.055em;
    line-height: 0.94;
    max-width: 760px;
}

.ascent-home-hero h1 span {
    color: var(--ascent-navy);
}

.ascent-home-intro {
    color: #34465a;
    font-size: clamp(1.02rem, 1.9vw, 1.24rem);
    font-weight: 560;
    line-height: 1.62;
    margin: 1.45rem 0 0;
    max-width: 710px;
}

.ascent-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.62rem;
    margin-top: 1.35rem;
}

.ascent-home-button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 12px;
    display: inline-flex;
    font-size: 0.91rem;
    font-weight: 900;
    gap: 0.5rem;
    justify-content: center;
    min-height: 44px;
    padding: 0.72rem 1rem;
    text-decoration: none;
    transition: box-shadow 140ms ease, transform 140ms ease, background 140ms ease;
}

.ascent-home-button:hover,
.ascent-home-button:focus-visible {
    box-shadow: 0 11px 25px rgba(7, 47, 96, 0.17);
    transform: translateY(-1px);
}

.ascent-home-button-primary {
    background: linear-gradient(135deg, var(--ascent-gold-2), var(--ascent-gold));
    border-color: rgba(254, 165, 1, 0.54);
    color: var(--ascent-navy-3);
}

.ascent-home-button-secondary {
    background: var(--ascent-white);
    border-color: rgba(7, 47, 96, 0.22);
    color: var(--ascent-navy);
}

.ascent-home-anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    margin-top: 1.3rem;
}

.ascent-home-anchor-nav a {
    color: var(--ascent-navy);
    font-size: 0.78rem;
    font-weight: 850;
    text-decoration-color: rgba(7, 47, 96, 0.28);
    text-underline-offset: 0.25rem;
}

.ascent-home-anchor-nav a:hover,
.ascent-home-anchor-nav a:focus-visible {
    color: var(--ascent-navy-3);
    text-decoration-color: var(--ascent-gold);
}

.ascent-home-hero-visual {
    min-height: 100%;
    padding: 2rem 2rem 2rem 0;
}

.ascent-home-hero-photo {
    background: var(--ascent-navy);
    border: 9px solid rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(4, 31, 64, 0.25);
    height: calc(100% - 5.5rem);
    min-height: 380px;
    overflow: hidden;
    transform: rotate(1.5deg);
}

.ascent-home-hero-photo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ascent-home-hero-logo {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(7, 47, 96, 0.12);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(7, 47, 96, 0.17);
    display: flex;
    height: 94px;
    justify-content: center;
    left: -2.35rem;
    padding: 0.6rem;
    position: absolute;
    top: 3.2rem;
    transform: rotate(-3deg);
    width: 142px;
}

.ascent-home-hero-logo img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.ascent-home-hero-note {
    background: rgba(4, 31, 64, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    bottom: 1.25rem;
    box-shadow: 0 16px 38px rgba(4, 31, 64, 0.29);
    color: var(--ascent-white);
    display: grid;
    gap: 0.28rem;
    left: -1.7rem;
    max-width: 330px;
    padding: 1rem 1.1rem;
    position: absolute;
}

.ascent-home-hero-note strong {
    color: var(--ascent-gold-2);
    font-size: 1rem;
}

.ascent-home-hero-note span {
    font-size: 0.82rem;
    line-height: 1.45;
    opacity: 0.9;
}

.ascent-home-section {
    background: rgba(255, 255, 255, 0.94);
    padding: clamp(1.35rem, 4vw, 3.4rem);
    scroll-margin-top: 4.5rem;
}

.ascent-home-section-heading {
    max-width: 850px;
}

.ascent-home-section-heading h2,
.ascent-home-prospective-copy h2,
.ascent-home-community-heading h2,
.ascent-home-closing h2 {
    color: var(--ascent-navy-3);
    font-size: clamp(2rem, 4.2vw, 3.65rem);
    letter-spacing: -0.045em;
    line-height: 1;
    margin: 0;
}

.ascent-home-section-heading > p:last-child,
.ascent-home-community-heading > div > p:last-child {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
    margin: 1rem 0 0;
}

.ascent-home-kicker {
    color: var(--ascent-navy);
    font-size: 0.77rem;
    font-weight: 950;
    letter-spacing: 0.15em;
    margin: 0 0 0.72rem;
    text-transform: uppercase;
}

.ascent-home-value-grid {
    display: grid;
    gap: 0.78rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.75rem;
}

.ascent-home-value-grid article {
    background: linear-gradient(180deg, #ffffff, #f4f8fc);
    border: 1px solid rgba(7, 47, 96, 0.12);
    border-radius: 18px;
    min-height: 220px;
    padding: 1.25rem;
}

.ascent-home-value-icon {
    align-items: center;
    background: rgba(254, 165, 1, 0.17);
    border-radius: 12px;
    color: var(--ascent-navy);
    display: inline-flex;
    font-size: 1.2rem;
    font-weight: 950;
    height: 43px;
    justify-content: center;
    width: 43px;
}

.ascent-home-value-grid h3,
.ascent-home-involved-grid h3 {
    color: var(--ascent-navy);
    font-size: 1.08rem;
    line-height: 1.2;
    margin: 1rem 0 0.5rem;
}

.ascent-home-value-grid p,
.ascent-home-involved-grid p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

.ascent-home-how {
    background:
        radial-gradient(circle at 90% 10%, rgba(254, 165, 1, 0.22), transparent 24rem),
        linear-gradient(140deg, var(--ascent-navy-3), var(--ascent-navy));
    color: var(--ascent-white);
}

.ascent-home-section-heading-light h2,
.ascent-home-section-heading-light .ascent-home-kicker {
    color: var(--ascent-white);
}

.ascent-home-section-heading-light .ascent-home-kicker {
    opacity: 0.72;
}

.ascent-home-steps {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    list-style: none;
    margin: 1.8rem 0 0;
    padding: 0;
}

.ascent-home-steps li {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 17px;
    min-height: 245px;
    padding: 1rem;
}

.ascent-home-step-number {
    align-items: center;
    background: var(--ascent-gold);
    border-radius: 999px;
    color: var(--ascent-navy-3);
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 950;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.ascent-home-steps h3 {
    color: var(--ascent-white);
    font-size: 1rem;
    line-height: 1.2;
    margin: 1rem 0 0.5rem;
}

.ascent-home-steps p {
    color: rgba(255, 255, 255, 0.79);
    font-size: 0.82rem;
    line-height: 1.55;
    margin: 0;
}

.ascent-home-prospective {
    display: grid;
    gap: clamp(1.4rem, 4vw, 3rem);
    grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
}

.ascent-home-large-copy {
    color: #3b4b5c;
    font-size: 1.03rem;
    line-height: 1.68;
    margin: 1rem 0 0;
}

.ascent-home-check-list {
    display: grid;
    gap: 0.58rem;
    list-style: none;
    margin: 1.35rem 0 0;
    padding: 0;
}

.ascent-home-check-list li {
    align-items: flex-start;
    color: #34465a;
    display: grid;
    font-size: 0.91rem;
    gap: 0.62rem;
    grid-template-columns: 24px minmax(0, 1fr);
    line-height: 1.45;
}

.ascent-home-check-list li > span:first-child {
    align-items: center;
    background: rgba(254, 165, 1, 0.2);
    border-radius: 999px;
    color: var(--ascent-navy);
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 950;
    height: 23px;
    justify-content: center;
    margin-top: 0.05rem;
    width: 23px;
}

.ascent-home-school-panel {
    align-self: start;
    background: linear-gradient(160deg, #eef5fc, #ffffff 62%);
    border: 1px solid rgba(7, 47, 96, 0.14);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(7, 47, 96, 0.09);
    overflow: hidden;
    padding: 1.2rem;
}

.ascent-home-school-panel-heading {
    align-items: center;
    display: grid;
    gap: 0.72rem;
    grid-template-columns: 42px minmax(0, 1fr);
}

.ascent-home-school-panel-heading > span {
    align-items: center;
    background: var(--ascent-navy);
    border-radius: 12px;
    color: var(--ascent-white);
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.ascent-home-school-panel-heading p {
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
}

.ascent-home-school-panel-heading h3 {
    color: var(--ascent-navy);
    font-size: 1.1rem;
    margin: 0.15rem 0 0;
}

.ascent-home-school-list {
    display: grid;
    gap: 0.4rem;
    margin-top: 1rem;
}

.ascent-home-school-list span {
    background: var(--ascent-white);
    border: 1px solid rgba(7, 47, 96, 0.1);
    border-radius: 10px;
    color: var(--ascent-navy-3);
    font-size: 0.84rem;
    font-weight: 780;
    padding: 0.62rem 0.72rem;
}

.ascent-home-fine-print {
    color: var(--muted);
    font-size: 0.73rem;
    line-height: 1.45;
    margin: 0.9rem 0 0;
}

.ascent-home-school-art {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr 1fr;
    margin-top: 0.95rem;
}

.ascent-home-school-art img {
    aspect-ratio: 1;
    border-radius: 13px;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.ascent-home-involved-grid {
    display: grid;
    gap: 0.78rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.6rem;
}

.ascent-home-involved-grid article {
    background: #f7faff;
    border: 1px solid rgba(7, 47, 96, 0.12);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 1.2rem;
}

.ascent-home-involved-grid article > span:first-child {
    align-items: center;
    background: var(--ascent-navy);
    border-radius: 12px;
    color: var(--ascent-white);
    display: inline-flex;
    font-size: 1.05rem;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.ascent-home-involved-grid article > a {
    color: var(--ascent-navy);
    font-size: 0.85rem;
    font-weight: 900;
    margin-top: auto;
    padding-top: 1rem;
    text-decoration: none;
}

.ascent-home-involved-grid article > a:hover,
.ascent-home-involved-grid article > a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.ascent-home-community {
    background: linear-gradient(180deg, #ffffff, #eef5fc);
}

.ascent-home-community-heading {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.ascent-home-community-heading > div {
    max-width: 720px;
}

.ascent-home-facebook-link,
.ascent-home-social-strip a {
    align-items: center;
    background: #1877f2;
    border-radius: 12px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 900;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.68rem 0.85rem;
    text-decoration: none;
}

.ascent-home-facebook-link:hover,
.ascent-home-facebook-link:focus-visible,
.ascent-home-social-strip a:hover,
.ascent-home-social-strip a:focus-visible {
    box-shadow: 0 10px 24px rgba(24, 119, 242, 0.24);
    transform: translateY(-1px);
}

.ascent-home-facebook-mark {
    align-items: center;
    background: var(--ascent-white);
    border-radius: 999px;
    color: #1877f2;
    display: inline-flex;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 950;
    height: 22px;
    justify-content: center;
    width: 22px;
}

.ascent-home-facebook-gallery {
    display: grid;
    gap: 0.72rem;
    grid-auto-columns: minmax(300px, 370px);
    grid-auto-flow: column;
    margin-top: 1.5rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0.05rem 0 0.75rem;
    scroll-snap-type: inline mandatory;
    scrollbar-color: rgba(7, 47, 96, 0.26) transparent;
}

.ascent-home-facebook-card {
    background: var(--ascent-white);
    border: 1px solid rgba(7, 47, 96, 0.13);
    border-radius: 17px;
    box-shadow: 0 10px 27px rgba(7, 47, 96, 0.09);
    max-height: 630px;
    overflow: hidden;
    scroll-snap-align: start;
}

.ascent-home-facebook-card-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 46px;
    padding: 0.7rem 0.8rem;
}

.ascent-home-facebook-card-heading span {
    color: var(--ascent-navy);
    font-size: 0.82rem;
    font-weight: 900;
}

.ascent-home-facebook-card-heading a {
    align-items: center;
    background: #1877f2;
    border-radius: 999px;
    color: var(--ascent-white);
    display: inline-flex;
    height: 28px;
    justify-content: center;
    text-decoration: none;
    width: 28px;
}

.ascent-home-facebook-post {
    aspect-ratio: 4 / 5;
    background: #f3f5f8;
    color: var(--ascent-white);
    display: block;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.ascent-home-facebook-post img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
    width: 100%;
}

.ascent-home-facebook-card:first-child .ascent-home-facebook-post img {
    object-position: center 28%;
}

.ascent-home-facebook-card-wide .ascent-home-facebook-post img {
    object-position: center;
}

.ascent-home-facebook-post-overlay {
    align-items: center;
    background: linear-gradient(180deg, rgba(7, 47, 96, 0), rgba(7, 47, 96, 0.92));
    bottom: 0;
    display: flex;
    font-size: 0.88rem;
    font-weight: 900;
    gap: 0.5rem;
    left: 0;
    padding: 3.25rem 0.85rem 0.85rem;
    position: absolute;
    right: 0;
}

.ascent-home-facebook-post-overlay > span:last-child {
    margin-left: auto;
}

.ascent-home-facebook-post:hover img,
.ascent-home-facebook-post:focus-visible img {
    transform: scale(1.018);
}

.ascent-home-facebook-post:focus-visible {
    outline: 4px solid var(--ascent-gold);
    outline-offset: -4px;
}

.ascent-home-social-strip {
    align-items: center;
    background: var(--ascent-navy-3);
    border-radius: 18px;
    color: var(--ascent-white);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 140px 140px minmax(0, 1fr);
    margin-top: 0.85rem;
    overflow: hidden;
    padding: 0.85rem;
}

.ascent-home-social-strip > img {
    aspect-ratio: 1;
    border-radius: 12px;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.ascent-home-social-strip > div {
    padding: 0.3rem 0.8rem;
}

.ascent-home-social-strip p {
    color: var(--ascent-gold-2);
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    margin: 0;
    text-transform: uppercase;
}

.ascent-home-social-strip h3 {
    color: var(--ascent-white);
    font-size: clamp(1.1rem, 2.2vw, 1.55rem);
    line-height: 1.25;
    margin: 0.45rem 0 0.8rem;
}

.ascent-home-closing {
    align-items: center;
    background:
        radial-gradient(circle at 86% 20%, rgba(254, 165, 1, 0.24), transparent 20rem),
        linear-gradient(135deg, #ffffff, #edf5fc);
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 115px minmax(0, 1fr) auto;
}

.ascent-home-closing > img {
    height: 100px;
    object-fit: contain;
    width: 100px;
}

.ascent-home-closing p:not(.ascent-home-kicker) {
    color: var(--muted);
    line-height: 1.55;
    margin: 0.7rem 0 0;
}

.ascent-home-closing-actions {
    display: grid;
    gap: 0.55rem;
    min-width: 190px;
}

.ascent-home-source-note {
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.45;
    margin: -0.4rem auto 0.2rem;
    max-width: 920px;
    padding-inline: 1rem;
    text-align: center;
}

@media (max-width: 1040px) {
    .ascent-home-hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    }

    .ascent-home-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ascent-home-steps li {
        min-height: 205px;
    }

    .ascent-home-closing {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .ascent-home-closing > img {
        height: 80px;
        width: 80px;
    }

    .ascent-home-closing-actions {
        display: flex;
        grid-column: 2;
        min-width: 0;
    }
}

@media (max-width: 860px) {
    .ascent-home-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .ascent-home-hero-copy {
        padding-bottom: 1.35rem;
    }

    .ascent-home-hero-visual {
        min-height: 420px;
        padding: 0 1.2rem 1.2rem;
    }

    .ascent-home-hero-photo {
        height: 390px;
        min-height: 0;
        transform: none;
    }

    .ascent-home-hero-logo {
        left: 2rem;
        top: 1rem;
    }

    .ascent-home-hero-note {
        bottom: 2rem;
        left: auto;
        right: 2rem;
    }

    .ascent-home-value-grid,
    .ascent-home-involved-grid {
        grid-template-columns: 1fr;
    }

    .ascent-home-value-grid article,
    .ascent-home-involved-grid article {
        min-height: 0;
    }

    .ascent-home-prospective {
        grid-template-columns: 1fr;
    }

    .ascent-home-school-panel {
        width: 100%;
    }

    .ascent-home-community-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ascent-home-social-strip {
        grid-template-columns: 120px 120px minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .ascent-home {
        gap: 0.7rem;
    }

    .ascent-home-hero,
    .ascent-home-section {
        border-radius: 17px;
    }

    .ascent-home-hero-copy,
    .ascent-home-section {
        padding: 1.15rem;
    }

    .ascent-home-hero h1 {
        font-size: clamp(2.35rem, 13vw, 3.7rem);
    }

    .ascent-home-intro {
        font-size: 0.96rem;
        line-height: 1.55;
        margin-top: 1rem;
    }

    .ascent-home-actions {
        display: grid;
        gap: 0.45rem;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .ascent-home-button {
        width: 100%;
    }

    .ascent-home-anchor-nav {
        gap: 0.28rem 0.58rem;
        margin-top: 0.9rem;
    }

    .ascent-home-anchor-nav a {
        font-size: 0.72rem;
    }

    .ascent-home-hero-visual {
        min-height: 335px;
        padding: 0 0.75rem 0.75rem;
    }

    .ascent-home-hero-photo {
        border-width: 6px;
        border-radius: 18px;
        height: 320px;
    }

    .ascent-home-hero-logo {
        border-radius: 12px;
        height: 70px;
        left: 1.25rem;
        padding: 0.4rem;
        top: 0.75rem;
        width: 108px;
    }

    .ascent-home-hero-note {
        bottom: 1.2rem;
        left: 1.25rem;
        max-width: none;
        padding: 0.75rem 0.85rem;
        right: 1.25rem;
    }

    .ascent-home-hero-note span {
        font-size: 0.75rem;
    }

    .ascent-home-section-heading h2,
    .ascent-home-prospective-copy h2,
    .ascent-home-community-heading h2,
    .ascent-home-closing h2 {
        font-size: clamp(1.75rem, 9vw, 2.65rem);
    }

    .ascent-home-value-grid,
    .ascent-home-involved-grid {
        gap: 0.55rem;
        margin-top: 1rem;
    }

    .ascent-home-value-grid article,
    .ascent-home-involved-grid article,
    .ascent-home-school-panel {
        border-radius: 14px;
        padding: 0.95rem;
    }

    .ascent-home-steps {
        gap: 0.5rem;
        grid-template-columns: 1fr;
        margin-top: 1rem;
    }

    .ascent-home-steps li {
        align-items: start;
        display: grid;
        gap: 0.72rem;
        grid-template-columns: 32px minmax(0, 1fr);
        min-height: 0;
        padding: 0.85rem;
    }

    .ascent-home-steps h3 {
        margin-top: 0.05rem;
    }

    .ascent-home-school-art {
        gap: 0.4rem;
    }

    .ascent-home-facebook-link {
        width: 100%;
    }

    .ascent-home-facebook-gallery {
        grid-auto-columns: minmax(280px, 88vw);
        margin-inline: -0.2rem;
    }


    .ascent-home-social-strip {
        gap: 0.5rem;
        grid-template-columns: 1fr 1fr;
        padding: 0.6rem;
    }

    .ascent-home-social-strip > div {
        grid-column: 1 / -1;
        padding: 0.45rem;
    }

    .ascent-home-social-strip a {
        justify-content: center;
        width: 100%;
    }

    .ascent-home-closing {
        gap: 0.8rem;
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .ascent-home-closing > img {
        height: 58px;
        width: 58px;
    }

    .ascent-home-closing-actions {
        display: grid;
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* Homepage promotional splash banner */
.ascent-home-splash {
    background: #041f40;
    border: 1px solid rgba(7, 47, 96, 0.18);
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(7, 47, 96, 0.16);
    overflow: hidden;
}

.ascent-home-splash-link {
    background: #041f40;
    display: block;
    line-height: 0;
    overflow: hidden;
    position: relative;
}

.ascent-home-splash-link:focus-visible {
    outline: 4px solid var(--ascent-gold);
    outline-offset: -4px;
}

.ascent-home-splash-media {
    display: block;
    overflow: hidden;
}

.ascent-home-splash-media img {
    display: block;
    height: auto;
    transform: scale(1);
    transition: transform 220ms ease, filter 220ms ease;
    width: 100%;
}

.ascent-home-splash-link:hover .ascent-home-splash-media img,
.ascent-home-splash-link:focus-visible .ascent-home-splash-media img {
    filter: brightness(1.025);
    transform: scale(1.004);
}

.ascent-home-splash-actions {
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(7, 47, 96, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.62rem 0.75rem;
}

.ascent-home-splash-action {
    align-items: center;
    border: 1px solid rgba(7, 47, 96, 0.16);
    border-radius: 999px;
    color: var(--ascent-navy);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 900;
    gap: 0.4rem;
    min-height: 34px;
    padding: 0.42rem 0.72rem;
    text-decoration: none;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.ascent-home-splash-action:hover,
.ascent-home-splash-action:focus-visible {
    background: #edf5fd;
    border-color: rgba(7, 47, 96, 0.32);
    transform: translateY(-1px);
}

.ascent-home-splash-action-primary {
    background: linear-gradient(135deg, var(--ascent-gold-2), var(--ascent-gold));
    border-color: rgba(254, 165, 1, 0.65);
    color: var(--ascent-navy-3);
}

.ascent-home-splash-action-primary:hover,
.ascent-home-splash-action-primary:focus-visible {
    background: linear-gradient(135deg, #ffbd52, #fea501);
    border-color: #fea501;
}

.ascent-home-splash-action .ascent-home-facebook-mark {
    font-size: 0.75rem;
    height: 20px;
    width: 20px;
}

.ascent-home-splash-nav {
    background: #f4f8fc;
    border-top: 1px solid rgba(7, 47, 96, 0.08);
    margin: 0;
    padding: 0.55rem 0.85rem 0.65rem;
}

@media (max-width: 640px) {
    .ascent-home-splash {
        border-radius: 17px;
    }

    .ascent-home-splash-media {
        aspect-ratio: 4 / 3;
    }

    .ascent-home-splash-media img {
        height: 100%;
        object-fit: cover;
        object-position: left center;
        width: 100%;
    }

    .ascent-home-splash-actions {
        display: grid;
        gap: 0.4rem;
        grid-template-columns: 1fr 1fr;
        padding: 0.55rem;
    }

    .ascent-home-splash-action {
        border-radius: 10px;
        font-size: 0.72rem;
        justify-content: center;
        min-width: 0;
        padding-inline: 0.5rem;
    }

    .ascent-home-splash-action-primary {
        grid-column: 1 / -1;
    }

    .ascent-home-splash-nav {
        justify-content: center;
        padding: 0.5rem 0.65rem 0.6rem;
    }
}

/* July 2026 navigation, admin hub, and home hero refinements */
.nav-icon-svg {
    display: block;
    fill: none;
    height: 1.1rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 1.1rem;
}

@media (max-width: 720px) {
    .site-nav .nav-icon-svg {
        height: 1.18rem;
        stroke-width: 1.9;
        width: 1.18rem;
    }
}

.admin-tool-hub-grid {
    margin-top: 1.25rem;
}

.ascent-home-splash-artwork {
    background: #041f40;
    line-height: 0;
    overflow: hidden;
    position: relative;
}

.ascent-home-apply-hotspot {
    border-radius: 0.7rem;
    height: 9.4%;
    left: 4.45%;
    position: absolute;
    top: 57.05%;
    width: 22.15%;
    z-index: 2;
}

.ascent-home-apply-hotspot:hover {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.42), 0 8px 22px rgba(0, 0, 0, 0.22);
}

.ascent-home-apply-hotspot:focus-visible {
    box-shadow: 0 0 0 4px #ffffff, 0 0 0 8px var(--ascent-gold);
    outline: 0;
}

.ascent-home-splash-actions {
    justify-content: center;
}

.ascent-home-splash-action {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .ascent-home-apply-hotspot {
        border-radius: 0.5rem;
        height: 9.4%;
        left: 5.95%;
        top: 57.05%;
        width: 29.55%;
    }

    .ascent-home-splash-actions {
        display: flex;
        gap: 0.42rem;
        justify-content: center;
        padding: 0.58rem;
    }

    .ascent-home-splash-action,
    .ascent-home-splash-action-primary {
        border-radius: 999px;
        flex: 0 1 auto;
        grid-column: auto;
        min-height: 32px;
        padding: 0.4rem 0.68rem;
    }
}

/* Mobile home-page containment and shortcut layout */
@media (max-width: 640px) {
    .ascent-home,
    .ascent-home-splash,
    .ascent-home-splash-artwork,
    .ascent-home-splash-media,
    .ascent-home-section,
    .ascent-home-section > *,
    .ascent-home-prospective-copy,
    .ascent-home-school-panel,
    .ascent-home-community-heading,
    .ascent-home-facebook-gallery {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .ascent-home-splash-media {
        aspect-ratio: auto;
    }

    .ascent-home-splash-media img {
        display: block;
        height: auto;
        max-width: 100%;
        object-fit: contain;
        object-position: center;
        transform: none;
        width: 100%;
    }

    .ascent-home-apply-hotspot {
        border-radius: 0.42rem;
        height: 9.4%;
        left: 4.45%;
        top: 57.05%;
        width: 22.15%;
    }

    .ascent-home-splash-actions {
        align-items: stretch;
        display: grid;
        gap: 0.45rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0.65rem;
        width: 100%;
    }

    .ascent-home-splash-action,
    .ascent-home-splash-action-primary {
        border-radius: 999px;
        display: flex;
        font-size: 0.72rem;
        grid-column: auto;
        justify-content: center;
        line-height: 1.15;
        min-height: 40px;
        min-width: 0;
        padding: 0.46rem 0.55rem;
        text-align: center;
        white-space: normal;
        width: 100%;
    }

    .ascent-home-splash-action-primary,
    .ascent-home-splash-action:last-child {
        grid-column: 1 / -1;
    }

    .ascent-home-facebook-gallery {
        display: grid;
        gap: 0.8rem;
        grid-auto-columns: unset;
        grid-auto-flow: row;
        grid-template-columns: minmax(0, 1fr);
        margin-inline: 0;
        overflow-x: visible;
        padding-inline: 0;
        scroll-snap-type: none;
    }

    .ascent-home-facebook-card {
        max-height: none;
        width: 100%;
    }
}
