/* Shared styles for all content pages (join.html is standalone). Loaded before each page's inline <style>. */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Assistant', sans-serif;
  font-size: 19px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.disclaimer-bar {
  background: #fdf8ee;
  border-bottom: 1px solid #e8d8b0;
  padding: 10px 40px;
  text-align: center;
  font-size: 14px;
  color: #7a5c1e;
  font-weight: 500;
  line-height: 1.6;
}

nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-logo {
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-logo a { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }

.nav-logo .logo-text > span { color: var(--teal); }

.nav-logo-img { height: 48px; width: auto; mix-blend-mode: multiply; flex-shrink: 0; }

.nav-ctrl {
  position: absolute;
  right: 24px;
  top: 0;
  height: 62px;
  display: flex;
  align-items: center;
}

.nav-burger {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  background: none;
  border: none;
  transition: background 0.15s;
}

.nav-burger:hover { background: rgba(42,154,82,0.08); }

.nav-burger-label { font-size: 15px; font-weight: 700; color: var(--text-mid); font-family: 'Assistant', sans-serif; }

.nav-burger-icon { display: flex; flex-direction: column; gap: 5px; justify-content: center; }

.nav-burger-icon span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}

.nav-burger.is-open .nav-burger-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }

.nav-burger.is-open .nav-burger-icon span:nth-child(2) { opacity: 0; transform: scaleX(0); }

.nav-burger.is-open .nav-burger-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-main-dd {
  display: none;
  position: absolute;
  top: 62px;
  right: 0;
  width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(13,32,20,0.12);
  overflow: hidden;
  z-index: 300;
}

.nav-main-dd.is-open { display: block; }

.nav-main-dd ul { list-style: none; padding: 6px 0; }

.nav-main-dd a,
.nav-has-sub-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-mid);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Assistant', sans-serif;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  direction: rtl;
  box-sizing: border-box;
}

.nav-main-dd a:hover,
.nav-has-sub-btn:hover,
.nav-has-sub-btn.is-active { background: rgba(42,154,82,0.08); color: var(--teal); }

.nav-has-sub-btn.is-active .nav-dd-arrow { transform: rotate(0deg); }

.nav-dd-arrow { font-size: 14px; flex-shrink: 0; transform: rotate(90deg); transition: transform 0.22s ease; }

.nav-sub-dd {
  display: none;
  position: static;
  width: 100%;
  background: rgba(42,154,82,0.04);
  border-top: 1px solid var(--border);
}

.nav-sub-dd.is-open { display: block; }

.nav-sub-dd ul { list-style: none; padding: 4px 0; }

.nav-sub-dd a {
  display: block;
  padding: 9px 28px 9px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  direction: rtl;
}

.nav-sub-dd a:hover { background: rgba(42,154,82,0.08); color: var(--teal); }

.page-hero {
  background: #f0f9f4;
  background-image:
    radial-gradient(circle, rgba(42,154,82,0.06) 1px, transparent 1px),
    radial-gradient(ellipse 70% 55% at 50% 110%, rgba(42,154,82,0.1) 0%, transparent 65%);
  background-size: 28px 28px, 100% 100%;
  padding: 56px 48px 52px;
  text-align: center;
}

.sh-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.sh-label::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  display: block;
}

footer strong { color: var(--text-mid); }

.skip-link {
  position: absolute;
  top: -100%;
  right: 0;
  background: var(--teal);
  color: #fff;
  padding: 12px 24px;
  z-index: 999;
  font-size: 16px;
  font-weight: 700;
  border-radius: 0 0 0 8px;
  text-decoration: none;
}

.footer-links { margin-top: 8px; }

.skip-link:focus { top: 0; }

.footer-links a {
  color: var(--teal);
  text-decoration: none;
  margin: 0 8px;
  font-weight: 600;
  /* finger-sized tap area; the text itself looks the same */
  display: inline-block;
  padding: 12px 4px;
}

*:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.footer-links a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .nav-ctrl { right: 16px; }
}

.nav-burger-float {
  display: none;
  /* real <button>: neutralise the browser defaults so it looks like the former <div> */
  -webkit-appearance: none; appearance: none;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-align: inherit;
}

@media (min-width: 769px) {
  body {
    margin-right: 220px;
    transition: margin-right 0.25s ease;
  }
  body.nav-closed { margin-right: 0; }
  .nav-ctrl {
    position: fixed;
    right: 0;
    top: 0;
    width: 220px;
    height: 100vh;
    background: var(--white);
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 20px rgba(13,32,20,0.08);
    flex-direction: column;
    align-items: stretch;
    z-index: 300;
    transition: transform 0.25s ease, visibility 0s linear 0s;
    overflow: hidden;
  }
  /* visibility:hidden takes the closed panel's links out of the tab order once the slide-out ends */
  body.nav-closed .nav-ctrl { transform: translateX(100%); visibility: hidden; transition: transform 0.25s ease, visibility 0s linear 0.25s; }
  .nav-burger {
    display: flex !important;
    width: 100%;
    height: 62px;
    padding: 0 18px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    gap: 10px;
    flex-shrink: 0;
  }
  .nav-burger.is-open .nav-burger-icon span:nth-child(1),
  .nav-burger.is-open .nav-burger-icon span:nth-child(2),
  .nav-burger.is-open .nav-burger-icon span:nth-child(3) {
    transform: none;
    opacity: 1;
  }
  .nav-main-dd {
    display: block !important;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    width: 100%;
    overflow-y: auto;
    flex: 1;
  }
  .nav-main-dd ul {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    list-style: none;
    gap: 0;
  }
  .nav-main-dd a,
  .nav-has-sub-btn {
    padding: 11px 18px;
    font-size: 15px;
    width: 100%;
    border-radius: 0;
  }
}

/* ── Menu control as a green pill while the menu is closed ──
   Mobile: the burger in the top bar. Desktop: only the floating control shown when the side panel is closed
   (the control at the top of the open panel stays plain). Open mobile menu: plain look again. */
#nav-burger-float {
  top: 9px;
  right: 14px;
  height: auto;
  min-height: 44px;
  padding: 8px 18px;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(13,32,20,0.18);
}
#nav-burger-float:hover { background: var(--navy); }
#nav-burger-float:focus-visible { outline-offset: 3px; }
#nav-burger-float .nav-burger-label { color: #fff; }
#nav-burger-float .nav-burger-icon span { background: #fff; }
@media (max-width: 768px) {
  .nav-burger:not(.is-open) {
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--blue);
  }
  .nav-burger:not(.is-open):hover { background: var(--navy); }
  .nav-burger:not(.is-open) .nav-burger-label { color: #fff; }
  .nav-burger:not(.is-open) .nav-burger-icon span { background: #fff; }
}
/* high contrast: explicit colours + border so the pill never blends in */
html.acc-ct1 #nav-burger-float,
html.acc-ct1 .nav-burger:not(.is-open) { background: #005a20; border: 2px solid #000; }
html.acc-ct1 #nav-burger-float .nav-burger-label,
html.acc-ct1 .nav-burger:not(.is-open) .nav-burger-label { color: #fff; }

/* narrow phones: reserve room for the menu pill so it never covers the logo text (text may wrap in 2 lines) */
@media (max-width: 480px) {
  body > nav:not([class]) { padding: 0 124px 0 8px; }
  .nav-logo { min-width: 0; }
  .nav-logo .logo-text { white-space: normal; line-height: 1.2; font-size: 16px; }
}
