/* ==========================================================================
   Condensed Matter Theory Group — The University of Sydney
   Single stylesheet for the redesigned site. It styles the EXISTING page
   markup (classes such as .section, .text-container, .profile-info ...),
   so page content does not have to be rewritten.
   Palette is taken from the group logo: violet and mint on ink / paper.
   ========================================================================== */

:root {
    --ink: #0d1020;
    --ink-2: #171b30;
    --text: #1d2130;
    --muted: #5d6478;
    --paper: #fbfaf7;
    --paper-2: #f3f1ec;
    --card: #ffffff;
    --line: #e4e1d9;
    --violet: #6d28d9;
    --violet-bright: #a970ff;
    --mint: #7df0a8;
    --mint-deep: #0f9d63;
    --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --wrap: 1160px;
    --read: 760px;
    --gutter: clamp(18px, 4vw, 40px);
    --radius: 10px;
    --header-h: 72px;
    --shadow: 0 1px 2px rgba(13, 16, 32, .05), 0 8px 24px rgba(13, 16, 32, .06);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

p { margin: 0 0 1em; }
sub, sup { line-height: 0; }

.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 200;
    background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { left: 8px; color: #fff; }

.eyebrow {
    font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--violet); margin: 0 0 14px;
}

/* --------------------------------------------------------------- header */

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.nav-container {
    max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
    height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 64px; width: auto; display: block; margin-left: -6px; }

.nav-menu, .dropdown-content { list-style: none; margin: 0; padding: 0; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a, .dropdown-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    font: 500 15px/1 var(--sans); color: var(--text);
    padding: 10px 14px; border: 0; background: none; border-radius: 8px;
    text-decoration: none; cursor: pointer;
}
.nav-menu > li > a:hover, .dropdown-toggle:hover,
.dropdown:focus-within > .dropdown-toggle { background: var(--paper-2); color: var(--ink); }
.nav-menu [aria-current="page"], .dropdown.is-current > .dropdown-toggle { color: var(--violet); }
.dropdown-toggle::after {
    content: ""; width: 6px; height: 6px; margin-top: -3px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); opacity: .6;
}
.dropdown-content {
    position: absolute; top: calc(100% + 6px); right: 0; min-width: 260px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .15s, transform .15s, visibility .15s;
}
.dropdown-content::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.dropdown:hover > .dropdown-content,
.dropdown:focus-within > .dropdown-content,
.dropdown.open > .dropdown-content { opacity: 1; visibility: visible; transform: none; }
.dropdown-content a {
    display: block; padding: 9px 12px; border-radius: 6px;
    color: var(--text); font-size: 15px; text-decoration: none;
}
.dropdown-content a:hover { background: var(--paper-2); color: var(--ink); }

.nav-toggle {
    display: none; width: 44px; height: 44px; padding: 12px 10px;
    border: 0; background: none; cursor: pointer; border-radius: 8px;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    #primary-nav {
        display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
        background: #fff; border-bottom: 1px solid var(--line);
        max-height: calc(100vh - var(--header-h)); overflow: auto;
        padding: 8px var(--gutter) 20px;
    }
    #primary-nav.open { display: block; }
    .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-menu > li > a, .dropdown-toggle { width: 100%; padding: 14px 4px; font-size: 16px; }
    .dropdown-toggle { justify-content: space-between; }
    .dropdown-content {
        position: static; opacity: 1; visibility: visible; transform: none;
        border: 0; box-shadow: none; padding: 0 0 8px 12px; min-width: 0; display: none;
    }
    .dropdown.open > .dropdown-content { display: block; }
}

/* ------------------------------------------------------------ page shell */

main { display: block; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 96px; }

.title-container, .profile-header { padding: clamp(40px, 7vw, 84px) 0 clamp(24px, 4vw, 44px); }
.title-container p { margin: 0; }
.page-title, .profile-header h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin: 0; }
.title-underline {
    width: 56px; height: 3px; margin: 22px 0 0; border: 0; border-radius: 2px;
    background: linear-gradient(90deg, var(--violet), var(--mint));
}

/* Legacy content column (news, visitors, gallery, software, tutorials) */
#content, .open-positions, .page-alumni main > ul, .page-alumni main > p { max-width: var(--read); }
#content > div { font-size: 1rem !important; }
#breadCrumb, #pageName { display: none; }
main ul { padding-left: 1.2em; }

/* --------------------------------------------------------------- buttons */

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font: 500 15px/1 var(--sans); text-decoration: none;
    padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--mint); color: var(--ink); }
.btn-primary:hover { background: #fff; color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }

.arrow-link { font-weight: 500; text-decoration: none; white-space: nowrap; }
.arrow-link::after { content: " →"; transition: margin .15s; }
.arrow-link:hover::after { margin-left: 4px; }

/* ------------------------------------------------------------------ home */

main.home { max-width: none; padding: 0; }

.hero {
    position: relative; color: #d9dbe8; overflow: hidden;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(109, 40, 217, .35), transparent 60%),
        radial-gradient(700px 420px at 10% 100%, rgba(125, 240, 168, .12), transparent 60%),
        var(--ink);
}
.hero::before { /* honeycomb lattice */
    content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='48.5' viewBox='0 0 84 48.5'%3E%3Cpath d='M0 24.25h14l14-24.25h28l14 24.25h14M14 24.25l14 24.25h28l14-24.25' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1'/%3E%3C/svg%3E");
    -webkit-mask-image: linear-gradient(100deg, transparent 5%, #000 70%);
    mask-image: linear-gradient(100deg, transparent 5%, #000 70%);
}
.hero-inner {
    position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto;
    padding: clamp(56px, 9vw, 120px) var(--gutter);
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(32px, 6vw, 80px); align-items: center;
}
.hero .eyebrow { color: var(--mint); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.2vw, 4.6rem); margin: 0 0 22px; font-weight: 400; }
.hero-lead { font-family: var(--serif); font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: #fff; margin: 0 0 6px; }
.hero-tagline { font-size: 1.05rem; color: #a9adc4; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

.hero-figure { margin: 0; }
#band-figure { position: relative; }
#band-figure::before { /* the group's handwritten equations (eq1.jpg), as chalk inside the plot frame.
                          Insets match the plot rectangle of the 520x400 SVG drawn by cmt.js (L=44, R=12, T=16, B=36). */
    content: ""; position: absolute; left: 8.46%; right: 2.31%; top: 4%; bottom: 9%; pointer-events: none;
    background: var(--ink) url("../images/eq1.jpg") center / cover no-repeat;
    filter: grayscale(1) invert(1) contrast(2.2) brightness(1.1);
    mix-blend-mode: screen; opacity: .38;
}
#band-figure svg { position: relative; display: block; width: 100%; height: auto; overflow: visible; }
.hero-figure figcaption { font-size: 12.5px; color: #8b90aa; margin-top: 14px; line-height: 1.5; }
.hero-figure .math { font-family: var(--serif); font-size: 15px; color: #c4c7da; white-space: nowrap; }
.band-axis { stroke: rgba(255, 255, 255, .22); stroke-width: 1; fill: none; }
.band-fermi { stroke: rgba(255, 255, 255, .3); stroke-width: 1; stroke-dasharray: 3 5; }
.band-label { fill: #a9adc4; font: 500 13px var(--sans); }
.band-label.serif { font: italic 15px var(--serif); }
.band-line { fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.band-line.v { stroke: var(--violet-bright); }
.band-line.c { stroke: var(--mint); }
.band-dirac { fill: #fff; }
.band-bz { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .3); stroke-width: 1; }
.band-bz-path { fill: none; stroke: var(--mint); stroke-width: 1.5; }
@media (prefers-reduced-motion: no-preference) {
    .band-line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 2.2s cubic-bezier(.6, 0, .2, 1) .2s forwards; }
    .band-dirac { opacity: 0; animation: fade .6s 2.2s forwards; }
    @keyframes draw { to { stroke-dashoffset: 0; } }
    @keyframes fade { to { opacity: 1; } }
}

.intro-section { border-bottom: 1px solid var(--line); background: #fff; }
.intro-inner {
    max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(20px, 5vw, 64px);
}
.intro-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.intro-inner p { font-family: var(--serif); font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.55; color: var(--text); margin: 0; }

.themes, .quick-links { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); }
.section-head h2, .group-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: 0 0 36px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.theme-card {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.theme-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d3cfe6; color: inherit; }
.theme-img { display: block; position: relative; aspect-ratio: 16 / 10; background: #fff; border-bottom: 1px solid var(--line); }
.theme-img img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; }
.theme-num { font: 600 12px var(--sans); letter-spacing: .14em; color: var(--violet); padding: 22px 24px 0; }
.theme-card h3 { font-size: 1.3rem; line-height: 1.25; margin: 8px 24px 10px; }
.theme-card p { font-size: 15px; color: var(--muted); margin: 0 24px 26px; line-height: 1.6; }

.group-band { background: var(--paper-2); border-block: 1px solid var(--line); }
.group-band-inner {
    max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter);
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center;
}
.group-band figure { margin: 0; }
.group-band img { display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.group-band h2 { margin-bottom: 16px; }
.group-band p { color: var(--muted); }
.link-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; }

.quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.quick { display: block; padding: 6px 24px 6px 0; margin-right: 24px; border-right: 1px solid var(--line); text-decoration: none; color: inherit; }
.quick:last-child { border-right: 0; margin-right: 0; }
.quick h3 { font-size: 1.25rem; margin: 0 0 6px; }
.quick h3::after { content: " →"; color: var(--violet); transition: margin .15s; }
.quick:hover h3::after { margin-left: 4px; }
.quick p { font-size: 15px; color: var(--muted); margin: 0; }

@media (max-width: 900px) {
    .hero-inner, .intro-inner, .group-band-inner { grid-template-columns: minmax(0, 1fr); }
    .theme-grid { grid-template-columns: minmax(0, 1fr); }
    .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
    .quick:nth-child(2n) { border-right: 0; margin-right: 0; }
}
@media (max-width: 520px) {
    .quick-links { grid-template-columns: minmax(0, 1fr); }
    .quick { border-right: 0; margin-right: 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
}

/* -------------------------------------------------------------- research */

.page-research .section {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(24px, 5vw, 64px); align-items: center;
    padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line);
}
.page-research .section.alt > [class^="image-container"] { order: 2; }
.page-research [class^="image-container"] {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.page-research [class^="image-container"] img { display: block; width: 100%; }
.page-research .text-container h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 16px; }
.page-research .text-container p { color: #3a4052; margin: 0; }
@media (max-width: 800px) {
    .page-research .section { grid-template-columns: minmax(0, 1fr); }
    .page-research .section.alt > [class^="image-container"] { order: 0; }
}

/* ---------------------------------------------------------- people grids */

.people-grid main { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 24px; align-items: start; }
.people-grid main > :not(.section) { grid-column: 1 / -1; }
.group-pic-container { margin: 0 0 16px !important; }
.group-pic-container img { width: 100%; max-width: 880px !important; margin: 0 auto; border-radius: var(--radius) !important; box-shadow: var(--shadow); display: block !important; }

.people-grid .section {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; height: 100%; transition: box-shadow .2s, transform .2s;
}
.people-grid .section:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.people-grid [class^="pics-container"] { aspect-ratio: 1 / 1; background: var(--paper-2); overflow: hidden; }
.people-grid [class^="pics-container"] img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.people-grid .text-container { padding: 18px 20px 20px; }
.people-grid .text-container h2 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 8px; }
.people-grid .text-container h2 a { color: inherit; text-decoration: none; }
.people-grid .text-container h2 a[href] { background: linear-gradient(var(--violet), var(--violet)) 0 100% / 0 1px no-repeat; transition: background-size .2s; }
.people-grid .text-container h2 a[href]:hover { background-size: 100% 1px; color: var(--violet); }
.people-grid .text-container p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.people-grid .text-container p:empty { display: none; }

/* group leader: alone on the first row, large */
.people-grid .section:has(.pics-container-team1) { grid-column: 1 / -1; }
.people-grid .section:has(.pics-container-team1) h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); margin-bottom: 14px; }
.people-grid .section:has(.pics-container-team1) .text-container p { font-size: 15px; }
@media (min-width: 720px) {
    .people-grid .section:has(.pics-container-team1) { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
    .people-grid .section:has(.pics-container-team1) .text-container { align-self: center; padding: clamp(28px, 5vw, 64px); }
    .people-grid .pics-container-team1 { aspect-ratio: 1 / 1; }
}

/* -------------------------------------------------------- member profile */

main.profile { max-width: 860px; }
.profile .container { width: auto; margin: 0; overflow: visible; }
.profile-header { padding-bottom: 28px; }
.profile-header::after {
    content: ""; display: block; width: 56px; height: 3px; margin-top: 22px; border-radius: 2px;
    background: linear-gradient(90deg, var(--violet), var(--mint));
}
.profile-pic {
    float: right; width: clamp(140px, 26vw, 230px); aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 22%;
    border-radius: 50%; margin: 0 0 20px 32px; box-shadow: var(--shadow); shape-outside: circle();
}
.profile-info, .publications, .images-section { margin: 0 0 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.profile .container > .profile-info:first-child { border-top: 0; padding-top: 0; }
.profile-info h2, .publications h3, .images-section h3, .profile-info h3 {
    font: 600 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--violet); margin: 0 0 14px;
}
.profile-info h3 { margin-top: 26px; }
.profile-info p { margin-bottom: .9em; }
.profile-info > div > a { display: inline-block; padding: 3px 0; font-weight: 500; }
.publications:not(:has(li)), .images-section:not(:has(img)) { display: none; }
.publications ul { list-style: none; padding: 0; margin: 0; }
.publication-item { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; margin: 0; }
.publication-item:last-child { border-bottom: 0; }
.images-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; clear: both; }
.images-section h3 { grid-column: 1 / -1; margin-bottom: 0; }
.image-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; margin: 0; }
.image-item img { display: block; width: 100%; }
@media (max-width: 560px) { .profile-pic { float: none; display: block; margin: 0 0 20px; } }

/* -------------------------------------------- news / visitors / gallery */

.page-news #content p {
    position: relative; margin: 0; padding: 0 0 26px 26px; border-left: 1px solid var(--line);
    text-align: left; font-size: 15.5px; line-height: 1.6;
}
.page-news #content p::before {
    content: ""; position: absolute; left: -4.5px; top: 8px; width: 8px; height: 8px; border-radius: 50%;
    background: var(--paper); border: 1.5px solid var(--violet);
}
.page-news #content p > b:first-child {
    font: 600 13px var(--sans); letter-spacing: .06em; color: var(--violet);
}

.page-visitors #content, .page-group-pictures #content { max-width: 900px; }
.page-visitors #content p, .page-group-pictures #content p { margin: 0 0 14px; }
.page-visitors #content em { font-family: var(--serif); font-size: 1.15rem; font-style: normal; color: var(--ink); }
#content img { border-radius: 8px; display: block; }
.page-visitors #content p:has(> img) { margin-bottom: 44px; }

/* tables that only hold pictures become a responsive row */
main table:has(img), main table:has(img) tbody { display: block; border: 0; width: auto; }
main table:has(img) tr { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }
main table:has(img) td { flex: 1 1 260px; padding: 0; border: 0; }
main table:has(img) td img { width: 100%; height: 100%; object-fit: cover; }
main table:has(img) { margin: 0 0 44px; }
.iconn-grid, .photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 44px; }
.iconn-grid img, .photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.group-photo { width: 100%; }
/* captioned photo set: every photo is cropped to the same 4:3 frame.
   First photo (the group) centred on its own row, the others in a 2x2 grid below. */
.photo-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 44px; }
.photo-set figure { margin: 0; }
.photo-set figure:first-child { grid-column: 1 / -1; width: calc(50% - 8px); justify-self: center; }
.photo-set img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-set img.portrait { object-position: 50% 12%; }
.photo-set figcaption { font-size: 13.5px; color: var(--muted); padding: 8px 2px 0; }
.photo-set figure:first-child figcaption { text-align: center; }
@media (max-width: 480px) {
    .photo-set { grid-template-columns: minmax(0, 1fr); }
    .photo-set figure:first-child { width: 100%; }
}

/* --------------------------------------------- data tables (software ...) */

.page-software #content, .page-tutorials #content { max-width: none; }
main table:not(:has(img)) {
    width: 100%; border: 0; border-collapse: collapse; background: #fff;
    border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); font-size: 15px;
}
main table:not(:has(img)) td, main table:not(:has(img)) th {
    border: 0; border-bottom: 1px solid var(--line); padding: 14px 18px; vertical-align: top; text-align: left;
}
main table:not(:has(img)) td > div { text-align: left !important; }
main table:not(:has(img)) tr:last-child td { border-bottom: 0; }
main table:not(:has(img)) td:first-child { font-weight: 600; width: 24%; }
main table:not(:has(img)) td:nth-child(2) { color: var(--muted); width: 22%; }
main table:not(:has(img)) tr:hover td { background: #faf9fd; }
@media (max-width: 640px) {
    main table:not(:has(img)), main table:not(:has(img)) tbody, main table:not(:has(img)) tr, main table:not(:has(img)) td { display: block; width: auto !important; }
    main table:not(:has(img)) td { border-bottom: 0; padding: 4px 16px; }
    main table:not(:has(img)) tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ----------------------------------------------- alumni / opportunities */

.page-alumni main > p { font: 600 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--violet); margin: 36px 0 14px; text-align: left; }
.page-alumni main > ul { columns: 2 240px; column-gap: 40px; list-style: none; padding: 0; margin: 0; }
.page-alumni main > ul li { padding: 9px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }

.open-positions h2 { font: 600 12px var(--sans); letter-spacing: .16em; color: var(--violet); margin: 0 0 8px; }
.open-positions h3 { font-size: 1.6rem; margin: 32px 0 12px; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: #a9adc4; font-size: 14.5px; }
.footer-content {
    max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter);
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px;
}
.footer-brand { display: flex; gap: 22px; align-items: flex-start; }
.footer-brand img { width: 96px; height: auto; flex: none; background: #fff; border-radius: 10px; padding: 8px; }
.footer-brand p { margin: 0; line-height: 1.7; }
.footer-col h2 { font: 600 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 8px; }
.site-footer a { color: #d9dbe8; text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
@media (max-width: 760px) { .footer-content { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
    .reveal.in { opacity: 1; transform: none; }
}

@media print {
    .site-header, .site-footer, .hero-actions { display: none; }
    body { background: #fff; }
}
