/* ===== Meras brand tokens (from 03-Colors/meras-colors.css) ===== */
:root {
  --green: #153E3A;
  --green-2: #2A5C56;
  --orange: #D97833;
  --orange-ink: #B35F22;
  --sand: #D9C6A5;
  --sand-soft: #EFE7D7;
  --cream: #F7F3E8;
  --peach: #F9E4D4;
  --charcoal: #1E2422;
  --muted: #55605C;
  --line: rgba(21, 62, 58, .16);
  --line-light: rgba(247, 243, 232, .18);

  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 8vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Alexandria", "Segoe UI", "Geeza Pro", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--charcoal);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0; }
p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--orange); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ===== Signature element: the three slanted stripes ===== */
.stripes { display: inline-flex; flex-direction: column; gap: 4px; margin-inline-end: 12px; vertical-align: middle; }
.stripes i { display: block; width: 30px; height: 4px; background: var(--orange); transform: skewX(-38deg); }
.stripes i:nth-child(2) { margin-inline-start: 5px; }
.stripes i:nth-child(3) { margin-inline-start: 10px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px; border-radius: 10px; font: inherit; font-weight: 700; font-size: .95rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-ink); }
.btn-line { border-color: rgba(247,243,232,.5); color: var(--cream); }
.btn-line:hover { border-color: var(--cream); background: rgba(247,243,232,.08); }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,243,232,.96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(247,243,232,.88); backdrop-filter: blur(8px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { width: 84px; height: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--green); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--orange-ink); }
.nav-cta { padding: 9px 18px; }

.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.menu-btn span { display: block; height: 2px; background: var(--green); transition: transform .2s, opacity .2s; }

/* ===== Hero: green panel + photo, split by an orange rule ===== */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: min(calc(100svh - 72px), 760px); }
.hero-panel {
  background: var(--green) url("../img/pattern-green.svg") center / cover;
  color: var(--cream);
  display: flex; align-items: center;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  padding-inline-start: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.hero-text { max-width: 560px; }
.hero-kicker { font-size: .95rem; color: var(--sand); }
.rule { display: block; width: 72px; height: 5px; background: var(--orange); margin: 20px 0 28px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; line-height: 1.3; }
.hero-lead { margin-top: 22px; font-size: clamp(1rem, 1.3vw, 1.08rem); font-weight: 300; color: rgba(247,243,232,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.motto { margin-top: 44px; color: var(--orange); font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; }
.hero-photo { border-inline-start: 6px solid var(--orange); overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }

/* ===== Sections ===== */
.section { padding-block: var(--section); }
.section-sand { background: var(--sand-soft); }
.section-green { background: var(--green) url("../img/pattern-green.svg") center / cover; color: var(--cream); }

.sec-head { margin-bottom: 48px; }
.sec-num { font-size: .85rem; font-weight: 700; color: var(--orange-ink); margin-bottom: 10px; }
.sec-num span { color: var(--line); margin-inline: 4px; }
.sec-head h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; color: var(--green); }
.sec-head h2 em { font-style: normal; color: var(--orange); }
.sec-sub { font-size: clamp(1.02rem, 1.6vw, 1.25rem); font-weight: 700; color: var(--orange-ink); margin-top: 6px; }
.section-green .sec-num { color: var(--sand); }
.section-green .sec-num span { color: var(--line-light); }
.section-green .sec-head h2 { color: var(--cream); }
.section-green .sec-sub { color: var(--sand); font-weight: 500; }

.body-lg { font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 2; }
.body-lg strong { color: var(--green); }
.block-title { font-size: 1.3rem; font-weight: 800; color: var(--green); margin: 64px 0 22px; }
.fine { font-size: .88rem; color: var(--muted); margin-top: 20px; max-width: 80ch; }

/* ===== 01 About ===== */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.statement { margin-top: 32px; background: var(--green); color: var(--cream); border-radius: var(--radius); padding: 28px 32px; }
.statement h3 { font-size: 1.3rem; font-weight: 700; }
.statement p { color: var(--sand); margin-top: 8px; }
.vm > div { padding-block: 22px; border-top: 1px solid var(--line); }
.vm > div:first-child { border-top: 0; padding-top: 0; }
.vm dt { font-weight: 800; font-size: 1.2rem; color: var(--green); }
.vm dt::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--orange); margin-inline-end: 10px; transform: skewX(-20deg); }
.vm dd { margin-top: 6px; color: var(--muted); }

.pillars { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--green); counter-reset: p; }
.pillars li { padding: 22px 18px 6px 0; counter-increment: p; }
.pillars li + li { border-inline-start: 1px solid var(--line); padding-inline-start: 18px; }
.pillars li:first-child { padding-inline-start: 0; }
.pillars li::before { content: "0" counter(p); display: block; font-size: .8rem; font-weight: 700; color: var(--orange-ink); }
.pillars b { display: block; font-size: 1.15rem; color: var(--green); margin-top: 4px; }
.pillars span { display: block; font-size: .9rem; color: var(--muted); margin-top: 4px; line-height: 1.7; }

/* ===== 02 Ladder ===== */
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: -16px 0 40px; color: var(--muted); }
.facts b { color: var(--green); font-size: 1.5rem; font-weight: 800; margin-inline-end: 4px; }

.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; }
.lv { border-radius: var(--radius); padding: 22px 22px 26px; display: flex; flex-direction: column; }
.lv header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lv h3 { font-size: 1.5rem; font-weight: 800; }
.lv header span { font-size: .8rem; font-weight: 700; white-space: nowrap; }
.lv .ranks { font-size: .85rem; font-weight: 700; background: rgba(255,255,255,.14); border-radius: 8px; padding: 6px 10px; margin: 14px 0 14px; }
.lv p:last-child { font-size: .92rem; line-height: 1.9; }
.lv-1 { min-height: 270px; background: var(--sand); color: var(--charcoal); }
.lv-1 .ranks { background: rgba(255,255,255,.35); }
.lv-2 { min-height: 320px; background: var(--green); color: var(--cream); }
.lv-3 { min-height: 370px; background: var(--charcoal); color: var(--cream); }
.lv-4 { min-height: 420px; background: var(--orange); color: var(--charcoal); }
.lv-4 .ranks { background: rgba(255,255,255,.25); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.rhythm li { display: grid; grid-template-columns: 8.5rem 1fr; column-gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.rhythm li:last-child { border-bottom: 1px solid var(--line); }
.rhythm span { grid-row: span 2; font-weight: 700; color: var(--orange-ink); font-size: .92rem; }
.rhythm b { color: var(--green); font-size: 1.08rem; }
.rhythm p { color: var(--muted); font-size: .93rem; }

.defs > div { padding: 14px 0; border-top: 1px solid var(--line); }
.defs dt { font-weight: 700; color: var(--green); }
.defs dd { color: var(--muted); font-size: .93rem; }
.two-col .block-title:not(:first-child) { margin-top: 40px; }
.leaders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.leaders li { background: var(--cream); border-radius: 10px; padding: 12px 14px; border: 1px solid var(--line); }
.leaders b { display: block; color: var(--green); font-size: .95rem; }
.leaders span { font-size: .8rem; color: var(--muted); }

/* ===== 03 Camps ===== */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 8px; overflow-x: auto; }
.tabs button {
  font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--muted);
  background: none; border: 0; padding: 12px 20px; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap;
}
.tabs button[aria-selected="true"] { color: var(--green); border-bottom-color: var(--orange); }
.tabs button:hover { color: var(--green); }

.rank { font-size: 1.05rem; font-weight: 800; color: var(--green); margin: 36px 0 4px; }
.rank span { font-size: .82rem; font-weight: 500; color: var(--muted); margin-inline-start: 8px; }
.camps li {
  display: grid; grid-template-columns: 3rem 1fr 20rem; column-gap: 20px;
  grid-template-areas: "n t v" "n d v";
  padding: 20px 0; border-top: 1px solid var(--line);
}
.camps .n { grid-area: n; font-size: 1.5rem; font-weight: 800; color: var(--orange); line-height: 1.2; }
.camps h4 { grid-area: t; font-size: 1.1rem; font-weight: 700; color: var(--green); }
.camps p { grid-area: d; color: var(--muted); font-size: .93rem; margin-top: 4px; }
.camps dl { grid-area: v; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-content: start; font-size: .86rem; }
.camps dt { font-size: .72rem; font-weight: 700; border-radius: 4px; padding: 1px 8px; height: fit-content; margin-top: 3px; }
.camps dt:nth-of-type(1) { background: var(--peach); color: var(--orange-ink); }
.camps dt:nth-of-type(2) { background: var(--green); color: var(--cream); }
.camps dd { line-height: 1.75; }

.progress { display: grid; grid-template-columns: 1fr 1.6fr; gap: 20px; margin-top: 64px; }
.progress-rules { background: var(--green); color: var(--cream); border-radius: var(--radius); padding: 30px; }
.progress h3 { font-size: 1.25rem; font-weight: 800; }
.progress-rules ul { margin-top: 16px; }
.progress-rules li { padding: 10px 0; border-top: 1px solid var(--line-light); }
.progress-eval { border: 1.5px solid var(--green); border-radius: var(--radius); padding: 30px; }
.progress-eval h3 { color: var(--green); }
.eval-bar { display: flex; margin-top: 18px; border-radius: 8px; overflow: hidden; }
.eval-bar span { flex: var(--w); padding: 12px 14px; font-size: .82rem; line-height: 1.4; color: var(--cream); }
.eval-bar span:nth-child(1) { background: var(--green); }
.eval-bar span:nth-child(2) { background: var(--orange); color: var(--charcoal); }
.eval-bar span:nth-child(3) { background: var(--charcoal); }
.eval-bar b { display: block; font-size: 1.4rem; }
.eval-defs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.eval-defs dt { font-weight: 700; color: var(--green); font-size: .95rem; }
.eval-defs dd { font-size: .86rem; color: var(--muted); line-height: 1.8; }

/* ===== 04 Tracks ===== */
.tracks-wrap { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.tracks { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; counter-reset: t; }
.tracks li { counter-increment: t; padding: 18px 0; border-top: 1px solid var(--line-light); }
.tracks b { font-size: 1.15rem; display: flex; align-items: baseline; gap: 10px; }
.tracks b::before { content: counter(t); font-size: .85rem; color: var(--orange); font-weight: 800; }
.tracks span { display: block; color: rgba(247,243,232,.75); font-size: .9rem; margin-top: 4px; padding-inline-start: 22px; }
.nested { background: var(--green-2); border-radius: var(--radius); padding: 28px; }
.nested h3 { font-size: 1.15rem; color: var(--sand); }
.nested dl > div { padding: 14px 0; border-top: 1px solid var(--line-light); margin-top: 6px; }
.nested dt { font-weight: 700; }
.nested dd { color: rgba(247,243,232,.75); font-size: .9rem; }

/* ===== 05 Programs ===== */
.programs-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.programs-photo img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.programs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; padding-top: 8px; }
.programs li { padding: 24px 0 28px; border-top: 2px solid var(--green); }
.programs li:nth-child(n+3) { border-top-width: 1px; border-top-color: var(--line); }
.programs h3 { font-size: 1.2rem; font-weight: 800; color: var(--green); }
.programs p { color: var(--muted); margin-top: 6px; font-size: .95rem; }

/* ===== 06 Rights ===== */
.rights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rights > div { background: var(--cream); border-radius: var(--radius); padding: 28px; }
.rights h3 { font-size: 1.2rem; font-weight: 800; color: var(--green); margin-bottom: 10px; }
.rights li { padding: 9px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.rights li:first-child { border-top: 0; }
.rights .rights-accent { background: var(--green); color: var(--cream); }
.rights .rights-accent h3 { color: var(--cream); }
.rights .rights-accent li { border-top-color: var(--line-light); }

/* ===== 07 Join ===== */
.table-wrap { overflow-x: auto; }
.criteria { width: 100%; border-collapse: collapse; font-size: .95rem; }
.criteria th, .criteria td { text-align: start; padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.criteria th:first-child, .criteria td:first-child { padding-inline-start: 0; }
.criteria thead th { font-size: .8rem; color: var(--orange-ink); border-bottom: 2px solid var(--green); padding-bottom: 10px; }
.criteria tbody th { color: var(--green); font-weight: 700; width: 22%; }
.criteria td:last-child { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--green); color: var(--cream); padding: 14px 12px; font-size: .86rem; font-weight: 500; line-height: 1.6; }
.steps li::before { content: counter(s); display: block; font-weight: 800; color: var(--sand); font-size: .8rem; }
.steps li:nth-child(even) { background: var(--green-2); }
.steps li:nth-child(6) { background: var(--orange); color: var(--charcoal); }
.steps li:nth-child(6)::before { color: var(--charcoal); }
.steps li:nth-child(7) { background: var(--charcoal); }
.steps li:first-child { border-start-start-radius: 10px; border-end-start-radius: 10px; }
.steps li:last-child { border-start-end-radius: 10px; border-end-end-radius: 10px; }

/* ===== CTA ===== */
.cta { background: var(--green) url("../img/pattern-green.svg") center / cover; color: var(--cream); padding-block: clamp(56px, 7vw, 88px); border-top: 6px solid var(--orange); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
.cta p { color: var(--sand); margin-top: 10px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Footer ===== */
.site-footer { background: var(--charcoal); color: rgba(247,243,232,.75); padding-top: 52px; font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; }
.footer-brand img { width: 100px; margin-bottom: 14px; }
.footer-contact li { padding: 3px 0; }
.footer-contact a { text-decoration: none; color: var(--cream); }
.footer-contact a:hover { color: var(--orange); }
.social { display: flex; gap: 8px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-light); color: var(--cream); transition: background .15s, border-color .15s; }
.social a:hover { background: var(--orange); border-color: var(--orange); }
.social svg { width: 19px; height: 19px; fill: currentColor; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-light); padding-block: 18px; font-size: .82rem; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--orange); }

/* ===== Responsive ===== */
@media (max-width: 1060px) {
  .nav { gap: 18px; }
  .nav a:not(.btn) { font-size: .85rem; }
  .camps li { grid-template-columns: 3rem 1fr 15rem; }
}

@media (max-width: 960px) {
  .menu-btn { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--cream);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-cta { margin-top: 14px; }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; border-inline-start: 0; border-bottom: 6px solid var(--orange); aspect-ratio: 16 / 9; }
  .hero-panel { padding-inline: var(--gutter); }

  .about, .two-col, .tracks-wrap, .programs-layout, .progress { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; border-top: 0; }
  .pillars li, .pillars li + li, .pillars li:first-child { border: 0; border-top: 2px solid var(--green); padding: 16px 0 8px; }
  .pillars li:nth-child(odd) { padding-inline-end: 16px; }
  .ladder { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .lv-1, .lv-2, .lv-3, .lv-4 { min-height: 0; }
  .rights { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2px; }
  .steps li { display: flex; gap: 12px; align-items: baseline; border-radius: 0 !important; }
  .steps li:first-child { border-radius: 10px 10px 0 0 !important; }
  .steps li:last-child { border-radius: 0 0 10px 10px !important; }
}

@media (max-width: 640px) {
  .pillars { grid-template-columns: 1fr; }
  .pillars li:nth-child(odd) { padding-inline-end: 0; }
  .ladder, .tracks, .programs, .eval-defs { grid-template-columns: 1fr; }
  .programs li:nth-child(n+2) { border-top-width: 1px; border-top-color: var(--line); }
  .leaders { grid-template-columns: 1fr 1fr; }
  .camps li { grid-template-columns: 2.4rem 1fr; grid-template-areas: "n t" "n d" "n v"; }
  .camps dl { margin-top: 12px; }
  .rhythm li { grid-template-columns: 1fr; }
  .rhythm span { grid-row: auto; }
  .criteria thead { display: none; }
  .criteria, .criteria tbody, .criteria tr, .criteria th, .criteria td { display: block; width: auto !important; }
  .criteria tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .criteria th, .criteria td { padding: 2px 0; border: 0; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
