.cp-header,
.cp-drawer {
  --panel: #fffbf3;
  --preview-ink: #20241e;
  --soft-ink: #59594e;
  --preview-orange: var(--orange);
  --preview-orange-hover: #ab4300;
  --action-radius: 10px;
  --rule: #dacfba;
  --hover: #f3e6ce;
  --preview-height: 84px;
  --preview-gutter: clamp(24px, 4.4vw, 72px);
  --measure: 1600px;
  --row-radius: 9px;
  --shadow: 0 2px 7px #3b2a1210, 0 10px 28px #3b2a1219;
  font-family: 'Google Sans Flex', Arial, sans-serif;
  color: var(--preview-ink);
}
.cp-header :where(button),
.cp-drawer :where(button) {
  appearance: none;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
}
.cp-header [hidden],
.cp-drawer [hidden] {
  display: none !important;
}
.cp-frame {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--preview-gutter);
}
.cp-icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cp-header {
  position: absolute;
  z-index: 50;
  inset: 0 0 auto;
  background: var(--page);
  border-bottom: 1px solid var(--rule);
}

.cp-bar {
  height: var(--preview-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.cp-brand,
.cp-primary-nav,
.cp-utilities {
  display: flex;
  align-items: center;
}
.cp-brand {
  gap: 8px;
  flex: none;
}
.cp-wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.069em;
  padding-right: 2px;
}
@media (width > 1024px) {
  .cp-brand > .cp-wordmark {
    translate: 0 -2px;
  }
}

.cp-primary-nav {
  position: relative;
  gap: 12px;
}
.cp-primary-nav > .cp-disclosure:first-child {
  position: static;
}
.cp-utilities {
  justify-self: end;
  gap: 10px;
}
.cp-language-control {
  margin-inline-end: 8px;
}
.cp-disclosure {
  position: relative;
  flex: none;
}
.cp-trigger,
.cp-action,
.cp-mobile-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--row-radius);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.cp-chevron {
  width: 12px;
  height: 12px;
  stroke-width: 1.8;
}
.cp-trigger[aria-expanded='true'],
.cp-header .cp-access[aria-expanded='true'] {
  background: var(--hover);
}
.cp-trigger[aria-expanded='true'] .cp-chevron {
  transform: rotate(180deg);
}
.cp-site-trigger {
  color: var(--soft-ink);
  padding-inline: 9px;
}
.cp-lang-trigger {
  min-width: 44px;
  padding-inline: 6px;
  color: var(--soft-ink);
  gap: 4px;
  font-size: 13px;
}
.cp-lang-trigger .cp-chevron {
  width: 10px;
  height: 10px;
}
.cp-access,
.cp-contact {
  min-height: 46px;
  padding-inline: 18px;
  border-radius: var(--action-radius);
  font-weight: 500;
}
.cp-header .cp-access {
  border: 1px solid #c8b89d;
  background: #fffaf248;
}
.cp-contact {
  background: var(--preview-orange);
  color: #fff;
}
.cp-mobile-trigger {
  display: none;
}

.cp-dropdown {
  position: absolute;
  top: calc(100% + 13px);
  inset-inline-start: -8px;
  z-index: 4;
  margin: 0;
  width: max-content;
  max-height: calc(100dvh - var(--preview-height) - 14px);
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e9dcc8;
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.cp-dropdown.cp-language {
  inset-inline: auto 0;
  min-width: 154px;
}
.cp-dropdown.cp-access-panel {
  inset-inline: auto 0;
  min-width: 212px;
}
.cp-dropdown.cp-sites {
  min-width: 214px;
}
.cp-audience-panel {
  inset-inline-start: 50%;
  translate: -50% 0;
  width: min(654px, 64vw);
  padding: 16px;
}
.cp-deploy-panel {
  width: min(410px, 42vw);
  padding: 12px;
}
.cp-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cp-menu-grid > section + section {
  border-inline-start: 1px solid #eee1cc;
  padding-inline-start: 12px;
}
.cp-menu-heading {
  margin: 5px 10px 8px;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 500;
}
.cp-menu-link,
.cp-choice {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  border-radius: var(--row-radius);
  text-align: start;
}
.cp-choice {
  justify-content: space-between;
  gap: 16px;
  padding: 8px 11px;
  font-size: 15px;
}
.cp-choice:is([aria-current='true'], [aria-pressed='true']) {
  color: var(--preview-orange);
  font-weight: 600;
}
.cp-menu-link {
  min-height: 68px;
  padding: 10px;
  gap: 12px;
}
.cp-menu-art {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: #f8ecd8;
}
.cp-menu-art img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.cp-menu-art .cp-briefcase {
  width: 41px;
  height: 41px;
}
.cp-menu-art .cp-consent {
  width: 32px;
  height: 32px;
}
.cp-menu-link strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}
.cp-menu-link small {
  display: block;
  margin-top: 3px;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.32;
}
.cp-menu-link:focus-visible,
.cp-choice:focus-visible {
  outline-offset: -2px;
  background: var(--hover);
}

.cp-drawer {
  position: fixed;
  inset: 0;
  margin: 0 0 0 auto;
  width: min(100%, 470px);
  height: 100dvh;
  max-height: none;
  max-width: none;
  padding: 0;
  border: 0;
  background: var(--panel);
  color: var(--preview-ink);
  overscroll-behavior: contain;
}
.cp-drawer::backdrop {
  background: #201a1070;
}
.cp-drawer-inner {
  padding: 0 20px 24px;
}
.cp-drawer-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 66px;
  margin-bottom: 12px;
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
}
.cp-drawer-heading .cp-wordmark {
  font-size: 31px;
}
.cp-close-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--row-radius);
}
.cp-close-button .cp-icon {
  width: 22px;
  height: 22px;
}
.cp-drawer details {
  border-bottom: 1px solid var(--rule);
}
.cp-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 55px;
  padding: 0 3px;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
}
.cp-drawer summary::-webkit-details-marker {
  display: none;
}
.cp-drawer details[open] summary .cp-chevron {
  transform: rotate(180deg);
}
.cp-drawer-content {
  padding: 0 0 10px;
}
.cp-drawer-content .cp-menu-grid {
  display: block;
}
.cp-drawer-content .cp-menu-grid > section + section {
  margin-top: 10px;
  border: 0;
  padding-inline-start: 0;
}
.cp-drawer-actions {
  display: grid;
  margin-top: 18px;
}
body:has(.cp-drawer[open]) {
  overflow: hidden;
}

@media (hover: hover) {
  .cp-trigger:hover,
  .cp-action:not(.cp-contact):hover,
  .cp-menu-link:hover,
  .cp-choice:hover,
  .cp-mobile-trigger:hover,
  .cp-close-button:hover {
    background: var(--hover);
  }
  .cp-header .cp-access:hover {
    background: var(--hover);
  }
  .cp-contact:hover {
    background: var(--preview-orange-hover);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .cp-trigger,
  .cp-action,
  .cp-choice,
  .cp-menu-link,
  .cp-mobile-trigger {
    transition: background-color 140ms ease-out;
  }
  .cp-contact {
    transition: background-color 140ms ease-out;
  }
}

@media (max-width: 1024px) {
  .cp-header,
  .cp-drawer {
    --preview-height: 66px;
    --preview-gutter: clamp(20px, 4.4vw, 44px);
  }
  .cp-bar {
    display: flex;
    gap: 8px;
  }
  .cp-wordmark {
    font-size: 31px;
  }

  .cp-brand .cp-disclosure,
  .cp-primary-nav,
  .cp-utilities .cp-disclosure {
    display: none;
  }
  .cp-mobile-trigger {
    display: inline-flex;
  }
  .cp-mobile-trigger .cp-icon {
    width: 17px;
    height: 17px;
  }
  .cp-utilities {
    gap: 6px;
    margin-inline-start: auto;
  }
  .cp-contact {
    padding-inline: 15px;
  }
}

@media (max-width: 370px) {
  .cp-header {
    --preview-gutter: 16px;
  }
  .cp-mobile-trigger {
    padding-inline: 8px;
  }
  .cp-bar .cp-contact {
    padding-inline: 12px;
  }
}

/* one-line menu rows, roomier headings, small site switcher, transparent over the schools photo hero */
.cp-menu-heading {
  margin: 8px 10px 12px;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.cp-menu-link small {
  white-space: nowrap;
}
.cp-audience-panel {
  width: auto;
  min-width: 0;
}
.cp-menu-grid {
  gap: 20px;
}
.cp-menu-grid > section + section {
  padding-inline-start: 20px;
}
.cp-deploy-panel {
  width: auto;
  min-width: 0;
}
.cp-sites .cp-choice {
  font-size: 14px;
  min-height: 40px;
}
.cp-sites {
  min-width: 160px;
}
.cp-choice-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.cp-choice-icon {
  width: 15px;
  height: 15px;
  stroke-width: 1.5;
  opacity: 0.7;
}
.cp-header {
  transition:
    background-color 0.25s ease-out,
    border-color 0.25s ease-out;
}
/* schools home: the header stays see-through over the hero photo, no colour change on scroll (Max 11-15) */
body.page-schools .cp-header {
  background: transparent;
}
/* over the hero photo the Get access button needs more body */
body.page-schools .cp-header .cp-access {
  background: rgba(251, 240, 222, 0.82);
  border-color: rgba(60, 35, 10, 0.22);
}
@media (hover: hover) {
  body.page-schools .cp-header .cp-access:hover,
  body.page-schools .cp-header .cp-access[aria-expanded='true'] {
    background: rgba(251, 240, 222, 0.96);
  }
}

.cp-choice-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: none;
}
.cp-sites .cp-choice-label {
  gap: 10px;
}

/* Max 11-10: Deployments panel is a real menu (no heading, wider box, same rows as the other menus); nav triggers do not fill when open */
.cp-primary-nav .cp-trigger[aria-expanded='true'],
.cp-primary-nav .cp-trigger[aria-expanded='true']:hover {
  background: transparent;
}
.cp-deploy-panel {
  padding: 12px;
  min-width: 400px;
}
.cp-drawer-login {
  padding: 16px 3px;
  font-weight: 600;
  font-size: 17px;
}

/* Max 11-10: site switcher never fills (open, hover or tap); header menus drop in from their trigger */
.cp-site-trigger,
.cp-site-trigger:hover,
.cp-site-trigger[aria-expanded='true'],
.cp-site-trigger[aria-expanded='true']:hover {
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.cp-site-trigger:focus:not(:focus-visible) {
  outline: none;
}
.cp-sites .cp-choice-img {
  border-radius: 7px;
}
.cp-chevron {
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (prefers-reduced-motion: no-preference) {
  .cp-header .cp-dropdown:not([hidden]) {
    transform-origin: top left;
    animation: cp-drop 200ms cubic-bezier(0.23, 1, 0.32, 1) both;
  }
  .cp-header .cp-dropdown.cp-language:not([hidden]),
  .cp-header .cp-dropdown.cp-access-panel:not([hidden]) {
    transform-origin: top right;
  }
  .cp-header .cp-audience-panel:not([hidden]) {
    transform-origin: top center;
  }
  .cp-header .cp-dropdown:not([hidden]) > * {
    animation: cp-drop-row 240ms cubic-bezier(0.23, 1, 0.32, 1) both;
  }
  .cp-header .cp-dropdown:not([hidden]) > *:nth-child(2) {
    animation-delay: 30ms;
  }
  .cp-header .cp-dropdown:not([hidden]) > *:nth-child(3) {
    animation-delay: 60ms;
  }
  .cp-header .cp-dropdown:not([hidden]) > *:nth-child(4) {
    animation-delay: 90ms;
  }
}
@keyframes cp-drop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes cp-drop-row {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Max 11-10: Who it's for columns are the same width, Programs and privacy gets more room */
.cp-audience-panel .cp-menu-grid {
  grid-template-columns: repeat(2, 300px);
}
/* Max 11-10: nav buttons never fill either (hover, open, tap); a click just drops the menu */
.cp-primary-nav .cp-trigger,
.cp-primary-nav .cp-trigger:hover,
.cp-primary-nav .cp-trigger[aria-expanded='true'] {
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.cp-primary-nav .cp-trigger:focus:not(:focus-visible) {
  outline: none;
}

/* Workplaces: same header as schools, but it dissolves into the forest hero (no bar, no rule) and turns into frosted forest once the page scrolls. */
body.world-workplaces .cp-header {
  --rule: rgba(246, 242, 232, 0.14);
  --wp-forest: #18383d;
  --wp-lime: #cddba0;
  --wp-lime-hi: #d9e4b4;
  color: #f6f2e8;
  transition:
    background-color 0.3s ease-out,
    border-color 0.3s ease-out,
    -webkit-backdrop-filter 0.3s,
    backdrop-filter 0.3s;
}
body.world-workplaces .cp-header:not(.is-stuck) {
  background: transparent;
  border-bottom-color: rgba(246, 242, 232, 0.16);
}
body.world-workplaces .cp-header.is-stuck {
  background: rgba(24, 56, 61, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: rgba(246, 242, 232, 0.1);
}
body.world-workplaces .cp-header .cp-site-trigger,
body.world-workplaces .cp-header .cp-lang-trigger {
  color: rgba(246, 242, 232, 0.72);
}
body.world-workplaces .cp-header .cp-wordmark {
  color: #f6f2e8;
}
body.world-workplaces .cp-header .cp-navlink[aria-current='page'] {
  box-shadow: inset 0 -1.5px 0 currentColor;
  border-radius: 0;
}
body.world-workplaces .cp-header .cp-access {
  background: rgba(246, 242, 232, 0.1);
  border-color: rgba(246, 242, 232, 0.3);
  color: #f6f2e8;
}
body.world-workplaces .cp-header .cp-contact {
  background: var(--wp-lime);
  color: var(--wp-forest);
}
@media (hover: hover) {
  body.world-workplaces .cp-header .cp-access:hover {
    background: rgba(246, 242, 232, 0.2);
  }
  body.world-workplaces .cp-header .cp-contact:hover {
    background: var(--wp-lime-hi);
  }
  body.world-workplaces .cp-header .cp-trigger:hover,
  body.world-workplaces .cp-header .cp-action:not(.cp-contact):hover {
    background: rgba(246, 242, 232, 0.1);
  }
}
/* menus stay the cream card, with dark text and the forest tick */
body.world-workplaces .cp-header .cp-dropdown {
  color: var(--preview-ink);
  --preview-orange: #18383d;
}
body.world-workplaces .cp-header .cp-dropdown .cp-choice:hover {
  background: var(--hover);
}
body.world-workplaces .cp-drawer {
  --preview-orange: #18383d;
  --preview-orange-hover: #0f2a2e;
}
body.world-workplaces .cp-drawer .cp-contact {
  background: #18383d;
  color: #f6f2e8;
}
body.world-workplaces .cp-header .cp-site-trigger:hover,
body.world-workplaces .cp-header .cp-site-trigger[aria-expanded='true'] {
  background: transparent;
}

/* Every schools page keeps the header divider, even when the header blends into the hero */
body.world-schools .cp-header:not(#_):not(#_) {
  border-bottom-color: rgba(60, 35, 10, 0.16);
}

/* 11-16: French labels are longer. On a phone the bar keeps Menu and the contact button; Log in stays in the drawer. */
@media (max-width: 480px) {
  .cp-header:lang(fr) .cp-bar .cp-login {
    display: none;
  }
}

.cp-site-mobile {
  display: none;
}
