/*
 * The website's own words under a search and under a property, and the price panel of a price page
 * (views: site/partials/about, site/partials/prices), the same in every theme. Like the finder, they take their
 * look from the theme's --ef-* variables (font, ink, muted, raised, tint, line, accent, radius, round), so they read
 * well in every design without a rule of their own in it.
 */
/* (its own layer: a design's decoration that hangs out of the section above, a wave or a pattern, never lies over the words) */
.ea { position: relative; z-index: 1; background: var(--ef-raised); color: var(--ef-ink); font-family: var(--ef-font); border-top: 1px solid var(--ef-line); }
.ea:empty { display: none; }
.ea *, .ea *::before, .ea *::after { box-sizing: border-box; }
.ea { overflow-wrap: anywhere; }
.ea-in { max-width: 1200px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) clamp(18px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.ea-in > *, .ea-groups > * { min-width: 0; }
.ea-title { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; color: inherit; }
.ea-lead { margin: 0; max-width: 76ch; font-size: 16px; line-height: 1.7; color: inherit; }
.ea-sub { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ef-muted); }
.ea-note { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: var(--ef-muted); }
.ea-note a, .ea-lead a { color: var(--ef-accent); text-underline-offset: 3px; }

/* what the team knows about the place */
.ea-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ea-facts li { display: grid; gap: 3px; padding: 14px 16px; border: 1px solid var(--ef-line); border-radius: var(--ef-radius); background: var(--ef-tint); }
.ea-facts b { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ef-muted); }
.ea-facts span { font-size: 15px; line-height: 1.45; }
.ea-facts li[data-answer="yes"] { border-left: 3px solid var(--ef-accent); }

/* links to the searches next door */
.ea-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px 32px; }
.ea-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ea-links li { max-width: 100%; }
.ea-links a { display: inline-flex; align-items: baseline; gap: 8px; max-width: 100%; min-height: 38px; padding: 8px 14px; border: 1px solid var(--ef-line); border-radius: var(--ef-round); color: inherit; font-size: 14px; font-weight: 500; line-height: 1.3; text-decoration: none; transition: border-color .2s, background-color .2s; }
.ea-links a:hover, .ea-links a:focus-visible { border-color: var(--ef-accent); background: var(--ef-tint); }
.ea-links a:focus-visible, .ep a:focus-visible { outline: 2px solid var(--ef-focus); outline-offset: 2px; }
.ea-links span { font-size: 12px; color: var(--ef-muted); font-variant-numeric: tabular-nums; }

/* asking prices: the panel above the finder on a price page, and the table under a search */
.ep { min-width: 0; max-width: 100%; overflow-wrap: anywhere; margin: 0 0 30px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--ef-line); border-radius: var(--ef-radius); background: var(--ef-raised); color: var(--ef-ink); font-family: var(--ef-font); display: grid; gap: 18px; }
.ep:empty { display: none; }
.ep *, .ep *::before, .ep *::after { box-sizing: border-box; }
.ep-title { margin: 0; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.25; font-weight: 600; color: inherit; }
.ep-meta { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--ef-muted); }
.ep > * { min-width: 0; }
.ep-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ep-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ep-table th { padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ef-muted); border-bottom: 1px solid var(--ef-line); white-space: nowrap; }
.ep-table td { padding: 12px; border-bottom: 1px solid var(--ef-line); vertical-align: middle; }
.ep-table td:not(:last-child) { white-space: nowrap; }
.ep-table tr:last-child td { border-bottom: 0; }
.ep-table .ep-num { text-align: right; white-space: nowrap; }
.ep-table .ep-kind { font-weight: 600; }
.ep-table .ep-mid { font-weight: 700; color: var(--ef-accent); }
.ep-up { color: var(--ef-ink); }
.ep-down { color: var(--ef-muted); }
.ep-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ep-places a { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border: 1px solid var(--ef-line); border-radius: var(--ef-radius); color: inherit; text-decoration: none; transition: border-color .2s, background-color .2s; }
.ep-places a:hover { border-color: var(--ef-accent); background: var(--ef-tint); }
.ep-places b { font-size: 15px; font-weight: 600; }
.ep-places span { font-size: 13px; line-height: 1.5; color: var(--ef-muted); }
.ep-places li[data-depth="0"] a { border-left: 3px solid var(--ef-accent); }
.ep-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 0; font-size: 14px; }
.ep-foot a { color: var(--ef-accent); text-underline-offset: 3px; }

/* the small chart: the middle asking price month by month */
.ep-chart { display: grid; gap: 8px; }
.ep-chart__label { margin: 0; font-size: 13px; color: var(--ef-muted); }
.ep-chart svg { display: block; width: 100%; height: 140px; overflow: visible; }
.ep-chart__line { fill: none; stroke: var(--ef-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ep-chart__fill { fill: var(--ef-accent); opacity: .1; }
.ep-chart__axis { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--ef-muted); font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
    .ea-in { gap: 22px; }
    .ea-lead { font-size: 15px; }
    .ea-facts { grid-template-columns: 1fr; }
}
