/* ==========================================================================
   MEMBERSHIP — assets/css/pages/membership.css
   Loaded only on templates/page-membership.php.

   Everything here appears in the membership design and nowhere in the
   homepage design. Promote to components.css the moment a second page
   needs it.
   ========================================================================== */

/* --- Three routes ------------------------------------------------------- */

.routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.route {
  padding: 0 30px;
  border-right: 1px solid var(--rule-soft);
}
.route:first-child { padding-left: 0; }
.route:last-child  { padding-right: 0; border-right: 0; }

.route__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.route__name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
}

.route__flag {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}

.route__text { font-size: 14px; line-height: 1.65; color: var(--ink-muted); margin: 0; }

@media (max-width: 900px) {
  .routes { grid-template-columns: 1fr; }
  .route {
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid var(--rule-soft);
    margin-bottom: 24px;
  }
  .route:last-child { padding-bottom: 0; border-bottom: 0; margin-bottom: 0; }
}

/* --- Proposer callout --------------------------------------------------- */

.callout {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  margin-bottom: 38px;
}
.callout__title { font-size: 15px; font-weight: 700; color: var(--navy); margin: 0 0 5px; }
.callout__text  { font-size: 14px; line-height: 1.6; color: var(--ink-muted); margin: 0; }

/* --- The journey -------------------------------------------------------- */

.journey {
  --journey-line: #cdb9a0;   /* warm hairline, no global token for it */
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Hairline threading the seven steps together. */
.journey::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 7%;
  right: 7%;
  height: 1px;
  background: var(--journey-line);
}

.journey__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.journey__num {
  position: relative;   /* lifts the circle above the connecting line */
  z-index: 1;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.journey__label { font-size: 13px; font-weight: 700; color: var(--ink); }
.journey__note  { font-size: 11.5px; line-height: 1.4; color: var(--ink-light); }

.journey__step--final .journey__num { background: var(--navy); border-color: var(--navy); color: var(--on-dark); }
.journey__step--final .journey__label { color: var(--navy); }

/* Below the desktop layout the seven steps turn on their side and become a
   vertical timeline: numeral in a fixed gutter, label and note beside it,
   with the connecting line running down between the circles. This keeps the
   sense of a sequence — which a stack of centred, disconnected circles
   loses — and takes roughly a third of the height. */

@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; }
  .journey::before { display: none; }   /* the horizontal thread, replaced below */

  .journey__step {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 18px;
    row-gap: 3px;
    align-items: center;
    text-align: left;
    padding-bottom: 26px;
  }
  .journey__step:last-child { padding-bottom: 0; }

  /* Line from the bottom of this circle to the top of the next one. */
  .journey__step::after {
    content: "";
    position: absolute;
    left: 23.5px;
    top: 48px;
    bottom: 0;
    width: 1px;
    background: var(--journey-line);
  }
  .journey__step:last-child::after { display: none; }

  .journey__num {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
  }
  .journey__label,
  .journey__note { grid-column: 2; }

  .journey__label { align-self: end; }
  .journey__note  { align-self: start; font-size: 12.5px; }
}

/* --- Cost --------------------------------------------------------------- */

.cost-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .cost-grid { grid-template-columns: 1fr; } }

.cost__h2 { font-size: clamp(24px, 3vw, 28px); }

.cost-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--rule);
}
.cost-table thead th {
  background: var(--navy);
  color: var(--on-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 18px;
}
.cost-table tbody tr { border-bottom: 1px solid var(--rule-soft); }
.cost-table tbody tr:last-child { border-bottom: 0; }
.cost-table tbody th {
  width: 62%;
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 15px 18px;
}
.cost-table tbody td {
  font-size: 13px;
  color: var(--ink-muted);
  padding: 15px 18px;
  vertical-align: baseline;
}
.cost-table__note { font-weight: 400; color: var(--ink-light); }
.cost-table__figure { font-size: 20px; font-weight: 700; color: var(--navy); }

.cost__footnote { font-size: 12.5px; line-height: 1.55; color: var(--ink-light); margin: 12px 0 0; }

@media (max-width: 600px) {
  .cost-table tbody th, .cost-table tbody td { padding: 12px 14px; }
  .cost-table tbody th { width: 55%; }
}

/* --- Side panel --------------------------------------------------------- */

.panel {
  border: 1px solid var(--rule-soft);
  background: var(--cream);
  padding: 28px 26px;
}
.panel__text { font-size: 14.5px; line-height: 1.65; color: var(--ink-body); margin: 0 0 20px; }

/* --- Benefits ----------------------------------------------------------- */

.benefits__h2 { font-size: clamp(24px, 3.2vw, 30px); }

.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.benefits li {
  border-top: 1px solid var(--rule-navy);
  padding: 20px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-dark-mut);
}
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr; gap: 0; } }

/* --- FAQ ---------------------------------------------------------------- */
/* Native <details> — works with JavaScript disabled and is keyboard
   operable without any scripting of our own. */

.faq__h2 { font-size: clamp(24px, 3.2vw, 30px); }

.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule-soft); }

.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  flex: none;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-light);
}
.faq__item[open] .faq__q { padding-bottom: 0; }
.faq__item[open] .faq__q::after { content: "\2013"; color: var(--gold); }

.faq__a {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 820px;
  margin: 14px 0 20px;
}

/* --- Resources ---------------------------------------------------------- */

.resources__h2 { font-size: clamp(24px, 3.2vw, 30px); }

.res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
  background: var(--surface);
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}

.res {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 24px;
  border-right: 1px solid var(--rule-soft);
  transition: background .18s var(--ease);
}
.res-grid li:last-child .res { border-right: 0; }
.res:hover, .res:focus-visible { background: var(--cream); }

.res__kind {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.res__title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.res__text  { font-size: 13px; color: var(--ink-muted); margin-bottom: 14px; }
.res .link-arrow { font-size: 13px; font-weight: 600; margin-top: auto; }

@media (max-width: 900px) {
  .res-grid { grid-template-columns: 1fr; }
  .res { border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .res-grid li:last-child .res { border-bottom: 0; }
}

/* --- Clerk bar ---------------------------------------------------------- */

.clerk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  padding-top: 26px;
}
.clerk-bar__title { font-size: 16px; font-weight: 700; color: var(--navy); margin: 0 0 3px; }
.clerk-bar__meta  { font-size: 13.5px; color: var(--ink-muted); margin: 0; }

/* --- Enquiry form ------------------------------------------------------- */
/* Not in the supplied design — added for the enquiry form the brief calls
   for, kept in the same square, hairlined language. */

.enquiry {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 32px 30px;
  margin-top: 34px;
  max-width: 760px;
}
.enquiry__title { font-size: 22px; margin: 0 0 8px; }
.enquiry__text  { font-size: 14.5px; line-height: 1.6; color: var(--ink-muted); margin: 0 0 24px; }

@media (max-width: 600px) { .enquiry { padding: 24px 20px; } }
