:root {
  --ap-chrome-ink: #0f172a;
  --ap-chrome-text: #111827;
  --ap-chrome-muted: #64748b;
  --ap-chrome-line: #d7dde5;
  --ap-chrome-paper: #ffffff;
  --ap-chrome-sans: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.ap-chrome-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(215, 221, 229, 0.86);
  backdrop-filter: blur(18px);
  font-family: var(--ap-chrome-sans);
}

.ap-chrome-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  min-height: 3.5rem;
  box-sizing: border-box;
}

.ap-chrome-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  color: var(--ap-chrome-ink);
  font-family: var(--ap-chrome-sans);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
}

.ap-chrome-brand__logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.ap-chrome-brand__name {
  color: #111827;
}

.ap-chrome-nav {
  position: relative;
}

.ap-chrome-header .ap-chrome-nav--desktop,
.ap-chrome-header .ap-chrome-actions--desktop {
  display: none;
}

.ap-chrome-nav--desktop {
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.ap-chrome-nav__desktop-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-chrome-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.ap-chrome-actions--desktop {
  display: none;
}

.ap-chrome-actions--mobile {
  display: flex;
  margin-left: auto;
}

.ap-chrome-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--ap-chrome-ink);
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.08);
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.ap-chrome-nav__toggle:hover,
.ap-chrome-nav__toggle:focus-visible {
  background: #e5e7eb;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.16);
}

.ap-chrome-nav__toggle:focus-visible {
  outline: 3px solid rgba(112, 134, 108, 0.28);
  outline-offset: 3px;
}

.ap-chrome-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ap-chrome-nav__toggle-icon {
  position: relative;
  display: grid;
  gap: 4px;
  width: 18px;
}

.ap-chrome-nav__toggle-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 160ms ease, opacity 120ms ease;
}

.ap-chrome-nav__toggle[aria-expanded="true"] .ap-chrome-nav__toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.ap-chrome-nav__toggle[aria-expanded="true"] .ap-chrome-nav__toggle-icon span:nth-child(2) {
  opacity: 0;
}

.ap-chrome-nav__toggle[aria-expanded="true"] .ap-chrome-nav__toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.ap-chrome-nav__list {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  display: none;
  width: min(20rem, calc(100vw - 2rem));
  max-height: min(78vh, 36rem);
  overflow: auto;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid rgba(215, 221, 229, 0.95);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  list-style: none;
}

html.has-appraisily-shared-chrome .ap-chrome-nav__list:not(.is-open):not(.site-nav__list--open) {
  display: none !important;
}

.ap-chrome-nav__list.is-open,
.ap-chrome-nav__list.site-nav__list--open {
  display: grid !important;
  gap: 0.35rem;
}

.ap-chrome-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.45rem 0.65rem;
  color: var(--ap-chrome-text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
}

.ap-chrome-nav__link:hover,
.ap-chrome-nav__link:focus-visible {
  color: var(--ap-chrome-ink);
  text-decoration: none;
  background: #f8fafc;
}

.ap-chrome-nav__badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  padding: 0.1rem 0.4rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #334155;
}

.ap-chrome-nav__link--quiet {
  padding-inline: 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.ap-chrome-nav__link--primary {
  padding-inline: 0.95rem;
  border: 1px solid var(--ap-chrome-ink);
  border-radius: 12px;
  background: var(--ap-chrome-ink);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.ap-chrome-nav__link--primary:hover,
.ap-chrome-nav__link--primary:focus-visible {
  color: #fff !important;
  text-decoration: none;
  background: #111c33;
}

.ap-chrome-cta-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  max-width: 8.75rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: #0f172a;
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.ap-chrome-cta-compact:hover,
.ap-chrome-cta-compact:focus-visible {
  background: #1e293b;
  text-decoration: none;
}

/* Article inline-CTA tap styles target a[data-analytics-event="article_cta_click"].
   The telemetry bridge retags chrome Start/screener links as that event, which
   otherwise paints the navy header button as bold white underlined text. */
html.has-article-enhancements .ap-chrome-header a,
html.has-article-enhancements .ap-chrome-header a:link,
html.has-article-enhancements .ap-chrome-header a:visited,
html.has-article-enhancements .ap-chrome-header a:hover,
html.has-article-enhancements .ap-chrome-header a:focus,
html.has-article-enhancements .ap-chrome-header a:focus-visible,
html.has-article-enhancements .ap-chrome-header a:active,
html.has-article-enhancements .ap-chrome-header a[data-analytics-event="article_cta_click"],
html.has-article-enhancements .ap-chrome-header a[data-analytics-event="article_cta_click"]:hover,
html.has-article-enhancements .ap-chrome-header a[data-analytics-event="article_cta_click"]:focus,
html.has-article-enhancements .ap-chrome-header a[data-analytics-event="article_cta_click"]:focus-visible,
html.has-article-enhancements .ap-chrome-header a[data-analytics-event="article_cta_click"]:active {
  text-decoration: none !important;
}

html.has-article-enhancements .ap-chrome-header a[data-analytics-event="article_cta_click"] {
  display: inline-flex;
  margin: 0;
}

html.has-article-enhancements .ap-chrome-header .ap-chrome-nav__link[data-analytics-event="article_cta_click"] {
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.65rem;
}

html.has-article-enhancements .ap-chrome-header .ap-chrome-nav__link--quiet[data-analytics-event="article_cta_click"] {
  padding-inline: 0.8rem;
}

html.has-article-enhancements .ap-chrome-header .ap-chrome-nav__link--primary[data-analytics-event="article_cta_click"] {
  padding-inline: 0.95rem;
  background: var(--ap-chrome-ink);
  color: #fff !important;
}

html.has-article-enhancements .ap-chrome-header .ap-chrome-nav__link--primary[data-analytics-event="article_cta_click"]:is(:hover, :focus, :focus-visible, :active) {
  background: #111c33;
  color: #fff !important;
}

html.has-article-enhancements .ap-chrome-header .ap-chrome-cta-compact[data-analytics-event="article_cta_click"] {
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 0.75rem;
  background: #0f172a;
  color: #fff !important;
}

html.has-article-enhancements .ap-chrome-header .ap-chrome-cta-compact[data-analytics-event="article_cta_click"]:is(:hover, :focus, :focus-visible, :active) {
  background: #1e293b;
  color: #fff !important;
}

html.has-article-enhancements .ap-chrome-footer .ap-chrome-footer__cta a[data-analytics-event="article_cta_click"] {
  display: inline-flex;
  margin: 0;
  text-decoration: none !important;
}

.ap-chrome-mega {
  position: relative;
}

.ap-chrome-mega__summary {
  list-style: none;
  cursor: pointer;
}

.ap-chrome-mega__summary::-webkit-details-marker {
  display: none;
}

.ap-chrome-mega__panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 20;
  display: none;
  width: 40rem;
  max-width: min(40rem, calc(100vw - 2rem));
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.ap-chrome-mega[open] .ap-chrome-mega__panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.ap-chrome-mega__item {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem;
  border: 1px solid transparent;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.ap-chrome-mega__item:hover,
.ap-chrome-mega__item:focus-visible {
  border-color: #e2e8f0;
  background: #f8fafc;
  text-decoration: none;
}

.ap-chrome-mega__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #020617;
}

.ap-chrome-mega__desc {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #475569;
}

.ap-chrome-nav__section {
  display: grid;
  gap: 0.2rem;
}

.ap-chrome-nav__section-title {
  margin: 0.35rem 0 0.15rem;
  padding: 0 0.75rem;
  color: var(--ap-chrome-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ap-chrome-nav__sublist {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-chrome-nav__item,
.ap-chrome-nav__list .ap-chrome-nav__link {
  width: 100%;
}

.ap-chrome-nav__list .ap-chrome-nav__link {
  justify-content: flex-start;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
}

.ap-chrome-nav__list .ap-chrome-nav__link--quiet,
.ap-chrome-nav__list .ap-chrome-nav__link--primary {
  justify-content: center;
}

.ap-chrome-footer {
  margin-top: 4rem;
  background: var(--ap-chrome-ink);
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--ap-chrome-sans);
}

.ap-chrome-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) auto;
  gap: 2rem;
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.25rem) 1.5rem;
  box-sizing: border-box;
}

.ap-chrome-footer__brand {
  display: grid;
  gap: 0.9rem;
  max-width: 390px;
}

.ap-chrome-footer__wordmark {
  color: #fff;
  font-family: var(--ap-chrome-sans);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.ap-chrome-footer__brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.ap-chrome-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.25rem;
}

.ap-chrome-footer__nav a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  text-decoration: none;
}

.ap-chrome-footer__nav a:hover,
.ap-chrome-footer__nav a:focus-visible,
.ap-chrome-footer__wordmark:hover,
.ap-chrome-footer__wordmark:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.ap-chrome-footer__cta {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  min-width: 185px;
}

.ap-chrome-footer__cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.ap-chrome-footer__cta a:first-child {
  background: #fff;
  color: var(--ap-chrome-ink);
}

.ap-chrome-footer__cta--primary {
  background: transparent;
}

@media (min-width: 1024px) {
  .ap-chrome-header .ap-chrome-nav--desktop,
  .ap-chrome-header .ap-chrome-actions--desktop {
    display: flex;
  }

  .ap-chrome-header .ap-chrome-actions--mobile {
    display: none;
  }

  .ap-chrome-nav__toggle,
  html.has-appraisily-shared-chrome .ap-chrome-nav__toggle {
    display: none !important;
  }

  .ap-chrome-nav__list,
  html.has-appraisily-shared-chrome .ap-chrome-nav__list {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .ap-chrome-header .ap-chrome-nav--desktop,
  .ap-chrome-header .ap-chrome-actions--desktop {
    display: none !important;
  }

  .ap-chrome-header .ap-chrome-actions--mobile {
    display: flex !important;
  }

  .ap-chrome-header__inner {
    padding: 0.5rem 1rem;
  }

  .ap-chrome-footer__inner {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    padding: 2rem 1rem calc(2rem + env(safe-area-inset-bottom, 0px));
  }

  .ap-chrome-footer__nav {
    grid-template-columns: 1fr;
  }

  .ap-chrome-footer__cta {
    min-width: 0;
  }
}
