@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

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

body {
  font-family: 'Open Sans', Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
}

/* ── Navigation ── */
nav {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  padding: 10px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.logo {
  font-size: 36px;
  font-weight: 200;
  color: #222;
  text-decoration: none;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1;
}
.logo:hover { color: #000; }
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
nav a {
  text-decoration: none;
  color: #333;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
nav a:hover, nav a.active { color: #000; border-bottom: 2px solid #222; padding-bottom: 2px; }

/* ── Page container ── */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 12px 0px 60px;
}

h1 { font-size: 1.75rem; margin-bottom: .2em; }
h2 { font-size: 1.15rem; margin-top: 0; color: #444; }
h3 { font-size: 1.1rem; margin-top: 2em; margin-bottom: .5em; }

/* ── Index hero: image + text side by side ── */
.hero-layout {
  max-width: 860px;
  margin: 28px auto 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 36px;
}
.hero-layout img {
  max-width: 220px;
  /*width: 100%;*/
  flex-shrink: 0;
}
.hero-layout .hero-text { flex: 1; }
.hero-layout .hero-text h1 { margin-top: 0; }

/* ── Info block ── */
.info { margin: 20px 0; }
.info p { margin: .4em 0; }

/* ── Program grid (two columns) ── */
.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  margin: 16px 0 32px;
}
.program-col h4 {
  font-size: .9rem;
  font-weight: 700;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #555;
}
.program-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: .9rem;
}
.program-row img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.program-row .time {
  color: #777;
  font-size: .8rem;
  min-width: 80px;
}

/* ── Anchor scroll offset (sticky nav compensation) ── */
html { scroll-padding-top: 72px; }
.abstract { scroll-margin-top: 72px; }

/* ── Abstract cards ── */
.abstract { margin-bottom: 52px; }
.abstract-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 12px;
}
.abstract-header img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.abstract-header-text { flex: 1; }
.abstract-header-text strong {
  font-size: 1rem;
  display: block;
  margin-bottom: 6px;
}
.abstract p { margin: .55em 0; line-height: 1.75; }

/* ── PDF icon link ── */
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #c0392b;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
  margin-top: 4px;
}
.pdf-link:hover { color: #922b21; }
.pdf-link svg { flex-shrink: 0; }

/* ── Footer ── */
footer {
  background: #f4f4f4;
  padding: 10px 32px;
}
.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}
.footer-inner > a { display: flex; align-items: center; flex-shrink: 0; min-width: 60px; }
footer img { height: 44px; }
footer span {
  font-size: .75rem;
  letter-spacing: .05em;
  color: #555;
}

/* ── Bibliography ── */
.biblio-body { max-width: 860px; margin: 0 auto; padding: 24px 0px 60px; }
.biblio-body h2 { font-size: 1.4rem; margin-bottom: .2em; }
.biblio-body h3 { margin-top: 2em; border-bottom: 1px solid #ddd; padding-bottom: .3em; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.biblio-body ol { padding-left: 0; list-style-position: inside; }
.biblio-body li { margin-bottom: .6em; line-height: 1.7; }
.biblio-body a { color: #1a5276; }
.biblio-body a:hover { color: #000; }
.biblio-search {
  font-size: .8rem;
  padding: 3px 8px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-family: inherit;
  width: 200px;
}
.biblio-search:focus { outline: none; border-color: #555; }

@media (max-width: 620px) {
  .program-grid { grid-template-columns: 1fr; }
  .abstract-header { flex-direction: column; align-items: center; text-align: center; }
  .hero-layout { flex-direction: column; align-items: center; text-align: center; }
  nav { padding: 10px 16px; }
}
