/* Shared chrome is namespaced to avoid collisions with retained page components. */
#cp-header,#cp-footer { font-family: var(--cp-font); font-size: 15px; line-height: 1.5; text-align: left; letter-spacing: normal; }
#cp-header *,#cp-footer * { box-sizing: border-box; font-family: inherit; }
#cp-header a,#cp-footer a { text-decoration: none; transition: color .18s,background .18s; }
#cp-header a:focus-visible,#cp-header summary:focus-visible,#cp-header button:focus-visible,#cp-footer a:focus-visible { outline: 3px solid var(--cp-cyan); outline-offset: 4px; border-radius: 4px; }
#cp-header { position: sticky; top: 0; z-index: 50; width: 100%; background: rgba(255,255,255,.97); border-bottom: 1px solid #0f2d5c15; box-shadow: 0 1px 4px #0a162808; backdrop-filter: blur(12px); color: var(--cp-navy); }
.cp-nav-wrap { max-width: 1280px; min-height: 64px; padding: 8px 32px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
#cp-header .cp-brand { display: block; flex-shrink: 0; }
#cp-header .cp-brand img { display: block; width: auto; height: 44px; max-width: 170px; object-fit: contain; }
#cp-navigation { display: flex; align-items: center; gap: 24px; }
#cp-header .cp-top-link,#cp-header summary { color: var(--cp-navy); font-size: 14px; font-weight: 500; padding: 12px 0; white-space: nowrap; }
#cp-header .cp-top-link:hover,#cp-header summary:hover,#cp-header a[aria-current="page"] { color: var(--cp-blue-hover); }
#cp-header .cp-cta { padding: 10px 17px; border: 0; cursor: pointer; border-radius: 6px; background: linear-gradient(100deg,var(--cp-blue),var(--cp-cyan)); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
#cp-header .cp-cta:hover { background: linear-gradient(100deg,var(--cp-blue-hover),var(--cp-cyan-hover)); }
#cp-header .cp-cta span { margin-left: 10px; }
#cp-header .cp-dropdown { position: relative; }
#cp-header summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
#cp-header summary::-webkit-details-marker { display: none; }
#cp-header summary span { transition: transform .18s; }
#cp-header details[open] summary span { transform: rotate(180deg); }
#cp-header .cp-dropdown-panel { position: absolute; top: calc(100% + 9px); right: -16px; width: 310px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--cp-border); box-shadow: 0 18px 50px #0a16281c; max-height: calc(100dvh - 100px); overflow: auto; }
#cp-header .cp-wide-panel { width: 580px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px 8px; }
#cp-header .cp-dropdown-panel a { display: block; color: var(--cp-text); padding: 10px 12px; border-radius: 6px; font-size: 14px; line-height: 1.4; font-weight: 500; }
#cp-header .cp-dropdown-panel a:hover,#cp-header .cp-dropdown-panel a[aria-current="page"] { background: #eff6ff; color: var(--cp-blue-hover); }
#cp-header .cp-menu-toggle { display: none; border: 1px solid var(--cp-border); border-radius: 6px; background: #fff; padding: 8px 12px; color: var(--cp-text); cursor: pointer; font-size: 14px; }
.cp-skip { position: fixed; left: 16px; top: -100px; z-index: 2000; padding: 12px 20px; background: var(--cp-navy); color: #fff; border-radius: 6px; }
.cp-skip:focus { top: 12px; }
#cp-footer { background: var(--cp-navy); color: #bfd0e6; padding: 0; }
.cp-footer-inner { max-width: 1280px; margin: auto; padding: 56px 32px 24px; }
.cp-footer-intro { display: flex; align-items: start; justify-content: space-between; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid #ffffff1a; scroll-margin-top: 90px; }
#cp-footer .cp-footer-brand img { width: auto; height: 56px; max-width: 190px; object-fit: contain; display: block; }
#cp-footer .cp-footer-intro p { margin: 18px 0 0; max-width: 370px; font-size: 14px; line-height: 1.7; color: #bfd0e6; }
#cp-footer .cp-footer-contact h2 { margin: 0 0 16px; color: white; font-size: 24px; font-weight: 600; line-height: 1.3; }
#cp-footer .cp-footer-contact a { display: block; margin: 9px 0; color: #dbeafe; font-size: 16px; }
.cp-footer-contact span { margin-left: 30px; }
.cp-footer-links { display: grid; grid-template-columns: 1fr 1.6fr 1.3fr 1fr; gap: 32px; padding: 36px 0; }
#cp-footer h3 { color: #fff; font-weight: 600; font-size: 16px; margin: 0 0 18px; line-height: 1.4; }
#cp-footer ul { margin: 0; padding: 0; list-style: none; }
#cp-footer li { margin: 0 0 10px; padding: 0; }
#cp-footer li a { color: #bfd0e6; font-size: 13px; line-height: 1.6; }
#cp-footer a:hover { color: #fff; }
.cp-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 22px; border-top: 1px solid #ffffff1a; }
#cp-footer .cp-footer-bottom p { margin: 0; font-size: 12px; color: #94a3b8; }
.cp-footer-bottom div { display: flex; gap: 24px; }
#cp-footer .cp-footer-bottom a { color: #bfd0e6; font-size: 12px; }
@media(max-width:1000px) {
  .cp-nav-wrap { padding: 8px 20px; flex-wrap: wrap; gap: 0; }
  #cp-header .cp-menu-toggle { display: inline-flex; gap: 8px; align-items: center; }
  #cp-navigation { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100dvh - 72px); overflow-y: auto; padding: 12px 0 16px; }
  #cp-navigation.cp-is-open { display: flex; }
  #cp-header summary,#cp-header .cp-top-link { padding: 13px 8px; }
  #cp-header summary { justify-content: space-between; }
  #cp-header .cp-dropdown-panel,#cp-header .cp-wide-panel { position: static; width: 100%; max-height: none; box-shadow: none; border: 0; border-left: 2px solid #dbeafe; border-radius: 0; padding: 0 8px; margin-bottom: 8px; }
  #cp-header .cp-wide-panel { display: block; }
  #cp-header .cp-cta { text-align: center; margin-top: 8px; }
  .cp-footer-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
  .cp-footer-inner { padding: 40px 20px 24px; }
  .cp-footer-intro { flex-direction: column; gap: 28px; }
  .cp-footer-links { gap: 28px 20px; }
  .cp-footer-bottom { flex-direction: column; align-items: start; gap: 14px; }
}

/* Keep secondary-page navigation opaque over every hero and while scrolling. */
body.cp-page:not(.cp-home) #cp-header { background: #fff; backdrop-filter: none; }
