/* ==========================================================================
   Venkatesan Lab — public site styles (sits on top of Bootstrap 5.3)
   ========================================================================== */

:root {
    /* Palette */
    --aubergine: #39243F;   /* Deep Aubergine – navigation, headings */
    --copper: #B77A50;      /* Antique Copper – accents */
    --copper-deep: #93603A; /* deeper copper for text and buttons (AA contrast) */
    --copper-dark: #7A4E2E;
    --sand-beige: #E8DDD3;  /* Sand Beige – borders, card surfaces */
    --charcoal: #302C2D;    /* body text */
    --ivory: #FAF6F0;       /* Warm Ivory – page background */
    --plum: #5A465E;        /* Muted Plum – secondary elements */

    /* Roles (names kept from the first version so the rest of the file is unchanged) */
    --ink: var(--charcoal);
    --navy: var(--aubergine);
    --navy-2: var(--plum);
    --teal: var(--copper);
    --teal-600: var(--copper-deep);
    --teal-50: #F5EBE1;
    --amber: var(--copper);
    --amber-50: #F3E7DA;
    --sand: #F3ECE3;
    --paper: var(--ivory);
    --card: #FFFCF8;
    --muted: var(--plum);
    --line: var(--sand-beige);
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(57, 36, 63, .06), 0 1px 3px rgba(57, 36, 63, .05);
    --shadow: 0 12px 32px -14px rgba(57, 36, 63, .28);
    --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
    --header-h: 72px;

    --bs-body-font-family: var(--font-sans);
    --bs-body-color: var(--charcoal);
    --bs-body-bg: var(--ivory);
    --bs-border-color: var(--sand-beige);
    --bs-link-color: var(--copper-deep);
    --bs-link-color-rgb: 147, 96, 58;
    --bs-link-hover-color: var(--aubergine);
    --bs-link-hover-color-rgb: 57, 36, 63;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--paper);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, .serif {
    font-family: var(--font-serif);
    color: var(--navy);
    letter-spacing: -.01em;
    line-height: 1.2;
}
h1 { font-weight: 700; }
h2, h3 { font-weight: 600; }
h4, h5, h6 { color: var(--navy); font-weight: 600; }
a { text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

.skip-link {
    position: absolute; left: 1rem; top: -60px; z-index: 2000;
    background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px;
    transition: top .2s;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { --bs-gutter-x: 2rem; }
@media (max-width: 575.98px) { .container { --bs-gutter-x: 2rem; } }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(250, 246, 240, .92);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .navbar { min-height: var(--header-h); padding: .5rem 0; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark {
    display: grid; place-items: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    color: #fff; font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; }
.brand-sub { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-sub { color: rgba(255, 255, 255, .65); }

.nav-toggle { border: 1px solid var(--line); border-radius: 10px; padding: .45rem .55rem; color: var(--navy); }
.nav-toggle:focus { box-shadow: none; }
.nav-toggle .ico { width: 24px; height: 24px; }
.nav-toggle .when-open { display: none; }
.nav-toggle[aria-expanded="true"] .when-open { display: inline; }
.nav-toggle[aria-expanded="true"] .when-closed { display: none; }

.site-header .nav-link {
    position: relative;
    color: var(--navy); font-weight: 600; font-size: .95rem;
    padding: .55rem .8rem !important; border-radius: 8px;
    transition: color .15s, background-color .15s;
}
.site-header .nav-link:hover { color: var(--teal-600); background: var(--teal-50); }
.site-header .nav-link.active { color: var(--teal-600); }
@media (min-width: 1200px) {
    .site-header .nav-link.active::after {
        content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .15rem;
        height: 2px; border-radius: 2px; background: var(--teal);
    }
}
@media (max-width: 1199.98px) {
    .site-header .navbar-collapse { padding: .5rem 0 1rem; }
    .site-header .nav-link { padding: .7rem .75rem !important; }
    .site-header .nav-link.active { background: var(--teal-50); }
}

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .65rem 1.3rem; display: inline-flex; align-items: center; gap: .5rem; }
.btn-brand { background: var(--copper-deep); color: #fff; border: 1px solid var(--copper-deep); }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--copper-dark); border-color: var(--copper-dark); color: #fff; }
.btn-ghost { background: var(--card); color: var(--navy); border: 1px solid #D8C9BB; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--card); }
.btn-light-outline { color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.btn-light-outline:hover { background: var(--card); color: var(--navy); }
.btn .ico { transition: transform .2s; }
.btn:hover .ico-arrow, .link-arrow:hover .ico { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; text-decoration: none; }
.link-arrow .ico { transition: transform .2s; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-sand { background: var(--sand); }
.section-head { max-width: 720px; margin-bottom: 2.25rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--teal-600); margin-bottom: .6rem;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .75rem; }
.lead-muted { color: var(--muted); font-size: 1.08rem; }

/* Page hero for inner pages */
.page-hero {
    background:
        radial-gradient(1200px 300px at 85% -40%, rgba(183, 122, 80, .28), transparent 60%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
    padding: clamp(2.5rem, 6vw, 4.25rem) 0 clamp(2.25rem, 5vw, 3.5rem);
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .5rem; }
.page-hero p { color: rgba(255, 255, 255, .78); max-width: 680px; margin: 0; font-size: 1.06rem; }
.page-hero .eyebrow { color: #D9A77F; }
.crumbs { font-size: .85rem; margin-bottom: .9rem; color: rgba(255, 255, 255, .65); }
.crumbs a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Home hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 420px at 100% 0%, rgba(183, 122, 80, .14), transparent 60%),
        radial-gradient(700px 380px at 0% 100%, rgba(57, 36, 63, .08), transparent 60%),
        var(--sand);
    padding: clamp(3rem, 7vw, 6rem) 0;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1rem; }
.hero h1 .accent { color: var(--teal); }
.hero .role { font-weight: 600; color: var(--navy); margin-bottom: .25rem; }
.hero .org { color: var(--muted); margin-bottom: 1.5rem; }
.hero .intro { font-size: 1.1rem; color: #4A4247; max-width: 600px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-portrait { position: relative; max-width: 380px; margin-inline: auto; }
.hero-portrait::before {
    content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 28px;
    background: linear-gradient(135deg, var(--teal), var(--navy)); opacity: .9;
}
.hero-portrait img {
    position: relative; display: block; width: 100%; aspect-ratio: 1; object-fit: cover;
    border-radius: 28px; box-shadow: var(--shadow);
}
.hero-badge {
    position: absolute; left: -14px; bottom: 26px; z-index: 2;
    background: var(--card); border-radius: 14px; padding: .7rem .95rem; box-shadow: var(--shadow);
    display: flex; gap: .65rem; align-items: center; font-size: .85rem; line-height: 1.25;
}
.hero-badge .ico { width: 30px; height: 30px; color: var(--amber); }
.hero-badge strong { display: block; color: var(--navy); }
@media (max-width: 991.98px) {
    .hero-portrait { max-width: 300px; margin-top: 2.5rem; }
    .hero-badge { left: 0; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.stats-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1200px) { .stats-4 { grid-template-columns: repeat(4, 1fr); } }
.stats-6 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 576px) { .stats-6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .stats-6 { grid-template-columns: repeat(6, 1fr); } }
.stat {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.25rem 1.25rem 1.1rem; text-align: left;
}
.stat-value { font-family: var(--font-serif); font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat-label { font-size: .88rem; color: var(--muted); margin-top: .3rem; }
.stats-band { margin-top: -2.25rem; position: relative; z-index: 2; }
.stats-note { font-size: .8rem; color: var(--muted); margin-top: .75rem; }

/* ---------- Cards ---------- */
/* Equal-height cards only when a card is the sole child of a grid column;
   several cards stacked in one column must keep their natural height. */
.row > * > .card-x:only-child { height: 100%; }
.card-x {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card-x:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card-x h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card-x p { color: var(--muted); margin-bottom: 0; }
.card-icon {
    width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
    background: var(--teal-50); color: var(--teal); margin-bottom: 1rem;
}
.card-icon .ico { width: 26px; height: 26px; }
.card-x .card-foot { margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--line); font-size: .9rem; }

/* ---------- Publications ---------- */
.pub-list { list-style: none; padding: 0; margin: 0; counter-reset: pub; }
.pub {
    position: relative; padding: 1.15rem 0 1.15rem 3.1rem; border-bottom: 1px solid var(--line);
}
.pub::before {
    counter-increment: pub; content: counter(pub);
    position: absolute; left: 0; top: 1.2rem; width: 2.2rem; text-align: right;
    font-size: .82rem; font-weight: 600; color: #A8998C; font-variant-numeric: tabular-nums;
}
.pub-list.no-num .pub { padding-left: 0; }
.pub-list.no-num .pub::before { display: none; }
.pub-title { font-family: var(--font-serif); font-size: 1.08rem; font-weight: 600; line-height: 1.4; margin: 0 0 .3rem; color: var(--navy); }
.pub-title a { color: inherit; text-decoration: none; }
.pub-title a:hover { color: var(--teal-600); text-decoration: underline; }
.pub-authors { font-size: .92rem; color: #4A4247; margin-bottom: .2rem; }
.pub-authors strong { color: var(--ink); font-weight: 650; }
.pub-meta { font-size: .9rem; color: var(--muted); }
.pub-meta em { color: #4A4247; }
.pub-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.tag {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .74rem; font-weight: 600; padding: .18rem .55rem; border-radius: 999px;
    background: #F2ECE6; color: #4A4247; white-space: nowrap;
}
.tag-teal { background: var(--teal-50); color: var(--copper-dark); }
.tag-amber { background: var(--sand-beige); color: var(--charcoal); }
.tag-navy { background: #EDE4EE; color: var(--navy); }
.tag a { color: inherit; text-decoration: none; }
.tag a:hover { text-decoration: underline; }

.year-head {
    display: flex; align-items: center; gap: .75rem;
    font-family: var(--font-serif); font-size: 1.4rem; color: var(--navy);
    margin: 2.25rem 0 .25rem; padding-bottom: .4rem; border-bottom: 2px solid var(--navy);
}
.year-head .count { font-family: var(--font-sans); font-size: .8rem; font-weight: 600; color: var(--muted); }

.filter-bar {
    position: sticky; top: calc(var(--header-h) + 8px); z-index: 5;
    background: rgba(255, 252, 248, .96); backdrop-filter: blur(8px);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    padding: .9rem; display: grid; gap: .75rem;
    grid-template-columns: 1fr auto auto auto;
}
@media (max-width: 767.98px) {
    .filter-bar { position: static; grid-template-columns: 1fr 1fr; }
    .filter-bar .search { grid-column: 1 / -1; }
}
.filter-bar .form-control, .filter-bar .form-select { border-radius: 10px; border-color: var(--line); min-height: 44px; }
.filter-bar .form-control:focus, .filter-bar .form-select:focus,
.form-control:focus, .form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 .2rem rgba(183, 122, 80, .15); }
.search { position: relative; }
.search .ico { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .form-control { padding-left: 2.5rem; }

.type-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 .5rem; }
.type-tab {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem .95rem; border-radius: 999px; border: 1px solid var(--line);
    background: var(--card); color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none;
    transition: background-color .15s, border-color .15s, color .15s;
}
.type-tab:hover { border-color: var(--teal); color: var(--teal-600); }
.type-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.type-tab .n { font-size: .75rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; background: #F2ECE6; color: var(--muted); }
.type-tab.active .n { background: rgba(255, 255, 255, .18); color: #fff; }
.result-line { color: var(--muted); font-size: .92rem; margin: .5rem 0 0; }

.year-jump { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: 1rem; }
.year-jump a {
    font-size: .8rem; font-weight: 600; padding: .2rem .55rem; border-radius: 6px;
    background: #F2ECE6; color: var(--navy); text-decoration: none;
}
.year-jump a:hover { background: var(--copper-deep); color: #fff; }

.empty {
    text-align: center; padding: 3rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius);
    color: var(--muted); background: #FFFCF8;
}
.empty .ico { width: 40px; height: 40px; color: #B8A99C; margin-bottom: .5rem; }

/* ---------- Projects ---------- */
.nav-seg { display: inline-flex; gap: .25rem; padding: .3rem; background: #F2ECE6; border-radius: 999px; flex-wrap: wrap; }
.nav-seg .nav-link {
    border-radius: 999px; padding: .55rem 1.2rem; color: var(--navy); font-weight: 600; border: 0; background: transparent;
}
.nav-seg .nav-link.active { background: var(--card); color: var(--teal-600); box-shadow: var(--shadow-sm); }
.grant { display: flex; flex-direction: column; }
.grant h3 { font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.4; }
.grant dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; margin: 1rem 0 0; font-size: .9rem; }
.grant dt { color: var(--muted); font-weight: 500; }
.grant dd { margin: 0; color: var(--ink); font-weight: 500; }
.amount { font-family: var(--font-serif); font-weight: 700; font-size: 1.35rem; color: var(--teal-600); }
.table-clean { --bs-table-bg: transparent; }
.table-clean td.text-end, .table-clean td:nth-child(3) { white-space: nowrap; }
.table-clean thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.table-clean td, .table-clean th { padding: .85rem .75rem; border-color: var(--line); }

/* ---------- Profile / timeline ---------- */
.profile-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.profile-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.profile-card .body { padding: 1.4rem; }
.profile-card h2 { font-size: 1.35rem; margin-bottom: .25rem; }
.profile-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; font-size: .92rem; }
.profile-list li { display: flex; gap: .55rem; align-items: flex-start; word-break: break-word; }
.profile-list .ico { color: var(--teal); margin-top: .2rem; }
.profile-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.profile-links a {
    font-size: .8rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px;
    border: 1px solid var(--line); color: var(--navy); text-decoration: none;
}
.profile-links a:hover { border-color: var(--teal); color: var(--teal-600); }
@media (min-width: 992px) { .sticky-lg { position: sticky; top: calc(var(--header-h) + 20px); } }

.prose p { color: #4A4247; font-size: 1.04rem; }
.prose h2 { font-size: 1.5rem; margin: 2.25rem 0 1rem; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 1.35rem 2rem; }
.timeline li::before {
    content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--card); border: 3px solid var(--teal);
}
.timeline .when { font-size: .8rem; font-weight: 700; color: var(--teal-600); letter-spacing: .04em; text-transform: uppercase; }
.timeline .what { font-weight: 600; color: var(--navy); }
.timeline .where { color: var(--muted); font-size: .93rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .4rem .85rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .88rem; color: #4A4247; }

/* ---------- Team ---------- */
.member { text-align: left; overflow: hidden; padding: 0; }
.member img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: top; display: block; }
.member .body { padding: 1.2rem 1.3rem 1.4rem; }
.member h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.member .role { color: var(--teal-600); font-weight: 600; font-size: .9rem; }
.cta-card {
    background: linear-gradient(135deg, var(--navy), var(--plum)); color: #fff; border: 0;
    display: flex; flex-direction: column; justify-content: center;
}
.cta-card h3 { color: #fff; }
.cta-card p { color: rgba(255, 255, 255, .8); }

/* ---------- News ---------- */
.news-item { display: grid; grid-template-columns: 84px 1fr; gap: 1.25rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-date {
    background: var(--sand); border-radius: 12px; text-align: center; padding: .6rem .3rem;
    font-weight: 700; color: var(--navy); font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.1; align-self: start;
}
.news-date small { display: block; font-family: var(--font-sans); font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.news-item h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.news-item p { color: var(--muted); margin: 0; }
@media (max-width: 575.98px) { .news-item { grid-template-columns: 64px 1fr; gap: .9rem; } }

/* ---------- Forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow-sm); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.form-control, .form-select { border-radius: 10px; border-color: #DCCFC2; min-height: 46px; }
.form-text { color: var(--muted); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 12px; }
.contact-tile { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-tile:last-child { border-bottom: 0; }
.contact-tile .card-icon { margin: 0; }
.contact-tile a { word-break: break-word; }

/* ---------- CTA band ---------- */
.cta-band {
    background:
        radial-gradient(800px 300px at 90% 0%, rgba(183, 122, 80, .45), transparent 60%),
        var(--navy);
    color: #fff; border-radius: 24px; padding: clamp(2rem, 5vw, 3.5rem);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .78); }

/* ---------- Figure ---------- */
.figure-wide { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.figure-wide img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Footer ---------- */
.site-footer { background: var(--aubergine); color: rgba(255, 255, 255, .75); padding: 3.5rem 0 1.5rem; margin-top: 0; font-size: .93rem; }
.footer-blurb { margin-top: 1rem; max-width: 420px; }
.footer-h { font-family: var(--font-sans); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #D9A77F; margin-bottom: .9rem; }
.footer-links, .footer-contact, .footer-profiles { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-profiles li { margin-bottom: .4rem; }
.footer-profiles { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .55rem; word-break: break-word; }
.footer-contact .ico { margin-top: .2rem; color: #D9A77F; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
    margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem;
}

.to-top {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 1020;
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: var(--navy); color: #fff; box-shadow: var(--shadow);
    opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--teal); color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    .site-header, .site-footer, .to-top, .filter-bar, .type-tabs, .year-jump { display: none !important; }
    .page-hero { background: none; color: #000; padding: 0 0 1rem; }
    .page-hero h1, .page-hero p { color: #000; }
    .pub { break-inside: avoid; }
}
