/* Shared offering identity layer. Keep the Brotherhood shell recognisable while
   giving each doorway its own visual grammar. */
:root {
  --wb-identity-line: rgba(247, 244, 235, .24);
  --wb-identity-ink: #182019;
  --wb-identity-paper: #f2efe7;
  --wb-identity-rust: #ae6d4a;
}

.wb-offering-trail {
  --trail-bg: var(--wb-identity-paper);
  --trail-ink: var(--wb-identity-ink);
  --trail-line: rgba(24, 32, 25, .16);
  position: relative;
  z-index: 20;
  isolation: isolate;
  display: flex;
  justify-content: flex-end;
  min-height: 44px;
  padding: 0 clamp(22px, 5vw, 78px);
  color: var(--trail-ink);
  background: var(--trail-bg);
  border-bottom: 1px solid var(--trail-line);
}

.wb-offering-trail__toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 8px 0;
  border: 0;
  color: currentColor;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-align: right;
}

.wb-offering-trail__toggle-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.wb-offering-trail__toggle-mark {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 300;
  line-height: 1;
  transition: transform .3s ease, background .3s ease, color .3s ease;
}

.wb-offering-trail__toggle:hover .wb-offering-trail__toggle-mark,
.wb-offering-trail__toggle:focus-visible .wb-offering-trail__toggle-mark,
.wb-offering-trail[data-open="true"] .wb-offering-trail__toggle-mark {
  color: var(--trail-bg);
  background: var(--trail-ink);
}

.wb-offering-trail[data-open="true"] .wb-offering-trail__toggle-mark {
  transform: rotate(45deg);
}

.wb-offering-trail__panel {
  position: absolute;
  z-index: 2;
  top: calc(100% + 1px);
  right: clamp(22px, 5vw, 78px);
  width: min(760px, calc(100vw - 44px));
  padding: 18px;
  border: 1px solid var(--trail-line);
  color: var(--trail-ink);
  background: var(--trail-bg) !important;
  background-color: var(--trail-bg) !important;
  box-shadow: 0 22px 55px rgba(20, 25, 21, .15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.wb-offering-trail[data-open="true"] .wb-offering-trail__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.wb-offering-trail__panel-label {
  margin: 0 0 13px;
  color: currentColor;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.wb-offering-trail__links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-left: 1px solid var(--trail-line);
}

.wb-offering-trail a {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 0 16px;
  border-right: 1px solid var(--trail-line);
  color: inherit;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.wb-offering-trail a:hover,
.wb-offering-trail a:focus-visible,
.wb-offering-trail a[aria-current="page"] {
  color: var(--trail-accent, var(--wb-identity-rust));
  background: rgba(174, 109, 74, .08);
}

.wb-offering-trail a:hover { transform: translateY(-2px); }

.wb-offering-trail small {
  opacity: .6;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.wb-offering-trail strong {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

body[data-brotherhood-page="gathering"] .wb-offering-trail { --trail-bg: #ede9df; --trail-accent: #b5684d; }
body[data-brotherhood-page="beginning"] .wb-offering-trail { --trail-bg: #e7dfd0; --trail-accent: #d76639; }
body[data-brotherhood-page="crossing"] .wb-offering-trail { --trail-bg: #dfe4df; --trail-accent: #486d72; }
body[data-brotherhood-page="path"] .wb-offering-trail { --trail-bg: #f0ece3; --trail-accent: #806846; }
body[data-brotherhood-page="edge"] .wb-offering-trail { --trail-bg: #dce4dc; --trail-accent: #526a55; }

/* Distinctive page signatures. The nature-led media stays intact; the graphic
   language around it changes the meaning of each doorway. */
body[data-brotherhood-page="gathering"] .gather-hero__media-note { padding-left: 48px; }
body[data-brotherhood-page="gathering"] .gather-hero__media-note::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

body[data-brotherhood-page="gathering"] .wb-orientation__facts {
  position: relative;
}

body[data-brotherhood-page="gathering"] .wb-orientation__fact {
  position: relative;
}

body[data-brotherhood-page="beginning"] .begin-hero__schedule {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--begin-orange);
}

body[data-brotherhood-page="beginning"] .begin-hero__schedule::before {
  position: absolute;
  top: -44px;
  left: -2px;
  width: 2px;
  height: 34px;
  background: var(--begin-orange);
  content: "";
}

body[data-brotherhood-page="beginning"] .begin-rhythm {
  position: relative;
  border-top: 2px solid var(--begin-orange);
}

body[data-brotherhood-page="beginning"] .begin-rhythm::before {
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid var(--begin-orange);
  border-radius: 50%;
  background: var(--begin-forest);
  content: "";
}

body[data-brotherhood-page="crossing"] .hero-event-card {
  position: relative;
  border-left: 3px solid #6f9291;
}

body[data-brotherhood-page="crossing"] .hero h1 {
  max-width: 980px;
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(57px, 7.8vw, 126px);
  font-weight: 600;
  letter-spacing: .035em;
  line-height: .88;
  text-transform: uppercase;
}

body[data-brotherhood-page="crossing"] .hero-kicker {
  padding-left: 17px;
  border-left: 2px solid #6f9291;
}

body[data-brotherhood-page="crossing"] .hero-event-card::before {
  position: absolute;
  top: 24px;
  right: -13px;
  width: 24px;
  height: 24px;
  border-top: 1px solid rgba(242, 239, 232, .65);
  border-right: 1px solid rgba(242, 239, 232, .65);
  content: "";
  transform: rotate(45deg);
}

body[data-brotherhood-page="path"] .hero::after {
  position: absolute;
  top: 27%;
  right: clamp(24px, 6vw, 100px);
  bottom: 12%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(240, 236, 227, .56), transparent);
  content: "";
  opacity: .65;
  pointer-events: none;
}

body[data-brotherhood-page="edge"] .hero::after {
  position: absolute;
  top: 15%;
  right: clamp(24px, 5vw, 78px);
  bottom: 18%;
  width: 1px;
  background: var(--lichen);
  content: "";
  opacity: .8;
  pointer-events: none;
}

body[data-brotherhood-page="crossing"] .wb-orientation__readiness {
  max-width: 920px;
  margin: 34px 0 0;
  padding: 18px 20px;
  border-left: 2px solid #6f9291;
  color: rgba(242, 239, 232, .76);
  font-size: .84rem;
  line-height: 1.6;
}

body[data-brotherhood-page="crossing"] .wb-orientation__readiness strong { color: #f2efe8; font-weight: 600; }
body[data-brotherhood-page="crossing"] .wb-orientation__price-note { max-width: 920px; margin: 28px 0 0; color: rgba(242, 239, 232, .7); font-size: .84rem; line-height: 1.6; }
body[data-brotherhood-page="crossing"] .wb-orientation__price-note strong { color: #f2efe8; font-weight: 600; }

body[data-brotherhood-page="crossing"] .crossing-arc-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
  border-top: 1px solid rgba(242, 239, 232, .2);
  border-bottom: 1px solid rgba(242, 239, 232, .2);
}

body[data-brotherhood-page="crossing"] .crossing-arc-preview article { min-width: 0; padding: 22px 24px 26px 0; }
body[data-brotherhood-page="crossing"] .crossing-arc-preview article + article { padding-left: 0; border-left: 0; }
body[data-brotherhood-page="crossing"] .crossing-arc-preview article > span { color: #9eb9b1; font-size: .66rem; font-weight: 600; letter-spacing: .14em; }
body[data-brotherhood-page="crossing"] .crossing-arc-preview strong { display: block; margin-top: 25px; color: #f2efe8; font-family: "Poppins", ui-sans-serif, system-ui, sans-serif; font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
body[data-brotherhood-page="crossing"] .crossing-arc-preview p { margin: 10px 0 0; color: rgba(242, 239, 232, .62); font-size: .86rem; line-height: 1.5; }

body[data-brotherhood-page="path"] .path-month { padding: clamp(88px, 10vw, 150px) 0; color: #f1eee5; background: #26382b; }
body[data-brotherhood-page="path"] .path-month__head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(300px, 1fr); gap: clamp(42px, 8vw, 120px); align-items: end; }
body[data-brotherhood-page="path"] .path-month__head h2 { max-width: 720px; margin: .65rem 0 0; font-family: "Fraunces", Georgia, serif; font-size: clamp(2.6rem, 5.3vw, 5.3rem); font-weight: 300; letter-spacing: -.055em; line-height: .98; }
body[data-brotherhood-page="path"] .path-month__flow article > span { color: #b7c9ad; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
body[data-brotherhood-page="path"] .path-month__head { align-items: start; }
body[data-brotherhood-page="path"] .path-month__head .eyebrow { color: #b7c9ad; }
body[data-brotherhood-page="path"] .path-month__head h2 { color: #f1eee5; }
body[data-brotherhood-page="path"] .path-month__flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(52px, 7vw, 90px); border-top: 1px solid rgba(241, 238, 229, .22); border-bottom: 1px solid rgba(241, 238, 229, .22); }
body[data-brotherhood-page="path"] .path-month__flow article { min-height: 245px; padding: 24px 24px 28px 0; }
body[data-brotherhood-page="path"] .path-month__flow article + article { padding-left: 24px; border-left: 1px solid rgba(241, 238, 229, .22); }
body[data-brotherhood-page="path"] .path-month__flow strong { display: block; margin-top: 46px; color: #f1eee5; font-family: "Fraunces", Georgia, serif; font-size: clamp(1.35rem, 2vw, 1.85rem); font-weight: 400; line-height: 1.08; }
body[data-brotherhood-page="path"] .path-month__flow p { margin: 13px 0 0; color: rgba(241, 238, 229, .62); font-size: .86rem; line-height: 1.55; }

body[data-brotherhood-page="edge"] .nature-sequence-note {
  max-width: 760px;
  margin: 0 auto clamp(34px, 5vw, 64px);
  padding: 0 24px;
  color: rgba(23, 26, 22, .78);
  font-size: .86rem;
  line-height: 1.65;
  text-align: center;
}
body[data-brotherhood-page="edge"] .nature-frame img { filter: brightness(.62) saturate(.75) contrast(1.12); }
body[data-brotherhood-page="edge"] .nature-frame:hover img { filter: brightness(.58) saturate(.82) contrast(1.12); }
body[data-brotherhood-page="edge"] .nature-frame::after { background: linear-gradient(180deg, rgba(5, 8, 6, .28) 0%, rgba(5, 8, 6, .72) 58%, rgba(5, 8, 6, .94) 100%); }
body[data-brotherhood-page="edge"] .nature-frame figcaption { display: grid; gap: 12px; color: rgba(247, 244, 235, .97); text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
body[data-brotherhood-page="edge"] .nature-frame__stage { color: #d39a78; font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
body[data-brotherhood-page="edge"] .edge-operational-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 clamp(58px, 8vw, 110px); border-top: 1px solid rgba(247, 244, 235, .2); border-bottom: 1px solid rgba(247, 244, 235, .2); }
body[data-brotherhood-page="edge"] .edge-operational-map article { min-width: 0; min-height: 220px; padding: 22px 22px 26px 0; }
body[data-brotherhood-page="edge"] .edge-operational-map article + article { padding-left: 22px; border-left: 1px solid rgba(247, 244, 235, .2); }
body[data-brotherhood-page="edge"] .edge-operational-map article > span { color: #b9c9a8; font-size: .65rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
body[data-brotherhood-page="edge"] .edge-operational-map strong { display: block; margin-top: 42px; color: #f7f4eb; font-family: "IM Fell English", Georgia, serif; font-size: clamp(1.35rem, 2.2vw, 2rem); font-weight: 400; line-height: 1.05; }
body[data-brotherhood-page="edge"] .edge-operational-map p { margin: 12px 0 0; color: rgba(247, 244, 235, .58); font-size: .82rem; line-height: 1.55; }
body[data-brotherhood-page="edge"] .art-card-open { display: block; margin-top: 20px; color: #d39a78; font-size: .62rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }

@media (max-width: 900px) {
  body[data-brotherhood-page="edge"] .edge-operational-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-brotherhood-page="edge"] .edge-operational-map article:nth-child(3) { border-top: 1px solid rgba(247, 244, 235, .2); border-left: 0; }
  body[data-brotherhood-page="edge"] .edge-operational-map article:nth-child(4) { border-top: 1px solid rgba(247, 244, 235, .2); }
}

@media (max-width: 560px) {
  body[data-brotherhood-page="edge"] .edge-operational-map { grid-template-columns: 1fr; }
  body[data-brotherhood-page="edge"] .edge-operational-map article,
  body[data-brotherhood-page="edge"] .edge-operational-map article + article { min-height: 0; padding: 19px 0 22px; border-left: 0; }
  body[data-brotherhood-page="edge"] .edge-operational-map article + article { border-top: 1px solid rgba(247, 244, 235, .2); }
}

@media (max-width: 900px) {
  body[data-brotherhood-page="path"] .path-month__head { grid-template-columns: 1fr; }
  body[data-brotherhood-page="path"] .path-month__flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-brotherhood-page="path"] .path-month__flow article:nth-child(3) { border-top: 1px solid rgba(32, 35, 31, .25); border-left: 0; }
  body[data-brotherhood-page="path"] .path-month__flow article:nth-child(4) { border-top: 1px solid rgba(32, 35, 31, .25); }
  body[data-brotherhood-page="path"] .path-month__flow article:nth-child(3),
  body[data-brotherhood-page="path"] .path-month__flow article:nth-child(4) { border-color: rgba(241, 238, 229, .22); }
}

@media (max-width: 560px) {
  body[data-brotherhood-page="path"] .path-month__flow { grid-template-columns: 1fr; }
  body[data-brotherhood-page="path"] .path-month__flow article,
  body[data-brotherhood-page="path"] .path-month__flow article + article { min-height: 0; padding: 20px 0 23px; border-left: 0; }
  body[data-brotherhood-page="path"] .path-month__flow article + article { border-top: 1px solid rgba(32, 35, 31, .25); }
  body[data-brotherhood-page="path"] .path-month__flow article + article { border-color: rgba(241, 238, 229, .22); }
}

@media (max-width: 700px) {
  body[data-brotherhood-page="crossing"] .crossing-arc-preview { grid-template-columns: 1fr; }
  body[data-brotherhood-page="crossing"] .crossing-arc-preview article,
  body[data-brotherhood-page="crossing"] .crossing-arc-preview article + article { padding: 19px 0 21px; border-left: 0; }
  body[data-brotherhood-page="crossing"] .crossing-arc-preview article + article { border-top: 1px solid rgba(242, 239, 232, .2); }
}

@media (max-width: 900px) {
  .wb-offering-trail {
    min-height: 40px;
    padding-inline: 20px;
  }

  .wb-offering-trail__toggle {
    min-height: 40px;
  }

  .wb-offering-trail__panel {
    right: 12px;
    left: 12px;
    width: auto;
    padding: 14px;
  }

  .wb-offering-trail__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wb-offering-trail a { padding-inline: 13px; }
  body[data-brotherhood-page="gathering"] .gather-hero__media-note { padding-left: 0; }
  body[data-brotherhood-page="gathering"] .gather-hero__media-note::before { display: none; }
  body[data-brotherhood-page="path"] .hero::after,
  body[data-brotherhood-page="edge"] .hero::after { right: 20px; opacity: .5; }
}

@media (prefers-reduced-motion: reduce) {
  .wb-offering-trail__toggle-mark,
  .wb-offering-trail__panel,
  .wb-offering-trail a { transition: none; }
  .wb-offering-trail a:hover { transform: none; }
}
