/* ELIFIN Team + Results templates. Generated 2026-10-25 from the brand kit (elifin-brand.css) + the approved mockup CSS
   (website/results-redesign/preview/results.css + team.css). Every rule is scoped under .elifin. */
/* ELIFIN® Brand Kit v1.0 (2026-10-21) — tokens + components for anything Claude builds.
   Rules: SKILL.md beside this file. Load one font pair from Google Fonts first, then wrap content in
   <div class="elifin"> (Guide pair: Playfair Display + Fira Sans) or
   <div class="elifin elifin--pulse"> (Pulse pair: Fraunces + Archivo).
   Components are scoped under .elifin so they never leak into the WordPress theme. */

:root {
	/* Brand colors — 2021 guide */
	--elifin-blue: #27427E;          /* Dark Blue, PMS 287 C */
	--elifin-rubine: #CE0058;        /* Rubine, Rubine Red C */
	--elifin-gray: #666666;          /* secondary text */
	--elifin-black: #000000;         /* logo wordmark only */

	/* Supporting colors */
	--elifin-text: #333333;
	--elifin-blue-deep: #1C3163;
	--elifin-rubine-deep: #B0004B;
	--elifin-soft: #F4F6FB;
	--elifin-line: #E2E6EE;
	--elifin-rubine-tint: #FBE6EF;
	--elifin-white: #FFFFFF;

	/* Status — app screens only, always with an icon or a word */
	--elifin-success: #1E7A46;
	--elifin-warning: #B7791F;
	--elifin-critical: #C8102E;
	--elifin-info: #1D6FB8;

	/* Charts — property types, fixed order */
	--elifin-office: #3A5BA8;
	--elifin-retail: #CE0058;
	--elifin-industrial: #C98500;
	--elifin-multifamily: #1B9AAA;
	--elifin-land: #5C8F2E;
	--elifin-medical: #7B5CC4;
	--elifin-hospitality: #E5713A;
	--elifin-other: #8A94A6;
	--elifin-muted-series: #9DB0DA;  /* "the rest" when one item is called out in Rubine */

	/* Blue ramp for magnitude, light to dark */
	--elifin-ramp-1: #E9EDF6;
	--elifin-ramp-2: #C9D3EA;
	--elifin-ramp-3: #9DB0DA;
	--elifin-ramp-4: #6F8BC6;
	--elifin-ramp-5: #4A69AE;
	--elifin-ramp-6: #27427E;
	--elifin-ramp-7: #1C3163;

	/* Fonts — Guide pair by default; .elifin--pulse switches to the Pulse pair */
	--elifin-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--elifin-font-body: 'Fira Sans', Arial, Helvetica, sans-serif;

	/* Type scale (web) */
	--elifin-size-h1: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);  /* 30 → 40 px */
	--elifin-size-h2: 1.75rem;     /* 28 px */
	--elifin-size-h3: 1.3125rem;   /* 21 px */
	--elifin-size-h4: 1.0625rem;   /* 17 px */
	--elifin-size-body: 1.0625rem; /* 17 px */
	--elifin-size-dek: 1.1875rem;  /* 19 px */
	--elifin-size-small: 0.875rem; /* 14 px */
	--elifin-size-label: 0.75rem;  /* 12 px */
	--elifin-size-stat: 2rem;      /* 32 px */

	/* Shape and space */
	--elifin-radius-sm: 4px;
	--elifin-radius: 8px;
	--elifin-radius-lg: 12px;
	--elifin-radius-pill: 999px;
	--elifin-space-1: 4px;
	--elifin-space-2: 8px;
	--elifin-space-3: 12px;
	--elifin-space-4: 16px;
	--elifin-space-5: 24px;
	--elifin-space-6: 32px;
	--elifin-space-7: 48px;
	--elifin-space-8: 64px;
	--elifin-measure: 68ch;
	--elifin-article: 760px;
	--elifin-page: 1120px;
	--elifin-shadow-app: 0 1px 2px rgba(28, 49, 99, .06), 0 4px 12px rgba(28, 49, 99, .05);
	--elifin-shadow-button: 0 1px 2px rgba(28, 49, 99, .08), 0 2px 6px rgba(28, 49, 99, .10);
	--elifin-shadow-button-hover: 0 2px 4px rgba(28, 49, 99, .10), 0 6px 14px rgba(28, 49, 99, .12);
}

.elifin--pulse {
	--elifin-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--elifin-font-body: 'Archivo', Arial, Helvetica, sans-serif;
}

/* ── Base ─────────────────────────────────────────────── */
.elifin {
	font-family: var(--elifin-font-body);
	font-size: var(--elifin-size-body);
	font-weight: 400;
	line-height: 1.6;
	color: var(--elifin-text);
	letter-spacing: normal;
}
.elifin h1, .elifin h2, .elifin h3 {
	font-family: var(--elifin-font-display);
	font-weight: 700;
	font-style: normal;
	color: var(--elifin-blue);
	letter-spacing: normal;
	text-transform: none;
	text-wrap: balance;
	margin: 0 0 var(--elifin-space-3);
}
.elifin h1 { font-size: var(--elifin-size-h1); line-height: 1.15; }
.elifin h2 { font-size: var(--elifin-size-h2); line-height: 1.2; margin-top: var(--elifin-space-7); }
.elifin h3 { font-size: var(--elifin-size-h3); line-height: 1.25; margin-top: var(--elifin-space-6); }
.elifin h4 {
	font-family: var(--elifin-font-body);
	font-size: var(--elifin-size-h4);
	font-weight: 700;
	line-height: 1.3;
	color: var(--elifin-text);
	margin: 0 0 var(--elifin-space-2);
}
.elifin p { margin: 0 0 var(--elifin-space-4); max-width: var(--elifin-measure); }
.elifin a { color: var(--elifin-blue); text-decoration: underline; text-underline-offset: 2px; }
.elifin a:hover { color: var(--elifin-blue-deep); }
.elifin :focus-visible { outline: 2px solid var(--elifin-blue); outline-offset: 2px; }
.elifin strong, .elifin b { font-weight: 700; }

/* One italic phrase in the main headline, Rubine on white only */
.elifin .ek-accent { font-style: italic; color: var(--elifin-rubine); }

/* The company name: italic ELIFIN, upright ® */
.ek-name { white-space: nowrap; font-weight: inherit; }
.ek-name i { font-style: italic; }

/* ── Headline block ───────────────────────────────────── */
.elifin .ek-eyebrow {
	display: block;
	font-family: var(--elifin-font-body);
	font-size: var(--elifin-size-label);
	font-weight: 700;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--elifin-rubine);
	margin: 0 0 var(--elifin-space-3);
}
.elifin .ek-dek { font-size: var(--elifin-size-dek); line-height: 1.5; color: var(--elifin-gray); }
.elifin .ek-byline { font-size: var(--elifin-size-small); line-height: 1.5; color: var(--elifin-gray); }

/* ── Buttons ──────────────────────────────────────────── */
.elifin .ek-btn {
	display: inline-block;
	font-family: var(--elifin-font-body);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	white-space: nowrap;
	padding: 12px 22px;
	border: 2px solid var(--elifin-rubine);
	border-radius: var(--elifin-radius);
	background: var(--elifin-rubine);
	color: var(--elifin-white);
	cursor: pointer;
}
.elifin .ek-btn:hover { background: var(--elifin-rubine-deep); border-color: var(--elifin-rubine-deep); color: var(--elifin-white); }
.elifin .ek-btn--secondary { background: var(--elifin-white); border-color: var(--elifin-blue); color: var(--elifin-blue); }
.elifin .ek-btn--secondary:hover { background: var(--elifin-soft); border-color: var(--elifin-blue-deep); color: var(--elifin-blue-deep); }
.elifin .ek-btn--blue { background: var(--elifin-blue); border-color: var(--elifin-blue); color: var(--elifin-white); }
.elifin .ek-btn--blue:hover { background: var(--elifin-blue-deep); border-color: var(--elifin-blue-deep); color: var(--elifin-white); }
/* White with shadow: 1 px border + 1 px more padding keeps it the same size as the others */
.elifin .ek-btn--raised {
	background: var(--elifin-white);
	border: 1px solid var(--elifin-line);
	padding: 13px 23px;
	color: var(--elifin-text);
	box-shadow: var(--elifin-shadow-button);
}
.elifin .ek-btn--raised:hover { background: var(--elifin-white); border-color: var(--elifin-line); color: var(--elifin-text); box-shadow: var(--elifin-shadow-button-hover); }
.elifin .ek-btn--sm { font-size: .875rem; padding: 8px 14px; }
.elifin .ek-btn--raised.ek-btn--sm { padding: 9px 15px; }

/* ── Stat cards (the Pulse's number boxes) ────────────── */
.elifin .ek-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 14px;
	margin: var(--elifin-space-6) 0;
}
.elifin .ek-stat {
	padding: 18px 18px 16px;
	background: var(--elifin-soft);
	border: 1px solid var(--elifin-line);
	border-top: 3px solid var(--elifin-rubine);
	border-radius: var(--elifin-radius-lg);
	min-width: 0;
}
.elifin .ek-stat__n {
	display: block;
	font-family: var(--elifin-font-body);
	font-size: var(--elifin-size-stat);
	font-weight: 700;
	line-height: 1.05;
	font-variant-numeric: tabular-nums;
	color: var(--elifin-blue);
}
.elifin .ek-stat__l { display: block; margin-top: 6px; font-size: .85rem; line-height: 1.4; color: var(--elifin-gray); }

/* ── Data table ───────────────────────────────────────── */
.elifin .ek-tablewrap {
	overflow-x: auto;
	border: 1px solid var(--elifin-line);
	border-radius: var(--elifin-radius-lg);
	margin: var(--elifin-space-5) 0;
}
.elifin .ek-table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.4; }
.elifin .ek-table th {
	background: var(--elifin-blue);
	color: var(--elifin-white);
	font-family: var(--elifin-font-body);
	font-size: .8125rem;
	font-weight: 700;
	text-align: left;
	padding: 10px 14px;
	white-space: nowrap;
	border: 0;
}
.elifin .ek-table td { padding: 10px 14px; border: 0; border-top: 1px solid var(--elifin-line); text-align: left; vertical-align: top; color: var(--elifin-text); }
.elifin .ek-table tbody tr:nth-child(even) td { background: var(--elifin-soft); }
.elifin .ek-table .ek-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.elifin .ek-table .ek-total td { font-weight: 700; border-top: 2px solid var(--elifin-blue); background: var(--elifin-white); }

/* ── Cards, tags, chips ───────────────────────────────── */
.elifin .ek-card {
	background: var(--elifin-white);
	border: 1px solid var(--elifin-line);
	border-radius: var(--elifin-radius-lg);
	overflow: hidden;
	min-width: 0;
}
.elifin .ek-card__img { position: relative; display: block; width: 100%; max-width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.elifin .ek-card__body { padding: var(--elifin-space-4) 18px 18px; }
.elifin .ek-tag {
	display: inline-block;
	font-family: var(--elifin-font-body);
	font-size: .6875rem;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .08em;
	padding: 5px 8px;
	border-radius: var(--elifin-radius-sm);
	background: var(--elifin-rubine);
	color: var(--elifin-white);
}
.elifin .ek-tag--leased { background: var(--elifin-blue); }
.elifin .ek-tag--neutral { background: var(--elifin-white); color: var(--elifin-blue); }
.elifin .ek-chip {
	display: inline-block;
	font-size: .8125rem;
	line-height: 1.3;
	padding: 4px 12px;
	border: 1px solid var(--elifin-line);
	border-radius: var(--elifin-radius-pill);
	background: var(--elifin-soft);
	color: var(--elifin-blue);
	text-decoration: none;
}

/* ── Callout, footnote, bands ─────────────────────────── */
.elifin .ek-callout {
	background: var(--elifin-soft);
	border-left: 4px solid var(--elifin-blue);
	border-radius: 0;
	padding: var(--elifin-space-4) 20px;
	margin: var(--elifin-space-5) 0;
}
.elifin .ek-callout > :last-child { margin-bottom: 0; }
.elifin .ek-footnote { margin-top: var(--elifin-space-6); padding-top: var(--elifin-space-4); border-top: 1px solid var(--elifin-line); }
.elifin .ek-footnote p { font-size: .8125rem; line-height: 1.5; font-style: italic; color: var(--elifin-gray); margin: 0 0 var(--elifin-space-2); }
.elifin .ek-band { background: var(--elifin-blue); color: var(--elifin-white); }
.elifin .ek-band h1, .elifin .ek-band h2, .elifin .ek-band h3, .elifin .ek-band a { color: var(--elifin-white); }
.elifin .ek-band .ek-accent { color: var(--elifin-white); }
.elifin .ek-rule { display: block; height: 6px; background: var(--elifin-rubine); border: 0; margin: 0; }

/* ── Chart swatches (legends drawn in HTML) ───────────── */
.elifin .ek-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }

@media (max-width: 600px) {
	.elifin h2 { font-size: 1.5rem; }
	.elifin .ek-stat__n { font-size: 1.6rem; }
}

/* Results redesign mockup (2026-10-22). Guide pair. Brand tokens + ek- components come from elifin-brand.css;
   everything here is scoped under .elifin.er so the Bridge theme can't reach in and nothing leaks out. */
.elifin.er { font-family: var(--elifin-font-body); color: var(--elifin-text); background: #fff; }
.elifin.er * { box-sizing: border-box; }
.elifin.er img { max-width: 100%; height: auto; display: block; border: 0; }
.elifin.er .er-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.elifin.er h1, .elifin.er h2, .elifin.er h3 { font-family: var(--elifin-font-display); color: var(--elifin-blue); font-weight: 700; letter-spacing: 0; text-transform: none; text-wrap: balance; }
.elifin.er h1 { font-size: 40px; line-height: 1.15; margin: 0 0 12px; }
.elifin.er p { max-width: none; }

/* ── Results index ─────────────────────────────────── */
.elifin.er .er-head { padding: 48px 0 24px; }
.elifin.er .er-head .ek-dek { margin: 0; max-width: 620px; }
.elifin.er .er-filters { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr)); gap: 12px; padding: 16px 0 24px; border-bottom: 1px solid var(--elifin-line); }
.elifin.er .er-filters input, .elifin.er .er-filters select {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--elifin-line); border-radius: 8px; background: #fff;
  font: 400 15px/1 var(--elifin-font-body); color: var(--elifin-text); appearance: none; -webkit-appearance: none; margin: 0; }
.elifin.er .er-filters select { background-image: linear-gradient(45deg, transparent 50%, #666 50%), linear-gradient(135deg, #666 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; cursor: pointer; }
.elifin.er .er-filters input:focus, .elifin.er .er-filters select:focus { outline: 2px solid var(--elifin-blue); outline-offset: 1px; border-color: var(--elifin-blue); }
.elifin.er .er-count { margin: 16px 0 0; font-size: 14px; color: var(--elifin-gray); }
.elifin.er .er-count button { border: 0; background: none; padding: 0 0 0 8px; color: var(--elifin-blue); font: inherit; text-decoration: underline; cursor: pointer; }

/* featured (newest) result */
.elifin.er .er-feature { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: center; margin: 32px 0 48px; text-decoration: none; color: inherit; }
.elifin.er .er-feature__img { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--elifin-soft); }
.elifin.er .er-feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.elifin.er .er-feature:hover .er-feature__img img { transform: scale(1.03); }
.elifin.er .er-feature h2 { font-size: 28px; line-height: 1.2; margin: 8px 0 12px; }
.elifin.er .er-feature:hover h2 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.elifin.er .er-feature__lead { font-size: 17px; line-height: 1.6; margin: 0 0 24px; color: var(--elifin-text); }

/* card grid */
.elifin.er .er-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; margin: 0 0 32px; }
.elifin.er .er-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.elifin.er .er-card[hidden] { display: none; }
.elifin.er .er-card__img { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--elifin-soft); }
.elifin.er .er-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.elifin.er .er-card:hover .er-card__img img { transform: scale(1.04); }
.elifin.er .ek-tag { position: absolute; top: 12px; left: 12px; margin: 0; }
.elifin.er .er-meta { margin: 16px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--elifin-gray); }
.elifin.er .er-card__title { margin: 0 0 8px; font: 700 18px/1.3 var(--elifin-font-body); color: var(--elifin-text); }
.elifin.er .er-card:hover .er-card__title { color: var(--elifin-blue); text-decoration: underline; text-underline-offset: 2px; }
.elifin.er .er-facts-line { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--elifin-gray); }
.elifin.er .er-by { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--elifin-line); font-size: 14px; color: var(--elifin-text); }
.elifin.er .er-avatars { display: flex; flex: none; }
.elifin.er .er-avatars img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: center 15%; border: 2px solid #fff; }
.elifin.er .er-avatars img + img { margin-left: -10px; }
.elifin.er .er-by__names { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.elifin.er .er-by time { flex: none; color: var(--elifin-gray); }
.elifin.er .er-more { text-align: center; margin: 0 0 64px; }
.elifin.er .er-empty { grid-column: 1 / -1; padding: 48px 0; text-align: center; color: var(--elifin-gray); }

/* closing band */
.elifin.er .er-cta { padding: 48px 0; }
.elifin.er .er-cta .er-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.elifin.er .er-cta h2 { color: #fff; font-size: 28px; margin: 0 0 8px; }
.elifin.er .er-cta p { color: #fff; opacity: .9; margin: 0; font-size: 17px; }
.elifin.er .er-cta .ek-btn { flex: none; text-decoration: none; }

/* ── Single result ─────────────────────────────────── */
.elifin.er .er-back { display: inline-block; margin: 32px 0 24px; font-size: 14px; font-weight: 700; color: var(--elifin-blue); text-decoration: none; }
.elifin.er .er-back:hover { text-decoration: underline; }
.elifin.er .er-title { max-width: 860px; padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--elifin-line); }
.elifin.er .er-title h1 { margin-top: 4px; }
.elifin.er .er-title .ek-byline { margin: 0; }
.elifin.er .er-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.elifin.er .er-hero { position: relative; margin: 0 0 24px; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--elifin-soft); }
.elifin.er .er-hero img { width: 100%; height: 100%; object-fit: cover; }
.elifin.er .er-hero .ek-tag { top: 16px; left: 16px; }
.elifin.er .er-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 32px; border: 1px solid var(--elifin-line); border-radius: 12px; overflow: hidden; }
.elifin.er .er-facts div { padding: 16px; border-left: 1px solid var(--elifin-line); }
.elifin.er .er-facts div:first-child { border-left: 0; }
.elifin.er .er-facts dt { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--elifin-gray); }
.elifin.er .er-facts dd { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--elifin-blue); }
.elifin.er .er-story { max-width: 680px; }
.elifin.er .er-lead { font-size: 19px; line-height: 1.55; color: var(--elifin-text); margin: 0 0 32px; }
.elifin.er .er-story h2 { font-size: 24px; line-height: 1.2; margin: 32px 0 8px; }
.elifin.er .er-story p { font-size: 17px; line-height: 1.6; margin: 0 0 16px; }
.elifin.er .er-quote { margin: 40px 0 0; padding: 24px 0 0; border-top: 6px solid var(--elifin-rubine); max-width: 680px; }
.elifin.er .er-quote p { font: italic 400 24px/1.4 var(--elifin-font-display); color: var(--elifin-blue); margin: 0 0 12px; }
.elifin.er .er-quote cite { font-style: normal; font-size: 14px; color: var(--elifin-gray); }

.elifin.er .er-side { }  /* not sticky: two agent cards are taller than a laptop screen */
.elifin.er .er-side > .ek-eyebrow { margin: 0 0 12px; }
.elifin.er .er-agent { margin: 0 0 32px; }
.elifin.er .er-agent__photo { width: 50%; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--elifin-soft); }
.elifin.er .er-agent__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.elifin.er .er-agent h3 { font-size: 21px; line-height: 1.25; margin: 16px 0 4px; }
.elifin.er .er-agent h3 a { color: var(--elifin-blue); text-decoration: none; }
.elifin.er .er-agent h3 a:hover { text-decoration: underline; }
.elifin.er .er-agent__role { margin: 0 0 4px; font-size: 14px; line-height: 1.45; color: var(--elifin-gray); }
.elifin.er .er-agent__side { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--elifin-rubine); }
.elifin.er .er-agent__contact { margin: 0 0 16px; font-size: 15px; line-height: 1.7; }
.elifin.er .er-agent__contact a { color: var(--elifin-blue); }
.elifin.er .er-agent .ek-btn { text-decoration: none; }

.elifin.er .er-related { margin: 64px 0; padding-top: 32px; border-top: 1px solid var(--elifin-line); }
.elifin.er .er-related__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.elifin.er .er-related__head h2 { font-size: 28px; margin: 0; }
.elifin.er .er-related__head a { font-weight: 700; font-size: 15px; }

/* ── Phones and tablets ─────────────────────────────── */
@media (max-width: 1000px) {
  .elifin.er .er-grid { grid-template-columns: repeat(2, 1fr); }
  .elifin.er .er-layout { grid-template-columns: 1fr; }
  .elifin.er .er-side { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
  .elifin.er .er-side > .ek-eyebrow { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .elifin.er .er-wrap { padding: 0 16px; }
  .elifin.er h1 { font-size: 30px; }
  .elifin.er .er-head { padding-top: 32px; }
  .elifin.er .er-filters { grid-template-columns: 1fr 1fr; }
  .elifin.er .er-filters input { grid-column: 1 / -1; }
  .elifin.er .er-filters select:last-child { grid-column: 1 / -1; }
  .elifin.er .er-feature { grid-template-columns: 1fr; gap: 16px; margin: 24px 0 32px; }
  .elifin.er .er-feature h2 { font-size: 24px; }
  .elifin.er .er-grid { grid-template-columns: 1fr; gap: 32px; }
  .elifin.er .er-cta .er-wrap { flex-direction: column; align-items: flex-start; }
  .elifin.er .er-facts { grid-template-columns: 1fr 1fr; }
  .elifin.er .er-facts div:nth-child(3) { border-left: 0; }
  .elifin.er .er-facts div:nth-child(n+3) { border-top: 1px solid var(--elifin-line); }
  .elifin.er .er-lead { font-size: 18px; }
  .elifin.er .er-side { grid-template-columns: 1fr; }
  .elifin.er .er-related__head { flex-direction: column; }
}

/* Team rebuild mockup (2026-10-24): Team page, default profile template, market-page team widget.
   Loaded after results.css (shares .er-wrap, .er-facts, .er-card, .er-cta); scoped under .elifin.er. */

/* ── People grid (Team page + market widget) ─────────── */
.elifin.er .et-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px 16px; margin: 0 0 64px; }
.elifin.er .et-person { display: block; text-decoration: none; color: inherit; }
.elifin.er .et-person__photo { border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--elifin-soft); }
.elifin.er .et-person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .4s ease; }
.elifin.er .et-person:hover .et-person__photo img { transform: scale(1.04); }
.elifin.er .et-person__name { margin: 12px 0 2px; font: 700 16px/1.3 var(--elifin-font-body); color: var(--elifin-blue); }
.elifin.er .et-person__name span { font-weight: 400; color: var(--elifin-gray); font-size: 14px; }
.elifin.er .et-person:hover .et-person__name { text-decoration: underline; text-underline-offset: 2px; }
.elifin.er .et-person__title { margin: 0 0 6px; font-size: 13px; line-height: 1.45; color: var(--elifin-text); }
.elifin.er .et-person__market { display: flex; align-items: flex-start; gap: 4px; margin: 0; font-size: 11px; line-height: 1.35; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--elifin-gray); }

/* ── Profile page ─────────────────────────────────────── */
.elifin.er .ep-hero { display: grid; grid-template-columns: 264px 1fr; gap: 48px; align-items: center; padding: 8px 0 48px; }  /* photo ~60% of the first mockup */
.elifin.er .ep-photo { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--elifin-soft); }
.elifin.er .ep-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.elifin.er .ep-hero h1 { margin: 4px 0 4px; }
.elifin.er .ep-creds { margin: 0 0 16px; font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--elifin-gray); }
.elifin.er .ep-hero .ek-dek { margin: 0 0 24px; }
.elifin.er .ep-contact { margin: 0 0 24px; padding: 16px 0; border-top: 1px solid var(--elifin-line); border-bottom: 1px solid var(--elifin-line);
  display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; font-size: 16px; }
.elifin.er .ep-contact dt { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--elifin-gray); line-height: 1.9; }
.elifin.er .ep-contact dd { margin: 0; line-height: 1.6; }
.elifin.er .ep-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.elifin.er .ep-actions .ek-btn { text-decoration: none; }
.elifin.er .ep-section { max-width: 760px; margin: 0 0 48px; }
.elifin.er .ep-section h2 { font-size: 28px; margin: 0 0 16px; }
.elifin.er .ep-section p { font-size: 17px; line-height: 1.65; margin: 0 0 16px; }
.elifin.er .ep-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.elifin.er .ep-list li { break-inside: avoid; padding: 10px 0; border-top: 1px solid var(--elifin-line); font-size: 15px; line-height: 1.5; }
.elifin.er .ep-facts { margin-bottom: 48px; }
.elifin.er .ep-results .er-related__head { margin-bottom: 24px; }

/* ── Market-page widget ───────────────────────────────── */
.elifin.er .em-widget { padding: 48px 0 16px; border-top: 1px solid var(--elifin-line); }
.elifin.er .em-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.elifin.er .em-head h2 { font-size: 28px; margin: 0; }
.elifin.er .em-head a { font-weight: 700; font-size: 15px; }
.elifin.er .em-note { margin: 24px 0 0; padding: 12px 16px; background: var(--elifin-soft); border-radius: 8px; font-size: 14px; color: var(--elifin-gray); }

@media (max-width: 1000px) {
  .elifin.er .et-grid { grid-template-columns: repeat(4, 1fr); }
  .elifin.er .ep-hero { grid-template-columns: 220px 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .elifin.er .et-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .elifin.er .ep-hero { grid-template-columns: 1fr; gap: 24px; }
  .elifin.er .ep-photo { max-width: 216px; }
  .elifin.er .ep-list { columns: 1; }
  .elifin.er .em-head { flex-direction: column; }
}
.elifin.er .et-pin { flex: none; width: 12px; height: 12px; margin-top: 1px; fill: var(--elifin-gray); }  /* lines up with the first line of a two-line location */
.elifin.er .ek-eyebrow .et-pin { width: 13px; height: 13px; fill: var(--elifin-rubine); vertical-align: -1px; margin-right: 4px; }

.elifin.er .et-grid--page { margin-top: 32px; }
.elifin.er .er-story .er-lead { font-size: 19px; line-height: 1.55; margin: 0 0 32px; }

/* market-page widget inside a page that already has its heading */
.elifin.er.elp-team-widget--bare { background: transparent; }
.elifin.er.elp-team-widget--bare .et-grid { margin: 8px 0 16px; }
.elifin.er .em-more { margin: 0 0 32px; text-align: right; font-size: 15px; font-weight: 700; }
