@import url("https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap");

:root {
    --banner-bg: #f4d6d8;
    --banner-text: #7a1f2b;
    --body-text: #1d1d1f;
    --heading: #111;
    --link: #1a73e8;
    --rule: #e6e6e6;
    --table-stripe: #fafafa;
    --table-header: #f1d7d9;
    --table-border: #e0d2d3;
    --soft-bg: #fbfbfb;
    --excursion-bg: #f0e6d8;
    --excursion-text: #6a4a1f;
    --lean-bg: #e8eef4;
    --lean-text: #2d4b6e;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--body-text);
    background: #fff;
    line-height: 1.55;
    font-size: 17px;
}

/* Banner */
.banner {
    background: var(--banner-bg);
    color: var(--banner-text);
    padding: 28px 0 110px 0;
}

.banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

nav.top-nav {
    display: flex;
    justify-content: flex-end;
    gap: 28px;
    margin-bottom: 100px;
}

nav.top-nav a {
    color: var(--banner-text);
    text-decoration: none;
    font-size: 1.05rem;
}

nav.top-nav a:hover,
nav.top-nav a.is-active {
    text-decoration: underline;
}

h1.site-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.125;
    margin: 0 0 0.5rem 0;
    color: var(--banner-text);
}

p.site-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.25;
    margin: 0;
    color: var(--banner-text);
}

/* Burger (mobile nav toggle) */
.nav-toggle {
    display: none;
}

.burger {
    display: none;
    cursor: pointer;
    width: 3.25rem;
    height: 3.25rem;
    position: relative;
}

.burger span {
    position: absolute;
    left: calc(50% - 8px);
    width: 16px;
    height: 1px;
    background: var(--banner-text);
    transition: transform 0.2s, opacity 0.2s, top 0.2s;
}

.burger span:nth-child(1) { top: calc(50% - 6px); }
.burger span:nth-child(2) { top: calc(50% - 1px); }
.burger span:nth-child(3) { top: calc(50% + 4px); }

.nav-toggle:checked ~ .burger span:nth-child(1) {
    top: calc(50% - 1px);
    transform: rotate(45deg);
}
.nav-toggle:checked ~ .burger span:nth-child(2) {
    opacity: 0;
}
.nav-toggle:checked ~ .burger span:nth-child(3) {
    top: calc(50% - 1px);
    transform: rotate(-45deg);
}

/* Main content */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 32px 80px 32px;
}

main p {
    margin: 0 0 1em 0;
}

main h2 {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--heading);
    margin: 2.2em 0 0.8em 0;
}

main h2:first-child {
    margin-top: 0;
}

main h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--heading);
    margin: 1.8em 0 0.6em 0;
}

main h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading);
    margin: 1.4em 0 0.4em 0;
}

main ul {
    padding-left: 1.4em;
}

main ul li {
    margin: 0.25em 0;
}

main table {
    border-collapse: collapse;
    margin: 0.5em 0 1.5em 0;
    width: 100%;
}

main table td,
main table th {
    border: 0;
    border-bottom: 1px solid #dbdbdb;
    padding: 0.5em 0.75em;
    vertical-align: top;
    text-align: left;
}

main table th {
    color: #363636;
    font-weight: 600;
}

main table thead td,
main table thead th {
    border-width: 0 0 2px;
    color: #363636;
}

main table tfoot td,
main table tfoot th {
    border-width: 2px 0 0;
    color: #363636;
}

/* Program table opts out of the generic .content table borders */
main table.program {
    width: auto;
}
main table.program td,
main table.program th {
    border: 1px solid var(--table-border);
}

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

abbr {
    text-decoration: none;
}

abbr[title] {
    cursor: help;
    border-bottom: 1px dotted #999;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* School 2026 — Clervaux image */
figure.location {
    margin: 1.6em 0 0 0;
}

figure.location img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

figure.location figcaption {
    font-size: 0.92rem;
    color: #666;
    margin-top: 0.6em;
    font-style: italic;
}

/* School 2026 — Program table */
.program-wrap {
    overflow-x: auto;
    margin-top: 1em;
}

table.program {
    border-collapse: collapse;
    width: 100%;
    min-width: 800px;
    font-size: 0.95rem;
}

table.program th,
table.program td {
    border: 1px solid var(--table-border);
    padding: 8px 10px;
    text-align: center;
    vertical-align: middle;
}

table.program thead th {
    background: var(--table-header);
    color: var(--banner-text);
    font-weight: 600;
    white-space: nowrap;
}

table.program th.time-col {
    background: var(--soft-bg);
    font-weight: 500;
    white-space: nowrap;
    color: #555;
}

table.program td.meal,
table.program td.break {
    background: var(--soft-bg);
    color: #777;
    font-style: italic;
}

table.program td.excursion {
    background: var(--excursion-bg);
    color: var(--excursion-text);
    font-weight: 500;
}

table.program td.lean {
    background: var(--lean-bg);
    color: var(--lean-text);
}

table.program td.welcome {
    background: var(--table-header);
    color: var(--banner-text);
    font-weight: 500;
}

table.program a {
    color: inherit;
    text-decoration: none;
}

table.program a:hover {
    text-decoration: underline;
}

/* School 2026 — Legend */
.legend {
    margin-top: 14px;
    font-size: 0.88rem;
    color: #555;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend .swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid var(--table-border);
    vertical-align: middle;
}

.legend .swatch-grace { background: var(--table-header); }
.legend .swatch-lean { background: var(--lean-bg); }
.legend .swatch-excursion { background: var(--excursion-bg); }
.legend .swatch-soft { background: var(--soft-bg); }

/* School 2026 — Abstracts link callout */
.abstracts-link {
    margin-top: 1em;
    padding: 14px 18px;
    background: var(--soft-bg);
    border-left: 3px solid var(--banner-text);
    font-size: 1rem;
}

/* School 2026 abstracts */
main > p.intro {
    margin: 0 0 1.5em 0;
    color: #444;
}

main h2.with-rule,
.abstracts-page main h2 {
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.3em;
}

.talk {
    margin: 1.6em 0 1.8em 0;
}

.talk h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.2em 0;
    color: var(--heading);
}

.talk .title {
    font-style: italic;
    color: #333;
    margin: 0 0 0.6em 0;
}

.talk .title.tba {
    color: #999;
}

.talk .abstract {
    margin: 0 0 0.6em 0;
    color: var(--body-text);
}

.talk .abstract.tba {
    color: #999;
    font-style: italic;
}

.talk .affiliation {
    color: #888;
    font-weight: 400;
}

.back-link {
    margin-top: 2.5em;
    padding-top: 1.2em;
    border-top: 1px solid var(--rule);
}

/* Mobile */
@media (max-width: 720px) {
    .banner {
        padding: 20px 0 60px 0;
    }
    .banner-inner {
        padding: 0 20px;
        position: relative;
    }
    .burger {
        display: block;
        position: absolute;
        top: 0;
        right: 8px;
    }
    nav.top-nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin: 4rem 0 2.5rem 0;
    }
    .nav-toggle:checked ~ nav.top-nav {
        display: flex;
    }
    nav.top-nav a {
        font-size: 1rem;
    }
    h1.site-title {
        font-size: 1.75rem;
    }
    p.site-subtitle {
        font-size: 1.15rem;
    }
    main {
        padding: 32px 20px 60px 20px;
    }
}
