/* about.css — page-scoped styles for about.html, based on faq.css template */

/* Compatibility: allow replacing id="cards" with class="cards" without layout regressions. */
#cards, .cards {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Injected content container (markdown output or static details) */
#about-content, .about-content {
  max-width: 900px;
  margin: 0.75rem auto;
  padding: 0.5rem 0;
  color: var(--brand-black);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Title style matching Area Search / locations-title */
h1.about-title {
  display: table !important;
  width: auto !important;
  margin: 0.5rem auto 0.5rem auto !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: var(--brand-blue) !important;
  text-align: center !important;
  padding-bottom: 0.125rem !important;
  border-bottom: 2px solid var(--brand-red) !important;
  white-space: normal !important;
}
h2.about-title {
    display: block !important;
    width: fit-content !important;
    margin: 0 auto 1rem !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
  color: var(--brand-blue) !important;
    text-transform: uppercase !important;
    padding-bottom: 0.25rem !important;
    border-bottom: 2px solid var(--brand-red) !important;
    text-align: center !important;
}
h2.about-title-white {
    display: block !important;
    width: fit-content !important;
    margin: 0 auto 1rem !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--brand-gold) !important;
    text-transform: uppercase !important;
    padding-bottom: 0.25rem !important;
    border-bottom: 2px solid var(--brand-red) !important;
    text-align: center !important;
}

/* Small italic summary under the title (if used) */
.about-summary {
  color: var(--brand-black) !important;
  font-size: 0.8rem !important;
  font-style: italic !important;
  margin: 0.25rem auto 0.75rem auto !important;
  max-width: 900px !important;
  text-align: center !important;
}

/* Toolbar: center buttons and keep spacing */
.about-toolbar {
  /* toolbar archived (moved to css/unused-archive.css) */
}

.about-content .general-button,
.about-content a.general-button,
.about-content button.general-button {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  font-family: inherit !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 6px 20px !important;
  min-height: 36px !important;
  box-sizing: border-box !important;
  border-radius: 28px !important;
  text-decoration: none !important;
  vertical-align: middle !important;
}

/* about-card ninehundred rules archived (moved to css/unused-archive.css) */

/* Footer/date */
#about-footer {
  /* archived: moved to css/unused-archive.css if unused */
}

.about-body, .about-content p, .about-content li, .about-content dd {
  color: var(--brand-black) !important;
  text-align: justify !important;
  font-size: 0.9rem !important;
}

/* Clause headings */
.about-clause-heading {
  /* archived: moved to css/unused-archive.css if unused */
}

/* Duplicate `.h4-text` / `.h4-muted` from theme into about.css so the
   About page can use the same small heading/text styles even if theme
   rules change. These are intentionally lightweight and justify-aligned. */
.h4 .title {
  display: block !important;
  width: auto !important;
  align-self: flex-start !important;
  margin-bottom: 0.25rem !important;
  font-weight: 400 !important;
  color: var(--brand-blue) !important;
  font-size: 1rem !important;
  padding-bottom: 0rem !important;
  text-align: left !important;
}
  .h4-text {
  display: block !important;
  width: auto !important;
  align-self: flex-start !important;
  margin-bottom: 0.25rem !important;
  font-weight: 400 !important;
  color: var(--brand-black) !important;
  font-size: .75rem !important;
  padding-bottom: 0rem !important;
  text-align: justify !important;
}
.h4-text a { color: var(--brand-gold); text-decoration: none; font-weight: 600; }
.h4-text a:hover { color: var(--brand-red); text-decoration: none; }

.h4-muted {
  display: block !important;
  width: auto !important;
  align-self: flex-start !important;
  margin-bottom: 0.25rem !important;
  font-weight: 400 !important;
  color: var(--brand-muted) !important;
  font-size: .75rem !important;
  padding-bottom: 0rem !important;
  text-align: justify !important;
}
.h4-muted a { color: var(--brand-gold); text-decoration: none; font-weight: 600; text-transform: uppercase; }
.h4-muted a:hover { color: var(--brand-red); text-decoration: none; }

/* CTA centering for the page-level button */
.about-cta {
  text-align: center !important;
  align-items: center !important;
  margin-top: 1rem !important;
}

@media print {
  #about-card { box-shadow: none; border: none; max-width: 100% !important; padding: 5px; }
  .about-content { font-size: 12pt; line-height: 1.4; }
}

/* Override the site-wide #cards .ninehundred flex layout for the about overview
   so the content stacks vertically and the CTA can center correctly. */
#about-overview > .ninehundred, #about-overview > .ninehundred.card-inner {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Stronger override for the theme/index rule that applies flex to
   any .ninehundred directly inside a .background-blue within #cards.
   This selector has higher specificity so it wins and ensures the
   inner eggshell card is a normal block layout (prevents flex positioning
   from affecting the CTA). */
#cards .background-blue > .ninehundred.background-eggshell.about-content {
  display: block !important;
  flex-direction: initial !important;
  justify-content: initial !important;
  align-items: initial !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding-left: 5px !important;
  padding-right: 5px !important;
}

/* Ensure a small horizontal gutter inside the eggshell 900px card */
.about-content {
  padding-left: 5px !important;
  padding-right: 5px !important;
}

/* Force the CTA paragraph and button to center regardless of ancestor flex rules.
   Use page-scoped, high-specificity selectors so global theme flex rules cannot
   prevent horizontal centering. */
#about-overview .about-cta {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 1rem 0 !important;
}

/* Also target the common theme selector path to ensure override where the
   theme applies `.ninehundred` as a flex child of .background-blue within #cards. */
#cards .background-blue > .ninehundred.background-eggshell.about-content .about-cta {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Specific rules for the anchor/button to ensure it's centered and rendered
   as an inline-flex element so its internal layout stays correct. */
#about-overview .about-cta .about-cta-btn,
#cards .background-blue > .ninehundred.background-eggshell.about-content .about-cta .about-cta-btn {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
}

/* Mission & Values — ensure inner cards appear as eggshell panels
   Scoped to About page so other pages are unaffected. */
#about-mission .inner-cards {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.9rem !important;
}

#about-mission .inner-card {
  background: var(--background-eggshell) !important;
  color: var(--brand-black) !important;
  padding: 1rem !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06) !important;
}

#about-mission .inner-card h4,
#about-mission .inner-card .general-text {
  color: var(--brand-blue) !important;
}

/* Reduce dark overlay from anywhere else by ensuring the card-inner wrapper
   that contains the grid is eggshell as well. */
#about-mission .card-inner {
  background: transparent !important; /* keep outer blue, inner cards are eggshell */
  padding: 0.5rem !important;
}

/* Our Team: make the team area and member cards white and remove top-border accents
   Scoped to About page only so it doesn't affect other card components site-wide. */
#about-team {
  background: var(--background-white) !important;
  color: var(--brand-black) !important;
  border-top: 0 !important; /* remove .card-red / .card-gold top accent */
}

#about-team .card-inner {
  background: transparent !important; /* outer wrapper should remain transparent so inner cards show white */
  padding: 0.5rem !important;
}

#about-team .team-members {
  /* archived: moved to css/unused-archive.css if unused */
}

#about-team .team-member,
#about-team .team-member.feature-card {
  background: var(--background-white) !important;
  color: var(--brand-black) !important;
  padding: 1rem !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06) !important;
  border-top: 0 !important; /* explicitly remove any coloured top border */
}

/* ensure headings and descriptive text inside the cards are readable */
#about-team .team-member h4,
#about-team .team-member .general-text,
#about-team .team-member .general-text-muted {
  color: var(--brand-blue) !important;
}

/* keep the member photo sizing consistent */
#about-team .team-member .member-photo img {
  width: 140px !important;
  height: 140px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
}

/* Ensure inner-cards layout and inner-card visuals for Our Team (we converted
   the markup to use .inner-cards/.inner-card). Keep cards white and remove
   any coloured top border accents. */
#about-team .inner-cards {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}

@media (min-width: 900px) {
  #about-team .inner-cards { grid-template-columns: 1fr; }
}

#about-team .inner-card {
  background: var(--background-white) !important;
  color: var(--brand-black) !important;
  padding: 1rem !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06) !important;
  border-top: 0 !important;
  display: flex !important;
  gap: 1rem !important;
  align-items: center !important;
}

#about-team .inner-card .member-content { flex: 1 1 auto !important; }
#about-team .inner-card .member-photo { flex: 0 0 auto !important; }

