html {
  scroll-behavior: smooth;
}

body {
  font-family: "PT Sans", "Trebuchet MS", Tahoma, sans-serif;
  background-color: rgba(20, 90, 150, 0.06);
  margin: 0;
  padding: 0;
  color: #1f2937;
}

.cern-toolbar {
  background-color: rgb(25, 25, 25);
  color: rgb(204, 204, 204);
  height: 48px;
  width: 100%;
  display: flex;
  align-items: center;
  z-index: 2000;
  padding: 0 24px;
  box-sizing: border-box;
  justify-content: space-between;
  font-size: 16px;
}

.cern-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 28px;
}

.cern-toolbar-right {
  display: flex;
  align-items: center;
}

/* actions list in the toolbar (Sign in / Directory) */
.cern-toolbar-actions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  align-items: center;
}
.cern-toolbar-actions-list li {
  margin: 0;
}

.login-btn {
  color: rgb(240,240,240);
  text-decoration: none;
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  border: 0;
  display: inline-block;
}

.login-btn:hover {
  color: rgb(255,255,255);
  background: rgba(255,255,255,0.08);
}

.login-page-cta {
  padding-left: 62px;
}

@media (max-width: 600px) {
  .login-page-cta {
    padding-left: 16px;
  }
}

.main-content {
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 600px) {
  .main-content {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* informational paragraph used on login and home pages; align with main content */
.site-info {
  max-width: 1440px;
  margin: 8px auto;
  padding-left: 32px;
  padding-right: 32px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .site-info {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.cern-toolbar h1 {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0;
  line-height: 1;
  letter-spacing: 0.04em;
  margin: 0;
  margin-right: 1.5em;
  font-size: 14px;
  font-weight: 400;
  color: rgb(153,153,153);
}
.cern-toolbar h1 a {
  color: rgb(255,255,255);
  text-decoration: none;
  display: inline-block;
  line-height: 26px;
}

.cern-toolbar a {
  color: inherit;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 6px 8px;
  display: inline-block;
}

.cern-toolbar span {
  font-weight: 600;
  font-size: 14px;
  color: inherit;
}

.main-header {
  background-color: rgb(0, 90, 154);
  color: #fff;
  padding: 13px 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 48px;
  z-index: 1000;
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 32px;
  padding-left: 62px;
  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: 1.75rem;
  font-weight: 700;
  color: rgb(245,245,245);
  margin: 0;
}

.header-titles img {
  height: 52px;
  margin-right: 1em;
}

.cern-link {
  color: rgb(240, 240, 240);
  text-decoration: none;
}
.header-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  color: white;
}

.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;
  }

  .header-container {
    /* reduce header paddings on small screens so layout remains usable */
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* -------------------- publications (title and cards) -------------------- */
.publications-section-title {
  text-align: center;
  font-size: 2em;
  font-weight: 700;
  color: rgb(31, 41, 55);
  padding: 32px;
  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: 1440px;
  margin: 0 auto;
  padding: 2em 1em 6em 1em;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

/* for medium screens and larger, switch to 2 columns */
@media (min-width: 800px) {
  .publications-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1em 3em;
  transition: box-shadow 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.med-card {
  flex: 2;
  padding: 0.75em 3em;
}

.small-card {
  flex: 1;

  background-color: hsl(206, 33%, 80%);
}

.gray-card {
  background-color: rgb(210, 210, 210);
}

.card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.card-title {
  font-weight: 600;
}

.card-title a {
  color: #152029;
}

.card-title a:hover {
  text-decoration: none;
}

.small-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.small-card h3,
.small-card h4 {
  margin-bottom: 20px;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-list li {
  margin-bottom: 6px;
}

.card-list a {
  color: #2b2b2b;
  text-decoration: none;
}

.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: 14px;
  height: 14px;
}

/* -------------------- 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: row; /* prefer a single-line layout */
  flex-wrap: wrap;    /* allow wrapping on narrow screens */
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0.8em;
}

@media (min-width: 800px) {
  .footer-content {
    /* keep single-line on wide screens */
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    max-width: 1440px;
    margin: 0 auto;
  }
}

/* Make footer paragraph inline and avoid wrapping on wide screens */
.footer-content p {
  margin: 0;
}

@media (min-width: 800px) {
  .footer-content p {
    white-space: nowrap;
  }
}

/* Ensure footer text and link stay together on one line on wide screens */
.footer-content p {
  margin: 0;
  display: inline-block;
  font-size: 14px;
  color: inherit;
}

.footer-content a {
  color: inherit;
  text-decoration: underline;
  display: inline-block;
}

@media (min-width: 800px) {
  .footer-content p, .footer-content a {
    white-space: nowrap;
  }
}

/* On medium and larger screens keep footer single-line and allow overflow if strictly necessary */
@media (min-width: 640px) {
  footer { padding: 0.6em 0; }
  .footer-content { white-space: nowrap; }
  .footer-content p { overflow: hidden; text-overflow: ellipsis; }
}

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;
}

/* Workspace cards layout */
.workspace-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1440px; /* align with header container rhythm */
  margin: 20px auto;
  padding: 0 32px; /* match header container horizontal padding */
  box-sizing: border-box;
}

.workspace-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.workspace-card-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #0b3d91;
}

.workspace-card-body {
  font-size: 14px;
  color: #333;
}

.main-content {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}

.workspace-card-intro {
  margin: 6px 0 12px 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.workspace-card-title {
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

@media (max-width: 700px) {
  .workspace-cards {
    grid-template-columns: 1fr;
    padding: 0 12px;
  }
}

