html {
  scroll-behavior: smooth;
}

/* bootstrap inspired */
body {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    "Liberation Sans",
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol",
    "Noto Color Emoji";
  line-height: 1.4; /* (Roberto's) tighter global line height  */
  color: #1f2937;
  text-align: left;
  background-color: rgba(20, 90, 150, 0.1);
  margin: 0;
  padding: 0;
}

.cern-toolbar {
  background-color: rgba(30, 30, 30, 0.95);
  color: #999;
  height: 40px;
  width: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
  padding: 0 2%;
  box-sizing: border-box;
}

.cern-toolbar h1 {
  padding: 6px 0;
  line-height: 1;
  letter-spacing: 0.05em;
  margin: 0;
  font-size: 0.95em;
}

.cern-toolbar a {
  color: white;
  font-size: 0.95em;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 5px;
  display: inline-block;
}

.cern-toolbar a:hover {
  color: #fff;
  background-color: #000000;
}

.cern-toolbar span {
  font-weight: normal;
  font-size: 0.95em;
  line-height: 1;
  letter-spacing: normal;
  color: #999;
  font-weight: bold;
}

.cern-toolbar a:hover span {
  color: #bbb;
}

/* -------------------- header -------------------- */
.main-header {
  background-color: rgb(0, 90, 154);
  color: #fff;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
  position: sticky;
  z-index: 1;
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.header-titles {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: 1.5em;
}

.header-title-main {
  font-size: 150%;
  font-weight: 700;
  color: rgb(240, 240, 240);
  /* margin-bottom: 0.5rem; */
}

/* logo */
.header-titles img {
  height: 75px;
  margin-right: 1em;
}

.cern-link {
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-weight: 600;
  /* transition: text-decoration-color 0.3s; */
  /* font-weight: 400; */
}

/* .cern-link:hover {
    text-decoration-color: transparent;
} */

.header-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0.75rem;
}

.nav-link {
  color: white;
  /* text-decoration: none; */
}

.nav-link:not(:last-child):after {
    content: "|";
    margin: 0 10px;
    color: #ccc;
}

.nav-link:hover {
  text-decoration: none;
}

.separator {
  color: #aaa;
}

@media (min-width: 800px) {
  .header-container {
    /* display header items side-by-side on larger screens */
    flex-direction: row;
    justify-content: space-between;
  }

  .header-titles {
    /* ensures the title and image stay together and don't wrap */
    flex-shrink: 0;
  }
}

@media (max-width: 600px) {
  .header-titles {
    /* stack logo and title on top of each other */
    flex-direction: column;
  }

  .header-title-main {
    font-size: 1.5em;
  }
}

/* -------------------- publications (title and cards) -------------------- */
.publications-section-title {
  text-align: center;
  font-size: 1.5em;
  font-weight: 600;
  color: rgb(31, 41, 55);
  padding: 20px;
  margin: 0;
  background-color: rgba(0, 60, 102, 0.15);
  box-shadow:
    0 1px 2px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px -1px rgba(0, 0, 0, 0.05);
}

.publications-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2em 0.5em 6em 0.5em;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(450px, 2fr) 1.25fr;
  /* align-items: center;   */

}

/* for medium screens and larger, switch to 2 columns */
@media (max-width: 900px) {
  .publications-container {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

.card-group {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.card {
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  margin: 0.5rem;
  padding: 25px 35px; /* Reduced vertical padding */
  border-bottom: 1px solid var(--border-color);
  max-width: 720px;
}

.card-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card:hover {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.small-card {
  flex: 1;
  /* padding: 0.75em 3em; */
  margin: 2rem 0.5rem;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

.small-card:hover {
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
}

.dark-card {
  background-color: hsl(206, 33%, 80%);
}

.light-gray-card {
  background-color: rgb(240, 240, 240);
}

.gray-card {
  background-color: rgb(220, 220, 220);
}

.card-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.card-title a {
  color: #152029;
  text-decoration: none;
}

.card-title a:hover {
  text-decoration: underline;
}

.subtitle{
  font-weight: 700;
  font-size: 1rem;
  color: #333;
}


.small-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.small-card {
  font-size: 0.9rem;
}

.small-card h3 {
  font-weight: 650;
  font-size: 1rem;
  margin-bottom: 0;
}

.card-list {
  /* list-style: none; */
  padding-left: 30px;
  position: relative;
}

.card-list li {
  margin-bottom: 4px;
  line-height: 1.3;
}

.card-list a {
  color: #2b2b2b;
  text-decoration: none;
}

.card-list a:hover {
  text-decoration: underline;
}

.sub-list {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  margin-left: 3rem;
  padding-left: 26px;
  border-left: 1px solid #bbb;
  list-style: none;
}

.sub-list li {
  margin-bottom: 2px; /* Very compact sub-items */
  position: relative;
  font-size: 0.95rem;
}

.sub-list li::before {
  content: "—";
  position: absolute;
  left: -25px;
  color: #bbb;
  font-weight: 700;
}

.sub-list a {
  color: #2b2b2b;
  text-decoration: none;
}

.small-card-list {
  list-style: none;
  font-size: 0.9rem;
  padding-left: 0;
}

.small-card-list li {
  margin-bottom: 4px;
  line-height: 1.3;
}

.small-card-list a {
  color: #2b2b2b;
  text-decoration: none;
}

.small-card-list a:hover {
  text-decoration: underline;
}

#publications-formats-card a {
  text-decoration: underline;
}

#publications-formats-card a:hover {
  text-decoration: none;
}

.star-image {
  width: 12px;
  height: 12px;
}

.event-display {
  margin: 0; 
  padding: 0;
  display: block; 
}

.event-display img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-display figcaption {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin-top: 8px;
}

.image-card {
  padding: 1rem;
}

/* -------------------- footer without images -------------------- */
footer {
  background-color: rgba(50, 50, 60, 0.75);
  text-align: center;
  color: white;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0 1rem;
  line-height: 0.5rem;
}


@media (min-width: 800px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
  }
}

footer a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

footer a:hover {
  text-decoration: underline;
}

.icon {
  width: 16px;
  height: 16px;
  box-sizing: border-box;
}

/* -------------------- footer with images -------------------- */
/* footer {
  background-color: #e5e7eb;
  margin: 0;
}

.footer-text {
  background-color: #1f2937;
  color: #f3f4f6;
  padding: 6px 8px;
  text-align: right;
}

.image-container {
  display: flex;
  height: 200px;
  width: auto;
  overflow: hidden;
}

.image-container img {
  flex: 1;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: filter 0.3s ease-in-out;
  cursor: pointer;
}

.image-container img:hover {
  filter: brightness(1);
} */
