/* Shared AnyProp design on top of Bootstrap's grid and utilities.
   Legal documents add legal.css; old main.css/home.css are not loaded. */
@font-face {
  font-family: Inter;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
}

:root {
  --ap-ink: #17233b;
  --ap-muted: #52627a;
  --ap-blue: #26547c;
  --ap-red: #d92732;
  --ap-line: #dce5ef;
  --ap-soft: #f4f7fb;
  --ap-shadow: 0 10px 30px rgba(22, 42, 71, .06);
}

html { scroll-padding-top: 90px; scroll-behavior: smooth; }
body { color: var(--ap-ink); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.65; }
a { color: var(--ap-blue); }
a:hover { color: #143b61; }
:focus-visible { outline: 3px solid #4d91c3; outline-offset: 3px; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 100; padding: 10px 16px; border-radius: 7px; background: #fff; color: var(--ap-ink); font-weight: 700; }
.skip-link:focus { top: 12px; }

.container { max-width: 1180px; }

/* Shared header */
.site-header { position: relative; z-index: 30; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--ap-line); }
.site-header-inner { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.site-brand { display: inline-flex; align-items: center; flex: none; }
.site-brand img { display: block; width: 142px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; white-space: nowrap; }
.site-nav > a, .site-dropdown > summary { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 8px; color: var(--ap-ink); font-size: 14px; line-height: 1.4; font-weight: 600; text-decoration: none; cursor: pointer; }
.site-nav > a:hover, .site-dropdown > summary:hover { background: var(--ap-soft); color: var(--ap-blue); text-decoration: none; }
.site-nav > a[aria-current="page"], .site-dropdown[data-current="true"] > summary { background: var(--ap-soft); color: var(--ap-blue); }
.site-dropdown { position: relative; }
.site-dropdown > summary { list-style: none; }
.site-dropdown > summary::-webkit-details-marker, .site-mobile-menu > summary::-webkit-details-marker { display: none; }
.site-dropdown > summary::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 8px; margin-bottom: 3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.site-dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; display: grid; gap: 4px; min-width: 230px; padding: 10px; border: 1px solid var(--ap-line); border-radius: 12px; background: white; box-shadow: var(--ap-shadow); }
.site-dropdown-menu a { display: block; padding: 10px 12px; border-radius: 7px; color: var(--ap-ink); font-size: 14px; text-decoration: none; }
.site-dropdown-menu a:hover { background: var(--ap-soft); color: var(--ap-blue); }
.site-dropdown-menu a[aria-current="page"] { background: #edf5fb; color: var(--ap-blue); }
.site-header-actions { display: flex; flex: none; gap: 8px; }
.site-header-actions .btn { white-space: nowrap; }
.site-mobile-menu { display: none; margin-left: auto; }
.site-mobile-menu > summary { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--ap-line); border-radius: 9px; cursor: pointer; list-style: none; }
.site-mobile-menu > summary span { display: block; width: 22px; height: 2px; border-radius: 3px; background: var(--ap-ink); }
.site-mobile-menu[open] > summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-mobile-menu[open] > summary span:nth-child(2) { opacity: 0; }
.site-mobile-menu[open] > summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-mobile-menu nav { max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 2px; padding: 12px max(20px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid var(--ap-line); background: #fff; box-shadow: var(--ap-shadow); }
.site-mobile-menu nav > a, .site-mobile-label { display: block; padding: 9px 10px; color: var(--ap-ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.site-mobile-menu nav > a { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
.site-mobile-menu nav > a:hover { background: var(--ap-soft); }
.site-mobile-menu nav > a[aria-current="page"] { border-radius: 7px; background: #edf5fb; color: var(--ap-blue); }
.site-mobile-menu nav > a.site-mobile-subitem { padding-left: 26px; font-weight: 400; }
.site-mobile-label { color: var(--ap-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.site-mobile-actions { display: flex; gap: 10px; padding: 12px 10px 4px; }

/* Type, layout and surface styles shared by marketing pages */
.ap-hero { padding: 64px 0; background: var(--ap-soft); border-bottom: 1px solid var(--ap-line); }
.ap-eyebrow { margin: 0 0 14px; color: var(--ap-blue); font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: .11em; text-transform: uppercase; }
.ap-hero-title { max-width: 850px; margin: 0 0 22px; color: var(--ap-ink); font-size: clamp(34px, 3.5vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.ap-hero-sub { max-width: 680px; margin: 0 0 26px; color: var(--ap-muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; }
.ap-section-title { margin-bottom: 12px; color: var(--ap-ink); font-size: clamp(29px, 2.8vw, 39px); font-weight: 700; line-height: 1.18; letter-spacing: -.025em; }
.ap-section-sub { color: var(--ap-muted); font-size: 17px; line-height: 1.6; }
.d-flex.gap-3 { gap: 12px; }
.ap-hero-cta { flex-wrap: wrap; }
.btn.ap-btn-primary, .btn.ap-btn-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 14px; line-height: 1.2; text-decoration: none; box-shadow: none; }
.btn.ap-btn-primary { background: var(--ap-red); border: 1px solid var(--ap-red); color: #fff; }
.btn.ap-btn-primary:hover { background: #b91f29; border-color: #b91f29; color: #fff; }
.btn.ap-btn-secondary { background: #fff; border: 1px solid #cbd7e3; color: var(--ap-ink); }
.btn.ap-btn-secondary:hover { background: #f0f5fa; color: var(--ap-ink); }
.ap-card, .ap-tile, .ap-feature { width: 100%; max-width: none; min-width: 0; height: 100%; margin: 0; border: 1px solid var(--ap-line); border-radius: 14px; background: #fff; box-shadow: none; }
.ap-card { padding: 24px; }
.ap-tile, .ap-feature { padding: 27px; }
.ap-tile-title { margin: 0 0 10px; color: var(--ap-ink); font-size: 20px; font-weight: 700; line-height: 1.25; }
.ap-tile-copy { color: var(--ap-muted); font-size: 15px; line-height: 1.65; }
.ap-tile-copy:last-child { margin-bottom: 0; }
.ap-subheading { margin-top: 12px; }
.ap-chip { display: inline-block; margin-bottom: 10px; padding: 5px 10px; border: 1px solid #d4e4f1; border-radius: 999px; background: #edf5fb; color: var(--ap-blue); font-size: 12px; font-weight: 700; line-height: 1.3; }
.row.g-4 { row-gap: 22px; }
.ap-why { background: var(--ap-soft); }
.ap-avatar { display: block; width: 104px; height: 104px; margin: 0 auto 10px; border: 3px solid #fff; border-radius: 50%; background: #e2e8f0; box-shadow: 0 5px 22px rgba(22,42,71,.12); overflow: hidden; }
.ap-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ap-team > .text-center { padding-top: 18px; padding-bottom: 18px; }
/* Slightly more space between stacked Meet the team rows */
.ap-team + .ap-team { margin-top: 12px; }
.ap-team-role { color: var(--ap-muted); font-size: 13px; }
.ap-source-links a { min-height: 44px; line-height: 1.35; }
/* MLS source rows on About — slightly more space between rows than default g-4 */
.ap-source-links.row.g-4 { row-gap: 32px; }
.ap-detail-list { margin: 12px 0 0; padding-left: 22px; }
.ap-detail-list li + li { margin-top: 5px; }
.ap-logo { display: block; width: auto; max-width: 100%; height: auto; max-height: 50px; object-fit: contain; }
.ap-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; align-items: center; gap: 26px; padding: 26px; border: 1px solid var(--ap-line); border-radius: 14px; background: #fff; }

.ap-logos a { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; }

/* Home API example */
.ap-hero .ap-card { min-width: 0; padding: 22px; box-shadow: var(--ap-shadow); }
.ap-api-controls { margin-bottom: 8px; }
.ap-api-controls label { display: block; min-width: 0; margin: 0; }
.ap-api-label { display: block; margin: 0 0 8px; color: var(--ap-ink); font-size: 13px; }
.ap-select { display: block; width: 100%; max-width: 100%; padding: 9px 12px; border-color: var(--ap-line); background: #fff; color: var(--ap-ink); font-size: 13px; }
.ap-code { width: 100%; max-width: 100%; min-height: 210px; max-height: 330px; overflow: auto; margin: 0; padding: 18px; border-radius: 9px; background: #0b1220; color: #e2e8f0; font-size: 12px; line-height: 1.45; white-space: pre; }
.ap-api-links { margin-top: 8px; }
.ap-api-link { font-size: 13px; }

/* Solution pages */
.solution-hero { padding: 76px 0; }
.solution-overview { padding: 75px 0; border-bottom: 1px solid var(--ap-line); }
.solution-overview-copy { margin: 0; color: var(--ap-muted); font-size: 19px; line-height: 1.65; }
.solution-features { padding: 75px 0 85px; background: var(--ap-soft); }
.solution-feature { min-width: 0; padding: 30px; border: 1px solid var(--ap-line); border-radius: 14px; background: #fff; }
.solution-feature h3 { margin: 0 0 12px; color: var(--ap-ink); font-weight: 700; font-size: 24px; line-height: 1.2; }
.solution-feature p { margin: 0; color: var(--ap-muted); font-size: 15px; line-height: 1.7; }

/* Forms and calls to action */
#contact-us { background: var(--ap-ink); }
.contact-band { padding: 72px 0; }
.contact-band .ap-eyebrow { color: #a6d5f8; }
.contact-band h2 { max-width: 500px; color: #fff; font-weight: 700; font-size: clamp(32px, 3.5vw, 48px); line-height: 1.16; }
.contact-band p:not(.ap-eyebrow) { color: #d8e7f4; font-size: 18px; }
.contact-band-card { padding: 30px; border-radius: 15px; background: #fff; box-shadow: var(--ap-shadow); }
.contact-page-section { padding: 0 0 80px; margin-top: -25px; position: relative; }
.contact-page-section .ap-card { box-shadow: var(--ap-shadow); }
.contact-info-card { height: auto; }
.ap-contact-form, .ap-contact-form #form-container { width: 100%; }
.ap-contact-form label { display: block; margin: 0 0 14px; color: var(--ap-ink); font-weight: 700; font-size: 15px; line-height: 1.4; }
.ap-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.ap-optional { color: var(--ap-muted); font-weight: 400; }
.ap-contact-form input, .ap-contact-form textarea { display: block; width: 100%; min-height: 44px; margin: 7px 0 0; padding: 10px 12px; border: 1px solid #cbd6e1; border-radius: 8px; background: #fff; color: var(--ap-ink); font: inherit; font-size: 16px; line-height: 1.4; }
.ap-contact-form textarea { resize: vertical; min-height: 100px; }
.ap-contact-form input:focus, .ap-contact-form textarea:focus { outline: 3px solid rgba(77,145,195,.25); border-color: #4d91c3; }
.ap-contact-form .cf-turnstile { max-width: 100%; overflow: hidden; margin: 14px 0; }
.ap-contact-form #send-btn { width: auto; min-width: 150px; margin: 4px 0 0; padding: 12px 20px; font-size: 14px; }

/* Footer */
.ap-footer { background: var(--ap-ink); }
.ap-footer a { color: #d8e7f4; text-decoration: none; }
.ap-footer a:hover { color: #fff; text-decoration: underline; }
.ap-footer-top .container { padding-top: 60px; padding-bottom: 60px; }
.ap-footer-logo { display: block; width: auto; height: 28px; filter: brightness(0) invert(1); }
.ap-footer-copy { max-width: 38ch; color: #d8e7f4; font-size: 15px; line-height: 1.65; }
.ap-footer-mini { color: #d8e7f4; font-size: 13px; line-height: 1.5; font-style: normal; }
.ap-footer-links { gap: 4px; }
.ap-footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: #d8e7f4; font-size: 14px; line-height: 1.4; }
.ap-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); background: var(--ap-ink); }
.ap-footer-bottom .container { gap: 15px; }
.ap-legal-links { gap: 24px; }
.ap-footer-badges { justify-content: flex-start; min-height: 48px; }
.ap-footer-reso { height: 60px; filter: brightness(0) invert(1); opacity: .95; }

/* Branded 404 in Astro; nginx serves standalone 403/50x files during outages. */
.site-error { display: flex; align-items: center; min-height: 60vh; padding: 78px 0; background: linear-gradient(135deg, #f8fafc 0%, #eef4f9 100%); }
.site-error-inner { max-width: 1050px; }
.site-error h1 { margin: 0 0 16px; font-weight: 700; font-size: clamp(34px, 4vw, 50px); line-height: 1.15; }
.site-error p:not(.ap-eyebrow) { max-width: 540px; color: var(--ap-muted); font-size: 18px; }
.site-error-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.site-error .site-error-help { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--ap-line); font-size: 15px; line-height: 1.7; }
.site-error-help a { font-weight: 700; }
.site-error-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 270px; height: 270px; border: 1px solid var(--ap-line); border-radius: 50%; background: #fff; box-shadow: 0 24px 60px rgba(22,42,71,.1); }
.site-error-visual img { width: 58px; height: 58px; margin-bottom: 10px; }
.site-error-visual strong { color: var(--ap-ink); font-size: 64px; line-height: 1; letter-spacing: -.06em; }
.site-error-visual span { margin-top: 8px; color: var(--ap-muted); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.site-error-routes { margin-top: 46px; }
.site-error-route { display: flex; flex-direction: column; color: var(--ap-ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.site-error-route:hover { transform: translateY(-3px); border-color: #aac7dc; box-shadow: var(--ap-shadow); color: var(--ap-ink); text-decoration: none; }
.site-error-route strong { display: block; margin-bottom: 7px; font-size: 18px; line-height: 1.3; }
.site-error-route > span:last-child { color: var(--ap-muted); font-size: 14px; line-height: 1.55; }

/* Resource and news cards share one descriptive link and one keyboard stop. */
.ap-article-card { position: relative; }
.ap-article-card h3 a { color: var(--ap-ink); text-decoration: none; }
.ap-article-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.ap-article-card:hover, .ap-article-card:focus-within { border-color: var(--ap-blue); }
.ap-article-card:focus-within { outline: 3px solid #4d91c3; outline-offset: 3px; }
.ap-article-card-link { color: var(--ap-blue); font-size: 14px; }

/* Article typography and press cards. */
.container.ap-press-wrap { max-width: 1050px; }
.container.ap-reading-width { max-width: 800px; }
.ap-article { font-size: 18px; line-height: 1.75; }
.ap-article h2 { margin: 2.2em 0 .55em; color: var(--ap-ink); font-weight: 700; font-size: clamp(25px, 2.5vw, 31px); line-height: 1.25; }
.ap-article h3 { margin: 1.7em 0 .5em; font-weight: 700; font-size: 22px; }
.ap-article p, .ap-article ul, .ap-article ol { margin-bottom: 1.2em; }
.ap-article a { text-decoration: underline; text-underline-offset: 3px; }
.ap-article table { width: 100%; table-layout: fixed; margin: 1.5em 0; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.ap-article th, .ap-article td { padding: .7em; border-bottom: 1px solid var(--ap-line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.ap-article th:first-child { width: 28%; }
.ap-article > :first-child { margin-top: 0; }
.ap-press-card { display: flex; flex-direction: column; color: var(--ap-ink); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.ap-press-card:hover { transform: translateY(-3px); border-color: #aac7dc; box-shadow: 0 16px 38px rgba(22,42,71,.1); color: var(--ap-ink); text-decoration: none; }
.ap-press-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; margin-bottom: 18px; }
.ap-press-chip { margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.ap-press-date { color: var(--ap-muted); font-size: 13px; white-space: nowrap; }
.ap-press-body h3 { margin: 0 0 12px; color: var(--ap-ink); font-weight: 700; font-size: 20px; line-height: 1.3; }
.ap-press-body p { margin: 0; color: var(--ap-muted); font-size: 15px; line-height: 1.6; }
.ap-press-cta { display: block; margin-top: auto; padding-top: 20px; color: var(--ap-blue); font-weight: 700; font-size: 14px; }
.ap-press-card--horizontal { display: grid; grid-template-columns: 165px minmax(0, 1fr) auto; gap: 24px; align-items: center; height: auto; margin-top: 24px; }
.ap-press-card--horizontal .ap-press-meta { margin: 0; }
.ap-press-card--horizontal .ap-press-body h3 { margin-bottom: 6px; }
.ap-press-card--horizontal .ap-press-cta { margin: 0; padding: 0; white-space: nowrap; }
@media (max-width: 1199.98px) {
  .site-nav, .site-header-actions { display: none; }
  .site-mobile-menu { display: block; }
}
@media (min-width: 768px) {
  .ap-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ap-footer-badges { justify-content: flex-end; }
}
@media (max-width: 991.98px) {
  .solution-overview, .solution-features, .contact-band { padding: 58px 0; }
  .ap-press-card--horizontal { grid-template-columns: 1fr; gap: 12px; }
  .ap-press-card--horizontal .ap-press-cta { padding-top: 4px; }
}
@media (max-width: 767.98px) {
  .site-header-inner { min-height: 66px; }
  .site-mobile-menu nav { max-height: calc(100vh - 66px); max-height: calc(100dvh - 66px); }
  .site-brand img { width: 130px; }
  section.py-5 { padding-top: 42px !important; padding-bottom: 42px !important; }
  .ap-hero { padding-top: 44px; padding-bottom: 44px; }
  .ap-hero-title { font-size: 32px; }
  .ap-hero-title br { display: none; }
  .ap-hero .ap-card, .ap-card, .ap-tile, .ap-feature, .solution-feature { padding: 21px; }
  .ap-section-title { font-size: 30px; }
  .ap-hero-sub { margin-bottom: 20px; }
  .ap-code { min-height: 180px; max-height: 250px; }
  .row.g-4 { row-gap: 18px; }
  .ap-form-grid { grid-template-columns: 1fr; }
  .contact-page-section { margin-top: -16px; padding: 0 0 58px; }
  .contact-band-card { padding: 22px; }
  .solution-overview-copy { font-size: 17px; }
  .ap-footer-top .container { padding-top: 44px; padding-bottom: 38px; }
  .ap-footer-links { gap: 0; }
  .ap-footer-links a, .ap-legal-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .ap-footer-badges { margin-top: 18px; }
  .ap-press-card--horizontal { gap: 10px; }
  .ap-press-card--horizontal .ap-press-meta { margin-bottom: 0; }
}
@media (max-width: 420px) {
  .ap-hero-cta, .site-mobile-actions { flex-direction: column; align-items: stretch; }
  .ap-hero-cta .btn { width: 100%; }
  .ap-card { overflow: hidden; }
}
.ap-mls-jump-links[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ap-press-card { transition: none; }
  .ap-press-card:hover { transform: none; }
}
