/* R200 shared public header/search. Keep this layer neutral and content-led. */
body.pf-portal-r192 .pf-header-r200 {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr) minmax(180px, 230px) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 8px max(20px, calc((100% - 1240px) / 2));
  border-bottom: 1px solid #dfe2ea;
  background: #fff;
  color: #171b2d;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* Tool pages ship a legacy flex topbar. Keep the shared six-destination header
   on the same grid and reset the old order/margin rules explicitly. */
body.pf-portal-r192.pf-tools-suite .pf-header-r200 {
  display: grid !important;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr) minmax(180px, 230px) auto auto !important;
  max-width: none !important;
  margin: 0 !important;
  flex-wrap: nowrap !important;
  padding-inline: max(20px, calc((100% - 1240px) / 2)) !important;
}
body.pf-portal-r192.pf-tools-suite .pf-header-r200 .tools-primary-nav {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  order: initial !important;
  overflow: visible !important;
}
body.pf-portal-r192 .pf-header-r200[data-header-r200] .pf-brand,
body.pf-portal-r192 .pf-header-r200[data-header-r200] .tools-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: normal;
  text-decoration: none;
}
body.pf-portal-r192 .pf-header-r200 .pf-nav-mobile-account { display: none; }
body.pf-portal-r192 .pf-header-r200 .pf-header-r200-account {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  max-width: 160px;
  overflow: hidden;
  color: #171b2d;
  font-size: 13px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.pf-portal-r192 .pf-header-r200 .pf-menu-toggle { display: none; }
body.pf-portal-r192 .pf-header-r200 .pf-menu-toggle {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
}
body.pf-portal-r192 .pf-header-r200 .pf-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #171b2d;
  transition: transform 160ms ease;
}
body.pf-portal-r192 .pf-header-r200 .pf-menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}
body.pf-portal-r192 .pf-header-r200 .pf-menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}
body.pf-portal-r192 .pf-header-r200 .pf-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #6158ef;
  border-radius: 8px;
  background: #6158ef;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}
body.pf-portal-r192 .pf-header-r200 :is(.pf-brand, .tools-brand) { white-space: nowrap; color: #171b2d; }
body.pf-portal-r192 .pf-header-r200 .pf-brand-controls,
body.pf-portal-r192 .pf-header-r200 .pf-account,
body.pf-portal-r192 .pf-header-r200 :is(.pf-nav, .tools-primary-nav) { min-width: 0; }
body.pf-portal-r192 .pf-header-r200 .pf-brand-controls { display: flex; align-items: center; gap: 8px; }
body.pf-portal-r192 .pf-header-r200 :is(.pf-nav, .tools-primary-nav) > ul {
  display: flex;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.pf-portal-r192 .pf-header-r200 :is(.pf-nav, .tools-primary-nav) li { min-width: 0; }
body.pf-portal-r192 .pf-header-r200 .pf-header-r200-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 9px;
  border-radius: 8px;
  color: #596174;
  font-size: 14px;
  white-space: nowrap;
}
body.pf-portal-r192 .pf-header-r200 .pf-header-r200-link:hover,
body.pf-portal-r192 .pf-header-r200 .pf-header-r200-link[aria-current="page"] {
  background: #efefff;
  color: #4a41ca;
}
body.pf-portal-r192 .pf-header-r200-more details { position: relative; }
body.pf-portal-r192 .pf-header-r200-more summary {
  min-height: 44px;
  padding: 8px 9px;
  color: #596174;
  cursor: pointer;
}
body.pf-portal-r192 .pf-header-r200-more ul {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 55;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  border: 1px solid #dfe2ea;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgb(23 27 45 / 12%);
  list-style: none;
}
body.pf-portal-r192 .pf-header-r200-search {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 7px 11px;
  border: 1px solid #dfe2ea;
  border-radius: 9px;
  background: #f4f5fb;
  color: #596174;
  font: inherit;
  cursor: text;
  text-align: left;
  text-decoration: none;
}
body.pf-portal-r192 .pf-header-r200-search:hover { border-color: #6158ef; color: #4a41ca; }
body.pf-portal-r192 .pf-header-r200 .pf-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}
body.pf-portal-r192 .pf-header-r200 .pf-account > a { color: #171b2d; }
body.pf-portal-r192 .pf-header-r200 .pf-account > .pf-header-cta { color: #fff !important; background: #6158ef; }
body.pf-portal-r192 .pf-header-r200 :is(.pf-header-r200-language, .pf-language) { min-width: 0; color: #4a41ca; white-space: nowrap; }
body.pf-portal-r192 .pf-header-r200 :is(.pf-header-r200-language, .pf-language) {
  display: block;
  position: relative;
  width: auto;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.pf-portal-r192 .pf-header-r200 :is(.pf-header-r200-language, .pf-language) > summary {
  display: inline-flex;
  align-items: center;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 9px 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 1.2;
  list-style: none;
}
body.pf-portal-r192 .pf-header-r200 :is(.pf-header-r200-language, .pf-language) > summary::-webkit-details-marker { display: none; }
body.pf-portal-r192 .pf-header-r200 .pf-language-menu { z-index: 60; }
body.pf-portal-r192 .pf-header-r200 .pf-menu-toggle { justify-self: end; }

body.pf-portal-r192 .public-search-r200 {
  overflow: hidden;
  width: min(760px, calc(100vw - 24px));
  max-width: 760px;
  max-height: min(760px, calc(100dvh - 24px));
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #171b2d;
  box-shadow: 0 24px 80px rgb(23 27 45 / 24%);
}
body.pf-portal-r192 .public-search-r200::backdrop { background: rgb(23 27 45 / 48%); }
body.pf-portal-r192:has(#public-search-dialog[open]) { overflow: hidden; }
body.pf-portal-r192 .public-search-r200-inner { overflow: auto; max-height: inherit; padding: 28px; }
body.pf-portal-r192 .public-search-r200 h2 { margin: 0 0 16px; font-size: 22px; line-height: 1.3; }
body.pf-portal-r192 .public-search-r200-close-form { position: absolute; top: 10px; right: 10px; }
body.pf-portal-r192 .public-search-r200-close { min-width: 44px; min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: #596174; font-size: 28px; cursor: pointer; }
body.pf-portal-r192 .public-search-r200 .pf-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body.pf-portal-r192 .public-search-r200-form { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; gap: 8px; align-items: center; }
body.pf-portal-r192 .public-search-r200-form > :is(input, select, button) { box-sizing: border-box; min-width: 0; }
body.pf-portal-r192 .public-search-r200-form :is(input, select) { min-height: 44px; width: 100%; padding: 8px 10px; border: 1px solid #c9ceda; border-radius: 8px; background: #fff; color: #171b2d; font: inherit; }
body.pf-portal-r192 .public-search-r200-form .pf-button { min-width: 76px; min-height: 44px; padding: 8px 16px; border: 1px solid #6158ef; border-radius: 8px; background: #6158ef; color: #fff; cursor: pointer; white-space: nowrap; }
body.pf-portal-r192 .public-search-r200-categories { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 10px; }
body.pf-portal-r192 .public-search-r200-categories button { min-height: 36px; padding: 6px 10px; border: 1px solid #dfe2ea; border-radius: 999px; background: #fff; color: #596174; cursor: pointer; }
body.pf-portal-r192 .public-search-r200-categories button[aria-current="true"] { border-color: #6158ef; background: #efefff; color: #4a41ca; }
body.pf-portal-r192 .public-search-r200-status { min-height: 24px; margin: 4px 0 10px; color: #596174; font-size: 13px; }
body.pf-portal-r192 .public-search-r200-results { display: grid; gap: 8px; }
body.pf-portal-r192.has-r200-search .public-search-r200-form { grid-template-columns: minmax(0, 1fr) auto; }
body.pf-portal-r192.has-r200-search .public-search-r200-form select[data-r200-search-type] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
body.pf-portal-r192 .public-search-r200-results[data-mode="recommended"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.pf-portal-r192 .public-search-r200-results[data-mode="results"] { grid-template-columns: minmax(0, 1fr); }
body.pf-portal-r192 .public-search-r200-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 1 / -1;
  align-items: center;
}
body.pf-portal-r192 .public-search-r200-suggestions .public-search-r200-group-title { width: 100%; }
body.pf-portal-r192 .public-search-r200-result { display: block; padding: 13px 14px; border: 1px solid #dfe2ea; border-radius: 10px; color: #171b2d; text-decoration: none; }
body.pf-portal-r192 .public-search-r200-result:hover { border-color: #6158ef; background: #fafaff; }
body.pf-portal-r192 .public-search-r200-result strong,
body.pf-portal-r192 .public-search-r200-result span { display: block; }
body.pf-portal-r192 .public-search-r200-result span { margin-top: 4px; color: #596174; font-size: 13px; line-height: 1.5; }
body.pf-portal-r192 .public-search-r200-result small { display: block; margin-top: 5px; color: #4a41ca; font-size: 12px; font-weight: 600; }
body.pf-portal-r192 .public-search-r200-group-title { margin: 10px 0 4px; color: #596174; font-size: 13px; font-weight: 700; }
body.pf-portal-r192 .public-search-r200-result.is-suggestion { display: inline-flex; width: fit-content; margin: 0 6px 6px 0; padding: 8px 11px; border-radius: 999px; background: #efefff; color: #4a41ca; }
body.pf-portal-r192 .public-search-r200-retry { color: #4a41ca; }
body.pf-portal-r192.pf-tools-suite .public-search-r200 .public-search-r200-form > :is(input, select, button) { box-sizing: border-box; min-width: 0; }
body.pf-portal-r192.pf-tools-suite .public-search-r200 .public-search-r200-form > .pf-button { min-width: 76px; }
body.pf-portal-r192.pf-tools-suite .public-search-r200 .public-search-r200-categories button { border-radius: 999px !important; }

@media (max-width: 1120px) and (min-width: 761px) {
  body.pf-portal-r192 .pf-header-r200 { grid-template-columns: minmax(130px, auto) minmax(0, 1fr) minmax(150px, 190px) auto auto; gap: 6px; }
  body.pf-portal-r192.pf-tools-suite .pf-header-r200 { grid-template-columns: minmax(130px, auto) minmax(0, 1fr) minmax(150px, 190px) auto auto !important; }
  body.pf-portal-r192 .pf-header-r200 .pf-header-r200-link { padding-inline: 5px; font-size: 13px; }
}
@media (max-width: 900px) {
  body.pf-portal-r192.is-menu-open { overflow: hidden; }
  body.pf-portal-r192 .pf-header-r200 { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto auto; min-height: 112px; padding-inline: 14px; row-gap: 8px; }
  body.pf-portal-r192.pf-tools-suite .pf-header-r200 {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    grid-template-rows: auto auto !important;
    min-height: 112px !important;
    padding-inline: 14px !important;
  }
  body.pf-portal-r192.is-menu-open .pf-header-r200 { z-index: 60; }
  body.pf-portal-r192 .pf-header-r200 :is(.pf-nav, .tools-primary-nav) { position: fixed; inset: 0; z-index: 50; width: 100%; height: 100dvh; padding: 124px 20px 20px; background: #fff; opacity: 0; visibility: hidden; pointer-events: none; }
  body.pf-portal-r192 .pf-header-r200 :is(.pf-nav, .tools-primary-nav) { overflow: auto; overscroll-behavior: contain; }
  body.pf-portal-r192 .pf-header-r200 :is(.pf-nav, .tools-primary-nav) > ul { display: grid; width: 100%; grid-template-columns: 1fr; gap: 2px; }
  body.pf-portal-r192.is-menu-open .pf-header-r200 :is(.pf-nav, .tools-primary-nav) { opacity: 1; visibility: visible; pointer-events: auto; }
  body.pf-portal-r192 .pf-header-r200 .pf-account { display: none; }
  body.pf-portal-r192 .pf-header-r200 .pf-nav-mobile-account { display: list-item; }
  body.pf-portal-r192 .pf-header-r200 .pf-brand-controls { position: relative; z-index: 61; grid-column: 1; }
  body.pf-portal-r192 .pf-header-r200 :is(.pf-header-r200-language, .pf-language) { grid-column: 2; }
  body.pf-portal-r192 .pf-header-r200 .pf-menu-toggle { display: inline-flex; position: relative; z-index: 61; grid-column: 3; grid-row: 1; min-width: 44px; min-height: 44px; background: #fff; }
  body.pf-portal-r192.pf-tools-suite .pf-header-r200 .pf-menu-toggle { display: inline-flex !important; }
  body.pf-portal-r192.pf-tools-suite .pf-header-r200 .tools-primary-nav { width: 100% !important; margin: 0 !important; order: initial !important; }
  body.pf-portal-r192 .pf-header-r200-search { grid-column: 1 / -1; grid-row: 2; display: flex; }
  body.pf-portal-r192 .public-search-r200-inner { padding: 24px 16px; }
  body.pf-portal-r192 .public-search-r200-form { grid-template-columns: minmax(0, 1fr) auto; }
  body.pf-portal-r192 .public-search-r200-form select { grid-column: 1; }
  body.pf-portal-r192 .public-search-r200-form .pf-button { grid-column: 2; }
  body.pf-portal-r192 .public-search-r200-results[data-mode="recommended"] { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  body.pf-portal-r192 .pf-header-r200 { padding-inline: 10px; }
  body.pf-portal-r192 .pf-header-r200[data-header-r200] :is(.pf-brand, .tools-brand) { font-size: 14px; }
  body.pf-portal-r192 .public-search-r200 { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); border-radius: 12px; }
  body.pf-portal-r192 .public-search-r200-form { grid-template-columns: 1fr; }
  body.pf-portal-r192 .public-search-r200-form select,
  body.pf-portal-r192 .public-search-r200-form .pf-button { grid-column: 1; }
}

@media (max-width: 420px) {
  body.pf-portal-r192 .public-search-r200-form > input { grid-column: 1 / -1; }
  body.pf-portal-r192 .public-search-r200-form > .pf-button { grid-column: 1 / -1 !important; min-width: 76px; width: 100%; justify-self: stretch; }
}
