:root {
    --color-background: #f5f3ee;
    --color-surface: #ffffff;
    --color-text: #192f4f;
    --color-muted: #486c78;
    --color-primary: #235b85;
    --color-accent: #308db6;
    --color-green: #445d4b;
    --color-warm: #bb9e76;
    --color-border: #b7c2c8;
    --color-teal: #1e515e;
    --color-teal-dark: #1a414b;
    --color-deep-navy: #10344c;
    --color-header-navy: #123348;
    --color-header-blue: #19405d;
    --color-header-teal: #1e515e;
    --content-width: 1180px;
    --reading-width: 760px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    margin: 0;
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--color-primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--color-text);
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

.container {
    width: min(calc(100% - 3rem), var(--content-width));
    margin-inline: auto;
}

.site-header {
    background-color: var(--color-background);
    background-image: linear-gradient( 115deg, #f5f3ee 0%, #edf2f1 55%, #e3ecec 100% );
    border-bottom: 2px solid rgba(30, 81, 94, 0.40);
}

.site-header-inner {
    padding-top: 1.75rem;
    padding-bottom: 1.15rem;
}

.site-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.site-title {
    color: var(--color-deep-navy);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: color 0.18s ease;
}

.site-title:hover {
    color: var(--color-teal);
}

.site-subtitle {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.site-navigation {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(30, 81, 94, 0.24);
}

.navigation-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem 1.3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navigation-item a {
    display: inline-block;
    padding-bottom: 0.15rem;
    border-bottom: 2px solid transparent;
    color: var(--color-muted);
    font-size: 0.88rem;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.navigation-item a:hover {
    color: var(--color-teal);
    border-bottom-color: rgba(30, 81, 94, 0.35);
}

.navigation-item a[aria-current="page"] {
    border-bottom-color: var(--color-teal);
    color: var(--color-deep-navy);
    font-weight: 600;
}

.site-header .site-title:focus-visible,
.site-header .navigation-item a:focus-visible {
    outline: 2px solid var(--color-teal);
    outline-offset: 4px;
}

.site-header .navigation-item:not(:last-child)::after {
    color: var(--color-muted);
}

.site-main {
    min-height: 65vh;
    padding-top: 5rem;
    padding-bottom: 6rem;
}

.page {
    max-width: var(--reading-width);
}

.page-header {
    position: relative;
    margin-bottom: 3rem;
}

.home-about {
    --home-teal: var(--color-teal);
    --home-teal-dark: var(--color-teal-dark);
    --home-navy: var(--color-deep-navy);
    --home-border: rgba(26, 65, 75, 0.22);
    width: 100%;
    max-width: 1120px;
    margin: 3.25rem auto 3rem;
    padding-left: 3.75rem;
}

.home-about-card {
    position: relative;
    isolation: isolate;
    overflow: visible;
    width: 100%;
    min-width: 0;
    padding: 2.65rem 3rem 2.7rem clamp(12.5rem, 23vw, 17rem);
    background: var(--color-surface);
    border: 1px solid var(--home-border);
    border-left: 5px solid var(--home-teal);
    border-bottom: 5px solid var(--home-teal);
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(18, 51, 72, 0.065), 0 2px 8px rgba(18, 51, 72, 0.035);
}

.home-profile,
.home-profile-content {
    min-width: 0;
}

.home-profile-photo {
    position: absolute;
    z-index: 1;
    top: -3.2rem;
    left: -3.65rem;
    width: clamp(190px, 24vw, 238px);
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 7px;
    border: 3px solid var(--home-teal);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 11px 30px rgba(18, 51, 72, 0.18);
}

.home-profile-photo::before {
    position: absolute;
    z-index: -1;
    content: "";
    inset: -12px;
    border: 2px solid rgba(30, 81, 94, 0.34);
    border-radius: 50%;
    pointer-events: none;
}

.home-profile-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 32%;
    background: #e8eff0;
}

.home-about-heading {
    margin: 0 0 1.5rem;
    color: var(--home-navy);
    font-size: clamp(1.65rem, 2.4vw, 2.05rem);
    font-weight: 650;
    line-height: 1.24;
    letter-spacing: -0.025em;
}

.home-about-heading::after {
    display: block;
    content: "";
    width: 56px;
    height: 3px;
    margin-top: 0.75rem;
    border-radius: 4px;
    background: var(--home-teal);
}

.home-about-text {
    max-width: 690px;
    color: var(--home-navy);
    font-size: 0.97rem;
    line-height: 1.76;
}

.home-about-text p {
    margin: 0 0 1.15rem;
}

.home-about-text p:last-child {
    margin-bottom: 0;
}

.home-about-text a {
    color: var(--color-primary);
    text-underline-offset: 0.16em;
}

.home-about-text a:hover,
.home-about-text a:focus-visible {
    color: var(--home-teal-dark);
}

.home-about .home-profiles {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem 0.75rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(26, 65, 75, 0.16);
}

.home-about .home-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    min-height: 2.15rem;
    padding: 0.3rem 0.58rem;
    border: 1px solid rgba(50, 88, 107, 0.28);
    border-radius: 4px;
    background-color: rgba(50, 88, 107, 0.035);
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.home-about .home-profile-link:hover {
    border-color: var(--home-teal);
    background-color: rgba(30, 81, 94, 0.075);
    color: var(--home-teal);
    transform: translateY(-1px);
}

.home-about .home-profile-link:focus-visible {
    outline: 2px solid var(--home-teal);
    outline-offset: 2px;
}

.home-about .home-profile-icon,
.home-about .home-profile-icon-mask {
    display: block;
    flex: 0 0 auto;
    width: 0.95rem;
    height: 0.95rem;
}

.home-about .home-profile-icon {
    fill: currentColor;
}

.home-about .home-profile-icon-mask {
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.home-about .home-profile-icon-github {
    -webkit-mask-image: url("../icons/github.svg");
    mask-image: url("../icons/github.svg");
}

.home-about .home-profile-icon-orcid {
    -webkit-mask-image: url("../icons/orcid.svg");
    mask-image: url("../icons/orcid.svg");
}

.home-about .home-profile-icon-mastodon {
    -webkit-mask-image: url("../icons/mastodon.svg");
    mask-image: url("../icons/mastodon.svg");
}

.home-about .home-profile-label {
    line-height: 1;
}

.home-about .home-cv-status {
    flex-basis: 100%;
    color: var(--color-muted);
    font-size: 0.72rem;
    line-height: 1.4;
}

.cv {
    width: 100%;
}

.cv-section + .cv-section {
    margin-top: 4rem;
}

.cv-section-title,
.thesis-supervisions-title {
    margin: 0 0 1.5rem;
    color: var(--color-text);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.cv-subsection {
    margin-top: 2.75rem;
}

.cv-subsection-title {
    margin: 0 0 1.25rem;
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cv-entry,
.event-item,
.service-entry {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.4rem;
    border: 1px solid rgba(50, 88, 107, 0.3);
    border-radius: 7px;
    background-color: var(--color-surface);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cv-entry + .cv-entry {
    margin-top: 1rem;
}

.cv-entry:hover {
    border-color: rgba(50, 88, 107, 0.44);
    box-shadow: 0 5px 17px rgba(18, 51, 72, 0.055);
}

.cv-entry:focus-within {
    border-color: rgba(50, 88, 107, 0.58);
}

.cv-entry-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    color: var(--color-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.cv-entry-date-detail {
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.45;
}

.cv-entry-date-main,
.cv-entry-date-range {
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
}

.cv-entry-date-separator {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.35;
}

.cv-entry-title {
    margin: 0;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.006em;
}

.cv-entry-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.18s ease;
}

.cv-entry-title a:hover {
    color: var(--color-primary);
}

.cv-entry-title a:focus-visible {
    color: var(--color-primary);
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.cv-entry-meta {
    margin: 0.25rem 0 0;
    color: var(--color-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.cv-entry-meta em {
    color: var(--color-muted);
}

.cv-entry-thesis {
    max-width: 650px;
    margin: 0.6rem 0 0;
    color: var(--color-text);
    font-size: 0.86rem;
    line-height: 1.62;
}

.cv-entry-thesis-label {
    color: var(--color-muted);
    font-weight: 500;
}

.cv-entry-thesis a {
    color: var(--color-primary);
}

.publications-intro {
    margin: 0 0 2rem;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.pub-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2.5rem;
}

.pub-toolbar input,
.pub-toolbar select,
.pub-toolbar button,
.events-toolbar input,
.events-toolbar select,
.events-toolbar button,
.talks-toolbar input,
.talks-toolbar select,
.talks-toolbar button,
.teaching-toolbar input,
.teaching-toolbar select,
.teaching-toolbar button,
.thesis-toolbar input,
.thesis-toolbar select,
.thesis-toolbar button,
.projects-toolbar input,
.projects-toolbar select,
.projects-toolbar button {
    min-height: 2.5rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--color-border);
    background-color: var(--color-background);
    color: var(--color-text);
    font: inherit;
    font-size: 0.85rem;
}

.pub-toolbar input[type="search"],
.events-toolbar input[type="search"],
.talks-toolbar input[type="search"],
.teaching-toolbar input[type="search"],
.thesis-toolbar input[type="search"],
.projects-toolbar input[type="search"] {
    flex: 1 1 220px;
    min-width: 180px;
}

.pub-toolbar select,
.events-toolbar select,
.talks-toolbar select,
.teaching-toolbar select,
.thesis-toolbar select,
.projects-toolbar select {
    cursor: pointer;
}

.pub-toolbar button,
.events-toolbar button,
.talks-toolbar button,
.teaching-toolbar button,
.thesis-toolbar button,
.projects-toolbar button {
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.pub-toolbar button:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pub-toolbar input:focus,
.pub-toolbar select:focus,
.pub-toolbar button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.pub-status {
    min-height: 1.3rem;
    margin: 0;
    color: var(--color-muted);
    font-size: 0.8rem;
}

.pub-section {
    margin-top: 3.5rem;
}

.pub-section-title,
.services-section-title,
.talks-section-title {
    margin: 0 0 1.25rem;
    color: var(--color-text);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.pub-list {
    display: grid;
    gap: 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pub-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    min-width: 0;
    padding: 1rem 1.1rem 0.8rem 1.3rem;
    border: 1px solid rgba(50, 88, 107, 0.34);
    border-radius: 7px;
    background-color: var(--color-surface);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.pub-item:hover {
    border-color: rgba(35, 91, 133, 0.58);
    box-shadow: 0 5px 17px rgba(18, 51, 72, 0.055);
}

.pub-item:focus-within {
    border-color: var(--color-primary);
}

.pub-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
}

.pub-content,
.event-item-content,
.talk-content,
.cv-entry-content,
.service-entry-content,
.project-content,
.event-series-edition-content,
.project-meta-item {
    min-width: 0;
}

.pub-title-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
}

.pub-title {
    display: inline;
    margin: 0;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.006em;
}

.pub-editors {
    color: var(--color-muted);
    font-weight: 400;
}

.pub-meta {
    display: block;
    margin-top: 0.25rem;
    color: var(--color-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.pub-meta em {
    color: var(--color-text);
}

.pub-link,
.pub-resource-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 3.5rem;
    min-height: 1.75rem;
    margin: 0;
    padding: 0.28rem 0.5rem;
    border: 1px solid rgba(35, 91, 133, 0.42);
    border-radius: 4px;
    background-color: rgba(35, 91, 133, 0.05);
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.pub-link:hover,
.pub-resource-button:hover {
    border-color: var(--color-primary);
    background-color: rgba(35, 91, 133, 0.09);
    color: var(--color-text);
    text-decoration: none;
    transform: translateY(-1px);
}

.pub-link:focus-visible,
.pub-resource-button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.pub-publication-status,
.talk-status,
.project-status {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pub-publication-status-upcoming {
    border: 1px solid rgba(187, 158, 118, 0.68);
    background-color: rgba(187, 158, 118, 0.1);
    color: #795f3d;
}

.pub-publication-status-in-preparation {
    border: 1px solid rgba(84, 146, 145, 0.55);
    background-color: rgba(84, 146, 145, 0.09);
    color: #315f5e;
}

.pub-publication-status-forthcoming {
    border: 1px solid rgba(35, 91, 133, 0.46);
    background-color: rgba(35, 91, 133, 0.07);
    color: var(--color-primary);
}

.pub-empty {
    margin-top: 2rem;
    color: var(--color-muted);
}

.events {
    width: 100%;
    --events-color-1: #17525b;
    --events-color-2: #19405d;
    --events-color-3: #32586b;
    --events-color-4: #123348;
}

.events-toolbar,
.talks-toolbar,
.teaching-toolbar,
.thesis-toolbar,
.projects-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.7rem;
}

.events-toolbar button:hover {
    border-color: var(--events-color-1);
    color: var(--events-color-1);
}

.events-toolbar input:focus,
.events-toolbar select:focus,
.events-toolbar button:focus-visible {
    outline: 2px solid var(--events-color-1);
    outline-offset: 2px;
}

.events-filter-status {
    min-height: 1.3rem;
    margin: 0 0 1.5rem;
    color: var(--color-muted);
    font-size: 0.8rem;
}

.events-list {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.event-item:hover {
    border-color: rgba(23, 82, 91, 0.58);
    box-shadow: 0 5px 17px rgba(18, 51, 72, 0.055);
}

.event-item:focus-within {
    border-color: var(--events-color-1);
}

.event-item-date {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    color: var(--events-color-3);
    font-size: 0.8rem;
    line-height: 1.45;
}

.event-item-date strong {
    color: var(--events-color-4);
    font-size: 0.92rem;
    font-weight: 600;
}

.event-item-type {
    margin: 0 0 0.25rem;
    color: var(--events-color-1);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-item-title {
    margin: 0;
    color: var(--events-color-4);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.008em;
}

.event-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

.event-item-title a:hover {
    color: var(--events-color-1);
}

.event-item-title a:focus-visible {
    color: var(--events-color-1);
    outline: 2px solid var(--events-color-1);
    outline-offset: 3px;
}

.event-item-location {
    margin: 0.3rem 0 0;
    color: var(--events-color-3);
    font-size: 0.86rem;
    line-height: 1.5;
}

.event-item-description {
    max-width: 650px;
    margin: 0.7rem 0 0;
    color: var(--color-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.event-roles {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 650px;
    margin-top: 0.7rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--events-color-1);
}

.event-role {
    margin: 0;
    color: var(--events-color-4);
    font-size: 0.84rem;
    line-height: 1.5;
}

.event-role-name {
    color: var(--events-color-1);
    font-weight: 600;
}

.event-role-detail {
    color: var(--color-muted);
    font-weight: 400;
}

.event-item-links,
.event-series-edition-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.55rem 0 0;
}

.event-resource-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    padding: 0.28rem 0.55rem;
    border: 1px solid rgba(50, 88, 107, 0.42);
    border-radius: 4px;
    background-color: rgba(50, 88, 107, 0.045);
    color: var(--events-color-1);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.event-resource-button:hover {
    border-color: var(--events-color-1);
    background-color: rgba(23, 82, 91, 0.08);
    color: var(--events-color-4);
    text-decoration: none;
    transform: translateY(-1px);
}

.event-resource-button:focus-visible {
    outline: 2px solid var(--events-color-1);
    outline-offset: 2px;
}

.event-item-series {
    padding-bottom: 1.5rem;
}

.event-series-editions {
    position: relative;
    max-width: 650px;
    margin-top: 1.4rem;
    padding-left: 1.25rem;
}

.event-series-editions::before {
    content: "";
    position: absolute;
    top: 0.45rem;
    bottom: 0.45rem;
    left: 0;
    width: 1px;
    background: rgba(50, 88, 107, 0.42);
}

.event-series-edition {
    position: relative;
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 1rem;
    padding: 0.65rem 0;
}

.event-series-edition::before {
    content: "";
    position: absolute;
    top: 1rem;
    left: -1.25rem;
    width: 0.48rem;
    height: 0.48rem;
    border: 2px solid var(--events-color-1);
    border-radius: 50%;
    background-color: var(--color-surface);
    transform: translateX(-50%);
}

.event-series-edition:first-child::before {
    background-color: var(--events-color-1);
}

.event-series-edition-term {
    color: var(--events-color-4);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.45;
}

.event-series-edition-meta {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.event-item[hidden],
.event-series-edition[hidden],
.talk-item[hidden],
.teaching-course[hidden],
.thesis-entry[hidden],
.project-item[hidden],
.talks-posters[hidden],
.poster-item[hidden] {
    display: none;
}

.talks {
    width: 100%;
    --talks-color-1: #19405d;
    --talks-color-2: #bb9e76;
    --talks-color-3: #32586b;
    --talks-color-4: #123348;
}

.talks-toolbar button:hover {
    border-color: var(--talks-color-1);
    color: var(--talks-color-1);
}

.talks-toolbar input:focus,
.talks-toolbar select:focus,
.talks-toolbar button:focus-visible {
    outline: 2px solid var(--talks-color-1);
    outline-offset: 2px;
}

.talks-filter-status {
    min-height: 1.3rem;
    margin: 0 0 1.5rem;
    color: var(--color-muted);
    font-size: 0.8rem;
}

.talks-list,
.teaching-list,
.thesis-list {
    display: grid;
    gap: 0.9rem;
}

.talk-item {
    position: relative;
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 1.35rem;
    overflow: hidden;
    padding: 1.15rem 1.2rem 1.1rem 1.15rem;
    border: 1px solid rgba(50, 88, 107, 0.34);
    border-radius: 7px;
    background-color: var(--color-surface);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.talk-item:hover {
    border-color: rgba(25, 64, 93, 0.62);
    box-shadow: 0 5px 17px rgba(18, 51, 72, 0.065);
}

.talk-item:focus-within {
    border-color: var(--talks-color-1);
}

.talk-date {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding-right: 1.15rem;
}

.talk-date::after {
    content: "";
    position: absolute;
    top: -1.15rem;
    right: 0;
    bottom: -1.1rem;
    width: 4px;
    background: linear-gradient( 180deg, var(--talks-color-1), var(--talks-color-2) );
    opacity: 0.86;
    transition: opacity 0.18s ease, width 0.18s ease;
}

.talk-item:hover .talk-date::after {
    width: 5px;
    opacity: 1;
}

.talk-date-day {
    color: var(--talks-color-3);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.4;
}

.talk-date-year {
    margin-top: 0.05rem;
    color: var(--talks-color-4);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.talk-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    margin-bottom: 0.3rem;
}

.talk-event {
    margin: 0;
    color: var(--talks-color-1);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.talk-title {
    max-width: 650px;
    margin: 0;
    color: var(--talks-color-4);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.48;
    letter-spacing: -0.006em;
}

.talk-status-upcoming {
    border: 1px solid rgba(187, 158, 118, 0.68);
    background-color: rgba(187, 158, 118, 0.1);
    color: #795f3d;
}

.talk-location {
    margin: 0.4rem 0 0;
    color: var(--talks-color-3);
    font-size: 0.86rem;
    line-height: 1.5;
}

.talk-collaborators {
    margin: 0.45rem 0 0;
    color: var(--color-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.talk-collaborators-label {
    margin-right: 0.2rem;
    color: var(--talks-color-1);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.talk-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.talk-resource-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    padding: 0.28rem 0.55rem;
    border: 1px solid rgba(25, 64, 93, 0.38);
    border-radius: 4px;
    background-color: rgba(25, 64, 93, 0.045);
    color: var(--talks-color-1);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.talk-resource-button:hover {
    border-color: var(--talks-color-1);
    background-color: rgba(25, 64, 93, 0.085);
    color: var(--talks-color-4);
    text-decoration: none;
    transform: translateY(-1px);
}

.talk-resource-button:focus-visible {
    outline: 2px solid var(--talks-color-1);
    outline-offset: 2px;
}

.site-footer {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-text);
    color: #f7f5f0;
}

.site-footer-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("../imgs/footer-1.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 52%;
}

.site-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( 90deg, rgba(15, 36, 61, 0.58) 0%, rgba(19, 55, 69, 0.42) 52%, rgba(15, 42, 59, 0.54) 100% );
    pointer-events: none;
}

.site-footer-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.5rem;
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
}

.site-footer-info {
    display: flex;
    flex-direction: column;
    max-width: 650px;
    gap: 0.3rem;
}

.site-footer-copyright,
.site-footer-email {
    margin: 0;
    color: #f7f5f0;
    font-size: 0.85rem;
    font-weight: 500;
}

.site-footer-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    color: rgba(247, 245, 240, 0.82);
    font-size: 0.78rem;
}

.site-footer-meta a {
    color: rgba(247, 245, 240, 0.92);
    text-decoration: none;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.site-footer-meta a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: var(--color-warm);
    text-underline-offset: 0.2em;
}

.site-footer-meta a:focus-visible {
    outline-color: #ffffff;
}

.site-footer-image-credit {
    max-width: 620px;
    margin: 0.55rem 0 0;
    color: rgba(247, 245, 240, 0.68);
    font-size: 0.67rem;
    line-height: 1.5;
}

.site-footer-image-credit a {
    color: rgba(247, 245, 240, 0.82);
    text-decoration: underline;
    text-decoration-color: rgba(247, 245, 240, 0.38);
    text-underline-offset: 0.16em;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.site-footer-image-credit a:hover {
    color: #ffffff;
    text-decoration-color: var(--color-warm);
}

.site-footer-image-credit a:focus-visible {
    color: #ffffff;
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.site-footer-contact {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-footer-profiles {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-footer-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(247, 245, 240, 0.92);
    text-decoration: none;
    transition: color 0.18s ease, transform 0.18s ease;
}

.site-footer-profile:hover {
    color: rgba(247, 245, 240, 0.92);
    transform: translateY(-2px);
}

.site-footer-profile:focus-visible {
    color: #ffffff;
    outline-color: #ffffff;
}

.site-footer-icon {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.site-footer-icon-github {
    -webkit-mask-image: url("../icons/github.svg");
    mask-image: url("../icons/github.svg");
}

.site-footer-icon-orcid {
    -webkit-mask-image: url("../icons/orcid.svg");
    mask-image: url("../icons/orcid.svg");
}

.site-footer-icon-mastodon {
    -webkit-mask-image: url("../icons/mastodon.svg");
    mask-image: url("../icons/mastodon.svg");
}

.teaching {
    width: 100%;
    --teaching-color-1: #17525b;
    --teaching-color-2: #19405d;
    --teaching-color-3: #32586b;
    --teaching-color-4: #123348;
    --abstract-color-1: #43741a;
    --abstract-color-2: #84b87d;
    --abstract-color-3: #549291;
    --abstract-color-4: #164319;
}

.teaching-toolbar button:hover {
    border-color: var(--teaching-color-1);
    color: var(--teaching-color-1);
}

.teaching-toolbar input:focus,
.teaching-toolbar select:focus,
.teaching-toolbar button:focus-visible {
    outline: 2px solid var(--teaching-color-1);
    outline-offset: 2px;
}

.teaching-filter-status {
    min-height: 1.3rem;
    margin: 0 0 1.5rem;
    color: var(--color-muted);
    font-size: 0.8rem;
}

.teaching-course {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(50, 88, 107, 0.34);
    border-radius: 7px;
    background-color: var(--color-surface);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.teaching-course:hover {
    border-color: rgba(23, 82, 91, 0.72);
    box-shadow: 0 5px 17px rgba(18, 51, 72, 0.07);
}

.teaching-course:focus-within {
    border-color: var(--teaching-color-1);
}

.teaching-course::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: linear-gradient( 180deg, var(--color-primary), var(--color-accent) );
    opacity: 0.9;
    pointer-events: none;
}

.teaching-course-header {
    padding: 1rem 1.1rem 0.8rem 1.3rem;
}

.teaching-course-title {
    margin: 0;
    color: var(--teaching-color-4);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.006em;
}

.teaching-course-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease;
}

.teaching-course-title a:hover {
    color: var(--teaching-color-1);
}

.teaching-course-title a:focus-visible {
    color: var(--teaching-color-1);
    outline: 2px solid var(--teaching-color-1);
    outline-offset: 3px;
}

.teaching-badges,
.thesis-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.teaching-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.75rem;
    padding: 0.28rem 0.55rem;
    border: 1px solid rgba(50, 88, 107, 0.32);
    border-radius: 999px;
    background-color: rgba(50, 88, 107, 0.055);
    color: var(--teaching-color-4);
    font-size: 0.73rem;
    line-height: 1.3;
    white-space: nowrap;
}

.teaching-badge-label {
    color: var(--teaching-color-3);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.teaching-badge-value {
    color: var(--teaching-color-4);
    font-weight: 500;
}

.teaching-badge:nth-child(1) {
    border-color: rgba(23, 82, 91, 0.34);
    background-color: rgba(23, 82, 91, 0.07);
}

.teaching-badge:nth-child(2) {
    border-color: rgba(25, 64, 93, 0.32);
    background-color: rgba(25, 64, 93, 0.065);
}

.teaching-badge:nth-child(3) {
    border-color: rgba(50, 88, 107, 0.34);
    background-color: rgba(50, 88, 107, 0.065);
}

.teaching-badge:nth-child(4) {
    border-color: rgba(23, 82, 91, 0.26);
    background-color: rgba(23, 82, 91, 0.045);
}

.teaching-badge:nth-child(5) {
    border-color: rgba(18, 51, 72, 0.28);
    background-color: rgba(18, 51, 72, 0.05);
}

.teaching-abstract {
    padding: 0 1.1rem 0.95rem 1.3rem;
}

.teaching-abstract summary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    margin: 0;
    padding: 0.34rem 0.6rem;
    border: 1px solid var(--abstract-color-1);
    border-radius: 4px;
    background-color: transparent;
    color: var(--abstract-color-4);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.teaching-abstract summary::-webkit-details-marker {
    display: none;
}

.teaching-abstract summary::after {
    content: "+";
    color: var(--abstract-color-1);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1;
}

.teaching-abstract summary:hover {
    border-color: var(--abstract-color-1);
    background-color: rgba(132, 184, 125, 0.16);
    color: var(--abstract-color-4);
}

.teaching-abstract summary:focus-visible {
    outline: 2px solid var(--abstract-color-1);
    outline-offset: 3px;
}

.teaching-abstract[open] summary {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: #ffffff;
}

.teaching-abstract[open] summary::after {
    content: "−";
    color: #ffffff;
}

.teaching-abstract-panel {
    margin-top: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(35, 91, 133, 0.22);
    border-left: 3px solid var(--color-accent);
    border-radius: 5px;
    background-color: rgba(35, 91, 133, 0.045);
    color: var(--color-muted);
    font-size: 0.86rem;
    line-height: 1.68;
}

.teaching-abstract-panel a {
    color: var(--abstract-color-1);
}

.teaching-abstract-panel a:hover {
    color: var(--abstract-color-4);
}

.teaching-abstract-panel > :first-child {
    margin-top: 0;
}

.teaching-abstract-panel > :last-child {
    margin-bottom: 0;
}

.teaching-course:has(.teaching-abstract[open]) {
    border-color: rgba(67, 116, 26, 0.58);
    box-shadow: 0 6px 20px rgba(22, 67, 25, 0.065);
}

.thesis-supervisions {
    width: 100%;
    margin-top: 4rem;
    --thesis-color-1: #43741a;
    --thesis-color-2: #549291;
    --thesis-color-3: #32586b;
    --thesis-color-4: #164319;
}

.thesis-toolbar button:hover {
    border-color: var(--thesis-color-1);
    color: var(--thesis-color-1);
}

.thesis-toolbar input:focus,
.thesis-toolbar select:focus,
.thesis-toolbar button:focus-visible {
    outline: 2px solid var(--thesis-color-1);
    outline-offset: 2px;
}

.thesis-filter-status {
    min-height: 1.3rem;
    margin: 0 0 1.5rem;
    color: var(--color-muted);
    font-size: 0.8rem;
}

.thesis-entry {
    position: relative;
    overflow: hidden;
    padding: 1rem 1.1rem 0.8rem 1.3rem;
    border: 1px solid rgba(50, 88, 107, 0.34);
    border-radius: 7px;
    background-color: var(--color-surface);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.thesis-entry:hover {
    border-color: rgba(67, 116, 26, 0.58);
    box-shadow: 0 5px 17px rgba(22, 67, 25, 0.055);
}

.thesis-entry:focus-within {
    border-color: var(--thesis-color-1);
}

.thesis-entry::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: linear-gradient( 180deg, var(--thesis-color-1), var(--thesis-color-2) );
    opacity: 0.88;
    pointer-events: none;
}

.thesis-title {
    margin: 0;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.006em;
}

.thesis-title em {
    font-weight: inherit;
}

.thesis-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.75rem;
    padding: 0.28rem 0.55rem;
    border: 1px solid rgba(50, 88, 107, 0.3);
    border-radius: 999px;
    background-color: rgba(50, 88, 107, 0.045);
    color: var(--color-text);
    font-size: 0.73rem;
    line-height: 1.3;
    white-space: nowrap;
}

.thesis-badge-label {
    color: var(--color-muted);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.thesis-badge-value {
    color: var(--color-text);
    font-weight: 500;
}

.thesis-badge:nth-child(1) {
    border-color: rgba(67, 116, 26, 0.3);
    background-color: rgba(67, 116, 26, 0.055);
}

.thesis-badge:nth-child(2) {
    border-color: rgba(84, 146, 145, 0.32);
    background-color: rgba(84, 146, 145, 0.055);
}

.thesis-badge:nth-child(3) {
    border-color: rgba(50, 88, 107, 0.32);
    background-color: rgba(50, 88, 107, 0.055);
}

.thesis-badge:nth-child(4) {
    border-color: rgba(67, 116, 26, 0.24);
    background-color: rgba(67, 116, 26, 0.04);
}

.thesis-badge:nth-child(5) {
    border-color: rgba(84, 146, 145, 0.27);
    background-color: rgba(84, 146, 145, 0.045);
}

.thesis-badge:nth-child(6) {
    border-color: rgba(22, 67, 25, 0.22);
    background-color: rgba(22, 67, 25, 0.035);
}

.services {
    width: 100%;
    --services-color-1: #17525b;
    --services-color-2: #19405d;
    --services-color-3: #32586b;
    --services-color-4: #123348;
}

.services-section + .services-section {
    margin-top: 4rem;
}

.services-events-reference {
    max-width: 680px;
    margin: -0.15rem 0 1.85rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(50, 88, 107, 0.16);
    border-left: 3px solid var(--color-warm);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.34);
    color: var(--color-muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

.services-events-reference a {
    color: var(--services-color-1);
    font-weight: 600;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.services-events-reference a:hover {
    color: var(--services-color-4);
}

.services-list {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.service-entry:hover {
    border-color: rgba(23, 82, 91, 0.58);
    box-shadow: 0 5px 17px rgba(18, 51, 72, 0.055);
}

.service-entry:focus-within {
    border-color: var(--services-color-1);
}

.service-entry-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    color: var(--services-color-3);
    font-size: 0.8rem;
    line-height: 1.45;
}

.service-entry-date-range {
    color: var(--services-color-4);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
}

.service-entry-date-separator {
    color: var(--services-color-3);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.35;
}

.service-entry-date-label {
    color: var(--services-color-3);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.45;
}

.service-entry-title {
    margin: 0;
    color: var(--services-color-4);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.006em;
}

.service-entry-title a {
    color: var(--services-color-4);
    text-decoration: none;
    transition: color 0.18s ease;
}

.service-entry-title a:hover {
    color: var(--services-color-1);
}

.service-entry-title a:focus-visible {
    color: var(--services-color-1);
    outline: 2px solid var(--services-color-1);
    outline-offset: 3px;
}

.service-roles {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 650px;
    margin-top: 0.7rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--services-color-1);
}

.service-role {
    margin: 0;
    color: var(--services-color-4);
    font-size: 0.84rem;
    line-height: 1.5;
}

.service-role-name {
    color: var(--services-color-1);
    font-weight: 600;
}

.service-role-detail {
    color: var(--color-muted);
    font-weight: 400;
}

.services-section-self-government .service-roles {
    display: block;
    max-width: none;
    margin-top: 0.35rem;
    padding-left: 0;
    border-left: 0;
}

.services-section-self-government .service-role {
    color: var(--color-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.services-section-self-government .service-role-name {
    color: var(--services-color-1);
    font-weight: 600;
}

.services-section-self-government .service-role-detail {
    margin-left: 0.35rem;
    color: var(--color-muted);
    font-weight: 400;
}

.service-role-separator {
    margin: 0 0.25rem;
    color: var(--color-muted);
}

.service-entry-institution {
    margin: 0.18rem 0 0;
    color: var(--services-color-3);
    font-size: 0.82rem;
    line-height: 1.5;
}

.projects {
    width: 100%;
    --projects-color-1: #17525b;
    --projects-color-2: #bb9e76;
    --projects-color-3: #32586b;
    --projects-color-4: #123348;
}

.projects-toolbar button:hover {
    border-color: var(--projects-color-1);
    color: var(--projects-color-1);
}

.projects-toolbar input:focus,
.projects-toolbar select:focus,
.projects-toolbar button:focus-visible {
    outline: 2px solid var(--projects-color-1);
    outline-offset: 2px;
}

.projects-filter-status {
    min-height: 1.3rem;
    margin: 0 0 1.5rem;
    color: var(--color-muted);
    font-size: 0.8rem;
}

.projects-list {
    display: grid;
    gap: 1rem;
}

.project-item {
    position: relative;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 1.5rem;
    overflow: hidden;
    padding: 1.2rem 1.25rem 1.15rem 1.25rem;
    border: 1px solid rgba(50, 88, 107, 0.34);
    border-radius: 7px;
    background-color: var(--color-surface);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.project-item:hover {
    border-color: rgba(23, 82, 91, 0.62);
    box-shadow: 0 5px 17px rgba(18, 51, 72, 0.065);
}

.project-item:focus-within {
    border-color: var(--projects-color-1);
}

.project-period {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding-right: 1.2rem;
    color: var(--projects-color-3);
    font-size: 0.78rem;
    line-height: 1.45;
}

.project-period::after {
    content: "";
    position: absolute;
    top: -1.2rem;
    right: 0;
    bottom: -1.15rem;
    width: 4px;
    background: linear-gradient( 180deg, var(--projects-color-1), var(--projects-color-2) );
    opacity: 0.88;
    transition: width 0.18s ease, opacity 0.18s ease;
}

.project-item:hover .project-period::after {
    width: 5px;
    opacity: 1;
}

.project-period-range {
    color: var(--projects-color-4);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.45;
}

.project-period-separator {
    color: var(--projects-color-3);
    font-size: 0.72rem;
}

.project-heading-row {
    display: grid;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.project-eyebrow {
    margin: 0;
    color: var(--projects-color-1);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.project-title {
    margin: 0;
    color: var(--projects-color-4);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.008em;
}

.project-status-upcoming {
    border: 1px solid rgba(187, 158, 118, 0.68);
    background-color: rgba(187, 158, 118, 0.1);
    color: #795f3d;
}

.project-status-current {
    border: 1px solid rgba(84, 146, 145, 0.55);
    background-color: rgba(84, 146, 145, 0.09);
    color: #315f5e;
}

.project-status-completed {
    border: 1px solid rgba(50, 88, 107, 0.32);
    background-color: rgba(50, 88, 107, 0.05);
    color: var(--projects-color-3);
}

.project-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.project-resource-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    padding: 0.28rem 0.55rem;
    border: 1px solid rgba(23, 82, 91, 0.38);
    border-radius: 4px;
    background-color: rgba(23, 82, 91, 0.045);
    color: var(--projects-color-1);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.project-resource-button:hover {
    border-color: var(--projects-color-1);
    background-color: rgba(23, 82, 91, 0.085);
    color: var(--projects-color-4);
    text-decoration: none;
    transform: translateY(-1px);
}

.project-resource-button:focus-visible {
    outline: 2px solid var(--projects-color-1);
    outline-offset: 2px;
}

.project-meta {
    display: grid;
    grid-template-columns: repeat( 2, minmax(0, 1fr) );
    gap: 0.65rem 1rem;
    margin: 1rem 0 0;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(50, 88, 107, 0.2);
    border-bottom: 1px solid rgba(50, 88, 107, 0.2);
}

.project-meta-item-wide {
    grid-column: 1 / -1;
}

.project-meta dt {
    margin: 0;
    color: var(--projects-color-3);
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-meta dd {
    margin: 0.18rem 0 0;
    color: var(--color-text);
    font-size: 0.82rem;
    line-height: 1.55;
}

.project-meta-note {
    color: var(--color-muted);
}

.project-description {
    max-width: 650px;
    margin-top: 0.9rem;
    color: var(--color-muted);
    font-size: 0.88rem;
    line-height: 1.68;
}

.project-description > :first-child {
    margin-top: 0;
}

.project-description > :last-child {
    margin-bottom: 0;
}

.project-note {
    max-width: 650px;
    margin: 0.8rem 0 0;
    padding-left: 0.75rem;
    border-left: 3px solid var(--projects-color-2, var(--color-warm));
    color: var(--color-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.home-about .home-cv-button {
    -webkit-appearance: none;
    appearance: none;
    min-height: 1.9rem;
    margin: 0;
    padding: 0.3rem 0.52rem;
    border: 1px solid rgba(50, 88, 107, 0.28);
    border-radius: 4px;
    background-color: rgba(50, 88, 107, 0.035);
    color: var(--color-muted);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
}

.home-about .home-cv-button:hover {
    border-color: var(--color-primary);
    background-color: rgba(35, 91, 133, 0.09);
    color: var(--color-text);
    transform: translateY(-1px);
}

.home-about .home-cv-button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.home-about .home-cv-button:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.talks-posters {
    margin-top: 3.5rem;
}

.poster-item .talk-date-day {
    white-space: nowrap;
}

.projects-section-title {
    margin: 0 0 1.5rem;
}

.projects-funded {
    margin-top: 3rem;
}

.projects-phd-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.projects .project-heading-row .project-status {
    justify-self: end;
    margin: 0;
}

.cv .project-note {
    margin-top: 0.75rem;
    margin-bottom: 0;
    padding-left: 0.85rem;
    border-left: 3px solid var(--color-teal);
    font-size: 0.9rem;
    line-height: 1.5;
}

.home-about-text,
.cv-entry-content,
.pub-content,
.event-item-content,
.event-series-edition-content,
.talk-content,
.teaching-course,
.thesis-entry,
.service-entry-content,
.project-content {
    overflow-wrap: anywhere;
}

.pub-toolbar :is(input, select, button),
.events-toolbar :is(input, select, button),
.talks-toolbar :is(input, select, button),
.teaching-toolbar :is(input, select, button),
.thesis-toolbar :is(input, select, button),
.projects-toolbar :is(input, select, button) {
    max-width: 100%;
}

@media screen and (max-width: 850px) {
    .home-about {
        max-width: 680px;
        margin-top: 5.5rem;
        padding-left: 0;
    }

    .home-about-card {
        padding: 11rem 2rem 2.15rem;
        border: 1px solid var(--home-border);
        border-top: 5px solid var(--home-teal);
        border-bottom: 5px solid var(--home-teal);
    }

    .home-profile-photo {
        top: -5rem;
        left: 50%;
        width: 210px;
        transform: translateX(-50%);
    }

    .home-about-heading {
        text-align: center;
    }

    .home-about-heading::after {
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 800px) {
    .site-footer-image {
        background-position: 42% center;
    }

    .site-footer-inner {
        flex-direction: column;
        gap: 1.25rem;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .site-footer-contact {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .site-footer-image-credit {
        max-width: 100%;
        font-size: 0.65rem;
    }

    .container {
        width: min( calc(100% - 2rem), var(--content-width) );
    }

    .site-navigation {
        margin-top: 1rem;
        padding-top: 0.85rem;
    }

    .navigation-list {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.2rem 0.45rem;
    }

    .navigation-item {
        display: inline-flex;
        align-items: center;
        min-width: 0;
    }

    .navigation-item:not(:last-child)::after {
        content: "·";
        margin-left: 0.45rem;
        color: var(--color-muted);
        font-size: 0.9rem;
        line-height: 1;
    }

    .navigation-item a {
        display: inline-block;
        width: auto;
        padding: 0.22rem 0;
        white-space: nowrap;
    }

    .site-main {
        padding-top: 3.5rem;
        padding-bottom: 4rem;
    }

    .home-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media screen and (max-width: 700px) {
    .cv-section + .cv-section {
        margin-top: 3.5rem;
    }

    .cv-subsection {
        margin-top: 2.5rem;
    }

    .cv-entry {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        padding: 1.15rem;
    }

    .cv-entry-date {
        margin-bottom: 0.25rem;
    }

    .cv-entry-date-main {
        font-size: 0.88rem;
    }

    .cv-entry-title {
        font-size: 0.96rem;
    }

    .pub-list {
        gap: 0.8rem;
    }

    .pub-item {
        padding: 0.95rem 0.9rem 0.75rem 1.1rem;
    }

    .pub-title {
        font-size: 0.96rem;
    }

    .event-item {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        padding: 1.15rem;
    }

    .event-item-date {
        flex-direction: row;
        gap: 0.3rem;
        margin-bottom: 0.25rem;
    }

    .event-item-date strong {
        font-size: inherit;
    }

    .event-series-editions {
        margin-top: 1.2rem;
    }

    .event-series-edition {
        grid-template-columns: 1fr;
        gap: 0.15rem;
        padding: 0.65rem 0;
    }

    .talks-list {
        gap: 0.8rem;
    }

    .talk-item {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        padding: 1rem 0.95rem 0.95rem 1.1rem;
    }

    .talk-date {
        flex-direction: row;
        align-items: baseline;
        gap: 0.35rem;
        padding: 0 0 0.55rem;
    }

    .talk-date::after {
        top: auto;
        right: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient( 90deg, var(--talks-color-1), var(--talks-color-2) );
    }

    .talk-item:hover .talk-date::after {
        width: 100%;
        height: 4px;
    }

    .talk-date-year {
        margin-top: 0;
        font-size: 0.9rem;
    }

    .talk-title {
        font-size: 0.96rem;
    }

    .teaching-list {
        gap: 0.8rem;
    }

    .teaching-course-header {
        padding: 0.95rem 0.9rem 0.75rem 1.1rem;
    }

    .teaching-course::before {
        width: 3px;
    }

    .teaching-course-title {
        font-size: 0.96rem;
    }

    .teaching-badges {
        gap: 0.4rem;
    }

    .teaching-badge {
        white-space: normal;
    }

    .teaching-abstract {
        padding: 0 0.9rem 0.9rem 1.1rem;
    }

    .teaching-abstract-panel {
        font-size: 0.84rem;
    }

    .thesis-supervisions {
        margin-top: 3.5rem;
    }

    .thesis-list {
        gap: 0.8rem;
    }

    .thesis-entry {
        padding: 0.95rem 0.9rem 0.75rem 1.1rem;
    }

    .thesis-entry::before {
        width: 3px;
    }

    .thesis-title {
        font-size: 0.96rem;
    }

    .thesis-badges {
        gap: 0.4rem;
    }

    .thesis-badge {
        white-space: normal;
    }

    .services-section + .services-section {
        margin-top: 3.5rem;
    }

    .service-entry {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        padding: 1.15rem;
    }

    .service-entry-date {
        margin-bottom: 0.25rem;
    }

    .service-entry-title {
        font-size: 0.96rem;
    }

    .projects-list {
        gap: 0.8rem;
    }

    .project-item {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding: 1rem 0.95rem 0.95rem 1.1rem;
    }

    .project-period {
        flex-direction: row;
        align-items: baseline;
        gap: 0.3rem;
        padding: 0 0 0.55rem;
    }

    .project-period::after {
        top: auto;
        right: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient( 90deg, var(--projects-color-1), var(--projects-color-2) );
    }

    .project-item:hover .project-period::after {
        width: 100%;
        height: 4px;
    }

    .project-title {
        font-size: 0.98rem;
    }

    .talks-posters {
        margin-top: 3rem;
    }
}

@media screen and (max-width: 600px) {
    .pub-item {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .pub-actions {
        width: fit-content;
    }

    .pub-link,
    .pub-resource-button {
        width: auto;
        min-width: 3.75rem;
    }

    .pub-title-row {
        align-items: flex-start;
    }

    .events-toolbar,
    .talks-toolbar,
    .teaching-toolbar,
    .thesis-toolbar,
    .projects-toolbar {
        align-items: stretch;
    }

    .events-toolbar input[type="search"],
    .talks-toolbar input[type="search"],
    .teaching-toolbar input[type="search"],
    .thesis-toolbar input[type="search"],
    .projects-toolbar input[type="search"] {
        flex-basis: 100%;
    }

    .events-toolbar select,
    .talks-toolbar select,
    .teaching-toolbar select,
    .thesis-toolbar select,
    .projects-toolbar select {
        flex: 1 1 calc(50% - 0.65rem);
    }

    .project-meta {
        grid-template-columns: 1fr;
    }

    .project-meta-item-wide {
        grid-column: auto;
    }
}

@media screen and (max-width: 500px) {
    .home-about {
        margin-top: 4.7rem;
        margin-bottom: 2rem;
    }

    .home-about-card {
        padding: 9.75rem 1.25rem 1.65rem;
        border-radius: 10px;
    }

    .home-profile-photo {
        top: -4rem;
        width: 175px;
        padding: 5px;
    }

    .home-about-heading {
        margin-bottom: 1.25rem;
        font-size: 1.65rem;
    }

    .home-about-text {
        font-size: 0.94rem;
        line-height: 1.72;
    }

    .home-about .home-profiles {
        gap: 0.55rem;
    }
}

@media screen and (max-width: 480px) {
    .site-header-inner {
        padding-top: 1.35rem;
        padding-bottom: 1rem;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .site-subtitle {
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .site-navigation {
        padding-top: 0.8rem;
    }

    .navigation-item a {
        font-size: 0.84rem;
        line-height: 1.35;
    }
}

@media screen and (max-width: 420px) {
    .events-toolbar select,
    .events-toolbar button,
    .talks-toolbar select,
    .talks-toolbar button,
    .teaching-toolbar select,
    .teaching-toolbar button,
    .thesis-toolbar select,
    .thesis-toolbar button,
    .projects-toolbar select,
    .projects-toolbar button {
        width: 100%;
    }

    .events-toolbar select,
    .talks-toolbar select,
    .teaching-toolbar select,
    .thesis-toolbar select,
    .projects-toolbar select {
        flex-basis: 100%;
    }

    .event-series-editions {
        padding-left: 1rem;
    }

    .event-series-edition::before {
        left: -1rem;
    }

    .talk-heading-row {
        display: block;
    }

    .talk-status {
        margin-top: 0.4rem;
    }

    .poster-item .talk-date-day {
        white-space: normal;
    }
}

@media print {
    .site-header,
    .site-footer,
    .publications-intro,
    .pub-toolbar,
    .pub-status {
        display: none;
    }

    .site-main {
        padding: 0;
    }

    .page {
        max-width: none;
    }

    .page-header {
        margin-bottom: 2rem;
    }

    .pub-section,
    .pub-item {
        break-inside: avoid;
    }

    .pub-item {
        grid-template-columns: 55px minmax(0, 1fr);
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cv-entry,
    .event-item,
    .service-entry,
    .cv-entry-title a,
    .event-item-title a,
    .event-resource-button,
    .home-about .home-profile-link,
    .navigation-item a,
    .project-item,
    .project-period::after,
    .project-resource-button,
    .pub-item,
    .pub-link,
    .pub-resource-button,
    .pub-toolbar button,
    .events-toolbar button,
    .talks-toolbar button,
    .teaching-toolbar button,
    .thesis-toolbar button,
    .projects-toolbar button,
    .service-entry-title a,
    .site-footer-image-credit a,
    .site-footer-meta a,
    .site-footer-profile,
    .site-title,
    .talk-date::after,
    .talk-item,
    .talk-resource-button,
    .teaching-abstract summary,
    .teaching-course,
    .teaching-course-title a,
    .thesis-entry {
        transition: none;
    }

    .home-about .home-profile-link:hover,
    .home-about .home-cv-button:hover,
    .pub-link:hover,
    .pub-resource-button:hover,
    .event-resource-button:hover,
    .talk-resource-button:hover,
    .project-resource-button:hover,
    .site-footer-profile:hover {
        transform: none;
    }
}
