.aed-wrap { width: min(100% - 2rem, 72rem); margin: 1.5rem auto 3rem; color: #1B2A44; }
.aed-wrap h1, .aed-wrap h2, .aed-card h2 { color: #0B1F3A; }
.aed-search { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; align-items: end; background: #fff; border: 1px solid #D5DDE6; border-radius: 12px; padding: 1rem; }
.aed-search label { display: block; font-weight: 650; color: #0B1F3A; }
.aed-search input, .aed-search select, .aed-form input, .aed-form textarea, .aed-form select { width: 100%; margin-top: .25rem; min-height: 44px; }
.aed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.aed-card, .aed-offer { background: #fff; border: 1px solid #D5DDE6; border-radius: 12px; padding: 1rem 1.1rem; }
.aed-card a { color: #0B1F3A; font-weight: 700; }
.aed-card a:hover, .aed-card a:focus { color: #C2410C; }
.aed-badge { display: inline-block; background: #0B1F3A; color: #fff; border-radius: 99px; padding: .2rem .7rem; font-size: .85rem; }
.aed-note, .aed-tag { color: #4A5A70; }
.aed-meter { height: 8px; background: #E6EDF5; border-radius: 99px; }
.aed-meter span { display: block; height: 8px; background: #E8572A; border-radius: 99px; }
.aed-check { display: inline-flex; gap: .4rem; align-items: center; min-height: 44px; margin-right: .8rem; }
.aed-table { width: 100%; border-collapse: collapse; }
.aed-table th, .aed-table td { text-align: left; border-bottom: 1px solid #D5DDE6; padding: .6rem; vertical-align: top; }
.aed-hp { position: absolute; left: -9999px; }
.aed-offer { margin: 1rem 0; border-left: 4px solid #E8572A; }
.aed-profile h1 { margin-bottom: .25rem; }
.aed-cover { width: 100%; height: auto; border-radius: 12px; }
.aed-logo { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.aed-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; }
.aed-gallery img, .aed-person img { max-width: 100%; height: auto; border-radius: 8px; }
.aed-form fieldset { border: 1px solid #D5DDE6; border-radius: 12px; margin: 1rem 0; padding: .5rem 1rem 1rem; }
.aed-firm-hero { position: relative; background: transparent; border-radius: 16px; overflow: visible; box-shadow: none; padding: 0; }
.aed-cover { display: block; width: 100%; height: 220px; object-fit: cover; border-radius: 16px 16px 0 0; }
.aed-firm-id { display: block; margin: 0; padding: .35rem 1.25rem 0 8.75rem; position: relative; }
.aed-firm-id .aed-logo, .aed-firm-id .aed-initials { position: absolute; left: 1.5rem; top: 0; transform: translateY(-50%); width: 96px; height: 96px; margin: 0; object-fit: cover; border-radius: 16px; border: 4px solid #fff; background: #0B1F3A; color: #fff; box-shadow: 0 8px 20px rgba(11, 31, 58, .18); font-size: 1.5rem; }
.aed-actions { margin: .85rem 1.25rem 0 8.75rem; }
.aed-firm-id h1 { margin: .15rem 0; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; }
.aed-meta, .aed-badges, .aed-actions, .aed-chips { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
.aed-badge-feature { background: #E8572A; }
.aed-tablist button, .aed-chips a, .aed-chips span { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .8rem; border-radius: 999px; background: #fff; color: #0B1F3A; text-decoration: none; font-weight: 650; border: 1px solid #D5DDE6; }
.aed-chips a:hover, .aed-chips a:focus, .aed-tablist button[aria-selected="true"] { background: #0B1F3A; color: #fff; }
.aed-profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }
.aed-profile-main section, .aed-contact-card, .aed-person, .aed-office, .aed-quote, .aed-cta, .aed-filters { background: #fff; border-radius: 16px; padding: 1rem 1.1rem 1.2rem; box-shadow: 0 10px 28px rgba(11, 31, 58, .06); }
.aed-profile-main section { margin-bottom: 1rem; }
.aed-contact-card { position: sticky; top: 1rem; }
.aed-cards, .aed-results { display: grid; gap: 1rem; }
.aed-cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
body.aed-screen .ae-sticky { display: none; }
.aed-mobile-bar { display: none; }
a.aed-result { display: grid; grid-template-columns: 72px 1fr; gap: 1rem; align-items: start; text-decoration: none; color: inherit; background: #fff; border: 1px solid #D5DDE6; border-radius: 16px; padding: 1rem; box-shadow: 0 10px 28px rgba(11, 31, 58, .06); transition: transform .15s ease, box-shadow .15s ease; }
a.aed-result:hover, a.aed-result:focus { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(11, 31, 58, .12); }
.aed-result-body { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.aed-result-name { color: #0B1F3A; font-size: 1.15rem; font-weight: 650; text-decoration: none; }
a.aed-result:hover .aed-result-name, a.aed-result:focus .aed-result-name { text-decoration: underline; }
.aed-mark, .aed-initials, .aed-person .aed-initials { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 12px; background: #0B1F3A; color: #fff; font-weight: 700; letter-spacing: .04em; object-fit: cover; }
.aed-browse { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1rem; margin-top: 3.25rem; }
.aed-hero-search { background: #0B1F3A; color: #fff; padding: 2rem 1.5rem 0; border-radius: 16px; box-shadow: none; overflow: visible; }
.aed-hero-search h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; margin: 0 0 .4rem; }
.aed-hero-search > p { color: #fff; max-width: 40rem; margin: 0; }
.aed-hero-search .aed-search { position: relative; z-index: 2; margin: 1.25rem 0 -2rem; }
.aed-search input, .aed-search select, .aed-search .ae-btn { height: 48px; min-height: 48px; margin-top: .35rem; box-sizing: border-box; font-family: inherit; font-size: 1rem; line-height: 1.2; }
.aed-search select { background: #fff; color: #0B1F3A; border: 1px solid #D5DDE6; border-radius: 6px; padding: 0 .75rem; }
.aed-search .ae-btn { width: 100%; padding: 0 1rem; margin-top: .35rem; }
.aed-filters ul { list-style: none; margin: 0; padding: 0 0 .5rem; }
.aed-filters a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 44px; padding: .25rem .55rem; border-radius: 8px; color: #0B1F3A; font-weight: 650; text-decoration: none; }
.aed-filters a:hover, .aed-filters a:focus { background: rgba(232, 87, 42, .12); color: #0B1F3A; }
.aed-filters a.is-active { background: #0B1F3A; color: #fff; }
.aed-filters summary { cursor: pointer; font-weight: 700; color: #0B1F3A; min-height: 44px; display: flex; align-items: center; }
.aed-filter-group { border-top: 1px solid #D5DDE6; }
.aed-count { color: #4A5A70; font-weight: 650; }
.aed-filters a.is-active .aed-count { color: #fff; }
.aed-clear { color: #C2410C; font-weight: 700; text-decoration: none; }
.aed-clear:hover, .aed-clear:focus { text-decoration: underline; }
.aed-jump { position: sticky; top: 0; z-index: 25; margin: 1rem 0 1.25rem; background: #fff; border-bottom: 1px solid #D5DDE6; box-shadow: 0 1px 0 rgba(11, 31, 58, .04); }
.aed-jump-scroller { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 20px), transparent); }
.aed-jump a { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; padding: .35rem .85rem; border-radius: 4px 4px 0 0; background: transparent; border: 0; color: #0B1F3A; font-weight: 650; text-decoration: none; white-space: nowrap; }
.aed-jump a:hover, .aed-jump a:focus { background: rgba(232, 87, 42, .12); color: #0B1F3A; }
.aed-jump a[aria-current="true"] { font-weight: 700; box-shadow: inset 0 -3px 0 #E8572A; }
.aed-profile-main section { scroll-margin-top: 4.5rem; }
.aed-cta { margin-top: 1rem; background: #0B1F3A; color: #fff; }
.aed-cta h2 { color: #fff; }
.aed-shot { padding: 0; border: 0; background: transparent; cursor: pointer; }
.aed-shot img { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; }
.aed-lightbox { border: 0; border-radius: 16px; padding: 1rem; max-width: min(920px, 92vw); }
.aed-lightbox img { width: 100%; height: auto; }
.aed-builder-head, .aed-tablist { display: flex; justify-content: space-between; gap: .75rem; align-items: center; flex-wrap: wrap; }
.aed-tablist { overflow-x: auto; margin: 1rem 0; }
.aed-tablist button { cursor: pointer; }
.aed-status { display: inline-block; background: #0B1F3A; color: #fff; border-radius: 999px; padding: .2rem .7rem; }
.aed-missing { columns: 2; padding-left: 1.1rem; }
.aed-missing .is-done { color: #0B1F3A; }
.aed-missing .is-missing { color: #C2410C; }
.aed-preview { display: block; width: 120px; height: auto; border-radius: 12px; margin: .4rem 0; }
.aed-crumbs { margin-bottom: .5rem; }
.aed-crumbs a { color: #C2410C; }
.aed-btn-ghost { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 6px; background: #fff; color: #0B1F3A; border: 2px solid #0B1F3A; font-weight: 700; text-decoration: none; }
.aed-btn-ghost:hover, .aed-btn-ghost:focus { background: #0B1F3A; color: #fff; }
.aed-form label, .aed-builder label, .aed-contact-card label { display: block; font-weight: 650; color: #0B1F3A; }
@media (max-width: 782px) {
	.aed-search { grid-template-columns: 1fr; gap: .35rem; padding: .65rem .75rem; }
	.aed-search input, .aed-search select, .aed-search .ae-btn { height: 44px; min-height: 44px; margin-top: .1rem; }
	.aed-hero-search .aed-search { margin-top: .65rem; margin-bottom: -1.4rem; }
	.aed-table, .aed-table tbody, .aed-table tr, .aed-table td { display: block; width: 100%; }
	.aed-profile-layout, .aed-browse, a.aed-result { display: block; }
	.aed-cover { height: 160px; }
	.aed-firm-id { padding: .35rem .75rem 0 5.75rem; }
	.aed-firm-id .aed-logo, .aed-firm-id .aed-initials { left: .75rem; width: 72px; height: 72px; font-size: 1rem; }
	.aed-actions { margin-left: .75rem; }
	.aed-contact-card { position: static; margin-top: 1rem; }
	.aed-missing { columns: 1; }
	.aed-hero-search { padding: 1.25rem 1rem 0; }
	.aed-browse { margin-top: 2.15rem; }
	.aed-mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: .5rem; padding: .6rem .75rem; background: #0B1F3A; }
	.aed-mobile-bar a { flex: 1; justify-content: center; }
	.aed-mobile-bar .aed-btn-ghost { background: #fff; }
	.aed-profile { padding-bottom: 4.5rem; }
}
