/* A shared chalkboard cover, with a distinct illustration for each chapter.
   Fixed board colours keep the warm chalk legible in both site themes.
   Scope every rule to the component: article surfaces keep their theme. */
.chalk-header-page .student-article-hero {
  --student-title-band: #405c7d;
  position: relative;
  padding: 1.85rem 0 1.65rem;
  color: #f5ebd3;
  background: #102b49;
  border-bottom: 1px solid #587084;
}
.chalk-header-page .student-article-hero--lab { --student-title-band: #36596b; }
.chalk-header-page .student-article-hero--people { --student-title-band: #625675; }
.chalk-header-page .student-article-hero--team { --student-title-band: #4b5a73; }
.chalk-header-page .student-article-hero__inner {
  position: relative;
  width: 100%;
  max-width: 1160px;
  padding-inline: 28px;
  margin-inline: auto;
}
.chalk-header-page .student-article-hero__eyebrow {
  margin: 0;
  color: #e0d8bd;
  font: 600 .7rem/1.65 var(--font-nav);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.chalk-header-page .student-article-hero__eyebrow span {
  margin-inline: .9rem;
  opacity: .6;
}
.chalk-header-page .student-article-hero__art {
  isolation: auto;
  background: #102b49;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: min(82%, 850px);
  max-width: 100%;
  height: clamp(240px, 27vw, 340px);
  margin: .2rem 0 .4rem auto;
}
.chalk-header-page .student-article-hero__drawing,
.chalk-header-page .student-article-hero__bottles {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: right center;
}
.chalk-header-page .student-article-hero__bottles { overflow: hidden; }
/* These approved illustrations already have a navy board. Normal compositing
   preserves their chalk colour; screen blending would turn the board blue.
   Only the narrow empty outer edge fades into the shared board surface. */
.chalk-header-page .student-article-hero__drawing {
  mix-blend-mode: normal;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 1.5%, #000 98.5%, transparent), linear-gradient(to bottom, transparent, #000 1.5%, #000 98.5%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 1.5%, #000 98.5%, transparent), linear-gradient(to bottom, transparent, #000 1.5%, #000 98.5%, transparent);
  mask-composite: intersect;
}
.chalk-header-page .student-article-hero__title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 0;
  padding: 1.2rem 1.65rem 1.3rem;
  border-left: 4px solid #e8d18a;
  background: var(--student-title-band);
}
.chalk-header-page .student-article-hero__section {
  flex: 0 0 auto;
  align-self: flex-end;
  padding-bottom: .25rem;
  color: #f5ebd3;
  font: 600 .69rem/1.65 var(--font-nav);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.chalk-header-page .student-article-hero__title-bar h1 {
  margin: 0;
  min-width: 0;
  color: #fff4d8;
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 3.45vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-align: right;
  text-wrap: balance;
  overflow-wrap: normal;
}
.chalk-header-page .student-article-hero__lead {
  max-width: 810px;
  margin: 1.1rem 0 0 auto;
  color: #e4dfce;
  font-size: 1.04rem;
  line-height: 1.65;
  text-align: right;
}

/* The group portrait is a complete photograph within the article, never a
   second pinned opening or a background that crops students from the frame. */
.chalk-header-page .chalk-team-photo { margin: .3rem 0 3rem; }
.chalk-team-photo > a {
  display: block;
  position: relative;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
}
.chalk-team-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
}
.chalk-team-photo__enlarge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: .45rem .65rem;
  color: #fff4d8;
  background: #102b49;
  font-size: .75rem;
  border-radius: 3px;
}
.chalk-team-photo figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .85rem;
  color: var(--ui-muted);
  font-size: .83rem;
}
.chalk-team-photo figcaption > span { text-transform: uppercase; letter-spacing: .09em; }
.chalk-team-photo figcaption a { color: var(--ui-accent); text-underline-offset: .3em; }
.chalk-header-page #members-shelf { scroll-margin-top: 88px; }
.chalk-header-page .chalk-safety-photo { margin-block: 1.5rem 2rem; }
.chalk-header-page .chalk-safety-photo img { width: 100%; max-height: 470px; object-fit: contain; }

/* The colour library keeps its existing samples, viewer and cycle controls;
   its section heading is now subordinate to the chapter cover above it. */
.page-colour-library.chalk-header-page > .scroll-logo { display: block; }
.page-colour-library.chalk-header-page .colour-library { padding-top: 2.8rem; }
.page-colour-library.chalk-header-page .colour-library__heading { margin-bottom: 2.3rem; }
.page-colour-library.chalk-header-page .colour-library__heading h2 {
  font-size: clamp(2rem, 2.8vw, 3rem);
  text-transform: none;
}

@media (max-width: 999px) {
  .chalk-header-page .student-article-hero { padding: 1.45rem 0 1.5rem; }
  .chalk-header-page .student-article-hero__inner { padding-inline: 24px; }
  .chalk-header-page .student-article-hero__art { width: 86%; height: 245px; margin-top: .5rem; }
  .chalk-header-page .student-article-hero__title-bar { gap: .55rem; flex-direction: column; align-items: flex-start; padding: 1.05rem 1.15rem 1.15rem; }
  .chalk-header-page .student-article-hero__section { align-self: flex-start; padding: 0; font-size: .64rem; }
  .chalk-header-page .student-article-hero__title-bar h1 { text-align: left; font-size: clamp(2rem, 4.8vw, 3rem); }
  .chalk-header-page .student-article-hero__lead { margin-top: 1rem; text-align: left; font-size: 1rem; }
}
@media (max-width: 575px) {
  .chalk-header-page .student-article-hero { padding-top: 1.2rem; }
  .chalk-header-page .student-article-hero__inner { padding-inline: 18px; }
  .chalk-header-page .student-article-hero__eyebrow { font-size: .58rem; letter-spacing: .09em; }
  .chalk-header-page .student-article-hero__eyebrow span { margin-inline: .4rem; }
  .chalk-header-page .student-article-hero__art { width: 100%; height: 205px; margin-block: .6rem .55rem; }
  .chalk-header-page .student-article-hero__title-bar { padding: .95rem 1rem 1.05rem; }
  .chalk-header-page .student-article-hero__title-bar h1 { font-size: clamp(1.85rem, 7.7vw, 2.4rem); }
  .chalk-header-page .student-article-hero__lead { font-size: .94rem; line-height: 1.6; }
  .chalk-team-photo__enlarge { right: 8px; bottom: 8px; font-size: .65rem; }
  .chalk-team-photo figcaption { align-items: flex-start; font-size: .72rem; }
}
