/* One shell for marketing, guides, legal pages and the v4 review. Scoped rules
   deliberately win over old page-specific navigation and footer styling. */
html body #site-menu.shared-site-header,
html body .shared-site-footer { font-family: Rubik, system-ui, sans-serif; font-size: 15px; line-height: 1.5; letter-spacing: normal; box-sizing: border-box; }
html body #site-menu.shared-site-header { position: relative; inset: auto; z-index: 50; margin: 0; padding: 0; width: 100%; background: #f2f9fe; color: #0f2b46; border: 0; box-shadow: none; backdrop-filter: none; }
.shared-site-header *, .shared-site-footer * { box-sizing: border-box; }
.shared-header-inner { max-width: 1440px; min-height: 84px; margin: auto; padding: 12px clamp(20px,3.4vw,48px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
html body #site-menu.shared-site-header a { color: #0f2b46; text-decoration: none; font-size: 15px; font-weight: 400; }
html body #site-menu.shared-site-header .shared-brand { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; flex-shrink: 0; }
.shared-brand-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: #0f2b46; color: white; display: grid; place-items: center; }
.shared-brand-he { display: flex; flex-direction: column; }
.shared-brand-he strong { font-size: 16px; font-weight: 500; }
.shared-brand-he small { font-size: 10px; }
.shared-beta { font-size: 10px; padding: 2px 5px; border: 1px solid #c9dcec; border-radius: 5px; }
.shared-desktop-links, .shared-header-actions { display: flex; align-items: center; gap: 24px; }
.shared-desktop-links a { white-space: nowrap; }
html body #site-menu.shared-site-header .shared-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border-radius: 999px; background: #0f2b46; color: white; white-space: nowrap; font-weight: 500; box-shadow: none; }
.shared-site-header a:hover, .shared-site-footer a:hover { text-decoration: underline !important; text-underline-offset: 4px; }
.shared-site-header :focus-visible, .shared-site-footer :focus-visible { outline: 3px solid #1b75b3; outline-offset: 4px; }
.shared-site-footer :focus-visible { outline-color: #9cc3e0; }
html body .shared-mobile-menu { display: none; }
html body .shared-site-header summary, html body .shared-site-footer summary { cursor: pointer; list-style: none; }
.shared-site-header summary::-webkit-details-marker, .shared-site-footer summary::-webkit-details-marker { display: none; }
html body .shared-language { position: relative; margin: 0; color: inherit; }
html body .shared-language summary { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 4px; font: inherit; color: inherit; background: transparent; border: 0; box-shadow: none; }
html body .shared-language .site-language-selector { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; inset-inline-start: auto; z-index: 60; width: min(440px, calc(100vw - 40px)); max-height: min(70vh,520px); overflow-y: auto; padding: 8px; border-radius: 20px; background: white; border: 1px solid #c9dcec; box-shadow: 0 24px 60px rgb(15 43 70 / 16%); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px; }
html body .shared-language .site-language-option { min-height: 44px; padding: 10px 12px; border-radius: 10px; display: flex; align-items: center; color: #0f2b46 !important; background: transparent; border: 0; font-size: 15px; text-decoration: none; }
html body .shared-language .site-language-option:hover, html body .shared-language .is-active { background: #eef6fc; }
html body .shared-site-footer { margin: 0; padding: 0; background: #0f2b46; color: white; border: 0; }
.shared-footer-inner { max-width: 1440px; margin: auto; padding: clamp(56px,7vw,96px) clamp(20px,3.4vw,48px) 32px; }
.shared-footer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 40px; }
@media (min-width: 1180px) {
  .shared-footer-grid:has([data-site-feature-navigation]) { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
.shared-footer-brand { display: flex; flex-direction: column; gap: 20px; align-items: start; }
html body footer.shared-site-footer[data-shared-footer] .shared-footer-subtitle { color: #fff !important; display: block; margin-top: 4px; text-align: right; font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: normal; }
.shared-footer-title { font-size: clamp(28px,2.6vw,36px); font-weight: 300; line-height: 1.15; letter-spacing: -.6px; }
html body .shared-site-footer nav { display: flex; flex-direction: column; align-items: start; justify-content: start; gap: 2px; border: 0; margin: 0; padding: 0; }
.shared-footer-heading { font-size: 13px; letter-spacing: 2px; color: #9cc3e0; margin-bottom: 10px; text-transform: uppercase; }
html body .shared-site-footer nav a { min-height: 36px; display: flex; align-items: center; font-size: 15.5px; color: white; text-decoration: none; }
html body .shared-site-footer [aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
html body .shared-site-footer .shared-footer-preferences { display: flex; flex-wrap: wrap; justify-content: start; margin: 0; gap: 10px; }
html body .shared-site-footer .dsa-privacy-settings-button { min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 50%); background: transparent; color: white; font: inherit; font-size: 14.5px; cursor: pointer; }
.shared-footer-language { margin-top: 28px; display: flex; }
html body .shared-site-footer .shared-language .site-language-selector { inset-block-start: auto; inset-block-end: calc(100% + 8px); inset-inline-start: 0; inset-inline-end: auto; }
.shared-footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 18%); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: #c4d6e6; }
.shared-guide-tools { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 12px 20px; }
@media (max-width: 1179px) {
  .shared-desktop-links, .shared-desktop-cta { display: none; }
  html body .shared-mobile-menu { display: block; position: static; }
  .shared-mobile-menu summary { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #c9dcec; border-radius: 12px; font-size: 22px; }
  html body .shared-mobile-links { position: absolute; inset-block-start: 100%; inset-inline: 20px; padding: 16px; display: flex; flex-direction: column; gap: 4px; background: white; border: 1px solid #c9dcec; border-radius: 20px; box-shadow: 0 24px 60px rgb(15 43 70 / 16%); max-height: 70vh; overflow: auto; }
  .shared-mobile-links a { padding: 10px 12px; min-height: 44px; }
  .shared-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 540px) {
  .shared-header-inner { gap: 10px; padding-inline: 16px; }
  html body #site-menu.shared-site-header .shared-brand { font-size: 13px; gap: 7px; }
  .shared-header-actions { gap: 6px; }
  .shared-header-actions .shared-language { position: static; }
  .shared-header-actions .shared-language summary { font-size: 12px; gap: 4px; }
  html body .shared-header-actions .shared-language .site-language-selector { inset-inline: 16px; width: auto; }
  .shared-brand-he strong { font-size: 13px; }
  .shared-brand-he small { font-size: 8px; }
  .shared-beta { display: none; }
  .shared-footer-grid { gap: 32px 24px; }
  .shared-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 359px) { .shared-brand-icon { display: none; } }

html body .shared-language .site-language-name { display: inline !important; }

/* Guide themes change the content surface, never the shared brand chrome. */
html body footer.shared-site-footer[data-shared-footer] { background: #0f2b46 !important; color: white; }
html body .shared-site-footer .shared-footer-heading { color: #9cc3e0 !important; background: transparent; border: 0; padding: 0; }
html body .shared-guide-tools { font-family: Rubik, system-ui, sans-serif; background: #eef6fc; color: #0f2b46; }
html body .shared-guide-tools > a { color: #0f2b46; min-height: 44px; display: inline-flex; align-items: center; }
html body .shared-guide-tools > a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
html body footer.shared-site-footer[data-shared-footer] nav a { color: white !important; }
html body #site-menu.shared-site-header[data-site-header] { background: #f2f9fe !important; color: #0f2b46 !important; }
html body #site-menu.shared-site-header[data-site-header] a { color: #0f2b46 !important; }
html body #site-menu.shared-site-header[data-site-header] .shared-cta { color: white !important; background: #0f2b46 !important; }
html body #site-menu.shared-site-header[data-site-header] summary { color: #0f2b46 !important; background: transparent !important; }
html body #site-menu.shared-site-header .shared-language .site-language-selector { background: white !important; }
html body #site-menu.shared-site-header a:hover { color: #1b75b3 !important; }
html body #site-menu.shared-site-header .shared-cta:hover { color: white !important; background: #125a94; }

html body .shared-site-footer .shared-language { background: transparent; border: 0; color: #fff; }
html body .shared-site-footer .shared-language summary { background: transparent !important; color: #fff !important; border: 0; }
html body .shared-site-footer .shared-footer-heading { font-weight: 400; }
.shared-language-fallback { margin-inline-start: 5px; font-size: 12px; }

html body .shared-language .site-language-code { display: none; }
@media (max-width: 540px) {
  html body .shared-header-actions .site-language-name { display: none !important; }
  html body .shared-header-actions .site-language-code { display: inline; font-size: 12px; }
}

.shared-language-globe {
  position: relative;
  display: inline-block;
  flex: none;
  width: 15px;
  height: 15px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.shared-language-globe::before,
.shared-language-globe::after {
  content: "";
  position: absolute;
}
.shared-language-globe::before {
  inset: -1px 3px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.shared-language-globe::after {
  inset: 50% 0 auto;
  border-top: 1px solid currentColor;
}
.shared-language-chevron {
  flex: none;
  width: 6px;
  height: 6px;
  margin: -3px 2px 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.shared-language[open] .shared-language-chevron {
  margin-top: 3px;
  transform: rotate(225deg);
}
html body #site-menu.shared-site-header[data-site-header] .shared-language > summary {
  min-width: 44px;
  padding-inline: 8px;
  border-radius: 10px;
  font-weight: 500;
  white-space: nowrap;
}
html body #site-menu.shared-site-header[data-site-header] .shared-language > summary:is(:hover, :focus-visible),
html body #site-menu.shared-site-header[data-site-header] .shared-language[open] > summary {
  background: #e3eff9 !important;
}
