/* ==========================================================================
   SERA Lab — site styles
   Palette is taken from the SERA logo (deep ocean blues and teal).
   ========================================================================== */

:root {
    /* Brand (from assets/sera_logo.svg) */
    --brand-900: #012a47;
    --brand-800: #013a61;
    --brand-700: #014776;
    --brand-600: #055c8f;
    --brand-500: #10829f;
    --brand-teal: #46bda9;
    --brand-teal-light: #8fd3c7;
    --brand-100: #dfeaf2;
    --brand-50: #eef4f8;

    /* Neutrals */
    --ink: #0f2135;
    --text: #33465a;
    --muted: #5b6b7d;
    --bg: #ffffff;
    --bg-alt: #f5f7fa;
    --border: #dde4eb;
    --border-strong: #c3cfdb;

    /* On dark backgrounds */
    --on-dark: #d5e2ee;
    --on-dark-muted: #b9cadb;

    /* Status */
    --danger: #b42318;
    --success: #067647;

    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 33, 53, 0.06);
    --shadow: 0 8px 24px -10px rgba(15, 33, 53, 0.2);
    --shadow-lg: 0 24px 48px -16px rgba(15, 33, 53, 0.3);

    --container: 1180px;
    --gutter: 24px;
    --header-h: 72px;
    --section-y: clamp(3.5rem, 7vw, 6rem);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.overlay-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--brand-600);
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: var(--brand-700);
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

h1,
h2,
h3,
h4 {
    color: var(--ink);
    font-weight: 600;
    line-height: 1.2;
}

[hidden],
.hidden {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--brand-600);
    outline-offset: 2px;
}

/* Headings and sections receive focus from script after navigation */
main:focus,
[tabindex='-1']:focus {
    outline: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 3000;
    padding: 0.6rem 1rem;
    background: var(--brand-700);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: 1rem;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Buttons, links, labels
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-lg {
    padding: 0.8rem 1.4rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--brand-700);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: var(--brand-900);
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: var(--ink);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    border-color: var(--brand-600);
    color: var(--brand-700);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--bg-alt);
    color: var(--ink);
}

.btn-light {
    background: #fff;
    color: var(--brand-900);
}

.btn-light:hover {
    background: var(--brand-50);
    color: var(--brand-900);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-600);
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-teal);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    border: 0;
    background: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
}

.back-link:hover {
    color: var(--brand-700);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 0.75rem;
    font-weight: 600;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #edf1f5;
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.badge-success {
    background: #e3f4e8;
    color: #146c2e;
}

.badge-featured {
    background: #fdf2d6;
    color: #7a4b00;
}

/* A link or button whose click area covers its whole card */
.stretched-link {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.stretched-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.stretched-link:focus-visible {
    outline: none;
}

.stretched-link:focus-visible::after {
    outline: 2px solid var(--brand-600);
    outline-offset: 2px;
    border-radius: var(--radius);
}

.state-message {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.5rem 0;
    font-size: 0.9375rem;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s;
}

.header.is-scrolled {
    box-shadow: 0 8px 24px -16px rgba(15, 33, 53, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    width: auto;
    height: 52px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.nav-link {
    position: relative;
    display: block;
    white-space: nowrap;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
}

.nav-link:hover {
    background: var(--bg-alt);
    color: var(--ink);
}

.nav-link.active {
    color: var(--brand-700);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.15rem;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-teal);
}

.nav-link.nav-cta {
    margin-left: 0.6rem;
    border: 1px solid var(--border-strong);
    color: var(--brand-700);
    font-weight: 600;
}

.nav-link.nav-cta:hover {
    border-color: var(--brand-600);
    background: var(--brand-50);
}

.nav-link.nav-cta.active::after {
    display: none;
}

/* Members-only link, set apart from the public sections */
.nav-account {
    display: flex;
    align-items: center;
    margin-left: 0.6rem;
}

.nav-account::before {
    content: '';
    width: 1px;
    height: 1.5rem;
    margin-right: 0.6rem;
    background: var(--border);
}

.nav-link.nav-workspace {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--brand-700);
    font-weight: 600;
}

.nav-workspace i {
    font-size: 1.05rem;
    color: var(--brand-teal);
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 1.1rem;
    color: var(--ink);
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    isolation: isolate;
    color: #fff;
    background: var(--brand-900) url('assets/visit-banner.jpg') center 35% / cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(1, 42, 71, 0.95) 0%, rgba(1, 42, 71, 0.84) 45%, rgba(1, 42, 71, 0.5) 100%);
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-teal), var(--brand-500) 60%, var(--brand-600));
}

.hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(440px, 64vh, 600px);
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero-eyebrow {
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-teal-light);
}

.hero-title {
    max-width: 760px;
    margin-bottom: 1.25rem;
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.25rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.015em;
    color: #fff;
}

.hero-lede {
    max-width: 46ch;
    margin-bottom: 2rem;
    font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
    line-height: 1.6;
    color: var(--on-dark);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
    padding: var(--section-y) 0;
    scroll-margin-top: var(--header-h);
}

.section-alt {
    background: var(--bg-alt);
}

.section-dark {
    background: var(--brand-900);
    color: var(--on-dark);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 3rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head-main {
    max-width: 720px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.section-lede {
    max-width: 62ch;
    margin-top: 0.75rem;
    font-size: 1.0625rem;
    color: var(--muted);
}

.section-dark .section-title {
    color: #fff;
}

.section-dark .section-lede,
.section-dark .state-message {
    color: var(--on-dark-muted);
}

.section-dark .eyebrow {
    color: var(--brand-teal-light);
}

/* --------------------------------------------------------------------------
   Research
   -------------------------------------------------------------------------- */
.statements {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3.5rem);
}

.statement {
    padding: 0.25rem 0 0.25rem 1.5rem;
    border-left: 3px solid var(--brand-teal);
}

.statement-label,
.focus-heading,
.people-group-title,
.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.statement-label {
    margin-bottom: 0.75rem;
}

.statement-text {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 1rem + 0.6vw, 1.45rem);
    line-height: 1.5;
    color: var(--ink);
}

.focus {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.focus-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.focus-item {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 1.1rem 0.45rem 0.45rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    font-weight: 500;
    color: var(--ink);
}

.focus-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand-600);
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   People
   -------------------------------------------------------------------------- */
.member-filters {
    display: flex;
    gap: 0.15rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}

.member-filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    position: relative;
    flex-shrink: 0;
    padding: 0.75rem 0.9rem;
    border: 0;
    background: none;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
}

.filter-btn:hover {
    color: var(--ink);
}

.filter-btn.active {
    color: var(--brand-700);
    font-weight: 600;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0;
    height: 2px;
    background: var(--brand-700);
}

.filter-count {
    margin-left: 0.15rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
}

.people-group+.people-group {
    margin-top: 3rem;
}

.people-group-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.people-group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.member-grid--featured {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
}

.member-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.75rem 1.25rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s;
    animation: rise 0.35s ease both;
}

.member-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

.member-avatar {
    flex-shrink: 0;
    width: 104px;
    height: 104px;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 50%;
    background: var(--brand-50);
    box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--border);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.member-role {
    margin-bottom: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-600);
}

.member-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.3;
}

.member-title {
    margin-top: 0.2rem;
    font-size: 0.875rem;
    color: var(--text);
}

.member-meta {
    display: grid;
    gap: 0.3rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--muted);
}

.member-meta li {
    overflow-wrap: anywhere;
}

.member-meta i {
    width: 1em;
    margin-right: 0.4rem;
    font-size: 0.75rem;
    text-align: center;
}

.member-meta a {
    color: var(--text);
}

.member-meta a:hover {
    color: var(--brand-600);
    text-decoration: underline;
}

.member-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 1rem;
}

.member-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 0.85rem;
    color: var(--muted);
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.member-social-link:hover {
    background: var(--brand-700);
    border-color: var(--brand-700);
    color: #fff;
}

/* Co-directors: wider card with the photo beside the details */
.member-card--featured {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem;
    text-align: left;
}

.member-card--featured .member-avatar {
    width: 128px;
    height: 128px;
    margin-bottom: 0;
}

.member-card--featured .member-info {
    align-items: flex-start;
    align-self: stretch;
}

.member-card--featured .member-name {
    font-size: 1.45rem;
}

.member-card--featured .member-title {
    font-size: 0.9375rem;
}

.member-card--featured .member-social {
    justify-content: flex-start;
}

/* --------------------------------------------------------------------------
   Publications
   -------------------------------------------------------------------------- */
.pub-list {
    border-top: 1px solid var(--border);
}

.pub-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.pub-year {
    padding-top: 0.1rem;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--brand-600);
}

.pub-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.35;
}

.pub-title a {
    color: inherit;
}

.pub-title a:hover {
    color: var(--brand-600);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pub-authors {
    margin-top: 0.35rem;
    color: var(--text);
}

.pub-venue {
    margin-top: 0.15rem;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--muted);
}

.pub-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-top: 0.75rem;
}

.pub-actions:empty {
    display: none;
}

.pub-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-700);
    cursor: pointer;
}

.pub-action:hover {
    border-color: var(--brand-600);
    background: var(--brand-50);
    color: var(--brand-700);
}

.pub-action i {
    font-size: 0.75em;
}

.pub-cited {
    font-size: 0.8125rem;
    color: var(--muted);
}

.pub-bibtex {
    position: relative;
    margin-top: 0.75rem;
}

.pub-bibtex pre {
    padding: 1rem 5.5rem 1rem 1rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--ink);
}

.pub-copy {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.pub-year-group+.pub-year-group {
    margin-top: 2.5rem;
}

.pub-year-heading {
    margin-bottom: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.6rem;
}

.pub-year-group .pub-item {
    grid-template-columns: minmax(0, 1fr);
}

.pub-year-group .pub-year {
    display: none;
}

/* --------------------------------------------------------------------------
   News and blog lists
   -------------------------------------------------------------------------- */
.entry-list {
    display: grid;
    gap: 1rem;
}

.entry {
    position: relative;
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: start;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.entry.has-thumb {
    grid-template-columns: 128px minmax(0, 1fr) 176px;
}

.entry:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

.entry:hover .entry-title {
    color: var(--brand-600);
}

.entry-date {
    padding-top: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-600);
}

.entry-featured {
    display: inline-flex;
    margin-bottom: 0.5rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: #e3f5f1;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #17665b;
}

.entry-meta {
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.entry-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 1.35;
    transition: color 0.15s;
}

.entry-excerpt {
    display: -webkit-box;
    margin-top: 0.4rem;
    overflow: hidden;
    color: var(--text);
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.entry .tag-list {
    margin-top: 0.85rem;
}

.entry-byline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink);
}

.entry-byline img {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    object-fit: cover;
    border-radius: 50%;
    background: var(--brand-50);
}

.entry-thumb {
    width: 176px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--brand-50);
}

.entry-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* "View all" button under a homepage list */
.section-foot {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Join us
   -------------------------------------------------------------------------- */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 1.25rem;
}

.job-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    transition: box-shadow 0.15s;
}

.job-card:hover {
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.45);
}

.job-card:hover .job-title {
    color: var(--brand-600);
}

.job-advisor {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    color: var(--muted);
}

.job-title {
    margin-top: 0.5rem;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 1.3;
    transition: color 0.15s;
}

.job-excerpt {
    display: -webkit-box;
    margin: 0.5rem 0 1.25rem;
    overflow: hidden;
    font-size: 0.9375rem;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
}

.job-more {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-600);
}

.job-more i {
    font-size: 0.8em;
}

.jobs-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    max-width: 760px;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.jobs-empty-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(143, 211, 199, 0.14);
    font-size: 1.15rem;
    color: var(--brand-teal-light);
}

.jobs-empty-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
}

.jobs-empty-text {
    margin-top: 0.35rem;
    color: var(--on-dark-muted);
}

.jobs-empty .btn {
    margin-top: 1.1rem;
}

/* --------------------------------------------------------------------------
   Archive pages (all articles / news / publications)
   -------------------------------------------------------------------------- */
.page {
    min-height: 70vh;
    padding: clamp(2rem, 4vw, 3rem) 0 var(--section-y);
}

.page-head {
    margin: 1.25rem 0 clamp(2rem, 4vw, 3rem);
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem);
    letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Article reader
   -------------------------------------------------------------------------- */
.reader {
    padding: clamp(2rem, 4vw, 3rem) var(--gutter) var(--section-y);
}

.reader-inner {
    max-width: 740px;
    margin: 0 auto;
}

.reader-header {
    margin: 1.5rem 0 2rem;
}

.reader-title {
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
}

.reader-meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.reader-avatar {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--brand-50);
}

/* News is bylined to the lab, shown with its logo mark */
.reader-avatar--logo {
    padding: 4px;
    object-fit: contain;
}

.reader-author {
    font-weight: 600;
    color: var(--ink);
}

.reader-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.reader-cover {
    width: 100%;
    max-height: 460px;
    margin-bottom: 2.5rem;
    object-fit: cover;
    border-radius: var(--radius);
}

.prose {
    font-family: var(--font-serif);
    font-size: 1.1875rem;
    line-height: 1.75;
    color: #24364a;
    overflow-wrap: break-word;
}

.prose>*+* {
    margin-top: 1.2em;
}

.prose h2,
.prose h3,
.prose h4 {
    font-family: var(--font-serif);
    line-height: 1.3;
    color: var(--ink);
}

.prose h2 {
    margin-top: 2em;
    font-size: 1.6rem;
}

.prose h3 {
    margin-top: 1.75em;
    font-size: 1.3rem;
}

.prose a {
    color: var(--brand-600);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.prose strong {
    font-weight: 600;
    color: var(--ink);
}

.prose ul {
    padding-left: 1.4em;
    list-style: disc;
}

.prose ol {
    padding-left: 1.4em;
    list-style: decimal;
}

.prose li+li {
    margin-top: 0.4em;
}

.prose li::marker {
    color: var(--brand-500);
}

.prose blockquote {
    padding: 0.25em 0 0.25em 1.25em;
    border-left: 3px solid var(--brand-teal);
    font-style: italic;
    color: var(--text);
}

.prose img {
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-sm);
}

.prose code {
    padding: 0.1em 0.35em;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-alt);
    font-family: var(--font-mono);
    font-size: 0.85em;
}

.prose pre {
    padding: 1.25rem;
    overflow-x: auto;
    border-radius: var(--radius-sm);
    background: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    color: #e6edf5;
}

.prose pre code {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
}

.prose .ql-align-center {
    text-align: center;
}

.prose .ql-align-right {
    text-align: right;
}

.prose .ql-align-justify {
    text-align: justify;
}

.prose-sans {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
}

.prose-sans h2,
.prose-sans h3 {
    font-family: var(--font-sans);
}

.reader-tags {
    margin-top: 2.5rem;
}

.reader-tags:not(.hidden)+.share-bar {
    margin-top: 1.5rem;
}

.share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.share-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
}

.share-actions {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.share-btn:hover {
    background: var(--brand-700);
    border-color: var(--brand-700);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Job details dialog
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(1, 26, 44, 0.6);
    backdrop-filter: blur(3px);
    animation: fade 0.2s ease;
}

.content-modal {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: min(88vh, 900px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-lg);
    animation: rise 0.25s ease;
}

/* Sticky so it stays reachable while scrolling long descriptions */
.modal-close {
    position: sticky;
    top: 0.75rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0.75rem 0.75rem -50px auto;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0 0 1px var(--border), var(--shadow-sm);
    font-size: 1rem;
    color: var(--ink);
    cursor: pointer;
}

.modal-close:hover {
    background: var(--ink);
    color: #fff;
}

.modal-body {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.6rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.modal-title {
    margin-bottom: 1rem;
    padding-right: 2.5rem;
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    line-height: 1.25;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.modal-tags:empty {
    display: none;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 4000;
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-sm);
    background: var(--ink);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 1rem);
    transition: opacity 0.2s, transform 0.2s;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
    font-size: 0.9375rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
}

.footer-logo {
    width: auto;
    height: 56px;
    margin-bottom: 1rem;
}

.footer-brand p {
    max-width: 36ch;
    color: var(--muted);
}

.footer-heading {
    margin-bottom: 0.9rem;
    font-size: 0.75rem;
}

.footer-nav ul {
    display: grid;
    gap: 0.45rem;
}

.footer-nav a {
    color: var(--text);
}

.footer-nav a:hover {
    color: var(--brand-600);
}

.footer-ksu {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--ink);
}

.footer-ksu img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
    /* Divider drawn inside the gutters so it lines up with the content */
    background: linear-gradient(var(--border), var(--border)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
    font-size: 0.8125rem;
    color: var(--muted);
}

.footer-login {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
}

.footer-login i {
    font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   Member workspace: overlay + sign in
   -------------------------------------------------------------------------- */
.admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
}

.login-screen {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    min-height: 100vh;
    min-height: 100dvh;
}

.login-aside {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    padding: clamp(2rem, 5vw, 4rem);
    color: #fff;
    background: var(--brand-900) url('assets/visit-banner.jpg') center / cover no-repeat;
}

.login-aside::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(1, 42, 71, 0.55) 0%, rgba(1, 42, 71, 0.94) 72%);
}

.login-aside-eyebrow {
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-teal-light);
}

.login-aside-title {
    max-width: 16ch;
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.6rem);
    font-weight: 600;
    line-height: 1.15;
}

.login-aside-text {
    max-width: 40ch;
    margin-top: 1rem;
    color: var(--on-dark);
}

.login-main {
    display: flex;
    flex-direction: column;
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.login-main .back-link {
    align-self: flex-start;
}

.login-form {
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 2rem 0;
}

.login-logo {
    width: auto;
    height: 56px;
    margin-bottom: 1.75rem;
}

.login-title {
    font-family: var(--font-serif);
    font-size: 2rem;
}

.login-subtitle {
    margin: 0.4rem 0 2rem;
    color: var(--muted);
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--muted);
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover {
    background: var(--bg-alt);
    color: var(--ink);
}

.form-message {
    min-height: 1.4em;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.form-message.error {
    color: var(--danger);
}

.login-help {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Forms (sign in + workspace editors)
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
}

.form-label i {
    width: 1em;
    color: var(--muted);
}

.form-label .required {
    color: var(--danger);
}

.form-label .optional,
.form-section-title .optional {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 0.9375rem;
    color: var(--ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control::placeholder {
    color: #8a99a8;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-600);
    box-shadow: 0 0 0 3px rgba(5, 92, 143, 0.15);
}

.form-control-lg {
    padding: 0.8rem 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.form-control-mono {
    resize: vertical;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

input[type='file'].form-control {
    padding: 0.5rem;
    font-size: 0.875rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
    min-width: 0;
}

.form-row .form-group-wide {
    flex: 2;
}

.form-row .form-group-narrow {
    flex: 0 0 120px;
}

.form-hint {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: var(--muted);
}

.form-section-title {
    margin: 1.75rem 0 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9375rem;
    color: var(--ink);
    cursor: pointer;
}

.checkbox-label input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    accent-color: var(--brand-700);
}

.checkbox-label strong {
    font-weight: 600;
}

.checkbox-hint {
    color: var(--muted);
}

.checkbox-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
}

.image-preview {
    margin-top: 0.6rem;
}

.image-preview img {
    max-height: 120px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.message {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.message.error {
    color: var(--danger);
}

.message.success {
    color: var(--success);
}

/* Quill editor */
.editor-shell {
    border-radius: var(--radius-sm);
    background: #fff;
}

.ql-toolbar.ql-snow {
    border-color: var(--border-strong);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: var(--bg-alt);
    font-family: var(--font-sans);
}

.ql-container.ql-snow {
    border-color: var(--border-strong);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 1rem;
}

.ql-editor {
    min-height: 360px;
    padding: 1.25rem;
    line-height: 1.7;
}

.editor-shell-sm .ql-editor {
    min-height: 180px;
}

/* --------------------------------------------------------------------------
   Member workspace: dashboard
   -------------------------------------------------------------------------- */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 1.75rem;
    width: 260px;
    height: 100vh;
    padding: 1.5rem 1rem;
    border-right: 1px solid var(--border);
    background: var(--bg-alt);
}

.admin-brand {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0 0.5rem;
}

.admin-logo {
    align-self: flex-start;
    width: auto;
    height: 44px;
}

.admin-brand-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: none;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: left;
    color: var(--text);
    cursor: pointer;
}

.admin-nav-item i {
    width: 1.1em;
    color: var(--muted);
}

.admin-nav-item:hover {
    background: #e9eef3;
    color: var(--ink);
}

.admin-nav-item.active {
    background: #fff;
    color: var(--brand-700);
    box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
}

.admin-nav-item.active i {
    color: var(--brand-600);
}

.admin-sidebar-footer {
    display: grid;
    gap: 0.5rem;
    margin-top: auto;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.5rem 0.5rem;
    overflow-wrap: anywhere;
    font-size: 0.8125rem;
    color: var(--muted);
}

.admin-main {
    flex: 1;
    min-width: 0;
    max-width: 1100px;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.admin-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-title {
    font-family: var(--font-serif);
    font-size: 1.9rem;
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.admin-table th {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    color: var(--muted);
}

.admin-table td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

.admin-table tbody tr+tr td {
    border-top: 1px solid var(--border);
}

.admin-table tbody tr:hover {
    background: #fafbfd;
}

.cell-title {
    min-width: 220px;
    font-weight: 600;
    color: var(--ink);
}

.cell-muted {
    color: var(--muted);
}

.cell-empty {
    color: var(--muted);
}

.cell-actions {
    width: 1%;
    white-space: nowrap;
}

.cell-person {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cell-person img {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
}

.btn-ghost.btn-danger {
    color: var(--danger);
}

.btn-ghost.btn-danger:hover {
    background: #fdecea;
    color: var(--danger);
}

/* Supervisor picker in the people editor */
.choice-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem 0.35rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
}

.choice-chip:hover {
    border-color: var(--brand-600);
}

.choice-chip:has(input:checked) {
    border-color: var(--brand-600);
    background: var(--brand-50);
}

.choice-chip input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand-700);
}

.choice-chip img {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 50%;
}

.admin-editor {
    margin-top: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.admin-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.admin-editor-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
}

.admin-editor-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
/* Tighter nav so the full logo and the members' Workspace link share one row */
@media (max-width: 1100px) {
    .nav-link {
        padding-inline: 0.6rem;
    }

    .nav-link.active::after {
        left: 0.6rem;
        right: 0.6rem;
    }
}

@media (max-width: 960px) {
    .mobile-menu-toggle {
        display: inline-flex;
    }

    .navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        border-bottom: 1px solid var(--border);
        background: #fff;
        box-shadow: var(--shadow);
    }

    .header.menu-open .navigation {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-width: var(--container);
        margin: 0 auto;
        padding: 0.25rem var(--gutter) 1rem;
    }

    .nav-link {
        padding: 0.85rem 0.25rem;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        font-size: 1rem;
    }

    .nav-link:hover {
        background: none;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link.nav-cta {
        margin: 1rem 0 0;
        padding: 0.75rem;
        border: 1px solid var(--border-strong);
        border-radius: var(--radius-sm);
        text-align: center;
    }

    .nav-account {
        display: block;
        margin: 0.5rem 0 0;
    }

    .nav-account::before {
        display: none;
    }

    .nav-link.nav-workspace {
        justify-content: center;
        border-bottom: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .login-screen {
        grid-template-columns: 1fr;
    }

    .login-aside {
        display: none;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        position: static;
        width: 100%;
        height: auto;
        gap: 1rem;
        padding: 1rem;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .admin-brand {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .admin-logo {
        height: 36px;
    }

    .admin-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .admin-nav-item {
        width: auto;
        white-space: nowrap;
    }

    .admin-sidebar-footer {
        grid-template-columns: 1fr 1fr;
        margin-top: 0;
    }

    .admin-user {
        grid-column: 1 / -1;
        padding-bottom: 0;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group-narrow,
    .form-row .form-group-wide {
        flex: 1;
    }
}

@media (max-width: 760px) {
    :root {
        --gutter: 16px;
        --header-h: 64px;
    }

    .brand-logo {
        height: 44px;
    }

    .statements {
        grid-template-columns: 1fr;
    }

    .focus {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-head {
        align-items: flex-start;
    }

    .entry,
    .entry.has-thumb {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.6rem;
        padding: 1.25rem;
    }

    .entry-thumb {
        order: -1;
        width: 100%;
    }

    .section-foot .btn {
        width: 100%;
    }

    .pub-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.35rem;
    }

    .jobs-empty {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .hero-actions .btn {
        flex: 1 1 100%;
    }

    /* People: compact rows with the photo beside the details */
    .member-grid,
    .member-grid--featured {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
    }

    .member-card,
    .member-card--featured {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.1rem;
        text-align: left;
    }

    .member-avatar,
    .member-card--featured .member-avatar {
        width: 72px;
        height: 72px;
        margin-bottom: 0;
        box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--border);
    }

    .member-info,
    .member-card--featured .member-info {
        align-items: flex-start;
    }

    .member-name,
    .member-card--featured .member-name {
        font-size: 1.15rem;
    }

    .member-social {
        justify-content: flex-start;
    }

    .member-social {
        padding-top: 0.75rem;
    }

    .admin-sidebar-footer {
        grid-template-columns: 1fr;
    }
}
