/* Shared colors and dimensions: edit the main design values here. */
:root {
  --blue: #0056b3;
  --blue-deep: #063462;
  --blue-light: #edf5fc;
  --ink: #172b3e;
  --muted: #526577;
  --line: #dce5ec;
  --surface: #f5f8fb;
  --white: #fff;
  --radius: 12px;
  --container: 1160px;
}


/* Home, organizers and address layouts.
   Keep these rules in place to preserve the existing cascade. */
.organizer-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand-dot {
  color: #409abb;
}

.home-seminar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  margin-top: 56px;
  border-top: 1px solid var(--line);
}

.home-visual {
  flex-direction: column;
  gap: 18px;
}

.home-visual .parma-logo {
  width: 100%;
}

.home-visual p {
  text-align: center;
  margin: 0;
  color: var(--muted);
}

.home-seminar .info-card h3 {
  margin-bottom: 20px;
}

.address-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px;
  border-radius: var(--radius);
  margin-top: 40px;
}

.address-card address {
  font-style: normal;
  margin-bottom: 20px;
}

.location-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .home-seminar, .address-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .address-card {
    padding: 24px;
  }
  .location-note {
    padding-left: 0;
    padding-top: 24px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}


/* Long body paragraphs, banner descriptions and seminar abstracts. */
.prose,
.abstract-text {
  text-align: justify;
  hyphens: auto;
  overflow-wrap: break-word;
}


/* Base styles, typography and accessibility */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

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

a {
  color: var(--blue);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--blue-deep);
}

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #e6a638;
  outline-offset: 4px;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4 {
  margin-top: 0;
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -.025em;
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -.01em;
}

p {
  margin: 0 0 1.15em;
}

ul, ol {
  padding-left: 1.4em;
}

::selection {
  background: #cee4fa;
  color: var(--ink);
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  color: var(--white);
  background: var(--blue-deep);
  transform: translateY(-170%);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--white);
}


/* Header, logo and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 90px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  font-size: 2rem;
  font-weight: 760;
  letter-spacing: -.055em;
  color: var(--blue);
  line-height: 1;
}

.brand-caption {
  max-width: 165px;
  padding-left: 15px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.35;
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.site-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 13px;
  color: #3a4e60;
  font-size: .91rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}

.site-navigation a:hover {
  color: var(--blue);
  background: var(--blue-light);
}

.site-navigation a[aria-current="page"] {
  color: var(--blue);
  background: var(--blue-light);
}

.menu-toggle {
  display: none;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue-deep);
  background: var(--white);
  min-height: 44px;
  font-size: .94rem;
  font-weight: 600;
}


/* Language links stay compact and remain available with JavaScript disabled. */
.language-switcher {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 3px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 36px;
  border-radius: 5px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 650;
  text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a[aria-current="true"] {
  color: var(--blue);
  background: var(--blue-light);
}


/* Page banners and home buttons */
.hero {
  min-height: 276px;
  display: flex;
  align-items: center;
  background-color: #123c61;
  background-image: linear-gradient(90deg, rgba(4, 31, 60, .88), rgba(5, 40, 72, .66) 53%, rgba(7, 49, 83, .35)), url("../images/mountains.jpg");
  background-size: cover;
  background-position: center 49%;
  color: var(--white);
}

/* Keep the glacier and foreground at the bottom visible. */
.hero.hero-home {
  min-height: clamp(520px, 44vw, 720px);
  background-position: center bottom;
}


.hero-content {
  padding-block: 50px;
}

.hero h1 {
  max-width: 920px;
  margin-bottom: 17px;
  color: var(--white);
}

.hero-home h1 {
  max-width: 800px;
}

.eyebrow {
  margin-bottom: 17px;
  color: var(--blue);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #cfebff;
}

.hero-lead {
  max-width: 740px;
  margin-bottom: 0;
  color: #eef6ff;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 29px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 21px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
}

.button:hover {
  color: var(--white);
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.hero .button {
  border-color: var(--white);
  background: var(--white);
  color: var(--blue-deep);
}

.hero .button:hover {
  background: #e4f1ff;
  border-color: #e4f1ff;
}

.hero .button-secondary {
  color: var(--white);
  background: rgba(8, 39, 69, .2);
  border-color: rgba(255, 255, 255, .66);
}

.hero .button-secondary:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .13);
  border-color: var(--white);
}


/* Home content and shared components */
.content-container {
  padding-block: 55px 72px;
  min-height: 36vh;
}

.lead {
  color: #3a5063;
  font-size: 1.18rem;
  line-height: 1.75;
}

.home-grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr;
  gap: 70px;
  align-items: center;
  margin-bottom: 54px;
}

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

.home-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  min-height: 242px;
}

.parma-logo {
  display: block;
  max-height: 230px;
  width: auto;
  object-fit: contain;
}

.section-heading {
  margin-top: 50px;
  margin-bottom: 23px;
}

/* Recent publications are rendered entirely in pages/home.html. */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.section-source {
  flex-shrink: 0;
  font-size: .87rem;
}

.publication-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.publication-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 27px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--white);
}

.publication-date {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: .83rem;
  font-weight: 700;
}

.publication-card h3 {
  margin-bottom: 18px;
  font-size: 1.08rem;
  line-height: 1.5;
}

.publication-card h3 a {
  color: var(--blue-deep);
  text-decoration: none;
}

.publication-card h3 a:hover {
  text-decoration: underline;
}

.publication-authors,
.publication-venue {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
}

.publication-authors {
  margin-bottom: 10px;
}

.publication-venue {
  margin-bottom: 22px;
  font-style: italic;
}

.publication-link {
  align-self: flex-start;
  margin-top: auto;
  font-size: .88rem;
  font-weight: 650;
}


.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 34px;
}

.jump-nav a {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: .9rem;
  text-decoration: none;
}

.jump-nav a:hover {
  background: var(--blue-light);
  border-color: #b6d5f1;
}

.notice {
  padding: 20px 24px;
  margin-block: 26px;
  border: 1px solid #d7e7f5;
  border-radius: 8px;
  background: var(--blue-light);
  color: #2f526e;
}

.notice p:last-child {
  margin-bottom: 0;
}

.small-link {
  font-size: .91rem;
}


/* One resource per panel, with its examples and documentation nested inside. */
.resource-project {
  min-width: 0;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.resource-project + .resource-project {
  margin-top: 32px;
}

.resource-heading,
.resource-material-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.resource-heading {
  margin-bottom: 20px;
}

.resource-kind {
  margin-bottom: 7px;
  font-size: .74rem;
  letter-spacing: .08em;
}

.resource-title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2rem);
}

.resource-primary {
  flex-shrink: 0;
  gap: 8px;
  max-width: 100%;
  text-align: center;
}

.resource-intro {
  max-width: 76ch;
  margin: 0;
  font-size: 1.03rem;
}

.resource-features {
  display: grid;
  gap: 8px;
  max-width: 85ch;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.65;
}

.resource-materials {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.resource-material {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 3px solid #a9cde6;
  border-radius: 8px;
  background: var(--surface);
}

.resource-material-heading {
  align-items: baseline;
}

.resource-material-heading h3 {
  margin: 0;
  font-size: 1.2rem;
}

.resource-material-description {
  max-width: 76ch;
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: .93rem;
}

.resource-visit {
  flex-shrink: 0;
  max-width: 100%;
  font-size: .88rem;
  font-weight: 650;
}

.resource-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.resource-example {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.resource-example img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.resource-example figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 700px) {
  .resource-heading,
  .resource-material-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .resource-material {
    padding: 16px;
  }
  .resource-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .resource-example {
    padding: 8px;
  }
}


/* Member cards, search and empty results */
.members-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

.members-toolbar label {
  display: block;
  margin-bottom: 7px;
  font-size: .93rem;
  font-weight: 650;
}

.members-toolbar input {
  width: 100%;
  min-height: 47px;
  border: 1px solid #b9cbd9;
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--white);
}

.members-toolbar input::placeholder {
  color: #687e90;
}

.members-toolbar input:focus {
  border-color: var(--blue);
}

#member-count {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  text-align: right;
}

.member-section {
  margin-bottom: 43px;
}

.member-section > h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 23px;
  font-size: 1.5rem;
}

.member-section > h2::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.member-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 23px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  min-width: 0;
}

.member-photo {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
}

.member-portrait {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
}

/* Reveal a portrait only after JavaScript confirms it loaded successfully. */
.member-portrait.is-loaded {
  opacity: 1;
}

/* Frame faces in photographs that also show their surroundings. */
.member-portrait[data-member-portrait="Yann Brenier"] {
  object-position: 75% center;
}

.member-portrait[data-member-portrait="Cyril Letrouit"] {
  object-position: center top;
  transform: scale(2.1) translateY(7%);
}

.member-portrait[data-member-portrait="Quentin Giton"] {
  transform: scale(2.6) translate(23%, 4%);
}

.member-initials {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 650;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.member-details {
  min-width: 0;
  overflow-wrap: anywhere;
}

.member-name {
  font-size: 1.06rem;
  font-weight: 650;
  margin-bottom: 7px;
  line-height: 1.35;
}

.member-name a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.member-affiliation {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .89rem;
  line-height: 1.55;
}

.empty-state {
  padding: 40px 24px;
  text-align: center;
  background: var(--surface);
  border-radius: 8px;
  color: var(--muted);
}

.empty-state p:last-child {
  margin-bottom: 0;
}


/* Responsive Google Maps embeds, shared by seminar and contact pages. */
.map-panel {
  min-width: 0;
}

.location-map {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
}

.map-link {
  display: inline-block;
  margin-top: 12px;
  font-size: .9rem;
}

.seminar-map {
  margin-bottom: 46px;
}


/* Contacts, seminar programme and talk archive */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  margin-bottom: 37px;
}

/* An unpaired contact fills the row beneath the two main contacts. */
.contact-grid > .info-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.seminar-info-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  margin-bottom: 18px;
}

.mailing-list-note {
  margin-bottom: 24px;
  color: var(--muted);
}

/* Keep each name prominent and its email on a quieter line below it. */
.organizer-list li {
  min-width: 0;
  margin: 0;
}

.organizer-name {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

.organizer-email {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  color: #5f6f7f;
  font-size: .86rem;
  line-height: 1.45;
  text-decoration-color: #b8c3cd;
  text-underline-offset: .18em;
}

.organizer-email:hover,
.organizer-email:focus-visible {
  color: var(--blue);
  text-decoration-color: currentColor;
}

.organizer-list p,
.info-card a {
  overflow-wrap: anywhere;
}

.info-card {
  padding: 27px 29px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.info-card h2 {
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.info-card h3 {
  margin-bottom: 13px;
}

/* Give the building and room their own labeled lines. */
.venue-details {
  display: grid;
  gap: 4px;
  line-height: 1.55;
}

.info-card p:last-child, .info-card ul:last-child {
  margin-bottom: 0;
}

.contact-role {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .81rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.contact-name {
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 11px;
}

.address-link {
  display: inline-block;
  margin-top: 8px;
  font-size: .92rem;
  font-weight: 600;
}

/* The annual agenda and current programme are the first seminar content. */
.seminar-programme-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 40px;
  align-items: start;
}

.seminar-programme-layout > section {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.seminar-practical {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}
.programme-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
}
.programme-heading .section-heading {
  margin: 0;
}
.seminar-practical .seminar-info-grid {
  margin-top: 0;
}

.schedule-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 114px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.schedule-header h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}
.schedule-year {
  display: grid;
  gap: 2px;
  flex-shrink: 0;
  margin: 0;
  text-align: right;
  color: var(--muted);
  font-size: .69rem;
}
.schedule-year strong {
  color: var(--blue-deep);
  font-size: .88rem;
}
.schedule-hint {
  margin: 16px 0;
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.5;
}
.seminar-calendar {
  margin: 0;
  padding: 0;
  list-style: none;
}
.schedule-item + .schedule-item {
  margin-top: 5px;
}
.schedule-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 6px;
  align-items: center;
}
.calendar-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: var(--white);
  text-decoration: none;
}
.calendar-subscribe:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}
.calendar-subscribe:focus-visible {
  outline: 3px solid #e6a638;
  outline-offset: 3px;
}
.calendar-subscribe-all {
  width: 100%;
  margin-bottom: 14px;
  padding: 9px 12px;
  font-size: .85rem;
  font-weight: 650;
  line-height: 1.4;
}
.calendar-subscribe svg {
  flex-shrink: 0;
}
.calendar-subscribe-day {
  width: 44px;
}

/* The native modal keeps keyboard focus inside the subscription chooser. */
.calendar-dialog {
  width: min(30rem, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
}
.calendar-dialog::backdrop {
  background: rgb(6 36 58 / 45%);
}
.calendar-dialog-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.calendar-dialog-heading h2 {
  margin: 0;
  font-size: 1.3rem;
}
.calendar-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
  font-size: 1.6rem;
  cursor: pointer;
}
.calendar-dialog-selection {
  font-weight: 700;
  color: var(--blue);
}
.calendar-provider-links {
  display: grid;
  gap: 10px;
  margin-block: 20px;
}
.calendar-provider-links .button {
  text-align: center;
}
.calendar-url-label {
  display: block;
  margin-bottom: 6px;
  font-size: .85rem;
  font-weight: 650;
}
#calendar-subscription-url {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: .8rem;
}
.calendar-copy {
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
}
.calendar-help, .calendar-copy-status {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}
.calendar-copy-status {
  min-height: 1.5em;
  margin-block: 6px;
}
.schedule-entry {
  position: relative;
  display: block;
  padding: 10px 11px;
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.35;
}
.schedule-date {
  display: block;
  padding-left: 45px;
}
.schedule-day {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  font-size: 1.03rem;
  font-weight: 750;
}
.schedule-month {
  font-size: .88rem;
  font-weight: 650;
}
.schedule-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin: 3px 0 0 45px;
  color: var(--muted);
  font-size: .78rem;
}
.schedule-arrow {
  color: var(--blue);
  font-size: .9rem;
}
.schedule-link {
  background: var(--white);
  border-color: var(--line);
}
.schedule-link:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue-deep);
}
.schedule-item-next .schedule-entry {
  border-color: #a9cde6;
  background: var(--blue-light);
}
.schedule-item-next .schedule-day {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}
.schedule-item-next .schedule-status {
  color: var(--blue-deep);
  font-weight: 650;
}
.session-card:focus-visible, #schedule-title:focus-visible {
  outline: 3px solid #e6a638;
  outline-offset: 4px;
}

@media (max-width: 1040px) {
  .seminar-programme-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 26px;
  }
  .seminar-practical .seminar-info-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .seminar-programme-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .seminar-programme-layout > section, .seminar-practical, .schedule-panel {
    width: 100%;
  }
  .schedule-panel {
    position: static;
  }
  .seminar-practical .seminar-info-grid {
    grid-template-columns: 1fr;
  }
  .programme-heading {
    flex-wrap: wrap;
    gap: 0 18px;
  }
  .programme-heading .section-heading {
    margin-bottom: 8px;
  }
}
@media print {
  .seminar-programme-layout {
    display: block;
  }
  .schedule-panel {
    position: static;
    margin-block: 24px;
  }
}

.session-card {
  margin-block: 24px;
  padding: 29px 32px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: var(--white);
}

.session-date {
  margin-bottom: 19px;
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 700;
}

.talk + .talk {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.talk-meta {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .91rem;
}

.talk-title {
  margin-bottom: 15px;
  font-size: 1.24rem;
  font-weight: 650;
  line-height: 1.4;
}

.abstract-label {
  margin-bottom: 5px;
  font-size: .84rem;
  font-weight: 700;
  color: var(--blue-deep);
}

.abstract-text {
  color: #42586a;
  font-size: .97rem;
  line-height: 1.75;
}

.abstract-text:last-child {
  margin-bottom: 0;
}

.archive-year {
  margin-top: 45px;
  margin-bottom: 20px;
  font-size: 1.55rem;
}

/* Footer and institutional links */
.site-footer {
  padding-block: 48px 24px;
  color: #d1dde9;
  background: #0d2c47;
  font-size: .91rem;
}

/* Keep the identity and both navigation groups aligned at the top. */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}

.footer-brand,
.footer-navigation,
.footer-institutions {
  min-width: 0;
}

.footer-home {
  display: inline-block;
  max-width: 100%;
  flex-shrink: 0;
}

.footer-tagline {
  max-width: 27ch;
  margin: 18px 0 0;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.6;
}

/* Keep each part together, with the conjunction ending the first line. */
.footer-tagline-line {
  display: block;
}

.footer-heading {
  margin: 0 0 16px;
  color: #a9bdcf;
  font-size: .73rem;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-link-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link-list li {
  margin: 0;
}

.site-footer a {
  color: #d1e8ff;
}

.footer-link-list a {
  display: inline-block;
  padding-block: 2px;
  text-decoration: none;
  line-height: 1.5;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--white);
}

.site-footer a:focus-visible {
  outline: 3px solid #d1e8ff;
  outline-offset: 4px;
}

.footer-link-list a:hover,
.footer-link-list a:focus-visible {
  text-decoration: underline;
  text-underline-offset: .2em;
}

/* Separate the affiliation note from the link groups above it. */
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
}

.footer-note {
  margin: 0;
  color: #a9bdcf;
  font-size: .82rem;
  line-height: 1.65;
}


/* Responsive layouts: keep the breakpoints in their current order. */
@media (max-width: 1060px) {
  .brand-caption {
    display: none;
  }
  .site-navigation {
    gap: 2px;
  }
  .site-navigation a {
    padding-inline: 11px;
  }
  .home-grid {
    gap: 38px;
  }
  .publication-card {
    padding: 23px;
  }
}

@media (max-width: 800px) {
  html {
    scroll-padding-top: 88px;
  }
  .container {
    width: calc(100% - 40px);
  }
  .header-row {
    min-height: 76px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .brand {
    margin-right: auto;
  }
  .menu-toggle {
    order: 3;
  }
  .language-switcher {
    order: 2;
  }
  .brand-mark {
    font-size: 1.8rem;
  }
  .site-navigation {
    order: 4;
    flex-basis: 100%;
    flex-wrap: wrap;
    margin-left: 0;
    padding-bottom: 15px;
    gap: 5px;
  }
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
  }
  .js .site-navigation {
    display: none;
  }
  .js .site-navigation.is-open {
    display: flex;
  }
  .site-navigation a {
    min-height: 42px;
    padding-inline: 13px;
  }
  .hero.hero-home {
    min-height: 520px;
    background-size: auto, 100% auto;
    background-repeat: no-repeat;
    background-position: center, center bottom;
    align-items: flex-start;
  }
  .hero {
    background-position: 58% center;
  }
  .hero-content {
    padding-block: 40px;
  }
  .content-container {
    padding-block: 39px 54px;
  }
  .home-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 39px;
  }
  .home-visual {
    min-height: 175px;
    padding: 25px;
  }
  .parma-logo {
    max-height: 160px;
  }
  .publication-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .members-toolbar {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }
  #member-count {
    grid-column: 1 / -1;
    text-align: left;
  }
  .info-grid {
    gap: 18px;
  }
  .seminar-info-grid {
    grid-template-columns: 1fr;
  }
  .info-card {
    padding: 23px;
  }
  /* The brand spans the first row; both link groups share the second row. */
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .footer-tagline {
    margin-top: 0;
  }
}

@media (max-width: 540px) {
  .header-row {
    padding-block: 12px 8px;
    gap: 8px;
  }
  .language-switcher {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-end;
    padding-left: 0;
    border-left: 0;
  }
  .menu-toggle {
    order: 2;
  }
  body {
    font-size: 16px;
  }
  .container {
    width: calc(100% - 32px);
  }
  .hero {
    min-height: 246px;
    background-image: linear-gradient(90deg, rgba(4,31,60,.88), rgba(5,40,72,.66)), url("../images/mountains.jpg");
  }
  .hero.hero-home {
    min-height: 600px;
  }
  .hero h1 {
    font-size: 2.35rem;
  }
  .hero-lead {
    font-size: 1.04rem;
  }
  .hero-content {
    padding-block: 35px;
  }
  .hero-actions {
    margin-top: 24px;
    gap: 10px;
  }
  .button {
    padding-inline: 17px;
  }
  .lead {
    font-size: 1.08rem;
  }
  .member-grid, .info-grid {
    grid-template-columns: 1fr;
  }
  .member-grid {
    gap: 12px;
  }
  .member-card {
    padding: 20px;
  }
  .member-section {
    margin-bottom: 33px;
  }
  .member-section > h2 {
    font-size: 1.32rem;
  }
  .members-toolbar {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .members-toolbar input {
    min-height: 45px;
  }
  .session-card {
    padding: 23px 21px;
  }
  .talk-title {
    font-size: 1.14rem;
  }
  .site-footer {
    padding-top: 34px;
  }
  .footer-grid {
    gap: 28px 24px;
  }
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-tagline {
    font-size: .93rem;
  }
  .footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
  }
}


/* Align both link lists when a heading wraps on the narrowest screens. */
@media (max-width: 360px) {
  .footer-heading {
    min-height: 3em;
  }
}


/* Respect the reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}


/* Print and PDF layout */
@media print {
  .site-header {
    position: static;
  }
  .menu-toggle, .language-switcher, .hero-actions, .members-toolbar, .jump-nav, .skip-link {
    display: none !important;
  }
  .hero, .site-footer {
    background: none;
    color: var(--ink);
  }
  .hero {
    min-height: 0;
  }
  .hero h1, .hero-lead, .hero .eyebrow, .site-footer a,
  .footer-tagline, .footer-heading, .footer-note {
    color: var(--ink);
  }
  .hero-content, .content-container {
    padding-block: 22px;
  }
  .member-card, .session-card, .info-card, .publication-card {
    break-inside: avoid;
  }
  .container {
    width: 100%;
  }
  .location-map {
    display: none;
  }
}


/* Original team logo, shown without cropping. */
.brand-logo {
  display: block;
  width: 150px;
  height: auto;
  object-fit: contain;
}
.footer-logo {
  width: 240px;
}


/* Seminar history can be opened by year; team sections stay visible. */
.seminar-archive {
  margin-block: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.seminar-archive > summary {
  padding: 18px 22px;
  background: var(--surface);
  color: var(--blue-deep);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 650;
}
.seminar-archive[open] > summary {
  border-bottom: 1px solid var(--line);
}
.archive-content {
  padding: 0 22px;
}

@media (max-width: 540px) {
  .brand-logo {
    width: 125px;
  }
  .footer-logo {
    width: 200px;
  }
  .archive-content {
    padding-inline: 12px;
  }
}

@media print {
  .hero.hero-home {
    min-height: 0;
    background: none;
  }
  .seminar-archive > summary {
    background: none;
  }
  .seminar-archive > .archive-content {
    display: block !important;
  }
}
