/*
  Taxonomy term detail pages — extends front.css's tokens and shared
  components (nav, footer, .btn, .chip, .mcard, .mark-grid, .news) with
  the one thing specific to a term's own page: its hero (breadcrumb,
  title, description, stats, and the term's cover image/fallback tile).
*/

/* Term hero */
.term-hero{
  position:relative; padding:150px 0 64px;
  background-image:radial-gradient(var(--line) 1px, transparent 1px);
  background-size:26px 26px; background-position:-6px -6px;
}
.term-hero-grid{ display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); gap:40px; align-items:center; }
.term-hero h1{ font-size:clamp(34px,5.2vw,56px); line-height:1; max-width:16ch; }
.term-desc{ margin-top:20px; max-width:52ch; font-size:16px; color:var(--ink-soft); line-height:1.65; }
.term-desc.placeholder{ font-style:italic; color:var(--ink-faint); }
.term-desc > * + *{ margin-top:1em; }
.term-hero-simple .term-desc p + p{ margin-top:.7em; }
.term-stats{ margin-top:30px; display:flex; gap:28px; }
.stat-inline{ display:flex; flex-direction:column; gap:2px; }
.stat-inline .n{ font-family:'Bricolage Grotesque',sans-serif; font-weight:800; font-size:28px; }
.stat-inline .l{ font-size:12px; color:var(--ink-soft); }

.term-hero-visual{ aspect-ratio:1/0.88; }
.term-hero-visual .gli-fallback-tile{ border-radius:var(--radius-sm); }
.gli-term-image{ width:100%; height:100%; object-fit:cover; border:1px solid var(--line); border-radius:var(--radius-sm); }

/* The taxonomy-wide icon (gli_taxonomy_illustration_svg(), a plain
   Phosphor currentColor symbol) sits on a neutral canvas in the
   site's own ink tone — a deliberately plain, single-symbol treatment
   rather than a busy multi-element scene. */
.gli-taxonomy-illustration{ background:var(--canvas); color:var(--ink); }
.gli-taxonomy-illustration svg{ width:34%; height:34%; }

.wall-load-more{ display:flex; justify-content:center; margin-top:36px; }
.wall-load-more[hidden]{ display:none; }
.wall-load-more .btn:disabled{ opacity:.55; cursor:default; }

/* Simplified term hero — title, description, search and the results
   grid all inside one centered section, no breadcrumb/image/stats
   row and no gap before the wall (same "everything lives inside the
   hero" shape front-page.php's own .hero uses). */
.term-hero-simple{ text-align:center; }
.term-hero-simple h1{ margin:0 auto; max-width:100%; }
.term-hero-simple .term-desc{ margin:18px auto 0; }
.term-hero-simple .wall-results{ margin-top:56px; text-align:left; }

.term-search{
  margin:32px auto 0; max-width:560px; width:100%; display:flex; align-items:center; gap:10px;
  border:1.5px solid var(--ink); border-radius:999px; padding:14px 22px; background:var(--paper);
  transition:box-shadow .25s ease;
}
.term-search:focus-within{ box-shadow:0 10px 32px -14px rgba(21,19,15,.28); }
.term-search-icon{ flex:none; color:var(--ink-faint); }
.term-search input{
  flex:1; border:none; outline:none; font-size:15px; min-width:0; text-align:left;
  font-family:'Manrope',sans-serif; color:var(--ink); background:none;
}
.term-search input::placeholder{ color:var(--ink-faint); }

.wall-empty{ padding:60px 20px; text-align:center; border:1px dashed var(--line); border-radius:var(--radius-sm); color:var(--ink-soft); }
.wall-empty[hidden]{ display:none; }


/* FAQ section (inc/term-faqs.php): the heading on the left, the
   questions on the right; plain <details>, no JavaScript. */
.term-faq-grid{ display:grid; grid-template-columns:minmax(0,4fr) minmax(0,7fr); gap:56px; align-items:start; }
.term-faq-head{ position:sticky; top:110px; }
.term-faq-head h2{ margin-top:12px; font-size:clamp(28px,3.4vw,42px); max-width:14ch; }
.term-faq .faq-list{ border-top:1px solid var(--line); }
.term-faq .faq-item{ border-bottom:1px solid var(--line); padding:20px 0; }
.term-faq .faq-item summary{
  cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:16px;
  font-family:'Bricolage Grotesque',sans-serif; font-size:18px; font-weight:700; line-height:1.35; color:var(--ink);
}
.term-faq .faq-item summary::-webkit-details-marker{ display:none; }
.term-faq .faq-item summary::after{
  content:'+'; flex-shrink:0; display:grid; place-items:center; width:28px; height:28px;
  border:1px solid var(--line); border-radius:50%; background:var(--paper);
  font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:16px; line-height:1; color:var(--ink-soft);
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.term-faq .faq-item summary:hover::after{ border-color:var(--ink); color:var(--ink); }
.term-faq .faq-item[open] summary::after{ content:'\2212'; background:var(--magenta); border-color:var(--magenta); color:#fff; }
.term-faq .faq-answer{ margin-top:12px; max-width:64ch; color:var(--ink-soft); font-size:15.5px; line-height:1.75; }
.term-faq .faq-answer p + p{ margin-top:.8em; }
.term-faq .faq-answer a{ color:var(--ink); text-decoration:underline; text-decoration-color:var(--magenta); text-underline-offset:3px; }

/* "How to create a … logo" (inc/term-create-section.php): manual vs AI
   side by side, a "vs" disc between them. */
section.block.term-create{ background:var(--canvas); }
.term-create-head{ max-width:760px; margin-bottom:40px; }
.term-create-head h2{ margin-top:12px; font-size:clamp(28px,3.4vw,42px); }
.term-create-head p{ margin-top:14px; font-size:16px; line-height:1.7; color:var(--ink-soft); }
.term-create-grid{ position:relative; display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); gap:28px; align-items:stretch; }
.tc-panel{ display:flex; flex-direction:column; padding:28px; border:1px solid var(--line); border-radius:22px; background:var(--paper); }
.tc-panel--ai{ border-color:var(--ink); box-shadow:0 24px 50px -36px rgba(21,19,15,.5); }
.tc-label{ display:inline-flex; padding:4px 10px; border-radius:999px; background:var(--canvas); font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-soft); }
.tc-panel--ai .tc-label{ background:var(--magenta); color:#fff; }
.tc-panel-head h3{ margin-top:14px; font-size:22px; line-height:1.2; }
.tc-panel-head p{ margin-top:8px; font-size:14.5px; line-height:1.65; color:var(--ink-soft); }
.tc-facts{ list-style:none; display:flex; flex-wrap:wrap; gap:6px 18px; margin:14px 0 0; padding:12px 0 0; border-top:1px dashed var(--line); font-size:13px; color:var(--ink-soft); }
.tc-facts strong{ font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:10.5px; font-weight:500; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-faint); margin-right:4px; }
.tc-list, .tc-tools{ list-style:none; margin:20px 0 0; padding:0; display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
.tc-list > li, .tc-tools > li{ min-width:0; }
.tc-tools{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.tc-card, body.gli-branded a.tc-card{
  display:flex; align-items:center; gap:12px; height:100%; padding:12px 14px; border:1px solid var(--line); border-radius:14px;
  background:var(--paper); color:var(--ink); text-decoration:none; transition:border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tc-card:hover{ border-color:var(--ink); transform:translateY(-2px); box-shadow:0 12px 26px -18px rgba(21,19,15,.4); }
.tc-card.is-top, body.gli-branded a.tc-card.is-top{ border-color:var(--magenta); background:#fff7fb; }
.tc-avatar{ flex:none; width:44px; height:44px; border-radius:50%; object-fit:cover; font-size:15px; }
.tc-tool-icon{ flex:none; width:44px; height:44px; border-radius:11px; object-fit:cover; }
.tc-tool-icon--letters{ display:grid; place-items:center; background:#111; color:#fff; font-family:'Bricolage Grotesque',sans-serif; font-size:16px; font-weight:800; }
.tc-card-text{ min-width:0; flex:1; display:flex; flex-direction:column; gap:2px; }
.tc-card-name{ display:flex; align-items:center; flex-wrap:wrap; gap:6px; font-family:'Bricolage Grotesque',sans-serif; font-size:15.5px; font-weight:700; line-height:1.25; }
.tc-card-meta{ font-size:12.5px; line-height:1.45; color:var(--ink-soft); }
.tc-card--designer .tc-card-meta{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tc-card-cta{ flex:none; font-size:12.5px; font-weight:700; white-space:nowrap; }
.tc-card:hover .tc-card-cta, .tc-card:hover .tc-card-arrow{ color:var(--magenta); }
.tc-card-arrow{ flex:none; align-self:flex-start; font-size:13px; color:var(--ink-faint); }
.tc-badge{ padding:2px 7px; border-radius:999px; background:var(--magenta); color:#fff; font-family:'IBM Plex Mono',ui-monospace,monospace; font-size:9.5px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; }
.tc-more, body.gli-branded a.tc-more{ margin-top:auto; padding-top:18px; font-size:14px; font-weight:700; color:var(--ink); text-decoration:none; }
.tc-more:hover{ color:var(--magenta); }
.tc-vs{
  position:absolute; left:calc((100% - 28px) * 5 / 12 + 14px); top:50%; transform:translate(-50%,-50%); z-index:1;
  display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--line); border-radius:50%;
  background:var(--paper); font-family:'Bricolage Grotesque',sans-serif; font-size:14px; font-weight:800; color:var(--ink);
}

@media (max-width:900px){
  .term-hero-grid{ grid-template-columns:1fr; }
  .term-faq-grid{ grid-template-columns:1fr; gap:28px; }
  .term-create-grid{ grid-template-columns:1fr; gap:34px; }
  .tc-vs{ position:relative; left:auto; top:auto; transform:none; justify-self:center; margin:-30px 0; grid-row:2; }
  .tc-panel--ai{ grid-row:3; }
  .term-faq-head{ position:static; }
  .term-faq-head h2{ max-width:20ch; }
  .term-hero-visual{ aspect-ratio:16/9; }
}
@media (max-width:680px){
  .term-hero{ padding:120px 0 48px; }
  .term-faq .faq-item summary{ font-size:16.5px; }
  .tc-panel{ padding:22px 18px; }
  .tc-tools{ grid-template-columns:1fr; }
  .tc-card-cta{ display:none; }
}
