/* Look A for the pages re-dressed by family.py (S22005). The lab's community.css and agent.css carry the hero, the
   two-column layout and the article type; this sheet adds only what the carried-over pages have and the lab pages
   do not: a back link, three-fact rows, a call-to-action card in the aside, card and link grids, the Bricks form. */
body.lk-fam .cm-hero.lk-nofig{grid-template-columns:minmax(0,1fr)}
body.lk-fam .cm-hero.lk-nofig .cm-hero-copy{max-width:52rem}
body.lk-fam .cm-hero.lk-nopin:before,body.lk-fam .cm-hero.lk-nopin:after{display:none!important}
body.lk-fam .cm-hero h1{margin-top:.5rem}
body.lk-fam .cm-hero .lk-back{align-self:flex-start;display:inline-flex;align-items:center;gap:.45rem;min-height:44px;margin:0 0 .35rem;font-size:.85rem;font-weight:500;color:#f3eee4;text-decoration:underline;text-decoration-color:rgba(201,169,97,.7);text-underline-offset:.3em;text-shadow:0 1px 10px rgba(10,17,30,.95)}
body.lk-fam .cm-hero .lk-back:before{content:"\2190";color:var(--gold)}
body.lk-fam .cm-hero .lk-back:hover{color:#fff;text-decoration-color:var(--gold)}
body.lk-fam .cm-hero .cm-facts.lk-f3{grid-template-columns:repeat(3,minmax(0,1fr))}
body.lk-fam .cm-hero .cm-facts.lk-f3>div:nth-child(n+2){box-shadow:inset 1px 0 0 rgba(201,169,97,.32)}
body.lk-fam .cm-hero .cm-facts dt,body.lk-fam .cm-hero .cm-facts dd{margin-left:0}
@media(max-width:699px){
body.lk-fam .cm-hero .cm-facts.lk-f3{grid-template-columns:minmax(0,1fr)}
body.lk-fam .cm-hero .cm-facts.lk-f3>div:nth-child(n+2){box-shadow:inset 0 1px 0 rgba(201,169,97,.32)}
}
@media screen and (max-width:899px){body.lk-fam .cm-hero .cm-lede{order:0;margin:0}body.lk-fam .cm-hero .cm-facts{order:0}}

/* layout */
body.lk-fam .lk-main{min-width:0}
body.lk-fam .cm-layout.lk-noaside{display:block}
@media(min-width:900px){body.lk-fam .cm-layout>.lk-main{grid-column:1;grid-row:1}}
body.lk-fam .lk-sec{margin:0 0 2.75rem}
body.lk-fam .lk-sec:last-child{margin-bottom:1rem}
body.lk-fam .lk-main>.lk-sec:first-child .cm-article>:first-child{margin-top:0}
body.lk-fam .cm-article>.lk-prose>p,body.lk-fam .cm-article.lk-prose>p{max-width:72ch}
body.lk-fam .cm-article :is(ul,ol){max-width:72ch;padding-left:1.25rem}
body.lk-fam .cm-article li{margin:.3rem 0}
body.lk-fam .cm-article tr.header :is(th,td){background:var(--navy);color:#fff;border-color:var(--navy)}
body.lk-fam .cm-article tr.even :is(td,th){background:var(--sand)}
body.lk-fam .cm-article img{border-radius:10px}
body.lk-fam .lk-kick{margin:2.75rem 0 0;font-size:.72rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:#7d6325}
body.lk-fam .cm-article .lk-kick+h2{margin-top:.5rem}
body.lk-fam .cm-article .lk-kick+h2:before{display:none}
body.lk-fam .lk-head>.lk-kick:first-child,body.lk-fam .lk-box>.lk-kick:first-child,body.lk-fam .cm-article>.lk-kick:first-child{margin-top:0}
body.lk-fam .lk-textlink{display:inline-flex;align-items:center;min-height:44px;font-weight:600}

/* text beside a photo */
body.lk-fam .lk-figure{margin:1.25rem 0 0}
body.lk-fam .lk-figure img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px 14px 14px 3px;background:#22344f;box-shadow:0 18px 40px -18px rgba(10,17,30,.45)}
@media(min-width:900px){
body.lk-fam .lk-split{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:2.25rem;align-items:center}
body.lk-fam .lk-split>.lk-figure{margin:0}
}

/* card and link grids */
body.lk-fam .lk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:1rem;margin:1.25rem 0 1.5rem}
body.lk-fam .lk-tile{min-width:0;padding:1rem 1.1rem 1.1rem;background:#fff;border:1px solid var(--line);border-top:3px solid var(--navy-2);border-radius:3px 3px 10px 10px;box-shadow:0 10px 30px -22px rgba(27,42,65,.45)}
body.lk-fam .lk-tile h3{margin:0 0 .45rem;font-size:1.08rem;line-height:1.25}
body.lk-fam .lk-tile p{margin:0;font-size:.95rem;max-width:none}
body.lk-fam .lk-tile p+p{margin-top:.3rem;color:var(--muted);font-size:.88rem}
body.lk-fam a.lk-tile,body.lk-fam .lk-tile-link{display:block;color:var(--ink);text-decoration:none;transition:transform .3s cubic-bezier(.22,.8,.2,1),border-color .3s,box-shadow .3s}
body.lk-fam .lk-tile-link:hover,body.lk-fam .lk-tile-link:focus-visible{border-top-color:var(--gold);transform:translateY(-3px);box-shadow:0 22px 40px -24px rgba(10,17,30,.55)}
body.lk-fam .lk-tile-link:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
body.lk-fam .lk-t1{display:block;font-family:var(--display);font-size:1.08rem;font-weight:600;line-height:1.25;color:var(--navy)}
body.lk-fam .lk-t2{display:block;margin-top:.3rem;font-size:.86rem;line-height:1.5;color:var(--muted)}
@media(prefers-reduced-motion:reduce){body.lk-fam .lk-tile-link{transition:none}body.lk-fam .lk-tile-link:hover{transform:none}}

/* call to action in the aside (the page's own closing section) */
body.lk-fam :is(.cm-aside,.ap-aside) .lk-cta{padding:1.35rem 1.25rem 1.45rem;background:#fff;border-top:4px solid var(--gold);border-radius:0 0 12px 12px;box-shadow:0 12px 30px rgba(10,17,30,.16)}
body.lk-fam .lk-cta .form-title{margin:0 0 .6rem;font-size:1.3rem;font-weight:700;line-height:1.2;color:var(--navy);text-wrap:balance}
body.lk-fam .lk-cta .form-title:before{display:none}
body.lk-fam .lk-cta .lk-cta-sub{margin:0 0 1.1rem;font-size:.95rem;line-height:1.6;color:var(--muted)}
body.lk-fam .lk-cta .lk-cta-sub a{font-weight:600;color:var(--navy)}
body.lk-fam .lk-cta .jt-btn{display:flex;width:100%;box-sizing:border-box;text-align:center}
body.lk-fam .jt-btn:hover{background:#d4b97a}
@media(min-width:900px){body.lk-fam .cm-layout:not(.lk-noaside)>.cm-aside{top:5.25rem}}

/* the Bricks form element (agent profiles, Insider): the lab lead-form look */
body.lk-fam .brxe-form{display:flex;flex-wrap:wrap;gap:.8rem;margin:0}
body.lk-fam .brxe-form .form-group{flex:1 1 100%;min-width:0;display:grid;gap:.3rem;margin:0;padding:0}
body.lk-fam .brxe-form label{font-size:.92rem;font-weight:600;line-height:1.3;color:var(--navy)}
body.lk-fam .brxe-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){box-sizing:border-box;width:100%;min-width:0;min-height:48px;padding:.7rem .85rem;font:inherit;font-size:1rem;line-height:1.35;color:var(--ink);background:#fff;border:1.5px solid #7a828c;border-radius:10px}
body.lk-fam .brxe-form textarea{min-height:6rem;resize:vertical}
body.lk-fam .brxe-form :is(input,select,textarea):focus-visible{outline:3px solid var(--gold);outline-offset:1px;border-color:var(--navy)}
body.lk-fam .brxe-form ::placeholder{color:#5b6470}
body.lk-fam .brxe-form .options-wrapper{list-style:none;margin:0;padding:0;display:grid;gap:.4rem}
body.lk-fam .brxe-form .options-wrapper li{display:flex;gap:.6rem;align-items:flex-start;font-size:.8rem;line-height:1.5;color:var(--muted)}
body.lk-fam .brxe-form .options-wrapper label{font-size:inherit;font-weight:400;color:inherit}
body.lk-fam .brxe-form input:is([type=checkbox],[type=radio]){accent-color:var(--navy);width:1.2rem;height:1.2rem;flex:0 0 auto;margin:.1rem 0 0}
body.lk-fam .brxe-form button[type=submit]{display:flex;align-items:center;justify-content:center;gap:.4rem;width:100%;min-height:52px;padding:.8rem 1rem;font:inherit;font-size:1rem;font-weight:600;color:var(--navy);background:var(--gold);border:0;border-radius:999px;cursor:pointer}
body.lk-fam .brxe-form button[type=submit]:hover{background:#d4b97a}
body.lk-fam .brxe-form button[type=submit] :is(.loading,svg){display:none}
body.lk-fam .brxe-form.sending button[type=submit]{opacity:.7;cursor:progress}
body.lk-fam .brxe-form .message{flex:1 1 100%;padding:.8rem 1rem;border-radius:8px;background:var(--sand);border-left:4px solid var(--gold);font-size:.95rem}
body.lk-fam .brxe-form .message:empty{display:none}
body.lk-fam .lk-cta-form{margin-top:1rem}

/* agent profiles */
body.lk-agent .ap-hero .ap-role{grid-column:1/-1}
@media(min-width:900px){body.lk-agent .ap-hero .ap-role{grid-column:2}}
body.lk-agent .ap-article [style]{color:inherit!important;font-family:inherit!important;font-size:inherit!important;letter-spacing:inherit!important;text-transform:none!important}
body.lk-agent .ap-article a[style]{color:var(--accent)!important}
body.lk-agent .ap-article .lk-prose>p{max-width:72ch}
body.lk-agent .lk-ag-bio>h2:first-child{margin-top:0}
body.lk-agent .lk-ag-contact{margin:1.5rem 0;padding:1rem 1.15rem;max-width:34rem;background:#fff;border:1px solid var(--line);border-left:4px solid var(--gold);border-radius:0 10px 10px 0;line-height:1.9;overflow-wrap:anywhere}
body.lk-agent .lk-ag-contact>div{margin-top:0!important}
body.lk-agent .lk-specs .lk-tile h3{margin:0 0 .5rem;font-family:var(--sans);font-size:.78rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--navy-2)}
body.lk-agent .lk-spec{font-size:.95rem;line-height:1.75}
@media(min-width:900px){body.lk-agent .ap-aside{top:5.25rem}}
body.lk-agent main .ap-hero{border-image-outset:1.25rem 100vmax 0}
body.lk-agent main>.ap-hero:first-child{margin-top:-1.25rem}
body.lk-fam .lk-cta .lk-cta-sub a[style]{color:var(--navy)!important;text-decoration:underline!important}
/* S22014: the listing-alert form sits above the page's own call-to-action card (community pages) */
body.lk-fam .cm-aside .lk-alert{margin:0 0 1.25rem}
body.lk-fam .cm-aside .lk-alert .cm-form{box-shadow:0 12px 30px rgba(10,17,30,.16)}
