:root {
  --navy: #0d2b45;
  --green: #2e7d32;
  --teal: #2fa189;
  --blue-grey: #4a6b87;
  --light-blue: #7eb4d1;
  --grey: #888888;
  --ink: #1d2a32;
  --muted: #5f707b;
  --line: #dbe5ea;
  --surface: #f5f9fb;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(13, 43, 69, 0.12);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  color: var(--muted);
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.45rem;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(219, 229, 234, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 86px;
}

.brand {
  flex: 0 0 auto;
}

.brand-lockup,
.footer-logos {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 265px;
  height: auto;
}

.rilem-logo-link {
  display: inline-flex;
  align-items: center;
}

.rilem-logo-link img {
  display: block;
  width: 55px;
  height: 70px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
}

.site-nav a {
  padding: 0.45rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--green);
  border-color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
}

.section {
  padding: 92px 0;
  scroll-margin-top: 98px;
}

.section-tight {
  padding: 30px 0;
}

.section-muted {
  background: var(--surface);
}

.section-navy {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(47, 161, 137, 0.16), rgba(126, 180, 209, 0.08)),
    var(--navy);
}

.section-navy p,
.section-navy .section-kicker,
.section-navy span {
  color: rgba(255, 255, 255, 0.78);
}

.hero {
  min-height: calc(100vh - 86px);
  padding: 58px 0 74px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(126, 180, 209, 0.18) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(126, 180, 209, 0.12) 0 1px, transparent 1px 100%);
  background-size: 56px 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
  align-items: center;
  gap: 54px;
}

.eyebrow,
.section-kicker {
  margin-bottom: 0.85rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 850px;
  margin-bottom: 1.25rem;
  color: var(--navy);
  font-size: 4.45rem;
  line-height: 0.98;
  font-weight: 800;
}

h2 {
  margin-bottom: 1rem;
  color: var(--navy);
  font-size: 3rem;
  line-height: 1.08;
  font-weight: 800;
}

h3 {
  margin-bottom: 0.55rem;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 800;
}

.section-navy h2,
.section-navy h3 {
  color: var(--white);
}

.hero-lede {
  max-width: 680px;
  margin-bottom: 2rem;
  color: var(--blue-grey);
  font-size: 1.18rem;
}

.hero-actions,
.abstract-panel,
.speaker-placeholder {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 12px 24px rgba(46, 125, 50, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #276b2b;
}

.button-secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
  box-shadow: 0 10px 24px rgba(13, 43, 69, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--light-blue);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-mc3-logo {
  width: 100%;
  transform: translateY(-0.5rem) scale(1.08);
}

.hero-rilem-wordmark {
  display: block;
  width: min(32.3%, 187px);
  height: auto;
  margin: 0.85rem auto 0;
}

.two-column {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
}

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

.about-inline-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: start;
  gap: 1.2rem;
  margin-top: 1.6rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.about-inline-copy p {
  margin: 0;
}

.about-inline-copy p + p {
  margin-top: 0.55rem;
}

.about-inline-copy strong {
  color: var(--navy);
}

.about-inline-logo {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-inline-logo img {
  width: min(100%, 220px);
  height: auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

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

.collaborators-section {
  background: var(--surface);
}

.collaborator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.collaborator-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(21, 49, 76, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.collaborator-logo:hover,
.collaborator-logo:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(21, 49, 76, 0.12);
}

.collaborator-logo img {
  display: block;
  width: 100%;
  max-width: 190px;
  max-height: 72px;
  object-fit: contain;
}

.collaborator-logo-government {
  flex-direction: column;
  gap: 0.55rem;
}

.collaborator-logo-government img {
  width: 190px;
  height: 56px;
  max-width: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.collaborator-logo-government span {
  max-width: 190px;
  color: var(--blue-grey);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.collaborator-logo-photokrete img {
  width: 180px;
  height: 96px;
  max-width: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.collaborator-logo-ehu img {
  width: 140px;
  height: 100px;
  max-width: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.card-grid,
.committee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-card {
  min-height: 190px;
}

.topic-heading {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.topic-index {
  display: inline-block;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
}

.topic-heading h3 {
  margin-bottom: 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.timeline-item {
  position: relative;
  padding: 1.35rem;
  border-left: 4px solid var(--teal);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.timeline-item span {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.program-layout,
.venue-layout,
.registration-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 54px;
}

.special-issue-banner {
  padding: 0 0 5.5rem;
}

.special-issue-banner-inner {
  max-width: var(--container);
}

#special-issue {
  scroll-margin-top: 96px;
}

.venue-intro {
  max-width: 760px;
  margin-left: max(20px, calc((100% - var(--container)) / 2));
}

.program-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.program-list article {
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.program-list strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--white);
}

.program-list span {
  line-height: 1.45;
}

.program-page-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.speaker-placeholder {
  justify-content: space-between;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.speaker-placeholder div {
  max-width: 680px;
}

.speaker-placeholder p,
.registration-card p,
.card p {
  margin-bottom: 0;
}

.funding-note {
  margin-top: 0.85rem !important;
  font-size: 0.88rem;
  line-height: 1.5;
}

.committee-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.subpage-navigation {
  padding: 32px 0 0;
}

.subpage-navigation + .section {
  padding-top: 40px;
}

.subpage-navigation .committee-back-link {
  margin-bottom: 0;
}

.subpage-navigation ~ .section .container {
  text-align: left;
}

.accommodation-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.accommodation-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-top: 3px solid var(--teal);
}

.accommodation-card h3 {
  overflow-wrap: anywhere;
}

.accommodation-card p {
  flex: 1;
  font-size: 0.88rem;
}

.accommodation-rate {
  display: block;
  margin-top: 0.45rem;
  color: var(--blue-grey);
  font-size: 0.82rem;
  font-weight: 700;
}

.committee-back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--green);
  font-weight: 600;
}

.committee-back-link:hover,
.committee-back-link:focus-visible {
  text-decoration: underline;
}

.inline-link {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.inline-link:hover,
.inline-link:focus-visible {
  color: #276b2b;
}

.committee-member h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.committee-member p {
  overflow-wrap: anywhere;
}

.committee-chair {
  max-width: 560px;
  border-top: 3px solid var(--teal);
}

.submission-content {
  max-width: 900px;
  margin-left: max(20px, calc((100% - var(--container)) / 2));
  margin-right: auto;
  text-align: left;
}

.submission-intro h1 {
  margin-bottom: 1rem;
}

.submission-content ul {
  margin: 1rem 0 0;
  padding-left: 1.35rem;
}

.submission-content li + li {
  margin-top: 0.7rem;
}

.submission-cta {
  padding-bottom: 2rem;
}

.submission-cta .button {
  margin-top: 0.75rem;
}

.site-nav a[aria-current="page"] {
  color: var(--green);
  border-color: var(--teal);
}

.venue-layout img {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.registration-card {
  background: var(--white);
}

.abstract-panel {
  justify-content: space-between;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(47, 161, 137, 0.1), rgba(126, 180, 209, 0.1)),
    var(--white);
}

.abstract-panel div {
  max-width: 720px;
}

.contact-card {
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.contact-card span,
.contact-card small {
  display: block;
  color: rgba(255, 255, 255, 0.75);
}

.contact-card strong {
  display: inline-block;
  margin: 0.25rem 0;
  color: var(--white);
  font-size: 1.18rem;
  font-weight: 800;
}

.contact-card a {
  color: inherit;
  text-decoration: none;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-mc3-logo {
  width: 245px;
}

.footer-rilem-logo {
  display: block;
  width: 65px;
  height: 83px;
  object-fit: contain;
}

.footer-inner p {
  max-width: 520px;
  margin: 0;
  color: var(--blue-grey);
  font-size: 0.9rem;
  text-align: right;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 76px;
  }

  .brand-logo {
    width: 220px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.7rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .hero-grid,
  .two-column,
  .program-layout,
  .venue-layout,
  .registration-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .program-list,
  .program-page-grid {
    grid-template-columns: 1fr;
  }

  .special-issue-banner-inner {
    max-width: calc(100% - 40px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 500px;
    margin-inline: auto;
  }

  .about-inline-block {
    grid-template-columns: 1fr;
  }

  .about-inline-logo {
    justify-self: start;
  }

  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .card-grid,
  .accommodation-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .committee-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collaborator-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand-logo {
    width: 185px;
  }

  .section {
    padding: 64px 0;
  }

  .section-tight {
    padding: 20px 0;
  }

  .hero {
    padding: 34px 0 56px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .card-grid,
  .committee-grid,
  .accommodation-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .collaborator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collaborator-logo {
    min-height: 112px;
    padding: 1rem;
  }

  .hero-actions,
  .abstract-panel,
  .speaker-placeholder {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .abstract-panel {
    padding: 1.35rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner p {
    text-align: left;
  }
}
