/* ==========================================================================
   page-glossary.css — Alphabetical navigation + indexed content sections
   Extracted 2026-05-12 css-master refactor. Conditionally enqueued via
   inc/setup.php on is_page('glossary'). Houses .alpha-nav (the A–Z picker),
   .letter-section (heading + content grid per letter), and .glossary-search
   (the live-filter input above the nav).
   ========================================================================== */

/* ==========================================================================
   Alphabetical navigation + indexed content sections
   ========================================================================== */

/* --- Glossary search (designer pass 2026-05-12) -------------------------
   Promoted from sidebar-widget aesthetic to the primary directory scan
   tool: 480px max-width, inline search glyph at left, 1.5px border that
   darkens on focus, and a separate quiet meta line carrying the term
   count instead of stuffing both label + count into the placeholder. */
.glossary-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.5rem;
}
.glossary-search__field {
  position: relative;
  flex: 1 1 320px;
  max-width: 480px;
}
.glossary-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-muted);
  pointer-events: none;
}
.glossary-search__input {
  width: 100%;
  padding: 0.75rem 0.875rem 0.75rem 2.6rem;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  background: #ffffff;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.glossary-search__input:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.12);
}
.glossary-search__input::placeholder {
  color: var(--color-muted);
  opacity: 1;
}
.glossary-search__meta {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  flex: 0 0 auto;
}

/* --- A–Z picker (designer pass 2026-05-12) ----------------------------
   Replaces underlined-anchors-in-a-row (the 2015-theme tell) with a
   27-cell keyboard grid of square mono tiles. Empty letters keep their
   slot at opacity 0.35 so the grid reads as "directory is complete"
   rather than gappy. The trailing `#` cell is the 27th tile, always
   present (linked or ghost). */
.alpha-nav {
  display: grid;
  grid-template-columns: repeat(27, 1fr);
  gap: 4px;
  margin: 0 0 2rem;
  max-width: 760px;
}
.alpha-nav__link,
.alpha-nav__ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.alpha-nav__link:hover,
.alpha-nav__link:focus-visible {
  outline: none;
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}
.alpha-nav__ghost {
  opacity: 0.35;
  pointer-events: none;
}

/* Narrow viewports: a 27-cell row at small widths produces ~12px tiles —
   too tight to tap. Split into two stacked rows of 14 + 13 (last cell
   spans the `#`) so cells stay around tap-target size. */
@media (max-width: 720px) {
  .alpha-nav {
    grid-template-columns: repeat(14, 1fr);
    max-width: none;
  }
}
@media (max-width: 420px) {
  .alpha-nav {
    grid-template-columns: repeat(9, 1fr);
  }
}

/* --- Letter-grouped content sections (A, B, C…) ------------------------- */

@keyframes letter-section-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Letter-section heading — sticky pin so the current letter stays visible
   while scrolling its card block (designer pass 2026-05-12). Shrunk from
   ~64px tombstone to a 40px gold marker. scroll-margin-top on the section
   itself keeps anchor-link jumps from the A–Z grid landing under the
   sticky site header. The backdrop-blur + translucent fill lets the
   heading work whether the page background is the cream archive surface
   or any other tone — no per-theme background lookup needed. */
.letter-section {
  scroll-margin-top: 96px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.letter-section__heading {
  position: sticky;
  top: 72px;
  z-index: 2;
  margin: 0 0 1rem;
  padding: 0.35rem 0.5rem;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-gold);
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Glossary cards — five-part designer pass 2026-05-12:
   1. Card boundary: 2px transparent left border that turns gold on
      hover/focus-within. Accent on intent, quiet at rest. No background.
   2. Title: kill the default body-link underline (category error on 28px
      display type). No underline at rest; gold underline at 6px offset
      on hover/focus.
   3. Meta: 12.5px muted grey, line-clamp 2 so synonym lists stop
      swallowing the definition. Visible "Also called:" label removed in
      the template; SR text preserved for AT.
   4. Definition: 15px / 1.55 / max 58ch. Once meta recedes, this becomes
      the obvious read.
   5. Scoped via .letter-section so other .content-card usages elsewhere
      in the theme aren't affected. */
.letter-section .content-card {
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  transition: border-color 0.15s ease;
}
.letter-section .content-card:hover,
.letter-section .content-card:focus-within {
  border-left-color: var(--color-gold);
}

.letter-section .content-card__title {
  margin: 0 0 0.4rem;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.2rem, 1rem + 0.55vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--color-text-strong, var(--color-text));
}
.letter-section .content-card__title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 0;
}
.letter-section .content-card__title a:hover,
.letter-section .content-card__title a:focus-visible {
  outline: none;
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.letter-section .content-card__meta {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: 0.005em;
  color: var(--color-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.letter-section .content-card__definition {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 58ch;
  color: var(--color-text);
}

/* --- Search hero (extends archive-hero) ---- */







/* --- Events archive: tighten timeline padding --- */

/* --- Blog index: featured horizontal hero + 3-col grid below --- */

/* --- Mobile adjustments --- */
@media (max-width: 760px) {
  .archive-hero__header h1 {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }

  

  
}


/* Contact page – direct contact, hero actions, process, FAQ section */

/* --- Contact page: layout variants --- */

/* 66% width for extras/FAQ below content */

/* Archive gateway sections (intro / how to choose / FAQ) */
.archive-gateway-intro {
  /* Stay aligned with the 1160px grid; cap text line-length on inner paragraphs instead. */
  margin-block: 1.5rem 0.5rem;
  display: grid;
  grid-template-columns: minmax(0, 56px) minmax(0, 1fr);
  gap: 0 1.4rem;
  align-items: start;
}
.archive-gateway-intro__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--color-accent, var(--color-accent));
  margin-top: 0.4rem;
}
.archive-gateway-intro__icon svg {
  width: 100%; height: 100%;
}
.archive-gateway-intro__body {
  max-width: 65ch;
}
@media (max-width: 720px) {
  .archive-gateway-intro {
    grid-template-columns: 1fr;
    gap: 0.75rem 0;
  }
  .archive-gateway-intro__icon { width: 36px; height: 36px; margin-top: 0; }
}
.archive-gateway-intro__para {
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}





.archive-grid-heading {
  margin: 2rem 0 0.8rem;
}
.archive-grid-heading h2 {
  font-family: "Sora", sans-serif;
  font-size: 1.25rem;
  margin: 0;
}

/* Case-studies archive heading (designer pass 2026-05-12 revision) —
   promoted from a quiet 1.25rem footnote-style heading to a proper
   section header, single-line. The eyebrow that previously sat above
   the H2 was dropped — "Selected work / Engagement deep-dives" was the
   double-decker theme tell. A short promise line beneath the H2 now
   sets reader expectation for what each case study contains. */
.archive-grid-heading--case-studies {
  margin: clamp(2rem, 4vw, 3rem) 0 1.5rem;
}
.archive-grid-heading--case-studies h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.18;
  color: var(--color-text-strong, var(--color-text));
}
.archive-grid-heading--case-studies .archive-grid-heading__promise {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 60ch;
}

/* Case-studies listing — designer pass 2026-05-12. The template wraps each
   card body in a single stretched anchor (.case-listing__link), so the
   only job here is dressing the unstyled browser default:
     - Strip <ul> bullets/padding so the list doesn't read as raw prose.
     - Card boundary: 1px hairline border + 3px navy accent rail on the
       left, gold on :hover/:focus-within. Matches the glossary card system.
     - Suppress inherited <a> underlines on every text node inside the card.
     - Hierarchy inside each card: client (small uppercase muted) → title
       (navy bold, no underline at rest) → lead (body grey, 16px) → CTA
       (small muted hint that reads as a footer label rather than a
       competing third link).
   The metric callout column (when present) stays as the prominent left-
   side proof number; it doesn't need to fight the title for attention. */
.case-listing {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.case-listing__card {
  position: relative;
  margin: 0;
  padding: 0;
}
.case-listing__link {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  padding: clamp(1.25rem, 2vw, 1.5rem);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: 6px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.case-listing__card:not(:has(.case-listing__metric)) .case-listing__link {
  grid-template-columns: 1fr;
}
.case-listing__link:hover,
.case-listing__link:focus-visible {
  outline: none;
  border-color: var(--color-border);
  border-left-color: var(--color-gold);
  box-shadow: 0 8px 20px -10px rgba(11, 31, 58, 0.15);
}

.case-listing__metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-right: clamp(0.75rem, 2vw, 1.25rem);
  border-right: 1px solid var(--color-border);
}
.case-listing__metric-value {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-gold);
}
.case-listing__metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  line-height: 1.3;
}

.case-listing__body {
  min-width: 0;
}
.case-listing__client {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.case-listing__title {
  margin: 0 0 0.5rem;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.22;
  color: var(--color-text-strong, var(--color-text));
}
.case-listing__link:hover .case-listing__title,
.case-listing__link:focus-visible .case-listing__title {
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.case-listing__lead {
  margin: 0 0 0.85rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--color-text);
  max-width: 60ch;
}
.case-listing__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.15s ease;
}
.case-listing__link:hover .case-listing__cta,
.case-listing__link:focus-visible .case-listing__cta {
  color: var(--color-accent);
}

/* Narrow viewports: stack the metric above the body instead of fighting
   for column space at < 600px wide. */
@media (max-width: 640px) {
  .case-listing__link {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .case-listing__metric {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
    padding-right: 0;
    padding-bottom: 0.75rem;
    flex-direction: row;
    align-items: baseline;
    gap: 0.6rem;
  }
}

/* "More in Portfolio" tile variant (designer pass 2026-05-12). Absorbs
   the previously-orphaned "Looking for something different?" prompt
   into the listing as a third card. Tonal cream-on-cream + dashed left
   rail so the eye reads it as "and there's more elsewhere" rather than
   "and now a third case study." */
.case-listing__card--more .case-listing__link {
  border-style: dashed;
  border-color: var(--color-border);
  border-left-style: dashed;
  border-left-color: var(--color-border);
  background: transparent;
}
.case-listing__card--more .case-listing__link:hover,
.case-listing__card--more .case-listing__link:focus-visible {
  border-color: var(--color-gold);
  border-left-color: var(--color-gold);
  box-shadow: none;
}
.case-listing__card--more .case-listing__client {
  color: var(--color-muted);
}
.case-listing__card--more .case-listing__title {
  color: var(--color-accent);
}

/* "Sectors covered" row in the bio panel (designer pass 2026-05-12). A
   compact third meta line under the credentials list — folds in the
   former standalone case-studies trust strip so the same claim isn't
   made twice on the page. */
.author-bio__sectors {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-text);
}
.author-bio__sectors-label {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-right: 0.4em;
}
.author-bio__sectors-list {
  font-weight: 500;
}
/* FAQ component styles relocated to main.css (2026-05-14) — the
   template-parts/faq-section.php partial is rendered site-wide,
   so its CSS belongs in the always-loaded sheet, not here. */

