/* ============================================================
   BROOKS PTA — HISTORY PAGE STYLES
   Loaded only on the /history/ page. Never edit main.css.
   ============================================================ */

/* Override main.css max-width constraint for history page */
.page-content {
  max-width: none;
}

/* ── BANNER ── */
.history-banner {
  background: var(--color-primary);
  padding: 52px 0 44px;
  text-align: center;
}

.history-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.history-banner__title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.history-banner__line {
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto 1rem;
}

.history-banner__sub {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ── JUMP NAV ── */
.history-nav {
  background: #f0f4f8;
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  text-align: center;
  margin: 2rem 0;
  color: #ccc;
}

.history-nav a {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--color-primary);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.history-nav a:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ── SECTION HEADERS ── */
.page-content h2 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  color: var(--color-primary);
}

.page-content h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 6px;
}

/* Namesake h2 handled separately — reset the ::after */
.namesake-section h2::after {
  display: none;
}

/* ── TIMELINE ── */
ul.history-timeline {
  position: relative;
  list-style: none;
  padding-left: 2rem;
  margin: 1.5rem 0;
}

/* Vertical green line */
ul.history-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--color-accent);
}

/* Circle node per item */
ul.history-timeline li {
  position: relative;
  padding-left: 0.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

ul.history-timeline li::before {
  content: '';
  position: absolute;
  left: -1.55rem;
  top: 0.35em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--color-accent);
}

/* Year badge — targets the first <strong> in each <li> */
ul.history-timeline li > strong:first-child {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 0.8rem;
  margin-right: 6px;
  font-family: 'IBM Plex Sans', sans-serif;
  vertical-align: middle;
  line-height: 1.6;
}

/* ── NAMESAKE SECTION ── */
.namesake-section {
  background: #f8f4ee;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 6px 6px 0;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
}

.namesake-section h2 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.namesake-section h4 {
  font-size: 0.9rem;
  color: #666;
  font-weight: 400;
  font-style: italic;
  margin-top: 0;
  text-align: center;
}

/* Quote block (editor change #3 converts the <p> to a WP quote block) */
.namesake-section .wp-block-quote,
.namesake-section blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
  font-style: italic;
  color: #444;
  margin: 1.5rem 0;
}

/* Fallback if quote stays as <p> with <em> attribution */
.namesake-section p:has(em) {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
  font-style: italic;
  color: #444;
  margin: 1.5rem 0;
}

/* Comfortable reading width for body paragraphs */
.namesake-section p {
  max-width: 68ch;
}

/* ── PHOTO GALLERIES ── */
.page-content .wp-block-columns .wp-block-image img {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-content .wp-block-columns .wp-block-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .history-banner {
    padding: 36px 0 28px;
  }

  .namesake-section {
    padding: 1.75rem 1.25rem;
  }
}
