/* Team listing and broker profiles: portrait-led, left-aligned editorial composition. */
.team-page{overflow-wrap:anywhere}
/* anywhere, not break-word: this inline-block sizes to its longest unbreakable piece, so with break-word an address
   overflows a narrow card at large text. Email.astro's break points after @ and . are still tried first. */
.team-email,.broker-email{overflow-wrap:anywhere}
.team-page *{min-width:0}
.editorial-site .team-page h2{margin-inline:0}
.team-line{display:block}

/* Team hero: headline beside the introduction. */
.team-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:1.5rem clamp(2rem,2rem + 4vw,7rem);align-items:end;padding-top:clamp(2rem,1rem + 3vw,4rem);padding-bottom:clamp(2rem,1rem + 3vw,4rem)}
.team-hero .ed-label{margin:0 0 1.25rem}
.editorial-site .team-hero h1{font-size:clamp(2.5rem,1.2rem + 4.6vw,5.5rem);line-height:1.04;letter-spacing:-.035em;margin:0;max-width:14ch}
.team-hero .ed-deck{margin:0 0 .5rem;max-width:40ch}

/* Portrait wall. */
.team-wall{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:2.5rem 1.5rem;padding-bottom:clamp(4rem,2rem + 6vw,8rem)}
.team-card .team-portrait-link,.team-card h2 a{text-decoration:none;display:block}
.team-portrait{overflow:hidden;border-radius:var(--panel-radius);aspect-ratio:4/5;--portrait-scale:1;--portrait-origin:50% 42%}
.team-portrait img{width:100%;height:100%;object-fit:cover;transform:scale(var(--portrait-scale));transform-origin:var(--portrait-origin);transition:transform 700ms cubic-bezier(.22,1,.36,1),filter .35s ease}
.editorial-site .team-card h2{font-size:clamp(1.375rem,1rem + 1vw,1.75rem);margin:1.25rem 0 0}
.team-role{margin:0;color:var(--muted);font-size:.9375rem}
.team-focus{margin:0;font-size:.9375rem;max-width:26ch}
.team-phone{display:inline-block;justify-self:start;padding-block:.5rem;font-size:.9375rem;text-underline-offset:.35em;min-height:2.75rem}

/* The team behind the team: Charcoal colour block beside the group photograph. */
.team-behind-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:2rem clamp(2rem,2rem + 4vw,7rem);align-items:center;padding-block:clamp(3rem,2rem + 5vw,7rem)}
.team-behind .ed-deck{max-width:38ch;margin-bottom:2rem}
.team-group{margin:0}
.team-group img{width:100%;height:auto}

/* Broker hero: portrait as the subject, direct line set in serif. */
.broker-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:2rem clamp(2rem,2rem + 4vw,7rem);align-items:center;padding-top:clamp(2rem,1rem + 3vw,4rem);padding-bottom:clamp(3rem,2rem + 4vw,6rem)}
.broker-back{display:inline-block;padding-block:.75rem;margin-bottom:.5rem;font-size:.8125rem}
.broker-hero .ed-label{margin:0 0 1.25rem}
.editorial-site .broker-hero h1{font-size:clamp(2.75rem,1.2rem + 5vw,6rem);line-height:1.02;letter-spacing:-.035em;margin:0 0 1rem;max-width:10ch}
.broker-hero .ed-deck{margin:0 0 1.5rem;max-width:34ch}
.broker-direct{display:inline-block;font:400 clamp(1.5rem,1rem + 1.6vw,2.5rem)/1.2 var(--font-display);text-decoration-thickness:1px;text-underline-offset:.25em;margin-bottom:2rem;padding-block:.25rem}
.broker-hero .ed-actions{justify-content:flex-start}
.broker-portrait{margin:0;overflow:hidden;border-radius:var(--panel-radius)}
.broker-portrait img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover}

/* About: heading column, text column with focus list as hairline rows. */
.broker-about{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:2rem clamp(2rem,2rem + 4vw,7rem);padding-block:clamp(3rem,2rem + 4vw,6rem);border-top:1px solid var(--line)}
.broker-about h2{margin:0}
.broker-about-text p{margin:0 0 1.25rem;max-width:58ch;color:var(--muted)}
.broker-lead{color:var(--charcoal)!important;font-size:clamp(1.125rem,1rem + .5vw,1.375rem);line-height:1.55}
.broker-focus{margin-top:2.5rem}
.editorial-site .broker-focus h3{font:400 1.25rem/1.2 var(--font-display);margin:0 0 .5rem}
.broker-focus ul{list-style:none;margin:0;padding:0;max-width:40ch}
.broker-focus li{padding:.8rem 0;border-top:1px solid var(--line)}
.broker-focus li:last-child{border-bottom:1px solid var(--line)}

/* Where to begin: Charcoal block with a hairline list. */
.broker-begin-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:2rem clamp(2rem,2rem + 4vw,7rem);align-items:start;padding-block:clamp(3rem,2rem + 5vw,7rem)}
.broker-begin .ed-deck{max-width:34ch;margin:0}
.broker-begin-list a{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem 1.5rem;padding:1.5rem 0;border-top:1px solid #6a6965;text-decoration:none;min-height:2.75rem}
.broker-begin-list a:last-child{border-bottom:1px solid #6a6965}
.editorial-site .broker-begin-list h3{flex:1 1 12rem;min-width:0;font:400 clamp(1.375rem,1rem + 1.2vw,2rem)/1.2 var(--font-display);margin:0}
.broker-begin-list span{font-size:.8125rem;text-decoration:underline;text-underline-offset:.4em;white-space:nowrap}

/* Also at Cavara. */
.broker-others{padding-block:clamp(3rem,2rem + 4vw,6rem)}
.team-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:2rem}
.team-head h2{margin:0}
.broker-others-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}
.broker-other{text-decoration:none;display:block}
.editorial-site .broker-other h3{font:400 1.25rem/1.2 var(--font-display);margin:1rem 0 .25rem}
.broker-other p{margin:0;color:var(--muted);font-size:.9375rem}

/* Portrait hover, matching the homepage: the photograph goes near-black; a pending portrait turns Charcoal.
   Pointer anywhere on the card, or keyboard focus on a link inside it; hover-capable devices only. */
.team-portrait-pending{transition:background-color .35s ease,color .35s ease}
@media(hover:hover){
 :is(.team-card:hover,.team-card:has(a:focus-visible),.broker-other:hover,.broker-other:focus-visible,.team-support-card:hover,.team-support-card:has(a:focus-visible)) .team-portrait img{filter:grayscale(1) brightness(.6) contrast(1.12)}
 :is(.team-card:hover,.team-card:has(a:focus-visible),.broker-other:hover,.broker-other:focus-visible,.team-support-card:hover,.team-support-card:has(a:focus-visible)) .team-portrait-pending{background:var(--charcoal);color:var(--linen)}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){:is(.team-card:hover,.team-card:has(a:focus-visible),.broker-other:hover,.broker-other:focus-visible) .team-portrait img{transform:scale(calc(var(--portrait-scale) * 1.03))}}
@media(prefers-reduced-motion:reduce){.team-portrait img,.team-portrait-pending{transition:none}}
@media(prefers-reduced-motion:no-preference){
 .team-card{opacity:0;animation:team-rise .9s cubic-bezier(.22,1,.36,1) forwards;animation-delay:calc(.15s + var(--i,0) * .1s)}
 .team-hero>*,.broker-hero-copy>*{opacity:0;animation:team-rise 1s cubic-bezier(.22,1,.36,1) forwards}
 .team-hero>:nth-child(2),.broker-hero-copy>:nth-child(2){animation-delay:.1s}.broker-hero-copy>:nth-child(3){animation-delay:.2s}.broker-hero-copy>:nth-child(4){animation-delay:.3s}.broker-hero-copy>:nth-child(5){animation-delay:.4s}.broker-hero-copy>:nth-child(6){animation-delay:.5s}
 .broker-portrait{opacity:0;animation:team-settle 1.4s cubic-bezier(.22,1,.36,1) forwards;animation-delay:.3s}
}
@keyframes team-rise{from{opacity:0;transform:translateY(1.25rem)}to{opacity:1;transform:translateY(0)}}
@keyframes team-settle{from{opacity:0;transform:translateY(3%) scale(1.02)}to{opacity:1;transform:translateY(0) scale(1)}}

@media(min-width:64.01rem){.team-wall{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:64rem){.team-wall{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:60rem){.team-hero,.broker-hero,.broker-about,.broker-begin-grid,.team-behind-grid{grid-template-columns:1fr}.broker-portrait{order:-1}.broker-portrait img{aspect-ratio:4/5;max-height:70vh}.team-group{order:-1}}
@media(max-width:45rem){.team-wall{grid-template-columns:1fr;gap:2.5rem}.team-portrait{aspect-ratio:4/5}.broker-others-grid{grid-template-columns:1fr;gap:2rem}}

/* Support team: names and titles as hairline rows. */
.team-support{padding-block:clamp(3rem,2rem + 4vw,6rem);border-top:1px solid var(--line)}
.team-support .team-head p{margin:0;color:var(--muted)}
.team-support-list{list-style:none;margin:0;padding:0;columns:2;column-gap:clamp(2rem,2rem + 3vw,5rem)}
.team-support-list li{display:flex;justify-content:space-between;gap:1.5rem;padding:.9rem 0;border-top:1px solid var(--line);break-inside:avoid}
.team-support-list li span:last-child{color:var(--muted);text-align:right}
@media(max-width:52rem){.team-support-list{columns:1}}

/* Card rows share one track: portrait, name, role, focus, phone align across the wall whatever wraps. */
@supports(grid-template-rows:subgrid){.team-card{display:grid;grid-template-rows:subgrid;grid-row:span 5;row-gap:.5rem;align-content:start}.team-card>*{margin-block:0}.editorial-site .team-card h2{margin-top:.75rem}}

/* Optional emails: only rendered when supplied. Long addresses break anywhere (.team-page). */
.team-email,.broker-email{display:inline-block;justify-self:start;padding-block:.5rem;font-size:.9375rem;min-height:2.75rem;text-decoration:underline;text-underline-offset:.3em;text-decoration-thickness:1px}
.broker-direct:has(+ .broker-contact){margin-bottom:1.25rem}
/* Broker contact block: email and social profiles under the phone number. Labels and an icon mark them as links,
   so the underline appears on hover and keyboard focus only (WCAG 1.4.1: not identified by colour alone). */
.broker-contact{list-style:none;margin:0 0 2rem;padding:1.25rem 0 0;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),max-content));gap:1rem 2.5rem;max-width:36rem}
.broker-credit-rep{margin:0 0 2rem;font-size:.875rem;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.broker-contact:has(+ .broker-credit-rep){margin-bottom:1rem}
.broker-contact li{display:grid;gap:.15rem;min-width:0}
.broker-contact-label{font-size:.6875rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.editorial-site .broker-contact-link{display:inline-flex;align-items:center;gap:.5rem;min-height:2.75rem;font-size:1rem;color:var(--charcoal);text-decoration:none;overflow-wrap:anywhere;width:fit-content;max-width:100%}
.editorial-site .broker-contact-link:hover,.editorial-site .broker-contact-link:focus-visible{text-decoration:underline;text-underline-offset:.3em;text-decoration-thickness:1px}
.broker-contact-icon{width:1.25em;height:1.25em;flex:none}
.broker-email{display:block;width:fit-content;max-width:100%;margin:0 0 2rem}
@supports(grid-template-rows:subgrid){.team-wall.has-email .team-card{grid-row:span 6}}

/* Support team: portrait grid, same 4:5 treatment as the brokers; rows align across each line. */
/* Columns follow text size (11rem target), clamped to between two and four. */
.team-support-grid{--gap:1rem;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(max(calc((100% - 3 * var(--gap)) / 4),min(11rem,calc((100% - var(--gap)) / 2))),1fr));gap:2rem var(--gap)}
.team-support-card .team-portrait{aspect-ratio:4/5}
.team-support-card .team-portrait-pending{text-align:center;padding:.75rem}
.editorial-site .team-support-card h3{font:400 clamp(1.125rem,1rem + .5vw,1.375rem)/1.25 var(--font-display);margin:1rem 0 .25rem}
.team-support-card .team-role{font-size:.875rem}
@media(min-width:40rem){.team-support-grid{--gap:1.5rem;row-gap:2.5rem}}
/* One column when two cards would be narrower than about 8rem each (the section's own width under 17rem). Measured
   in rem, so it follows text size: two columns on a 320 px phone at normal text, one at 200% text. */
.team-support{container-type:inline-size}
@container (max-width:17rem){.team-support-grid{grid-template-columns:1fr}}
@supports(grid-template-rows:subgrid){.team-support-card{display:grid;grid-template-rows:subgrid;grid-row:span 3;row-gap:.35rem;align-content:start}.team-support-grid.has-email .team-support-card,.team-support-grid.has-phone .team-support-card{grid-row:span 4}.team-support-grid.has-email.has-phone .team-support-card{grid-row:span 5}.team-support-card>*{margin-block:0}.editorial-site .team-support-card h3{margin:.65rem 0 0}}

/* Notes from the broker: dated hairline rows on the profile; reading column on the post page. */
.broker-notes{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:2rem clamp(2rem,2rem + 4vw,7rem);padding-block:clamp(3rem,2rem + 4vw,6rem);border-top:1px solid var(--line)}
.broker-notes h2{margin:0}
.broker-notes .ed-label{margin:0 0 1.25rem}
.broker-notes-list{list-style:none;margin:0;padding:0}
.broker-notes-list a{display:grid;gap:.5rem;padding:1.5rem 0;border-top:1px solid var(--line);text-decoration:none}
.broker-notes-list li:last-child a{border-bottom:1px solid var(--line)}
.broker-notes-list time{font-size:.8125rem;color:var(--muted)}
.editorial-site .broker-notes-list h3{font:400 clamp(1.375rem,1rem + 1vw,1.875rem)/1.25 var(--font-display);margin:0}
.broker-notes-list p{margin:0;color:var(--muted);max-width:58ch}
.broker-notes-read{font-size:.8125rem;text-decoration:underline;text-underline-offset:.4em;justify-self:start;padding-block:.5rem}
.broker-post{padding-top:clamp(2rem,1rem + 3vw,4rem);padding-bottom:clamp(3rem,2rem + 4vw,6rem)}
.broker-post-head,.broker-post-body{max-width:42rem}
.broker-post-head .ed-label{margin:0 0 1.25rem}
.editorial-site .broker-post h1{font-size:clamp(2.25rem,1.2rem + 3.6vw,4.5rem);line-height:1.06;letter-spacing:-.03em;margin:0 0 1.25rem;max-width:20ch}
.broker-post-meta{font-size:.875rem;color:var(--muted);margin:0 0 2rem}
.broker-post-meta a{color:inherit}
.broker-post .ed-deck{margin:0 0 2.5rem}
.broker-post-body{border-top:1px solid var(--line);padding-top:2.5rem}
.editorial-site .broker-post-body h2{font-size:clamp(1.5rem,1.1rem + 1vw,2rem);margin:2.5rem 0 1rem}
.broker-post-body p{margin:0 0 1.25rem;max-width:65ch}
.broker-post-source a{display:inline-block;padding-block:.5rem;min-height:2.75rem;font-size:.875rem}
@media(max-width:60rem){.broker-notes{grid-template-columns:1fr}}

/* From the broker's socials: click-to-load embeds with reserved aspect ratios, two per row from tablet up. */
.broker-socials{padding-block:clamp(3rem,2rem + 4vw,6rem);border-top:1px solid var(--line)}
.broker-socials-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:2.5rem 1.5rem}
@media(min-width:40rem){.broker-socials-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@supports(grid-template-rows:subgrid){.broker-social{display:grid;grid-template-rows:subgrid;grid-row:span 2;row-gap:.5rem}}
.broker-social-frame{position:relative;width:min(100%,85svh * var(--rw) / var(--rh));aspect-ratio:var(--rw) / var(--rh);margin-inline:auto;align-self:start;overflow:hidden;border-radius:var(--panel-radius);background:var(--charcoal);color:var(--linen)}
.broker-social-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:var(--linen)}
.broker-social-cover{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:1.5rem;text-align:center;overflow:auto}
.broker-social-cover .ed-label{margin:0}
.broker-social-cover .button{border-color:var(--linen);color:var(--linen);background:transparent;min-height:2.75rem}
.broker-social-cover .button:hover,.broker-social-cover .button:focus-visible{background:var(--linen);color:var(--charcoal)}
.broker-social-note{margin:0;font-size:.8125rem;opacity:.8}
.broker-social-link{justify-self:start;display:inline-block;padding-block:.5rem;min-height:2.75rem;font-size:.875rem;text-decoration:underline;text-underline-offset:.3em;text-decoration-thickness:1px}
.broker-social-load[hidden]{display:none}
/* Broker header links read as links by their size and placement (the phone in display type, the back link above the
   role), so they underline on hover and keyboard focus rather than at rest. */
.editorial-site .broker-direct,.editorial-site .broker-back{text-decoration:none}
.editorial-site .broker-direct:hover,.editorial-site .broker-direct:focus-visible,.editorial-site .broker-back:hover,.editorial-site .broker-back:focus-visible{text-decoration:underline;text-underline-offset:.25em;text-decoration-thickness:1px}
.broker-back::before{content:"\2190\00a0";content:"\2190\00a0"/""}
