/*! RP Theme — archives and listings
    Listing grids, cards, rows, pagination, filters, the empty state.
    Reuses the homepage card language rather than inventing a second one.
    Hover lifts only apply where a pointer can hover; touch gets a pressed state. */

/* page banner and breadcrumbs now live in rp-page.css: every template
   type uses them, so they cannot sit behind the archive condition */

/* ---------- listing grid ---------------------------------------- */
.rp-grid{display:grid;gap:22px}
/* a column may always shrink to the screen: without this a form field or a portrait's
   natural width holds a phone-width column open and the whole page scrolls sideways */
.rp-grid>*{min-width:0}
.rp-grid--2{grid-template-columns:repeat(2,1fr)}
.rp-grid--3{grid-template-columns:repeat(3,1fr)}
.rp-grid--4{grid-template-columns:repeat(4,1fr)}

/* ---------- listing card (shares the .ecard / .ncard language) --- */
.rp-card{position:relative;display:flex;flex-direction:column;background:var(--white);
  border:1px solid var(--line-soft);border-left:4px solid var(--red);
  transition:box-shadow .18s,transform .18s}
.rp-card:has(h3 a){-webkit-tap-highlight-color:transparent}
.rp-card:has(h3 a):active{box-shadow:0 8px 22px rgba(20,24,27,.09)}
@media(hover:hover){.rp-card:hover{box-shadow:0 12px 30px rgba(20,24,27,.10);transform:translateY(-2px)}}
.rp-card .shot{height:196px}
.rp-card__body{padding:24px 28px 22px;display:flex;flex-direction:column;align-items:flex-start;
  gap:9px;flex:1}
.rp-card h3{font-size:var(--f-h3);line-height:1.22}
/* the title link reaches across the whole card, so a thumb need not find the words; the
   card's own pressed state answers the tap, so the link adds no tint of its own */
.rp-card h3 a{color:inherit;-webkit-tap-highlight-color:transparent}
.rp-card h3 a::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}
.rp-card p{font-size:14.5px;line-height:1.6}
.rp-card .link-r{margin-top:auto;font-size:14px}
.rp-card__meta{font-family:"Instrument Sans",-apple-system,"Segoe UI",Arial,sans-serif;
  font-size:13.5px;color:var(--muted)}

/* the icon-led variant used for practice areas and industries */
.rp-card--icon{border-left-width:4px}
.rp-card--icon .rp-card__body{padding-top:28px}
.rp-card--icon .badge{margin-bottom:4px}

/* the compact row used in dense lists */
.rp-row{display:flex;align-items:center;gap:16px;background:var(--white);
  border:1px solid var(--line-soft);padding:20px 22px;transition:box-shadow .18s,transform .18s}
a.rp-row{-webkit-tap-highlight-color:transparent}
a.rp-row:active{box-shadow:0 6px 18px rgba(20,24,27,.08)}
a.rp-row:active .rp-row__arrow{transform:translateX(4px)}
@media(hover:hover){a.rp-row:hover{box-shadow:0 10px 26px rgba(20,24,27,.09);transform:translateY(-2px)}}
.rp-row__label{flex:1;min-width:0;font-family:"Instrument Sans",-apple-system,"Segoe UI",Arial,sans-serif;
  font-weight:600;color:var(--ink);font-size:15.5px;line-height:1.35;overflow-wrap:anywhere}
.rp-row__arrow{color:var(--red);flex:none;transition:transform .24s cubic-bezier(.22,.61,.36,1)}
@media(hover:hover){a.rp-row:hover .rp-row__arrow{transform:translateX(4px)}}

/* ---------- insights: the topic tabs and the search glyph -------- */
/* the tab a visitor is on keeps the ink and takes the red underline; the header
   menu's Insights items lead to the categories, which is what lights a tab */
.ins-bar{display:flex;align-items:center;justify-content:space-between;gap:24px;
  margin-bottom:44px;border-bottom:1px solid var(--line-soft)}
.ins-tabs{display:flex;flex-wrap:wrap;gap:4px 30px}
.ins-tabs a{position:relative;display:inline-block;padding:14px 0 16px;
  font-family:"Instrument Sans",-apple-system,"Segoe UI",Arial,sans-serif;
  font-size:15px;font-weight:600;color:var(--muted);transition:color .18s ease}
.ins-tabs a::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;
  background:var(--red);transform:scaleX(0);transform-origin:left;transition:transform .22s cubic-bezier(.22,.61,.36,1)}
.ins-tabs a:active,.ins-tabs a.is-on{color:var(--ink)}
.ins-tabs a.is-on::after{transform:scaleX(1)}
@media(hover:hover){.ins-tabs a:hover{color:var(--ink)}
.ins-tabs a:hover::after{transform:scaleX(1)}}
/* search, folded away behind its glyph: a native <details>, so no script at all */
.ins-search{position:relative;flex:none}
.ins-search summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;
  color:var(--ink);cursor:pointer;list-style:none;-webkit-tap-highlight-color:transparent}
.ins-search summary::-webkit-details-marker{display:none}
.ins-search summary:active{color:var(--red)}
@media(hover:hover){.ins-search summary:hover{color:var(--red)}}
.ins-search__panel{position:absolute;right:0;top:100%;z-index:5;width:min(340px,80vw);
  padding:14px;background:var(--white);border:1px solid var(--line)}

/* ---------- insights: the featured article ----------------------- */
.ins-feature{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  background:var(--white);border:1px solid var(--line-soft);border-left:4px solid var(--red);
  margin-bottom:22px;transition:box-shadow .18s,transform .18s}
@media(hover:hover){.ins-feature:hover{box-shadow:0 12px 30px rgba(20,24,27,.10);transform:translateY(-2px)}}
.ins-feature .shot{height:100%;min-height:290px}
.ins-feature__body{display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:36px 40px 30px}
.ins-feature h2{font-size:29px;line-height:1.24}
.ins-feature p{font-size:15.5px;line-height:1.7;max-width:60ch}
.ins-feature .ins-meta{margin-top:auto}

/* the date and the link that close every insight card */
.ins-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;
  width:100%;margin-top:auto;padding-top:16px;border-top:1px solid var(--line-soft)}
.ins-meta time{font-family:"Instrument Sans",-apple-system,"Segoe UI",Arial,sans-serif;
  font-size:13.5px;color:var(--muted)}
.ins-meta .link-r{font-size:14px;border-bottom-width:0;padding-bottom:0}

/* ---------- a card's Read more arrow ------------------------------ */
/* the title link stretches over the whole card, so the pointer never lands on the Read
   more link itself: the card answers for it, drawing the arrow on as the link would */
.rp-card:active .link-r svg,.ins-feature:active .link-r svg,.ind-card:active .link-r svg{transform:translateX(6px)}
@media(hover:hover){
  .rp-card:hover .link-r svg,.ins-feature:hover .link-r svg,.ind-card:hover .link-r svg{transform:translateX(6px)}
  .rp-card:hover .link-r,.ind-card:hover .link-r{border-bottom-color:var(--red-deep)}
}

/* ---------- pagination ------------------------------------------ */
.rp-pager{display:flex;align-items:center;justify-content:center;gap:8px;
  margin-top:56px;padding-top:40px;border-top:1px solid var(--line-soft)}
.rp-pager a,.rp-pager span{display:flex;align-items:center;justify-content:center;
  min-width:46px;height:46px;padding:0 12px;border:1px solid var(--line);
  font-family:"Instrument Sans",-apple-system,"Segoe UI",Arial,sans-serif;
  font-size:15px;font-weight:600;color:var(--ink);
  transition:background-color .16s,border-color .16s,color .16s}
.rp-pager a{-webkit-tap-highlight-color:transparent}
.rp-pager a:active{background:var(--red);border-color:var(--red);color:var(--white)}
@media(hover:hover){.rp-pager a:hover{background:var(--red);border-color:var(--red);color:var(--white)}}
.rp-pager .current{background:var(--red);border-color:var(--red);color:var(--white)}
.rp-pager .dots{border-color:transparent;color:var(--muted)}

/* ---------- empty state ----------------------------------------- */
.rp-empty{border:1px solid var(--line-soft);background:var(--gray-soft);
  padding:56px 40px;text-align:center}
.rp-empty h2{font-size:var(--f-h3);margin-bottom:10px}
.rp-empty p{max-width:46ch;margin:0 auto 24px}

/* ---------- filter bar ------------------------------------------ */
.rp-filters{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:40px}
.rp-filters a{display:inline-flex;align-items:center;min-height:44px;padding:9px 18px;border:1px solid var(--line);
  font-family:"Instrument Sans",-apple-system,"Segoe UI",Arial,sans-serif;
  font-size:14px;font-weight:600;color:var(--body);transition:background-color .16s,border-color .16s,color .16s;
  -webkit-tap-highlight-color:transparent}
.rp-filters a:active{border-color:var(--red);color:var(--ink)}
@media(hover:hover){.rp-filters a:hover{border-color:var(--red);color:var(--ink)}}
.rp-filters a.is-on{background:var(--red);border-color:var(--red);color:var(--white)}

/* ---------- listing lead: chip and heading beside the introduction */
/* the practice-area and industries listings, and Our People, open on this row */
.lead-split{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);gap:64px;
  align-items:center;margin-bottom:52px}
.lead-split h2{font-size:var(--f-h2);margin-top:14px}
.lead-split__note{font-size:15px;color:var(--body);margin-top:18px}
.lead-split__aside{border-left:1px solid var(--line);padding-left:64px}
.lead-split__aside p{font-size:17px;line-height:1.8;max-width:52ch}

/* ---------- the three assurances above a listing ----------------- */
.feat-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:44px;margin-bottom:56px}
.feat{display:flex;gap:16px;align-items:flex-start}
.feat>.ico{color:var(--red);flex:none;margin-top:2px}
.feat h3{font-size:18px;line-height:1.3}
.feat p{font-size:14px;line-height:1.65;margin-top:6px}

/* ---------- industry photo cards --------------------------------- */
/* the sector's photograph under a charcoal gradient (a stand-in until the editor
   chooses one). The icon sits in a fine-lined glass square that fills red as the card
   is pointed at, and the photograph eases in a touch closer */
.ind-card{position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:9px;
  min-height:320px;padding:24px 24px 22px;background:var(--charcoal);overflow:hidden;isolation:isolate;
  transition:box-shadow .18s,transform .18s;-webkit-tap-highlight-color:transparent}
.ind-card:active{box-shadow:0 8px 22px rgba(20,24,27,.09)}
@media(hover:hover){.ind-card:hover{box-shadow:0 12px 30px rgba(20,24,27,.10);transform:translateY(-2px)}}
/* the card is its own stacking context: the photograph and its gradient lie beneath
   the words, and the title link can still stretch across the whole card */
.ind-card .shot{position:absolute;inset:0;z-index:-2}
.ind-card .shot img{filter:saturate(.8);transition:transform .7s cubic-bezier(.22,.61,.36,1)}
.ind-card::after{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(to top,rgba(11,14,17,.92) 0%,rgba(11,14,17,.55) 45%,rgba(11,14,17,.2) 100%)}
.ind-card__icon{display:flex;align-items:center;justify-content:center;width:56px;height:56px;margin-bottom:auto;
  color:var(--white);background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.38);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  transition:background-color .25s ease,border-color .25s ease}
.ind-card__icon .ico{stroke-width:1.35}
.ind-card:active .ind-card__icon{background:var(--red);border-color:var(--red)}
@media(hover:hover){
  .ind-card:hover .ind-card__icon{background:var(--red);border-color:var(--red)}
  .ind-card:hover .shot img{transform:scale(1.05)}
}
.ind-card h3{color:var(--white);font-size:22px;line-height:1.25}
/* the title link reaches across the whole card; its own pressed state answers the tap */
.ind-card h3 a{-webkit-tap-highlight-color:transparent}
.ind-card h3 a::after{content:"";position:absolute;inset:0;z-index:3}
.ind-card p{color:#D5D9DC;font-size:14px;line-height:1.6;max-width:40ch}
.ind-card .link-r{color:var(--white);font-size:14px;margin-top:8px;align-self:flex-start}

/* a card that opens a profile: the portrait and the name both lead there */
.rp-grid--people a.tcard{display:block;position:relative;-webkit-tap-highlight-color:transparent}
.rp-grid--people a.tcard::after{content:"";position:absolute;inset:0;border:2px solid transparent;transition:border-color .2s ease}
.rp-grid--people a.tcard:active::after{border-color:var(--red)}
.rp-person__name a{color:inherit;transition:color .18s ease}
.rp-person__name a:active{color:var(--red-deep)}
@media(hover:hover){
  .rp-grid--people a.tcard:hover::after{border-color:var(--red)}
  .rp-person__name a:hover{color:var(--red-deep)}
}

/* ---------- the team page's introduction and figures ------------- */
.team-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:60px;align-items:center;
  margin-bottom:50px}
.team-intro .rp-prose{max-width:50ch}
.team-facts{display:flex;align-items:stretch}
.team-fact{display:flex;flex-direction:column;justify-content:center;padding:4px 34px;
  border-left:1px solid var(--line);text-align:center;max-width:200px}
.team-fact .n{font-family:"Playfair Display",Georgia,serif;font-size:36px;font-weight:600;
  color:var(--ink);line-height:1.05}
.team-fact b{font-family:"Playfair Display",Georgia,serif;font-size:19px;font-weight:600;
  color:var(--ink);line-height:1.25}
.team-fact span{font-size:14px;color:var(--body);margin-top:3px}

/* the name and the person's links share the card's first row */
.rp-person__top{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}

@media(max-width:1200px){
  .rp-grid--4{grid-template-columns:repeat(3,1fr)}
  .lead-split{gap:44px}
  .lead-split__aside{padding-left:44px}
  .feat-row{gap:30px}
  .team-fact{padding:4px 24px}
}
@media(max-width:900px){
  .rp-grid--3,.rp-grid--4{grid-template-columns:repeat(2,1fr)}
  .ins-feature{grid-template-columns:1fr}
  .ins-feature .shot{min-height:220px}
  .ins-feature__body{padding:28px 26px 24px}
  .ins-feature h2{font-size:25px}
  .lead-split{grid-template-columns:1fr;gap:26px;margin-bottom:44px}
  .lead-split__aside{border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:26px}
  .feat-row{grid-template-columns:1fr;gap:22px;margin-bottom:44px}
  .team-intro{grid-template-columns:1fr;gap:28px}
  .team-fact:first-child{border-left:0;padding-left:0;text-align:left}
}
@media(max-width:640px){
  .rp-grid--2,.rp-grid--3,.rp-grid--4{grid-template-columns:1fr}
  .ind-card{min-height:260px}
  /* the tabs scroll sideways rather than stacking into a tall wall of links */
  .ins-bar{gap:8px}
  .ins-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:22px}
  .ins-tabs::-webkit-scrollbar{display:none}
  .ins-tabs a{white-space:nowrap}
  .ins-feature__body{padding:24px 20px 22px}
  .ins-feature h2{font-size:22px}
  .team-facts{flex-wrap:wrap;gap:16px 0}
  /* people stay two to a row on a phone: a portrait per screen is a very long page */
  .rp-grid--people{grid-template-columns:repeat(2,1fr);gap:12px}
  .rp-grid--people .rp-card__body{padding:12px 12px 14px}
  .rp-grid--people .rp-person__name{font-size:14.5px;line-height:1.3}
  .rp-card .shot{height:180px}
  .rp-card__body{padding:22px 20px 20px}
  .rp-pager{flex-wrap:wrap}
  .rp-empty{padding:38px 22px}
}

@media(prefers-reduced-motion:reduce){
  .ind-card .shot img,.ind-card__icon{transition:none}
}
