/* CBT2025 archive additions */
.archive-note { padding:14px 18px; border-left:6px solid #8b5a00; background:#fff7df; }
.archive-closed { opacity:.78; }


/* Archive header: notice integrated beside the logo */
.archive-header {
  box-sizing: border-box;
}
.archive-header-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
}
.archive-header #logo {
  flex: 0 0 auto;
  margin: 0;
}
.archive-header-message {
  min-width: 250px;
  max-width: 440px;
  padding: 8px 12px;
  border-left: 4px solid #8b5a00;
  border-radius: 0 8px 8px 0;
  background: #fff7df;
  color: #3d2b00;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.45;
}
.archive-header-message strong {
  display: block;
  margin-bottom: 1px;
  font-size: 0.9rem;
  color: #6f4700;
}
.archive-header-message span {
  display: block;
}
.archive-header-message a {
  display: inline-block;
  margin-top: 3px;
  color: #8b5a00;
  font-weight: 800;
  text-decoration: underline;
}

@media screen and (min-width: 900px) {
  body {
    padding-top: 104px;
  }
  .archive-header {
    top: 0;
    left: 0;
    height: 104px;
    gap: 12px;
  }
  .archive-header #logo img {
    width: clamp(230px, 24vw, 340px);
  }
  .archive-header #menubar {
    flex: 0 0 auto;
  }
  .archive-header.large-screen #menubar > nav > ul,
  .large-screen .archive-header #menubar > nav > ul {
    gap: 0.15rem;
  }
  .large-screen .archive-header #menubar li a {
    padding: 0.65rem 0.65rem;
  }
}

@media screen and (max-width: 899px) {
  body {
    padding-top: 0;
  }
  .archive-header {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 12px 58px 12px 14px;
    background: #fff;
  }
  .archive-header-brand {
    display: block;
  }
  .archive-header #logo img {
    width: min(72vw, 330px);
  }
  .archive-header-message {
    min-width: 0;
    max-width: none;
    margin-top: 9px;
    padding: 8px 10px;
    font-size: 0.78rem;
  }
  .archive-header-message strong {
    font-size: 0.88rem;
  }
  #contents {
    padding-top: 24px;
  }
  #menubar_hdr {
    top: 20px;
  }
}

@media screen and (min-width: 900px) and (max-width: 1180px) {
  .archive-header-message {
    min-width: 210px;
    max-width: 300px;
    font-size: 0.68rem;
  }
  .archive-header-message strong {
    font-size: 0.8rem;
  }
  .large-screen .archive-header #menubar li a {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }
}

/* Keep archive notices readable even when placed inside .bg1 sections. */
.archive-note {
  color: #3d2b00 !important;
}
.archive-note h1,
.archive-note h2,
.archive-note h3,
.archive-note h4,
.archive-note strong {
  color: #5f3d00 !important;
}
.archive-note a {
  color: #6f4700 !important;
  font-weight: 700;
  text-decoration: underline;
}
