/*
  Designers: a designer's profile (taxonomy-gli_designer.php) and the
  team page (template-designers.php). Loaded on top of front.css and
  taxonomy.css (search box, logo wall), see inc/enqueue.php.
*/

.designer-crumbs{ margin-bottom:34px; }

/* Designer profile (taxonomy-gli_designer.php): a banner card with a
   large photo filling its left side (as tall as the text beside it),
   then name, bio, tags, stats and links. */
.designer-profile{
  display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); align-items:stretch;
  border:1px solid var(--line); border-radius:32px; background:var(--paper); overflow:hidden;
  box-shadow:0 30px 60px -45px rgba(21,19,15,.35);
}
.designer-photo{ position:relative; min-height:460px; background:var(--canvas); }
.designer-photo .gli-avatar{ position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; border:0; border-radius:0; }
.designer-photo .gli-avatar--initials{ display:grid; place-items:center; font-size:clamp(110px,13vw,180px); letter-spacing:-.04em; }
.designer-info{ display:flex; flex-direction:column; justify-content:center; padding:52px 56px; min-width:0; }
.designer-info h1{ margin-top:14px; font-size:clamp(40px,5.2vw,68px); line-height:1; letter-spacing:-.03em; }
.designer-bio{ margin-top:20px; max-width:60ch; font-size:17px; line-height:1.7; color:var(--ink-soft); }
.designer-tags{ list-style:none; display:flex; flex-wrap:wrap; gap:8px; margin:22px 0 0; padding:0; }
.designer-tags li{ padding:6px 12px; border:1px solid var(--line); border-radius:999px; background:var(--paper); font-size:13px; font-weight:600; color:var(--ink); }
.designer-stats{ display:flex; flex-wrap:wrap; gap:14px 40px; margin:28px 0 0; padding-top:22px; border-top:1px dashed var(--line); }
.designer-stats dt{ font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-faint); }
.designer-stats dd{ margin:4px 0 0; font-family:'Bricolage Grotesque',sans-serif; font-size:22px; font-weight:700; color:var(--ink); }
.designer-info > .designer-bio p{ margin:0; }
body.gli-branded .designer-info h1{ margin:14px 0 0; }
.designer-links{ display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }
.designer-link, body.gli-branded a.designer-link{
  display:inline-flex; align-items:center; gap:6px; padding:9px 14px; border:1px solid var(--line); border-radius:999px;
  background:var(--paper); font-size:13.5px; font-weight:700; color:var(--ink); text-decoration:none;
  transition:border-color .2s ease, background .2s ease, color .2s ease;
}
.designer-link:hover{ border-color:var(--ink); }
.designer-link--site, .designer-link--mail, body.gli-branded a.designer-link--site, body.gli-branded a.designer-link--mail{ border-color:var(--ink); background:var(--ink); color:var(--paper); }
.designer-link--site:hover, .designer-link--mail:hover, body.gli-branded a.designer-link--site:hover, body.gli-branded a.designer-link--mail:hover{ background:var(--magenta); border-color:var(--magenta); color:#fff; }
.designer-wall-head{ display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; margin:80px 0 28px; padding-top:40px; border-top:1px solid var(--line); }
.designer-wall-head h2{ font-size:clamp(26px,3vw,36px); }
.designer-wall-head .term-search{ margin:0; max-width:380px; }
.designer-hero .wall-results{ margin-top:0; }

/* Other designers */
.designer-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.designer-card, body.gli-branded a.designer-card{ display:flex; align-items:center; gap:14px; padding:14px; border:1px solid var(--line); border-radius:16px; background:var(--paper); text-decoration:none; color:var(--ink); transition:transform .2s ease, box-shadow .2s ease; }
.designer-card:hover{ transform:translateY(-2px); box-shadow:0 14px 30px -18px rgba(21,19,15,.35); }
.designer-card-photo{ flex:none; width:52px; height:52px; border-radius:50%; object-fit:cover; font-size:18px; }
.designer-card-text{ min-width:0; display:flex; flex-direction:column; gap:2px; }
.designer-card .name{ font-family:'Bricolage Grotesque',sans-serif; font-size:16px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.designer-card .role{ font-size:12.5px; color:var(--ink-soft); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

@media (max-width:1050px){
  .designer-profile{ grid-template-columns:minmax(0,4fr) minmax(0,6fr); }
  .designer-info{ padding:40px 36px; }
  .designer-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px){
  .designer-profile{ grid-template-columns:1fr; border-radius:24px; }
  .designer-photo{ min-height:0; aspect-ratio:4/3; }
  .designer-photo .gli-avatar--initials{ font-size:96px; }
  .designer-info{ padding:28px 22px 30px; }
  .designer-bio{ font-size:16px; }
  .designer-wall-head{ margin-top:56px; padding-top:28px; }
  .designer-wall-head .term-search{ max-width:none; }
}
@media (max-width:520px){
  .designer-grid{ grid-template-columns:1fr; }
}

/* Team page (template-designers.php) */
.page-hero.team-hero{ padding-bottom:8px; }
.page-hero.team-hero .wrap{ max-width:var(--maxw); }
.team-hero .page-hero-sub{ max-width:52ch; }
.team-hero-grid{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:40px; align-items:end; }
.team-stats{ display:flex; gap:12px; margin:0; }
.team-stats > div{ min-width:120px; padding:16px 18px; border:1px solid var(--line); border-radius:16px; background:var(--paper); }
.team-stats dt{ font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-faint); }
.team-stats dd{ margin:6px 0 0; font-family:'Bricolage Grotesque',sans-serif; font-size:30px; font-weight:800; line-height:1; color:var(--ink); }
.team-block{ padding-top:24px; }
.team-toolbar{ display:flex; flex-direction:column; gap:16px; margin-bottom:28px; }
.team-search{ margin:0; max-width:520px; }
.team-filters{ display:flex; flex-wrap:wrap; gap:8px; }
.team-filter{
  display:inline-flex; align-items:center; gap:7px; padding:8px 14px; border:1px solid var(--line); border-radius:999px;
  background:var(--paper); font:600 13px/1.2 'Manrope',sans-serif; color:var(--ink); cursor:pointer; transition:border-color .2s ease, background .2s ease, color .2s ease;
}
.team-filter:hover{ border-color:var(--ink); }
.team-filter.is-active{ border-color:var(--ink); background:var(--ink); color:var(--paper); }

.team-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.team-card{
  position:relative; display:flex; flex-direction:column; padding:22px; border:1px solid var(--line); border-radius:20px; background:var(--paper);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.team-card[hidden]{ display:none; }
.team-card:hover{ transform:translateY(-4px); border-color:var(--ink); box-shadow:0 24px 50px -30px rgba(21,19,15,.45); }
.team-card-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.team-card-photo{ position:relative; width:76px; height:76px; }
.team-card-photo .gli-avatar{ display:block; width:76px; height:76px; border-radius:22px; object-fit:cover; border:1px solid var(--line); font-size:26px; }
.team-card-count{ padding:5px 10px; border-radius:999px; background:var(--canvas); font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:11px; color:var(--ink-soft); white-space:nowrap; }
.team-card-name{ margin-top:18px; font-size:22px; line-height:1.15; letter-spacing:-.02em; }
.team-card-name a::after{ content:""; position:absolute; inset:0; border-radius:inherit; }
.team-card:hover .team-card-name a{ color:var(--magenta); }
.team-card-role{ margin-top:6px; font-size:14px; font-weight:600; color:var(--ink); }
.team-card-loc{ display:block; margin-top:2px; font-weight:500; color:var(--ink-faint); font-size:13px; }
.team-card-bio{
  margin-top:12px; font-size:14px; line-height:1.65; color:var(--ink-soft);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.team-card-tags{ list-style:none; display:flex; flex-wrap:wrap; gap:6px; margin:14px 0 0; padding:0; }
.team-card-tags li{ padding:4px 10px; border:1px solid var(--line); border-radius:999px; font-size:12px; font-weight:600; color:var(--ink); }
.team-card-foot{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto; padding-top:16px; border-top:1px dashed var(--line); }
/* The footer always sits at the card's bottom edge, so every card in a
   row lines up; the 18px gap above it lives on whatever comes before. */
.team-grid .team-card > :nth-last-child(2){ margin-bottom:18px; }

/* Cards are <article>s: undo style.css's 'article + article' post-list
   spacing (which pushed every card after the first down 48px), and
   front.css's 'body.gli-branded h2 / p { margin:0 }' (which flattened the
   gaps between name, role and bio). */
.team-grid > .team-card{ margin:0; }
.team-grid .team-card-name{ margin:18px 0 0; }
.team-grid .team-card-role{ margin:6px 0 0; }
.team-grid .team-card-bio{ margin-top:12px; }
.team-card-go{ margin-left:auto; font-size:13px; font-weight:700; color:var(--ink); white-space:nowrap; }
.team-card:hover .team-card-go{ color:var(--magenta); }

@media (max-width:1050px){
  .team-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .team-hero-grid{ grid-template-columns:1fr; align-items:start; }
}
@media (max-width:680px){
  .team-grid{ grid-template-columns:1fr; }
  .team-stats{ flex-wrap:wrap; }
  .team-stats > div{ flex:1; min-width:0; padding:12px 14px; }
  .team-stats dd{ font-size:24px; }
  .team-filters{ flex-wrap:nowrap; overflow-x:auto; margin-inline:-20px; padding:0 20px 4px; scrollbar-width:none; }
  .team-filter{ flex:none; }
}
