/*
   AIDu / PHBern-inspired web style
   White/ecru base with restrained blue, dark-green, lilac and orange accents.
   The palette follows the visual language visible on current PHBern web material;
   these are web-friendly approximations, not asserted official CI hex values.
*/

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
}

.navbar {
  --bs-navbar-color: #fff;
  --bs-navbar-hover-color: #fff;
  --bs-navbar-active-color: #fff;
  --bs-navbar-brand-color: #fff;
  --bs-navbar-brand-hover-color: #fff;
  background-color: #ad1030 !important;
}

.navbar .navbar-brand,
.navbar .navbar-nav .nav-link,
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus,
.navbar .navbar-nav .nav-link.active {
  color: #fff !important;
}

.navbar #quarto-search svg,
.navbar #quarto-search .aa-DetachedSearchButtonIcon {
  color: #fff !important;
}

#quarto-content {
  max-width: none;
}

.content,
.intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.intro {
  font-size: 1.35rem;
  line-height: 1.55;
  padding-top: 3rem;
  padding-bottom: 1.25rem;
}

h1 {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 1.5rem 1rem;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.05;
  font-weight: 600;
}

h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 2rem;
}

p,
li {
  font-size: 1.1rem;
  line-height: 1.65;
}

.image-wide {
  max-width: 1100px;
  margin: 1rem auto;
}

.image-wide p {
  margin: 0;
}

.image-wide img {
  display: block;
  width: 100%;
  height: auto;
}

.last-image {
  border: 1px solid gray;
  box-sizing: border-box;
}

.image-placeholder {
  border: 1px solid #ccc;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 1rem;
}

@media (max-width: 800px) {
  h1 {
    font-size: 2.7rem;
    padding-top: 2rem;
  }

  .intro {
    font-size: 1.2rem;
  }

  .image-wide {
    margin: 0.75rem 1rem;
  }
}


.image-placeholder {
  min-height: 320px;
  margin: 4rem 0;
  border: 2px dashed #9aa0a6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #6b7280;
  background: #fafafa;
}

.image-placeholder strong {
  font-size: 1.4rem;
  color: #333;
}

.image-placeholder em {
  margin-top: 0.5rem;
}
