/* Opt-in public foundation. Replaces app.css + facelift.css on migrated pages;
   legacy pages retain their current assets. Uses the established ew component vocabulary. */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--ew-font); color: var(--ew-text); background: var(--ew-canvas); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .35; cursor: default; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
h1, h2 { letter-spacing: -.045em; }
h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 650; }
h3 { font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
:focus-visible { outline: 3px solid var(--ew-blue); outline-offset: 5px; }
::selection { color: var(--ew-text); background: var(--ew-blue-light); }
.ew-container { width: min(calc(100% - 80px), var(--ew-container)); margin-inline: auto; }
.ew-section { padding-block: var(--ew-section-space); }
.ew-section--soft { background: var(--ew-surface); }
.ew-section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 36px; }
.ew-section-head > div { max-width: 680px; }
.ew-section-head p { margin-top: 14px; max-width: 580px; color: var(--ew-muted); }
.ew-eyebrow { display: block; margin-bottom: 18px; font-size: 12px; line-height: 1.5; letter-spacing: .15em; text-transform: uppercase; font-weight: 750; color: var(--ew-muted); }
.ew-text-link { display: inline-flex; gap: 12px; align-items: center; font-size: 14px; font-weight: 650; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; }
.ew-text-link:hover { color: var(--ew-blue); text-decoration-color: currentColor; }
.ew-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ew-btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 12px 21px; border: 1px solid var(--ew-border); border-radius: var(--ew-radius-sm); font-size: 14px; font-weight: 650; line-height: 1.35; text-align: center; background: var(--ew-surface); color:var(--ew-light-text); transition: background .15s, border-color .15s; }
.ew-btn:hover { background: var(--ew-surface); border-color: var(--ew-border); }
.ew-btn--primary { background: var(--ew-action); border-color: var(--ew-action); color:var(--ew-on-action); }
.ew-btn--primary:hover { background: var(--ew-blue-dark); border-color: var(--ew-blue-dark); }
.ew-btn--dark { background: var(--ew-navy); border-color: var(--ew-navy); color:var(--ew-on-action); }
.ew-btn--dark:hover { background: var(--ew-navy); border-color: var(--ew-border); }
.ew-input, .ew-select, .ew-textarea { width: 100%; min-width: 0; padding: 12px 14px; min-height: 48px; border: 1px solid var(--ew-border); border-radius: var(--ew-radius-sm); background: var(--ew-surface); color: var(--ew-text); }
.ew-card { min-width: 0; border: 1px solid var(--ew-border); border-radius: var(--ew-radius); background: var(--ew-surface); }
.ew-tag, .ew-relationship-badge { display: inline-block; max-width: 100%; padding: 4px 8px; border-radius: 4px; background: var(--ew-surface); color:var(--ew-light-blue); font-size: 12px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.ew-relationship-badge { background: var(--ew-blue-light); color: var(--ew-blue); }
.ew-empty { padding: 28px 0; border-block: 1px solid var(--ew-border); color: var(--ew-muted); }
.ew-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; }
.ew-footer { padding: 38px 0 26px; color: var(--ew-muted); background: var(--ew-navy); font-size: 13px; }
.ew-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; }
.ew-footer-brand p { margin: 22px 0; color: var(--ew-text); font-size: 22px; line-height: 1.4; letter-spacing: -.02em; }
.ew-footer h2 { font-size: 13px; font-weight: 650; color: var(--ew-text); letter-spacing: 0; margin: 8px 0 20px; }
.ew-footer ul { list-style: none; margin: 0; padding: 0; }
.ew-footer li { margin-bottom: 12px; }
.ew-footer a:hover { color: var(--ew-text); text-decoration: underline; text-underline-offset: 4px; }
.ew-footer:focus-visible { outline-color: var(--ew-border); }
.ew-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--ew-border); margin-top: 56px; padding-top: 24px; }
.ew-footer-bottom nav { display: flex; gap: 24px; }
.ew-public .ew-cookie-icon { display: none; }

@media (max-width: 960px) {
  .ew-footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 36px; }
}
@media (max-width: 640px) {
  .ew-container { width: calc(100% - 36px); }
  .ew-section-head { flex-direction: column; align-items: start; gap: 20px; margin-bottom: 28px; }
  .ew-brand img { width: 160px; height: 32px; }
  .ew-footer-grid { gap: 32px 20px; }
  .ew-footer-brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Approved public components shared by homepage and discovery pages. */
.ew-social-links { display:flex; flex-wrap:wrap; gap:15px; font-size:12px; }
.ew-icon { width:22px; height:22px; display:inline-block; flex-shrink:0; vertical-align:middle; }
.ew-social-links a { display:grid; place-items:center; width:32px; height:32px; border-radius:5px; }
.ew-social-links a:hover { background:var(--ew-navy); }
.ew-social-links .ew-icon { width:19px; height:19px; }
.ew-public .ew-footer h2 { font-size:13px; letter-spacing:0; }
.ew-footer-grid { grid-template-columns:1.4fr repeat(4,minmax(0,1fr)); gap:32px; }
@media(max-width:960px) { .ew-footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:960px) { .ew-container { width:calc(100% - 48px); } }
@media(max-width:640px) { .ew-container { width:calc(100% - 32px); } .ew-brand img { width:145px; height:29px; } }




.ew-input::placeholder,.ew-textarea::placeholder { color:var(--ew-muted); opacity:1; }
.ew-input,.ew-select,.ew-textarea { border-color:var(--ew-control-border); }
