:root {
    color-scheme: light;
    --ink: #181f2a;
    --muted: #525c6b;
    --accent: #0a326d;
    --accent-dark: #0c264c;
    --line: #d8dde5;
    --surface: #fff;
    --background: #f4f5f7;
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--background); }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
    outline: 3px solid #3c5e92; outline-offset: 3px;
}
.skip { position: absolute; top: -4rem; left: 1rem; z-index: 1; background: white; padding: .6rem 1rem; }
.skip:focus { top: .5rem; }
h1, h2, h3, p { margin: 0 0 .75rem; }
h1 { font-size: clamp(1.7rem, 4vw, 2.35rem); letter-spacing: -.04em; line-height: 1.15; overflow-wrap: anywhere; }
h2 { font-size: 1.16rem; line-height: 1.35; letter-spacing: -.015em; }
h3 { font-size: 1rem; }
small, .muted, .subheading { color: var(--muted); }
p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.15rem 0; }

.top { background: #0f1d31; color: white; }
.top-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    max-width: 91rem; min-height: 4.5rem; padding: .8rem clamp(1rem, 3vw, 2rem); margin: auto;
}
.brand { display: inline-flex; gap: .75rem; align-items: center; color: white; font-weight: 700; text-decoration: none; }
.brand:hover, .top-actions a:hover { color: #b0ccf5; }
.brand small { display: block; color: #bfcada; font-size: .76rem; font-weight: 400; }
.brand-mark {
    display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
    background: #d2dff3; color: #0f2443; border-radius: .55rem; font-weight: 800;
}
.top-actions, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.top-actions { gap: 1rem; }
.top-actions a, .top-actions button.quiet { color: #e1e8f3; font-size: .88rem; }
.top-actions button.quiet { padding: .28rem .55rem; border: 1px solid #62728a; }
.top-actions button.quiet:hover { background: #22344e; }
.shell {
    display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); align-items: start; gap: clamp(1rem, 3vw, 2.4rem);
    max-width: 91rem; margin: auto; padding: clamp(1rem, 3vw, 2rem);
}
.standalone { max-width: 29rem; margin: clamp(2rem, 9vh, 5rem) auto; padding: 0 1rem; }
.sidebar { padding: .4rem 0; }
.identity { border-bottom: 1px solid var(--line); padding: .25rem .65rem 1rem; margin-bottom: .6rem; overflow-wrap: anywhere; }
.identity strong, .identity span { display: block; }
.identity span { font-size: .8rem; color: var(--muted); }
nav { display: grid; gap: .15rem; }
nav a { padding: .5rem .65rem; border-radius: .4rem; color: var(--ink); text-decoration: none; font-size: .92rem; }
nav a:hover, nav a[aria-current] { background: #dee5ef; color: #0c264c; }
nav a[aria-current] { font-weight: 700; }
.heading { margin-bottom: 1rem; }
.subheading { margin-top: -.55rem; margin-bottom: 1.1rem; overflow-wrap: anywhere; }

.welcome { padding: clamp(1rem, 3vw, 2rem); border-radius: .7rem; background: #dfe6f1; border: 1px solid #c7d3e4; margin-bottom: 1rem; }
.welcome h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); overflow-wrap: anywhere; }
.eyebrow { color: #344a6a; font-weight: 750; font-size: .75rem; letter-spacing: .09em; margin-bottom: .35rem; }
.panel, .metric {
    background: var(--surface); border: 1px solid var(--line); border-radius: .65rem;
    padding: clamp(.9rem, 2vw, 1.3rem); min-width: 0; overflow-wrap: anywhere;
}
main > .panel, main > .columns { margin-bottom: 1rem; }
.narrow { max-width: 33rem; }
.columns, .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.stack { display: grid; gap: .85rem; align-content: start; min-width: 0; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: .7rem; margin-bottom: 1rem; }
.metric > span, .metric > a { display: block; font-size: .85rem; color: var(--muted); }
.metric strong, .big-number { font-size: clamp(1.1rem, 2.3vw, 1.75rem); font-weight: 750; letter-spacing: -.035em; display: block; }
.metric strong small { font-size: .83rem; }
.notice { color: #0d2850; background: #e5ebf4; border: 1px solid #b9c8df; border-radius: .5rem; padding: .65rem .85rem; }
.section-heading, .line { display: flex; align-items: flex-start; justify-content: space-between; gap: .65rem; flex-wrap: wrap; }
.line { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line > div { min-width: 0; }
.line small, td small { display: block; margin-top: .15rem; }
.line p { margin: .35rem 0; }
.badge { display: inline-block; color: #364357; background: #e7ebf1; border-radius: .3rem; padding: .17rem .46rem; font-size: .8rem; font-weight: 650; }
.badge.good { color: #102c55; background: #d7e2f2; }
.badge.warning { color: #6f440d; background: #fff0d5; }
.details { display: grid; grid-template-columns: minmax(5rem, 1fr) minmax(0, 2fr); column-gap: 1rem; row-gap: .55rem; }
.details dt { font-size: .88rem; font-weight: 650; color: var(--muted); }
.details dd { margin: 0; }
.preserve { white-space: pre-wrap; }

label { display: grid; gap: .25rem; color: var(--ink); font-size: .9rem; font-weight: 650; min-width: 0; }
label.check { display: flex; align-items: flex-start; gap: .45rem; font-weight: 500; }
fieldset { display: grid; gap: .3rem; margin: 0; padding: .55rem .7rem .65rem; border: 1px solid var(--line); border-radius: .4rem; min-width: 0; }
legend { padding: 0 .2rem; font-size: .86rem; font-weight: 650; }
input, textarea, select, button { font: inherit; }
input:not([type="checkbox"]), textarea, select {
    display: block; width: 100%; min-width: 0; color: var(--ink); background: white;
    border: 1px solid #adb5c0; border-radius: .38rem; padding: .46rem .56rem;
}
textarea { resize: vertical; }
input[type="checkbox"], progress { accent-color: var(--accent); }
progress { width: 100%; display: block; margin: .5rem 0 1rem; }
button {
    border: 1px solid var(--accent); border-radius: .4rem; background: var(--accent); color: white;
    padding: .45rem .75rem; font-weight: 650; font-size: .87rem; cursor: pointer;
}
button:hover { background: var(--accent-dark); }
button.secondary, button.quiet, button.danger { color: var(--accent); background: transparent; border-color: #a2aebf; }
button.quiet { border-color: transparent; }
button.danger { color: #8b3027; border-color: #cfaba5; }
button.secondary:hover, button.quiet:hover { background: #e5eaf2; }
button.danger:hover { background: #f7e9e6; }
.filter, .line form.actions { align-items: end; }
.filter label { flex: 1 1 15rem; }
summary { cursor: pointer; color: var(--accent); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .6rem .65rem; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 5.5rem; }
th { font-size: .79rem; color: #465264; background: #f3f5f7; }
td { font-size: .9rem; }
tbody tr:last-child td { border-bottom: 0; }

.standalone.sign-in { max-width: 65rem; }
.signin-card {
    display: grid; grid-template-columns: 1.08fr 1fr; overflow: hidden;
    background: white; border: 1px solid var(--line); border-radius: .95rem;
    box-shadow: 0 12px 40px #12254210;
}
.signin-intro, .signin-form { min-width: 0; padding: clamp(1.35rem, 5vw, 3.4rem); }
.signin-intro {
    display: flex; flex-direction: column; align-items: flex-start;
    background: linear-gradient(148deg, #142642, #0c1a2e 88%); color: #dde4ef;
}
.signin-intro .eyebrow { color: #afc4e4; margin-bottom: 1.3rem; }
.signin-title {
    color: #fff; font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 730;
    letter-spacing: -.055em; line-height: 1.06; margin-bottom: .9rem;
}
.signin-intro > p:last-of-type { max-width: 29ch; }
.signin-pattern {
    width: 100%; height: clamp(3rem, 10vw, 7.5rem); margin-top: auto; border-radius: .35rem;
    background:
        radial-gradient(circle at 78% 26%, #a6c4f1 0 3px, transparent 4px),
        radial-gradient(circle at 49% 56%, #7b9cce 0 2px, transparent 3px),
        radial-gradient(circle at 20% 72%, #637fa9 0 2px, transparent 3px),
        linear-gradient(155deg, transparent 57%, #839abc82 57.5%, transparent 58%),
        repeating-linear-gradient(90deg, #9fb4d321 0 1px, transparent 1px 22px),
        repeating-linear-gradient(0deg, #9fb4d321 0 1px, transparent 1px 22px);
}
.signin-form { align-self: center; }
.signin-form h1 { font-size: 1.8rem; }
.signin-form .stack { margin-top: 1.15rem; }
.signin-form input, .signin-form button { min-height: 2.7rem; }
.signin-help { font-size: .85rem; color: var(--muted); margin-top: 1.15rem; }
.form-error { background: #fff1eb; color: #812d21; border: 1px solid #efc7ba; border-radius: .4rem; padding: .55rem .7rem; }

.partner-welcome { padding: clamp(1.25rem, 4vw, 2.5rem); }
.partner-welcome .actions { margin-top: 1.1rem; }
.button-link {
    display: inline-flex; gap: .65rem; align-items: center; background: var(--accent); color: white;
    border-radius: .4rem; padding: .52rem .85rem; font-size: .9rem; font-weight: 650; text-decoration: none;
}
.button-link:hover { background: var(--accent-dark); color: white; }
.directory-intro { margin-bottom: 1.25rem; }
.directory-intro p:last-child { color: var(--muted); max-width: 68ch; }
.directory-fields {
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .85fr) minmax(0, 1.15fr) minmax(0, 1fr);
    gap: .7rem; align-items: end;
}
.directory-filter .actions small { margin-inline-start: auto; }
.match-context {
    display: flex; align-items: center; justify-content: space-between; gap: .7rem 1.1rem; flex-wrap: wrap;
    background: #e5ebf3; border: 1px solid #c5d1e3; border-radius: .65rem; padding: .8rem 1.1rem; margin-bottom: 1.15rem;
    overflow-wrap: anywhere;
}
.match-context p { margin-top: .2rem; font-size: .88rem; color: var(--muted); }
.directory-results { display: flex; align-items: baseline; justify-content: space-between; gap: .25rem .75rem; flex-wrap: wrap; margin-bottom: .55rem; }
.directory-results h2 { margin: 0; }
.directory-results span { color: var(--muted); font-size: .82rem; }
.directory-empty { padding-block: 1.5rem; }
.candidate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: .85rem; }
.candidate-card { display: flex; flex-direction: column; gap: .85rem; }
.candidate-card-header, .candidate-banner { display: flex; align-items: center; gap: .75rem; }
.candidate-card-header > div, .candidate-banner > div { min-width: 0; }
.candidate-card-header h3 { margin-bottom: .1rem; }
.candidate-card-header p, .candidate-banner p { color: var(--muted); }
.candidate-card-header p { font-size: .83rem; }
.candidate-avatar {
    flex: none; display: grid; place-items: center; width: 2.7rem; height: 2.7rem;
    border-radius: .65rem; background: #dfe7f2; color: #1b365f; font-weight: 750;
}
.mini-label { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .79rem; font-weight: 700; }
.skill-tags { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.skill-tags li {
    min-width: 0; padding: .18rem .5rem; border-radius: .35rem; background: #ecf0f5;
    color: #283a54; font-size: .8rem; overflow-wrap: anywhere;
}
.skill-tags .more { background: transparent; padding-inline: .15rem; }
.skill-tags.matched li { background: #d7e2f2; color: #102c55; }
.skill-tags + .mini-label { margin-top: .7rem; }
.candidate-card-skills { flex: 1; }
.candidate-card-skills > .muted { font-size: .85rem; }
.candidate-card-scores { display: flex; gap: 1.15rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: .65rem; }
.candidate-card-scores .mini-label { margin-bottom: .1rem; }
.candidate-card-scores small { font-weight: 500; }
.action-link { display: inline-flex; align-self: flex-start; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 700; }
.candidate-back { font-size: .9rem; }
.candidate-banner {
    background: #e3e9f2; border: 1px solid #c9d4e4; border-radius: .75rem;
    padding: clamp(1rem, 3vw, 1.8rem); margin-bottom: 1rem; overflow-wrap: anywhere;
}
.candidate-banner {
    color: #fff; background: radial-gradient(ellipse at top right, #376cad 0, transparent 65%), #132f57;
    padding: clamp(1.2rem, 3.8vw, 2.8rem); gap: clamp(.8rem, 2vw, 1.4rem);
    border: 0; border-radius: 1rem;
}
.candidate-banner h1 { margin-bottom: .3rem; }
.candidate-banner p { color: #deebff; }
.candidate-banner .actions { margin-top: .8rem; }
.brand-mark { width: 2.9rem; height: 2.9rem; letter-spacing: -.05em; }
.contact-line + .contact-line { margin-top: .85rem; }
.contact-line .mini-label { margin-bottom: .2rem; }
.contact-line button {
    display: flex; align-items: center; justify-content: space-between; gap: .65rem;
    width: 100%; text-align: left; color: var(--accent-dark); background: #f2f6fd;
    border: 1px solid var(--line); padding: .7rem; border-radius: .55rem;
}
.contact-line button:hover { color: #123764; background: #e6effc; }
.contact-line button span { overflow-wrap: anywhere; }
.contact-line button small { color: var(--accent); font-weight: 650; }
.copy-status:not(:empty) { display: block; margin-top: .5rem; }
.evidence-list { list-style: none; padding: 0; margin: 0; }
.evidence-list li { display: flex; gap: .85rem; align-items: flex-start; padding: .9rem 0; }
.evidence-list li + li { border-top: 1px solid var(--line); }
.evidence-list li:last-child { padding-bottom: .15rem; }
.evidence-list p { margin: 0; overflow-wrap: anywhere; font-weight: 550; }
.evidence-mark { flex: none; background: #edf4ff; border-radius: .55rem; color: #245592; width: 2.35rem; height: 2.35rem; display: grid; place-items: center; font-weight: 700; }
.evidence-link { display: inline-block; padding: .27rem .65rem; margin: .5rem .25rem 0 0; border: 1px solid #cbdaf0; border-radius: .45rem; font-size: .82rem; font-weight: 650; text-decoration: none; }
.evidence-link:hover { background: #edf4ff; }
.entry-edit { background: #f6f9ff; padding: .85rem; border: 1px solid var(--line); border-radius: .6rem; }
.entry-edit button { justify-self: start; }
[data-add-entry] { margin-top: .75rem; }
.candidate-banner p { margin-bottom: .45rem; }
.candidate-banner .candidate-avatar { width: 3.6rem; height: 3.6rem; background: white; font-size: 1.25rem; }
.candidate-detail { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.candidate-readiness .big-number { margin-bottom: .2rem; }

.public-shell { max-width: 76rem; margin: auto; padding: clamp(1rem, 4vw, 2.75rem) clamp(1rem, 3vw, 2rem); }
.public-hero {
    padding: clamp(1.25rem, 4vw, 2.55rem); margin-bottom: 1rem; border-radius: .75rem;
    background: linear-gradient(110deg, #e0e7f2, #f0f2f6 90%); border: 1px solid #c9d4e4;
}
.public-hero p:last-child { max-width: 67ch; color: var(--muted); }
.top-portal-link { padding: .35rem .65rem; border: 1px solid #62728a; border-radius: .4rem; text-decoration: none; }
.public-filter label:nth-of-type(2) { flex: 0 1 14rem; }
.public-profile-preview { margin: .75rem 0; }
.profile-photo { display: block; width: 6rem; height: 6rem; object-fit: cover; border-radius: .6rem; margin-bottom: .8rem; }
.candidate-avatar { object-fit: cover; }
.scroll-options { max-height: 14rem; overflow-y: auto; display: grid; gap: .25rem; }
.employer-name { display: block; margin-top: .35rem; color: var(--muted); }

/* Student editing follows the same three steps as the profile setup links. */
.profile-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin: 1.4rem 0; }
.profile-intro h2 { font-size: clamp(1.25rem, 2.5vw, 1.7rem); margin-bottom: .4rem; }
.profile-intro p:last-child { color: var(--muted); max-width: 65ch; }
.profile-intro > .badge { flex-shrink: 0; }
.profile-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin-bottom: 1.3rem; }
.profile-steps a { display: flex; gap: .7rem; align-items: center; padding: .85rem; background: #fff; border: 1px solid var(--line); border-radius: .65rem; font-weight: 650; }
.profile-steps a:hover { background: #ecf0f7; border-color: #9eafc9; }
.profile-steps a > span { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: #e2e8f2; color: var(--accent); }
.profile-steps small { display: block; font-size: .74rem; font-weight: 400; margin-top: .1rem; }
.student-profile-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(16rem, 1fr); gap: 1.1rem; align-items: start; }
.student-profile-layout > *, .profile-sidebar > * { min-width: 0; }
.profile-step { scroll-margin-top: 1rem; padding: clamp(1rem, 2.3vw, 1.6rem); }
.profile-step > .eyebrow { margin-bottom: .25rem; }
.field-help { color: var(--muted); font-size: .83rem; font-weight: 400; line-height: 1.6; }
.profile-fieldset { padding: 1rem; gap: 1rem; border-radius: .6rem; }
.profile-fieldset legend { font-size: .95rem; padding: 0 .35rem; }
.profile-fieldset input[name="gpa"] { max-width: 10rem; }
.interest-options { gap: .55rem .8rem; }
.interest-options label { font-size: .82rem; }
.profile-editor .form-grid { gap: .9rem; }
.profile-disclosure { margin: .85rem 0 0; }
.profile-disclosure > summary { font-size: .9rem; font-weight: 650; }
.profile-disclosure[open] > summary { margin-bottom: .9rem; }
.profile-disclosure > form + .field-help { margin-top: .75rem; }
.profile-sidebar .profile-disclosure { margin-top: 0; }
.profile-sidebar .panel > .muted { font-size: .83rem; margin-top: .75rem; }
.optional-label { color: var(--muted); font-weight: 400; font-size: .76rem; margin-left: .35rem; }
.profile-save-bar { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: .4rem; }
.profile-save-bar > p { margin-bottom: .7rem; }
.sharing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin-top: 1rem; font-size: .85rem; }
.supervisor-assignment { display: grid; grid-template-columns: minmax(0, 22rem) auto; align-items: end; justify-content: start; gap: .75rem; margin-bottom: .85rem; }
.supervisor-assignment select, .supervisor-assignment button { min-height: 2.6rem; }
.admin-cv-list { display: grid; margin-top: 1.2rem; }
.admin-cv-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.3fr); gap: 1.25rem; align-items: start; padding: 1.2rem .35rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.admin-cv-row > * { min-width: 0; overflow-wrap: anywhere; }
.admin-cv-row:target { background: #ecf0f7; outline: 2px solid #a3b5d0; outline-offset: .25rem; border-radius: .4rem; }
.admin-cv-student strong, .admin-cv-student small, .admin-cv-current small { display: block; }
.admin-cv-student small { margin: .25rem 0 .65rem; font-size: .78rem; }
.admin-cv-student a { font-size: .82rem; }
.admin-cv-current p { margin-bottom: .5rem; font-size: .84rem; }
.admin-cv-current small { margin: .4rem 0; font-size: .76rem; }
.admin-cv-current .field-help { margin-top: .6rem; font-size: .78rem; }
.admin-cv-form { gap: .6rem; }
.admin-cv-form label { font-size: .8rem; }
.admin-cv-form input[type="file"] { font-weight: 400; font-size: .8rem; }

/* The public directory is the industry's first view of the students. */
.public-shell { max-width: 82rem; }
.directory-hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(15rem, 1fr); gap: 2rem; align-items: center; border: 0; border-radius: 1.15rem; padding: clamp(1.5rem, 4vw, 3.2rem); margin-bottom: 1.5rem; background: radial-gradient(ellipse at 85% 0, #3e567a66, transparent 65%), #0e2342; color: #fff; }
.directory-hero .eyebrow { color: #9ab6e0; letter-spacing: .15em; margin-bottom: 1rem; }
.directory-hero h1 { font-size: clamp(2rem, 4.3vw, 3.65rem); line-height: 1.09; letter-spacing: -.055em; margin-bottom: 1.1rem; }
.directory-hero-copy > p:not(.eyebrow) { color: #d0dae8; max-width: 47ch; line-height: 1.75; font-size: .95rem; }
.directory-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: 1.5rem; font-size: .76rem; color: #c6d4e8; }
.directory-trust span::before { content: '✓'; margin-right: .4rem; color: #a2c0ed; }
.directory-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 1.6rem; border: 1px solid #8a9cb655; border-radius: .8rem; background: #ffffff08; }
.directory-hero-stats strong { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 650; letter-spacing: -.05em; line-height: 1.15; }
.directory-hero-stats span { font-size: .78rem; color: #c2cee0; }
.directory-hero .directory-hero-stats p { grid-column: 1 / -1; border-top: 1px solid #8a9cb655; padding-top: 1rem; font-size: .86rem; color: #d0dae8; line-height: 1.7; margin: 0; }
.directory-filter { padding: clamp(1rem, 2vw, 1.5rem); border-radius: .85rem; margin-bottom: 1.6rem; }
.directory-filter .section-heading { align-items: baseline; margin-bottom: .35rem; }
.live-search-hint { color: var(--accent); font-size: .78rem; }
.public-filter-fields { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: .8rem; }
.public-filter-fields:has(select[name="sort"]) { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
.public-filter-fields input, .public-filter-fields select { min-height: 2.75rem; font-weight: 400; background-color: #fafbfc; }
.public-filter-fields label { font-size: .8rem; gap: .45rem; }
.public-filter-footer { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .65rem 1rem; margin-top: 1rem; }
.public-filter-footer p { margin: 0; color: var(--muted); font-size: .78rem; }
.public-filter-footer a { font-size: .8rem; }
#directory-results { transition: opacity .15s ease; }
#directory-results[aria-busy="true"] { opacity: .55; }
.directory-results { margin-bottom: 1rem; }
.public-candidate-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.15rem; }
.public-candidate-card { border-radius: .9rem; padding: 1.4rem; gap: 1rem; box-shadow: 0 3px 12px #15243b04; transition: border-color .15s ease, box-shadow .15s ease; }
.public-candidate-card:hover { border-color: #9baecb; box-shadow: 0 7px 22px #15243b0d; }
.public-candidate-card .candidate-card-header { justify-content: space-between; align-items: flex-start; }
.public-candidate-card .candidate-avatar { width: 4.5rem; height: 4.5rem; font-size: 1.5rem; border-radius: 1rem; background: linear-gradient(140deg, #e2e9f3, #d2dcea); color: #243c5f; }
.verified-mark { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; color: #344b6e; background: #ecf0f6; border-radius: 1rem; padding: .25rem .5rem; }
.public-candidate-identity h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.025em; margin-bottom: .25rem; }
.public-candidate-identity h3 a { color: var(--ink); text-decoration: none; }
.public-candidate-identity > p { color: var(--muted); font-size: .8rem; margin-bottom: 0; }
.public-candidate-identity .candidate-specialization { color: #27436c; font-weight: 600; margin-top: .65rem; font-size: .8rem; }
.badge.available { background: #e8edf5; color: #1d3963; }
.badge.available::before { content: ''; display: inline-block; width: .4rem; height: .4rem; border-radius: 50%; background: #2f5389; margin-right: .4rem; vertical-align: .05rem; }
.public-candidate-card .badge { font-size: .73rem; border-radius: 1rem; padding: .25rem .6rem; }
.public-candidate-card .skill-tags { gap: .4rem; }
.public-candidate-card .skill-tags li { background: #f2f3f5; color: #485363; border: 1px solid #e4e8ed; font-size: .74rem; padding: .2rem .5rem; border-radius: .4rem; }
.candidate-project-preview { color: var(--muted); font-size: .82rem; line-height: 1.65; margin-top: .85rem; }
.public-candidate-footer { border-top: 1px solid var(--line); padding-top: 1rem; display: grid; grid-template-columns: 1fr auto; align-items: center; align-content: start; min-height: 4.2rem; gap: .4rem 1rem; }
.public-candidate-footer .action-link { margin-right: auto; font-size: .85rem; }
.candidate-cv-link { font-size: .8rem; text-decoration: none; }
.candidate-readiness { grid-column: 1 / -1; color: var(--muted); font-size: .74rem; }
.candidate-readiness strong { color: var(--ink); margin-left: .35rem; }
.candidate-readiness small { margin-left: .15rem; }
.directory-empty { text-align: center; padding: 3rem 1rem; border-style: dashed; }
.directory-empty h3 { font-size: 1.15rem; }
.directory-empty p { max-width: 52ch; margin-inline: auto; font-size: .9rem; }
.directory-footnote { text-align: center; color: var(--muted); font-size: .76rem; margin-top: 2rem; }

.profile-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .75rem; }
.profile-link { display: flex; align-items: center; gap: .8rem; padding: .95rem; min-width: 0; border: 1px solid var(--line); border-radius: .7rem; color: var(--ink); text-decoration: none; background: #fff; }
.profile-link:hover { border-color: #8ea0bc; background: #f6f8fa; text-decoration: none; }
.profile-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.profile-link-icon { display: grid; place-items: center; width: 2.65rem; height: 2.65rem; border-radius: .6rem; background: #f0f1f3; flex: 0 0 auto; }
.profile-link-icon img { display: block; }
.profile-link--linkedin .profile-link-icon { background: #edf5fc; }
.profile-link--portfolio .profile-link-icon { background: #e9eef5; color: var(--accent); }
.profile-link-copy { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.profile-link-copy strong { display: block; font-size: .9rem; line-height: 1.4; }
.profile-link-copy small { display: block; color: var(--muted); font-size: .75rem; margin-top: .12rem; line-height: 1.5; }
.profile-link-arrow { flex: 0 0 auto; color: var(--muted); }
.profile-link--cv { grid-column: 1 / -1; background: #ecf0f7; border-color: #c3cedf; }
.profile-link--cv .profile-link-icon { background: var(--accent); color: #fff; }
.profile-link--cv .profile-link-copy strong, .profile-link--cv .profile-link-arrow { color: var(--accent-dark); }

@media (max-width: 62rem) {
    .shell { grid-template-columns: 11rem minmax(0, 1fr); }
    .columns { grid-template-columns: minmax(0, 1fr); }
    .directory-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .candidate-detail { grid-template-columns: minmax(0, 1fr); }
    .student-profile-layout { grid-template-columns: minmax(0, 1fr); }
    .admin-cv-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-cv-form { grid-column: 1 / -1; }
    .profile-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .directory-hero { grid-template-columns: minmax(0, 1.5fr) minmax(13rem, 1fr); gap: 1.5rem; }
    .directory-hero-stats { padding: 1.1rem; gap: 1rem; }
    .public-filter-fields, .public-filter-fields:has(select[name="sort"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 43rem) {
    .shell { display: block; }
    .sidebar { margin-bottom: 1.2rem; }
    nav { display: flex; flex-wrap: wrap; gap: .3rem; }
    nav a { padding: .38rem .52rem; font-size: .84rem; }
    .identity { padding: 0 0 .45rem; }
    .form-grid { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
    .signin-card { grid-template-columns: minmax(0, 1fr); }
    .signin-intro .eyebrow { margin-bottom: .55rem; }
    .signin-title br, .signin-pattern { display: none; }
    .directory-filter .actions small { flex-basis: 100%; margin-inline-start: 0; }
    .profile-steps { grid-template-columns: minmax(0, 1fr); }
    .admin-cv-row { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
    nav.profile-steps { display: grid; }
    .profile-steps a { padding: .65rem .8rem; }
    .profile-steps small { display: none; }
    .profile-intro { flex-wrap: wrap; }
    .profile-sidebar { grid-template-columns: minmax(0, 1fr); }
    .profile-editor .form-grid { grid-template-columns: minmax(0, 1fr); }
    .interest-options { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .profile-save-bar .actions { display: grid; grid-template-columns: minmax(0, 1fr); }
    .directory-hero { grid-template-columns: minmax(0, 1fr); border-radius: .85rem; }
    .directory-hero-stats { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; }
    .directory-hero-stats p { flex-basis: 100%; width: 100%; }
    .directory-trust { margin-top: 1rem; }
    .directory-results span { font-size: .73rem; }
}
@media (max-width: 29rem) {
    .directory-fields { grid-template-columns: minmax(0, 1fr); }
    .public-filter label, .public-filter label:nth-of-type(2) { flex: 1 1 100%; }
    .public-filter-fields, .public-filter-fields:has(select[name="sort"]) { grid-template-columns: minmax(0, 1fr); }
    .public-candidate-card { padding: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
    #directory-results, .public-candidate-card { transition: none; }
}
