/* MustardSeed Academy — public brochure pages.

   Two rules carry the design:
   1. Serif for everything you read, sans only for things you click.
   2. Gold marks an origin or an action. Nothing else is gold.

   --navy is sampled from the illustration plates, so a plate dropped into a
   navy band has no visible edge. Change one and you must change the other. */

:root {
  --ink: #16243a;
  --ink-2: #51637c;
  --navy: #04152c;
  --gold: #d8a33d;
  --gold-2: #a9781f;
  --paper: #ffffff;
  --paper-2: #edf0f4;
  --line: #d3dae4;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Karla", system-ui, "Segoe UI", sans-serif;

  --pad: clamp(1.5rem, 6vw, 4rem);
  --measure: 38rem;
  --spine: 2.25rem;
  --plate-max: calc(52rem + 2 * var(--pad));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Do NOT put font-size on html — every rem in this file is sized against the
   16px root, and bumping it silently rescales the whole layout. Body only. */
html {
  margin: 0;
  background: var(--paper);
}

body.msa-public {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body.msa-public {
  min-height: 100vh;
}

.msa-public a {
  color: inherit;
}

.msa-public a:focus-visible,
.msa-public button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Shell ---------- */

/* The reading column IS the container, so text always fills its band and
   never leaves a lopsided right gutter. Plates and chrome opt out via --wide. */
.msa-wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.msa-wrap--wide {
  max-width: 74rem;
}

.msa-band {
  padding-block: clamp(3.25rem, 7vw, 6rem);
}

.msa-band--paper {
  background: var(--paper-2);
}

.msa-band--navy {
  background: var(--navy);
  color: #eaeff6;
}

.msa-band--navy a {
  color: var(--gold);
}

.msa-band--plate {
  background: var(--navy);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

/* ---------- Type ---------- */

.msa-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
  text-wrap: balance;
}

.msa-band--navy .msa-title {
  color: #fff;
}

.msa-lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  line-height: 1.38;
  color: var(--ink-2);
  margin: 0 0 1.5rem;
  max-width: 30ch;
  text-wrap: balance;
}

.msa-band--navy .msa-lede {
  color: #b7c6da;
}

.msa-prose {
  max-width: var(--measure);
}

.msa-prose p {
  margin: 0 0 1.05rem;
}

.msa-prose p:last-child {
  margin-bottom: 0;
}

.msa-prose strong {
  font-weight: 600;
}

/* A line the page wants you to slow down on. */
.msa-pull {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.32;
  font-weight: 500;
  max-width: 24ch;
  margin: 2rem 0 0;
  text-wrap: balance;
}

.msa-band--navy .msa-pull {
  color: #fff;
}

.msa-head {
  max-width: var(--measure);
  margin-bottom: 2.75rem;
}

.msa-head > :last-child {
  margin-bottom: 0;
}

/* ---------- Hero ---------- */

.msa-hero {
  position: relative;
  background: var(--navy) url("img/seed-begin.jpg") 58% 72% / cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  min-height: clamp(27rem, 76vh, 41rem);
  padding-block: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.msa-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    102deg,
    rgba(4, 21, 44, 0.95) 0%,
    rgba(4, 21, 44, 0.86) 30%,
    rgba(4, 21, 44, 0.35) 62%,
    rgba(4, 21, 44, 0) 82%
  );
}

.msa-hero > .msa-wrap {
  position: relative;
  z-index: 1;
}

.msa-hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 13ch;
  color: #fff;
}

/* The second line is the promise, set lighter so the eye reads them as one
   sentence that changes register halfway through. */
.msa-hero__title em {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.msa-hero__sub {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: #c3d0e2;
  max-width: 38ch;
  margin: 1.75rem 0 0;
}

/* ---------- Plates ---------- */

.msa-plate {
  display: block;
  margin: 0 auto;
  padding-inline: var(--pad);
  max-width: var(--plate-max);
}

/* Portrait plates would tower if given the landscape width. */
.msa-plate--tall {
  max-width: calc(29rem + 2 * var(--pad));
}

.msa-plate img {
  display: block;
  width: 100%;
  height: auto;
}

/* The illustrations carry a vignette, so their interior sits lighter than
   --navy and a hard edge shows. Feathering the border dissolves it. */
.msa-plate img {
  -webkit-mask-image: radial-gradient(ellipse 84% 84% at 50% 50%, #000 42%, transparent 97%);
  mask-image: radial-gradient(ellipse 84% 84% at 50% 50%, #000 42%, transparent 97%);
}

/* ---------- Sequence: the spine ---------- */

/* Used only where the content really is a progression. Parallel sets of
   items use .msa-grid instead — they are not steps and must not look like it. */

.msa-seq {
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--spine);
  border-left: 1px solid var(--line);
}

.msa-band--navy .msa-seq {
  border-left-color: rgba(216, 163, 61, 0.28);
}

.msa-seq__item {
  position: relative;
}

.msa-seq__item + .msa-seq__item {
  margin-top: 3rem;
}

.msa-seq__item::before {
  content: "";
  position: absolute;
  left: calc(var(--spine) * -1);
  top: 0.62em;
  width: 11px;
  height: 11px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--ink-2);
}

.msa-band--paper .msa-seq__item::before {
  background: var(--paper-2);
}

.msa-band--navy .msa-seq__item::before {
  background: var(--navy);
  box-shadow: inset 0 0 0 1.5px rgba(216, 163, 61, 0.5);
}

/* Gold at both ends: the seed you start from, and the seed you become.
   That loop is the whole Beehive thesis, so the spine states it. */
.msa-seq__item:first-child::before,
.msa-seq__item:last-child::before {
  background: var(--gold);
  box-shadow: none;
}

.msa-seq__label {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin: 0;
}

.msa-band--navy .msa-seq__label {
  color: #fff;
}

.msa-seq__kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--gold-2);
  margin: 0.15rem 0 0;
}

.msa-band--navy .msa-seq__kicker {
  color: var(--gold);
}

.msa-seq__body {
  margin-top: 0.85rem;
}

/* Tight variant: one-line entries sit beside their label instead of under it. */
.msa-seq--tight .msa-seq__item + .msa-seq__item {
  margin-top: 1.35rem;
}

.msa-seq--tight .msa-seq__body {
  margin-top: 0;
}

@supports (grid-template-columns: subgrid) {
  .msa-seq--tight {
    display: grid;
    grid-template-columns: fit-content(13rem) minmax(0, var(--measure));
    column-gap: 1.75rem;
  }

  .msa-seq--tight .msa-seq__item {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    align-items: baseline;
  }
}

/* ---------- Parallel sets ---------- */

.msa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 2.25rem 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 68rem;
}

.msa-grid__label {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0 0 0.3rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.msa-band--paper .msa-grid__label {
  border-top-color: #d8dee7;
}

.msa-grid--stack {
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
}

.msa-grid__body {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.msa-grid__cite {
  margin: 0.45rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink-2);
}

/* A plain roster — no bullets, just a flowing two-up list. */
.msa-roster {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 3rem;
  max-width: 52rem;
}

.msa-roster li {
  break-inside: avoid;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  line-height: 1.45;
}

.msa-band--paper .msa-roster li {
  border-bottom-color: #d8dee7;
}

/* Advisory Council: people, not steps and not the Join name list. */
.msa-council {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 2.4rem 0;
}

.msa-council__item {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 1.5rem 1.75rem;
  align-items: start;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--line);
}

.msa-council__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.msa-council__photo {
  width: 10.5rem;
  height: 10.5rem;
  object-fit: cover;
  object-position: 50% 18%;
  background: #e8edf3;
}

.msa-council__copy {
  min-width: 0;
}

.msa-council__name {
  margin: 0 0 0.2rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.msa-council__role,
.msa-council__focus {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.msa-council__focus {
  margin-top: 0.2rem;
}

.msa-council__bio {
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
}

/* Vocabulary of a level: many short terms, so they wrap as terms, not prose. */
.msa-terms {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  max-width: 46rem;
}

.msa-terms li {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--ink-2);
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line);
}

.msa-band--paper .msa-terms li {
  border-color: #d8dee7;
}

.msa-band--navy .msa-terms li {
  color: #c3d0e2;
  border-color: rgba(216, 163, 61, 0.3);
}

/* ---------- Controls ---------- */

.msa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.msa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  min-height: 2.75rem;
  border-radius: 0;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.005em;
  white-space: nowrap;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

.msa-public a.msa-btn--gold,
.msa-public button.msa-btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.msa-public button.msa-btn {
  cursor: pointer;
  appearance: none;
}

.msa-public a.msa-btn--solid,
.msa-public button.msa-btn--solid {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.msa-public a.msa-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

/* ---------- Header ---------- */

.msa-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.msa-header__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  min-height: 4.25rem;
  padding-block: 0.55rem;
}

.msa-logo img {
  display: block;
  height: 2.9rem;
  width: auto;
}

.msa-header,
.msa-header a,
.msa-header button {
  font-family: var(--sans);
}

.msa-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-left: auto;
}

.msa-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9375rem;
  padding-block: 0.15rem;
}

.msa-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--ink);
}

.msa-header a::before,
.msa-header a::after,
.msa-header button::before,
.msa-header button::after {
  content: none !important;
  display: none !important;
}

.msa-nav__cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.msa-nav__cta .msa-btn {
  min-height: 2.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.msa-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0.4rem 0.2rem;
}

/* ---------- Footer ---------- */

.msa-footer {
  background: var(--navy);
  color: #b9c8dc;
  padding-block: 3rem 2.6rem;
  font-size: 1rem;
}

.msa-footer a {
  color: #fff;
}

.msa-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem 3rem;
}

.msa-footer__brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.msa-footer__motto {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  margin: 0.35rem 0 0;
}

.msa-footer p {
  margin: 0 0 0.3rem;
}

.msa-footer__credit {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: #8ea0b8;
}

/* ---------- Host theme suppression ---------- */

.buddypanel,
.bb-mobile-panel-wrapper,
.bb-modal,
.bb-rl-modal,
.bb-report-type,
#buddypress,
[class*="bb-report"],
[id*="block-member"],
.bp-feedback,
#wpadminbar {
  display: none !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .msa-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .msa-nav {
    display: none;
    flex-basis: 100%;
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 0 0.5rem;
  }

  .msa-header.is-open .msa-nav {
    display: flex;
  }

  .msa-nav__cta {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  :root {
    --spine: 1.5rem;
  }

  /* Portrait crops on the width, so x is what keeps the sprout in frame. */
  .msa-hero {
    min-height: 0;
    background-position: 47% 55%;
  }

  .msa-hero::after {
    background: linear-gradient(
      176deg,
      rgba(4, 21, 44, 0.95) 0%,
      rgba(4, 21, 44, 0.88) 48%,
      rgba(4, 21, 44, 0.3) 100%
    );
  }

  .msa-seq--tight {
    display: block;
  }

  .msa-seq--tight .msa-seq__item {
    display: block;
  }

  .msa-seq--tight .msa-seq__body {
    margin-top: 0.3rem;
  }

  .msa-roster {
    columns: 1;
  }

  .msa-council__item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .msa-council__photo {
    width: 8.5rem;
    height: 8.5rem;
  }

  .msa-actions .msa-btn {
    width: 100%;
  }
}

/* ---------- Enrollment form ---------- */

.msa-form {
  background: var(--paper-2);
  padding-block: 2rem;
  padding-inline: var(--pad);
}

.msa-form-desk {
  max-width: 42rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.msa-form-desk > .msa-reveal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.msa-form-sheet {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-left: 3px solid var(--gold);
  padding: 1.5rem;
}

.msa-form-sheet[hidden] {
  display: none;
}

.msa-form .msa-title {
  font-size: 1.35rem;
  letter-spacing: 0;
}

.msa-form .msa-head {
  max-width: none;
  margin-bottom: 1rem;
}

.msa-form-grid {
  display: grid;
  gap: 1.15rem 1.25rem;
}

@media (min-width: 40rem) {
  .msa-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .msa-form-grid .msa-field--choices,
  .msa-form-grid .msa-reveal,
  .msa-form-grid textarea {
    grid-column: 1 / -1;
  }
}

.msa-field,
.msa-field--choices {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 0 1.15rem;
}

.msa-form-grid .msa-field {
  margin: 0;
}

.msa-field span,
.msa-field legend {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.msa-field input,
.msa-field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.4;
}

.msa-field textarea {
  min-height: 8rem;
}

.msa-field input:focus,
.msa-field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.msa-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
}

.msa-form .msa-choices,
.msa-choices--stack {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.msa-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.45;
}

.msa-form .msa-choice {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--line);
  background: #fff;
}

.msa-form .msa-choice span {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
}

.msa-form .msa-choice:has(:checked) {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.msa-form .msa-choice:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.msa-choice--block {
  align-items: flex-start;
}

.msa-choice input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--navy);
  flex: 0 0 auto;
}

.msa-form .msa-choice:has(:checked) input {
  accent-color: var(--gold);
}

.msa-reveal[hidden],
.msa-form-desk .msa-reveal[hidden] {
  display: none;
}

.msa-form-errors {
  padding: 1.1rem 1.25rem;
  border: 1.5px solid #b23b2f;
  background: #fff;
}

.msa-form-errors p {
  margin: 0 0 0.5rem;
  font-family: var(--sans);
  font-weight: 700;
}

.msa-form-errors ul {
  margin: 0;
  padding-left: 1.2rem;
}

.msa-form .msa-actions {
  margin-top: 1.5rem;
}

.msa-form-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.msa-form-progress {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-2);
}

.msa-form-nav .msa-actions {
  margin-top: 0;
}

.msa-form-nav [hidden] {
  display: none;
}
