/* Peacro shared header and footer (peacro.africa and any Peacro site that uses /shared/header and /shared/footer).
   Every class starts with pch- so it can sit on another site without clashing. No JavaScript: the mobile menu and
   the profile menu are <details>. */

@font-face { font-family: "Peacro Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Peacro Inter"; src: url("../fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Peacro Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Peacro Inter"; src: url("../fonts/Inter-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Peacro Display"; src: url("../fonts/InterDisplay-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

.pch-header, .pch-footer {
  --pch-teal: #1F5E57; --pch-teal-dark: #123E39; --pch-orange: #E07B24; --pch-ink: #1B2B29; --pch-muted: #44524F;
  --pch-line: #E6ECEA; --pch-soft: #EAF3F1;
  --pch-gut: clamp(20px, 7vw, 112px); --pch-max: calc(1160px + 2 * var(--pch-gut));
  font-family: "Peacro Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; box-sizing: border-box; line-height: 1.5;
}
.pch-header *, .pch-footer * { box-sizing: border-box; }
.pch-ic { flex-shrink: 0; display: block; }

/* ---------- header ---------- */
.pch-header { position: sticky; top: 0; z-index: 50; background: #FFFFFF; border-bottom: 1px solid var(--pch-line); color: var(--pch-ink); }
.pch-skip { position: absolute; left: 12px; top: -60px; padding: 10px 16px; border-radius: 999px; background: var(--pch-teal); color: #FFFFFF; font-weight: 600; text-decoration: none; z-index: 60; }
.pch-skip:focus { top: 12px; }
.pch-bar { position: relative; max-width: var(--pch-max); margin: 0 auto; height: 72px; padding: 0 var(--pch-gut); display: flex; align-items: center; gap: 8px; }
.pch-logo { display: flex; align-items: center; flex-shrink: 0; margin-right: 20px; border-radius: 8px; }
.pch-logo img { display: block; height: 40px; width: auto; }
.pch-nav { display: flex; align-items: stretch; height: 72px; }
.pch-nav a { display: flex; align-items: center; padding: 0 14px; color: var(--pch-muted); font-size: 15px; font-weight: 500; text-decoration: none; position: relative; }
.pch-nav a:hover { color: var(--pch-teal); }
.pch-nav a.is-on { color: var(--pch-teal); }
.pch-nav a.is-on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--pch-teal); }
.pch-grow { flex: 1; }

.pch-acct { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--pch-teal); color: #FFFFFF; font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.pch-acct:hover { background: var(--pch-teal-dark); color: #FFFFFF; }

.pch-header summary { list-style: none; cursor: pointer; }
.pch-header summary::-webkit-details-marker { display: none; }
.pch-header :focus-visible { outline: 3px solid var(--pch-orange); outline-offset: 2px; }

.pch-me { position: relative; flex-shrink: 0; }
.pch-me-btn { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 5px 0 16px; border-radius: 999px; border: 1px solid #D5DFDC; background: #FFFFFF; font-size: 14.5px; font-weight: 600; color: var(--pch-ink); }
.pch-me-btn:hover, .pch-me[open] .pch-me-btn { background: #F4F8F7; }
.pch-av { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #FFFFFF; font-size: 13px; font-weight: 700; object-fit: cover; background: var(--pch-teal); box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--pch-teal); flex-shrink: 0; }
.pch-av-lg { width: 72px; height: 72px; font-size: 26px; box-shadow: none; margin-bottom: 10px; }
.pch-c0 { background: #B85A12; } .pch-c1 { background: #1F5E57; } .pch-c2 { background: #6B46A3; } .pch-c3 { background: #2A62A3; } .pch-c4 { background: #A23F25; }
.pch-me-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 330px; max-width: calc(100vw - 24px); padding: 20px; border-radius: 24px; background: #FFFFFF; box-shadow: 0 18px 44px rgba(10, 40, 36, .2); border: 1px solid var(--pch-line); }
.pch-me-who { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 16px; border-bottom: 1px solid var(--pch-line); }
.pch-me-who b { font-size: 17px; }
.pch-me-who span { color: var(--pch-muted); font-size: 13.5px; margin-bottom: 14px; }
.pch-me-links { display: flex; flex-direction: column; padding: 6px 0; border-bottom: 1px solid var(--pch-line); }
.pch-me-links a { display: flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: 10px; color: var(--pch-ink); font-size: 14.5px; text-decoration: none; }
.pch-me-links a:hover { background: #F4F8F7; }
.pch-out { margin-top: 8px; width: 100%; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: #A33A1A; font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; padding: 0 8px; cursor: pointer; }
.pch-out:hover { background: #FBEDE8; }

.pch-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.pch-btn-line { border: 1px solid var(--pch-teal); color: var(--pch-teal); }
.pch-btn-line:hover { background: var(--pch-soft); }
.pch-btn-fill { background: var(--pch-teal); color: #FFFFFF; }

.pch-menu { display: none; }
.pch-menu-btn { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--pch-ink); }
.pch-menu-btn:hover, .pch-menu[open] .pch-menu-btn { background: #F4F8F7; }
.pch-menu-panel { position: absolute; left: 0; right: 0; top: 72px; display: flex; flex-direction: column; padding: 8px 0 20px; background: #FFFFFF; border-bottom: 1px solid var(--pch-line); box-shadow: 0 18px 32px rgba(10, 40, 36, .12); }
.pch-menu-panel a:not(.pch-btn) { display: flex; align-items: center; min-height: 52px; padding: 0 var(--pch-gut); color: var(--pch-ink); font-size: 17px; font-weight: 500; text-decoration: none; }
.pch-menu-panel a.is-on { color: var(--pch-teal); background: var(--pch-soft); font-weight: 600; }
.pch-menu-panel .pch-btn { margin: 12px var(--pch-gut) 0; min-height: 48px; }

@media (max-width: 960px) {
  .pch-nav { display: none; }
  .pch-menu { display: block; }
}
@media (max-width: 560px) {
  .pch-bar { padding: 0 12px 0 var(--pch-gut); height: 64px; gap: 4px; }
  .pch-menu-panel { top: 64px; }
  .pch-logo { margin-right: 4px; }
  .pch-logo img { height: 30px; }
  .pch-me-label { display: none; }
  .pch-me-btn { padding: 0 4px; border: 0; }
  .pch-acct { height: 40px; padding: 0 12px 0 10px; font-size: 13.5px; gap: 6px; }
}
@media (max-width: 380px) { .pch-logo img { height: 26px; } .pch-acct { padding: 0 10px 0 8px; } }
@media (max-width: 350px) { .pch-acct span { display: none; } .pch-acct { padding: 0 10px; } }

/* ---------- footer ---------- */
.pch-footer { background: var(--pch-teal-dark); color: #D6E7E3; }
.pch-foot { max-width: var(--pch-max); margin: 0 auto; padding: 72px var(--pch-gut) 48px; display: flex; flex-wrap: wrap; gap: 48px; }
.pch-foot-brand { flex: 1 1 280px; max-width: 360px; }
.pch-foot-brand img { height: 40px; width: auto; display: block; margin-bottom: 18px; }
.pch-foot-brand p { margin: 0 0 14px; font-size: 14.5px; color: #C3D8D3; }
.pch-contact { display: flex; gap: 10px; align-items: flex-start; }
.pch-contact .pch-ic { margin-top: 2px; color: var(--pch-orange); }
.pch-contact span a { display: block; }
.pch-cols { flex: 999 1 560px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.pch-col h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: #FFFFFF; }
.pch-col ul { list-style: none; margin: 0; padding: 0; }
.pch-col li a { display: inline-flex; align-items: center; min-height: 36px; }
.pch-footer a { color: #D6E7E3; text-decoration: none; font-size: 14.5px; }
.pch-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.pch-footer :focus-visible { outline: 3px solid var(--pch-orange); outline-offset: 2px; }
.pch-legal { width: min(calc(100% - 2 * var(--pch-gut)), calc(var(--pch-max) - 2 * var(--pch-gut))); margin: 0 auto; padding: 20px 0 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #2A5852; font-size: 13.5px; color: #B5CCC7; }
.pch-legal span:last-child { display: flex; gap: 20px; }
.pch-legal a { font-size: 13.5px; }
@media (max-width: 760px) {
  .pch-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pch-foot { padding: 48px var(--pch-gut) 32px; gap: 36px; }
}
