/* Reuse wiki/pattern_home hero styles for consistency */
.no-horizontal-scroll,
html, body {
  max-width: 100%;
  overflow-x: hidden; /* never allow horizontal scrolling on this page */
}
.hero {
  max-width: 650px;
  margin: 24px auto 32px auto;
  text-align: center;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}
.hero-eyebrow {
  font-size: 14px;
  letter-spacing: 0.18em;
  color: #606060;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero-title {
  max-width: 500px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 200;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  margin-bottom: 32px;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
}
.hero-meta {
  color: #4a78df;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: -16px;
  margin-bottom: 24px;
}
.hero-subtitle {
  border-top: 1px solid #cfcfcf;
  padding-top: 48px;
  font-size: clamp(12px, 2vw, 18px);
  font-family: 'Georgia', serif;
  font-weight: 100;
  line-height: 2.5;
  color: #3a3a3a;
  max-width: 820px;
  margin: 0 auto 48px auto;
  text-align: left;
  overflow-wrap: anywhere; /* ensure long text wraps */
  word-break: break-word;
}

/* Ensure links in subtitle match theme blue */
.hero-subtitle a,
.hero-subtitle a:visited,
.hero-subtitle a:hover,
.hero-subtitle a:active {
  color: #4a78df;
}

/* Reuse pattern root container for potential sections */
.pattern-root {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box; /* equal auto margins and safe padding */
}

/* Mission cards */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 24px;
  width: 100%;
}

.mission-card {
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 0 #d0d0d0;
  padding-left: 48px;
  padding-right: 100px;
  padding-bottom: 64px;
  padding-top: 64px;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto; /* center the card; equal margins */
  box-sizing: border-box;
}

.mission-card-inner {
  display: grid;
  grid-template-columns: 80px 1fr;
  column-gap: 24px;
  align-items: start;
}

.mission-card-index {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 400;
  font-size: clamp(50px, 2vw, 64px);
  line-height: 1;
  margin-top: 22px;
  margin-left: 12px;
  color: #111;
}

.mission-card-content {
  display: flex;
  flex-direction: column;
}

.mission-card-tag {
  color: #4a78df;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.mission-card-header {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 100;
  font-size: clamp(20px, 2vw, 36px);
  line-height: 1.2;
  margin: 0 0 16px 0;
}

.mission-card-paragraph {
  font-size: clamp(11px, 2vw, 16px);
  color: #262626;
  line-height: 2;
  border-top: 1px solid #cfcfcf;
  padding-top: 32px;
  margin-top: 16px;
  overflow-wrap: anywhere; /* prevent overflow */
  word-break: break-word;
}

@media (max-width: 720px) {
  .mission-card { padding: 32px 24px; }
  .mission-card-inner { grid-template-columns: 56px 1fr; column-gap: 16px; }
  .mission-card-index { font-size: 56px; }
}

/* Stack the mission card content on very narrow screens; index on top */
@media (max-width: 560px) {
  .mission-card { padding: 24px 16px; }
  .mission-card-inner { display: flex; flex-direction: column; align-items: flex-start; }
  .mission-card-index { align-self: flex-start; margin: 0 0 12px 0; }
}

