.public-register-page {
    --registry-navy: color-mix(in srgb, var(--brand-primary, #003a75) 76%, #092637);
    --registry-deep: color-mix(in srgb, var(--brand-primary, #003a75) 54%, #061923);
    --registry-ink: #17303d;
    --registry-muted: #5c6f78;
    --registry-paper: #edf1ef;
    --registry-line: #c6d1d3;
    --registry-accent: var(--brand-accent, #ffcf00);
    color: var(--registry-ink);
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.public-register-page :is(button, input, select, .btn) {
    font-family: inherit;
}

.registry-kicker,
.registry-toolbar .form-label,
.registry-ledger__head,
.registry-info-label,
.registry-footnote > span,
.registry-stamp-mark,
.registry-mobile-label {
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .075em;
    text-transform: uppercase;
}

/* Register landing */
.registry-masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 275px;
    min-height: 390px;
    overflow: hidden;
    border-bottom: 7px solid var(--registry-accent);
    color: #fff;
    background:
        linear-gradient(120deg, transparent 0 68%, rgba(255,255,255,.04) 68% 69%, transparent 69%),
        var(--registry-deep);
}

.registry-masthead__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.3rem, 6vw, 5.25rem);
}

.registry-masthead .registry-kicker,
.registry-list-header .registry-kicker {
    color: var(--registry-accent);
}

.registry-masthead h1 {
    max-width: 860px;
    margin: .8rem 0 1rem;
    color: #fff;
    font-size: clamp(3rem, 6.5vw, 5.7rem);
    font-weight: 600;
    letter-spacing: -.065em;
    line-height: .88;
}

.registry-masthead p {
    max-width: 670px;
    margin: 0;
    color: rgba(255,255,255,.7);
    font-size: 1.08rem;
    line-height: 1.65;
}

.registry-masthead__stamp {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    border-left: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.67);
    background: var(--registry-navy);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: .72rem;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.registry-stamp-mark {
    display: grid;
    width: 74px;
    height: 74px;
    margin-bottom: auto;
    place-items: center;
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    font-size: .82rem;
}

.registry-masthead__stamp strong {
    margin-top: .35rem;
    color: #fff;
    font-size: 3.7rem;
    font-weight: 500;
    letter-spacing: -.07em;
    line-height: 1;
}

.registry-guidance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--registry-line);
}

.registry-guidance p {
    max-width: 760px;
    margin: 0;
    color: var(--registry-muted);
    line-height: 1.6;
}

.registry-guidance p strong { color: var(--registry-ink); }

.registry-guidance__status {
    flex: none;
    color: var(--registry-navy);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: .69rem;
    font-weight: 600;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.registry-guidance__status i { margin-right: .35rem; color: #197348; }

.public-register-page .register-grid {
    display: block;
}

.public-register-page .register-tile {
    border: 0;
    border-bottom: 1px solid var(--registry-line);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.register-ledger__row {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 150px 160px;
    align-items: center;
    gap: clamp(1rem, 2.4vw, 2.25rem);
    min-height: 185px;
    padding: 1.65rem 0;
}

.register-ledger__row:hover {
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--registry-paper) 75%, transparent) 8% 92%, transparent);
}

.register-ledger__code {
    align-self: stretch;
    padding-top: .2rem;
    border-right: 1px solid var(--registry-line);
    color: var(--registry-muted);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: .72rem;
}

.register-ledger__copy { max-width: 650px; }
.register-ledger__copy .registry-kicker { color: var(--registry-navy); }

.public-register-page .register-tile-title {
    margin: .35rem 0 .55rem;
    color: var(--registry-ink);
    font-size: clamp(1.45rem, 2.4vw, 2.15rem);
    font-weight: 600;
    letter-spacing: -.04em;
}

.public-register-page .register-tile-note {
    min-height: 0;
    color: var(--registry-muted);
    line-height: 1.55;
}

.public-register-page .register-tile-count {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 0;
    border-radius: 0;
    color: var(--registry-muted);
    background: transparent;
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: .65rem;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.register-tile-count strong {
    color: var(--registry-navy);
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -.05em;
    line-height: 1;
}

.registry-row-link,
.registry-back-link {
    width: fit-content;
    color: var(--registry-navy);
    font-weight: 700;
    text-decoration: none;
}

.registry-row-link {
    padding-bottom: .25rem;
    border-bottom: 3px solid var(--registry-accent);
}

.registry-row-link i { margin-left: .35rem; transition: transform .15s ease; }
.registry-row-link:hover i { transform: translateX(4px); }

.registry-footnote {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: 2.25rem;
    padding: 1.25rem 1.5rem;
    border-left: 5px solid var(--registry-accent);
    background: var(--registry-paper);
}

.registry-footnote p { max-width: 780px; margin: 0; color: var(--registry-muted); line-height: 1.55; }

/* Register lists */
.registry-list-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 245px;
    min-height: 275px;
    color: #fff;
    background: var(--registry-deep);
    border-bottom: 7px solid var(--registry-accent);
}

.registry-list-header > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem);
}

.registry-back-link {
    margin-bottom: 1.35rem;
    color: rgba(255,255,255,.72);
    font-size: .78rem;
}

.registry-back-link:hover { color: #fff; }
.registry-back-link i { margin-right: .35rem; }

.registry-list-header h1 {
    margin: .45rem 0 .55rem;
    color: #fff;
    font-size: clamp(2.65rem, 5.3vw, 4.9rem);
    font-weight: 600;
    letter-spacing: -.06em;
    line-height: .92;
}

.registry-list-header p { max-width: 620px; margin: 0; color: rgba(255,255,255,.68); }

.registry-list-header__count {
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    padding: 2rem;
    border-left: 1px solid rgba(255,255,255,.18);
    background: var(--registry-navy);
    color: rgba(255,255,255,.62);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: .67rem;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.registry-list-header__count strong {
    color: #fff;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    font-size: clamp(3.2rem, 6vw, 5.25rem);
    font-weight: 600;
    letter-spacing: -.07em;
    line-height: .9;
}

.public-register-page .registry-toolbar {
    display: grid;
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: 1.25rem;
    padding: 1.35rem 1.5rem;
    border: 0;
    border-top: 3px solid var(--registry-navy);
    border-radius: 0;
    box-shadow: none;
    background: var(--registry-paper);
}

.registry-toolbar__heading {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--registry-line);
}

.registry-toolbar__heading span { color: var(--registry-ink); font-weight: 700; }
.registry-toolbar__heading small { max-width: 110px; margin-top: .25rem; color: var(--registry-muted); line-height: 1.35; }

.registry-toolbar .form-label {
    margin-bottom: .4rem;
    color: var(--registry-muted);
    font-size: .63rem;
}

.public-register-page :is(.form-control, .form-select, .btn) { border-radius: 2px; }
.public-register-page :is(.form-control, .form-select) { border-color: var(--registry-line); }

.registry-ledger {
    margin-top: 1.25rem;
    border-top: 4px solid var(--registry-navy);
    background: rgba(255,255,255,.6);
}

.registry-ledger__head,
.registry-ledger__record {
    display: grid;
    grid-template-columns: minmax(270px, 1.55fr) minmax(145px, .7fr) minmax(120px, .55fr) minmax(135px, .65fr);
    gap: 1rem;
    align-items: center;
}

.registry-ledger__head {
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--registry-line);
    color: var(--registry-muted);
    background: var(--registry-paper);
}

.public-register-page .registry-grid { display: block; }

.public-register-page .registry-person-card {
    min-height: 108px;
    padding: 1rem;
    border: 0;
    border-bottom: 1px solid var(--registry-line);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.public-register-page .registry-person-card:last-child { border-bottom: 0; }
.public-register-page .registry-person-card:hover { background: color-mix(in srgb, var(--registry-paper) 68%, #fff); }

.public-register-page .registry-person-top { align-items: center; }
.public-register-page .registry-person-copy { min-height: 0; gap: .25rem; }

.public-register-page .registry-avatar {
    width: 58px;
    height: 58px;
    border: 1px solid var(--registry-line);
    border-radius: 2px;
    filter: saturate(.8);
}

.public-register-page .registry-name {
    min-height: 0;
    margin: 0;
    color: var(--registry-ink);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.25;
}

.registry-mobile-label { display: none; color: var(--registry-navy); }

.registry-ledger--practitioners :is(.registry-ledger__head, .registry-ledger__record) {
    grid-template-columns: minmax(300px, 1.25fr) minmax(260px, 1fr) 130px;
}

.registry-ledger--non-resident :is(.registry-ledger__head, .registry-ledger__record) {
    grid-template-columns: minmax(270px, 1.15fr) minmax(160px, .65fr) 150px 130px;
}

.registry-record-status {
    color: #246b49;
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.registry-record-status i { margin-right: .3rem; }

.public-register-page .registry-info-row {
    display: block;
    padding: 0;
    border: 0;
}

.public-register-page .registry-info-label { display: none; }
.public-register-page .registry-info-value { color: var(--registry-ink); font-weight: 500; }

.public-register-page .registry-pagination {
    padding: 1rem 0;
    border: 0;
    border-top: 1px solid var(--registry-line);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.public-register-page .registry-pagination .page-link { border-radius: 0; }

/* Non-resident public record */
.registry-back-link--page {
    margin: .25rem 0 .5rem;
    color: var(--registry-navy);
}

.registry-profile-page .public-profile-card {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 0;
    border-bottom: 7px solid var(--registry-accent);
    border-radius: 0;
    box-shadow: none;
    color: #fff;
    background: var(--registry-deep);
}

.registry-profile-page .public-profile-header { align-items: center; }
.registry-profile-page .public-avatar { width: 96px; height: 96px; border-color: rgba(255,255,255,.35); border-radius: 2px; }
.registry-profile-page .registry-kicker { margin-bottom: .4rem; color: var(--registry-accent); }
.registry-profile-page .public-title { color: #fff; font-size: clamp(2.2rem, 4.5vw, 4rem); font-weight: 600; letter-spacing: -.055em; }

.registry-profile-page .public-pill {
    margin-top: .65rem;
    padding: .25rem 0;
    border-radius: 0;
    color: rgba(255,255,255,.72);
    background: transparent;
}

.registry-profile-page .public-stats { margin-top: 2rem; border-top: 1px solid rgba(255,255,255,.18); }
.registry-profile-page .public-stat { padding: 1.1rem 0 0; border: 0; border-right: 1px solid rgba(255,255,255,.18); border-radius: 0; background: transparent; }
.registry-profile-page .public-stat:last-child { border-right: 0; }
.registry-profile-page .public-stat-label { color: rgba(255,255,255,.55); font-family: "IBM Plex Mono", Consolas, monospace; font-size: .64rem; }
.registry-profile-page .public-stat-value { color: #fff; font-size: 2rem; font-weight: 600; }

.registry-profile-page .public-section-card {
    padding: 1.5rem 0;
    border: 0;
    border-top: 3px solid var(--registry-navy);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.registry-profile-page .public-section-title { margin-bottom: 1rem; color: var(--registry-ink); font-size: 1.35rem; font-weight: 600; letter-spacing: -.025em; }
.registry-profile-page .public-engagement-list { gap: 0; }
.registry-profile-page .public-engagement-item { padding: 1.15rem 0; border: 0; border-top: 1px solid var(--registry-line); border-radius: 0; background: transparent; }
.registry-profile-page .public-engagement-name { color: var(--registry-ink); font-size: 1.05rem; }
.registry-profile-page .public-engagement-label { color: var(--registry-muted); font-family: "IBM Plex Mono", Consolas, monospace; font-size: .64rem; }
.registry-profile-page .public-engagement-value { color: var(--registry-ink); }

.public-register-page :focus-visible {
    outline: 3px solid color-mix(in srgb, var(--registry-accent) 78%, #fff);
    outline-offset: 3px;
}

@media (max-width: 991.98px) {
    .registry-masthead { grid-template-columns: minmax(0, 1fr) 215px; }
    .register-ledger__row { grid-template-columns: 52px minmax(0, 1fr) 120px; }
    .registry-row-link { grid-column: 2 / -1; }
    .registry-list-header { grid-template-columns: minmax(0, 1fr) 190px; }
    .registry-ledger__head,
    .registry-ledger__record { grid-template-columns: minmax(235px, 1.35fr) repeat(3, minmax(105px, .65fr)); }
}

@media (max-width: 767.98px) {
    .registry-masthead,
    .registry-list-header { grid-template-columns: 1fr; }
    .registry-masthead__copy,
    .registry-list-header > div:first-child { padding: 2.15rem 1.3rem; }
    .registry-masthead h1 { font-size: 3.15rem; }
    .registry-masthead__stamp { min-height: 125px; padding: 1.25rem; border-top: 1px solid rgba(255,255,255,.18); border-left: 0; }
    .registry-stamp-mark { display: none; }
    .registry-masthead__stamp strong { font-size: 2.7rem; }
    .registry-guidance { align-items: flex-start; flex-direction: column; gap: .85rem; }
    .register-ledger__row { grid-template-columns: 38px minmax(0, 1fr); gap: 1rem; min-height: 0; }
    .register-ledger__code { grid-row: 1 / span 3; }
    .register-tile-count { grid-column: 2; }
    .registry-row-link { grid-column: 2; }
    .registry-footnote { grid-template-columns: 1fr; gap: .45rem; }
    .registry-list-header__count { min-height: 118px; padding: 1.25rem; border-top: 1px solid rgba(255,255,255,.18); border-left: 0; }
    .registry-list-header__count strong { font-size: 3.2rem; }
    .public-register-page .registry-toolbar { grid-template-columns: 1fr; padding: 1.15rem; }
    .registry-toolbar__heading { padding-bottom: .8rem; border-right: 0; border-bottom: 1px solid var(--registry-line); }
    .registry-toolbar__heading small { max-width: none; }
    .registry-ledger__head { display: none; }
    .registry-ledger__record { grid-template-columns: 1fr 1fr; gap: .9rem 1rem; padding: 1.1rem; }
    .registry-ledger__record .registry-person-top { grid-column: 1 / -1; }
    .registry-ledger--practitioners .registry-ledger__record,
    .registry-ledger--non-resident .registry-ledger__record { grid-template-columns: 1fr 1fr; }
    .registry-ledger--practitioners .registry-record-status { align-self: end; }
    .registry-ledger--non-resident .registry-row-link { align-self: end; justify-self: start; }
    .registry-mobile-label { display: block; }
    .public-register-page .registry-info-row { padding-top: .65rem; border-top: 1px solid var(--registry-line); }
    .public-register-page .registry-info-label { display: block; margin-bottom: .25rem; color: var(--registry-muted); font-size: .59rem; }
}

@media (prefers-reduced-motion: reduce) {
    .registry-row-link i { transition: none; }
}
