/* ============================================================
   Lazuli Management - term-archive.css
   Category / Tag archive content zones: intro, SEO, FAQ.
   Keys to tokens.css custom properties + stable class names.
   tokens.css is a STAGING-ONLY artifact (handle 'lazuli-management-tokens',
   this file's enqueue dependency); V9 confirms it is deployed.

   NOT wrapped in @layer: cascade layers lose to the theme's UNLAYERED
   Elementor/Hello rules regardless of specificity, which previously broke
   the FAQ summary flex layout. These are normal author rules that win by
   specificity (class selectors).

   The FAQ block is a faithful visual match to the homepage FAQ (Elementor
   nested-accordion 6f1dfbb / #owner-questions): white card, 1px yellow-55%
   border, 18px radius, numbered "01." prefix, Inter 18px/600 navy-ink
   question, chevron that turns yellow + flips when open. The few 18px / 22px
   / 24px literals below are intentional pixel-exact matches to that home
   component, not design-scale tokens.
   No page-ID selectors. No em-dash.
   ============================================================ */

/* ZONE BASE - the zones render FULL content-width (direct children of the
   boxed 1280 content container, above and below the post-row, NOT inside the
   65% post column). They carry the standard 24px content gutter so their text
   aligns with the header and the homepage sections. The sidebar only flanks
   the post list, never the intro/SEO/FAQ. */
.lz-term-intro,
.lz-term-seo,
.lz-term-faq {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  padding-inline: 20px;   /* aligns the zone text with the post list (boxed edge + 20px row gutter) */
  font-family: var(--font-body);
  color: var(--ink-2);
}

/* ZONE A - INTRO (above the post list) */
.lz-term-intro { margin-block-end: var(--space-8); }
.lz-term-intro > * + * { margin-block-start: var(--space-5); }
.lz-term-intro p {
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--ink-2);
  margin: 0;
}
.lz-term-intro strong { font-weight: 600; color: var(--ink); }

/* ZONE B - SEO SECTION (below the post list) */
.lz-term-seo {
  margin-block-start: var(--space-10);
  border-block-start: var(--border-hairline);
  padding-block-start: var(--space-8);
}
.lz-term-seo > * { margin: 0; }
.lz-term-seo > * + * { margin-block-start: var(--space-5); }

/* H2 = top-level content section under the page H1 (no H1->H3 skip). */
.lz-term-seo h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  font-weight: 700;
  color: var(--ink);
  margin-block-start: var(--space-7);
}
.lz-term-seo h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
  font-weight: 600;
  color: var(--ink);
  margin-block-start: var(--space-6);
}
.lz-term-seo h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
  margin-block-start: var(--space-6);
}
.lz-term-seo :is(h2, h3, h4) + * { margin-block-start: var(--space-4); }

.lz-term-seo p,
.lz-term-seo li {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--ink-2);
}
.lz-term-seo strong { font-weight: 600; color: var(--ink); }
.lz-term-seo em { font-style: italic; color: var(--navy-ink); }
.lz-term-seo ul,
.lz-term-seo ol { padding-inline-start: var(--space-5); }
.lz-term-seo li + li { margin-block-start: var(--space-3); }

/* In-content links (zones A, B, C) */
.lz-term-intro a,
.lz-term-seo a,
.lz-faq__answer a {
  color: var(--navy);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: text-decoration-thickness var(--duration-fast) var(--ease-base),
              color var(--duration-fast) var(--ease-base);
}
.lz-term-intro a:hover,
.lz-term-seo a:hover,
.lz-faq__answer a:hover {
  color: var(--navy-ink);
  text-decoration-thickness: 2px;
}

/* ZONE C - FAQ ACCORDION (native <details>), matched to the home FAQ */
.lz-term-faq { margin-block-start: var(--space-9); }
/* Scoped under .lz-term-faq so it out-specifies the Elementor kit h2 rule
   (.elementor-kit-9 h2, specificity 0,1,1) which otherwise forces 48px. */
.lz-term-faq .lz-term-faq__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 var(--space-6) 0;
}
.lz-faq__list { display: flex; flex-direction: column; gap: var(--space-3); }

.lz-faq__item {
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--yellow) 55%, transparent);
  border-radius: var(--radius-card);
  overflow: hidden;
}

/* Question row: number + H3 question + chevron, vertically centered. */
.lz-faq__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 22px 24px;            /* pixel-exact match to home title padding */
  -webkit-tap-highlight-color: transparent;
}
.lz-faq__q::-webkit-details-marker { display: none; }

.lz-faq__num {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 1.125rem;          /* 18px - match home .faq-num */
  font-weight: 700;
  line-height: 1.4;
  color: var(--yellow-ink);
}

/* Scoped under .lz-term-faq so the H3 out-specifies .elementor-kit-9 h3
   (0,1,1), which otherwise forces Inter Tight 32px/700. */
.lz-term-faq .lz-faq__q-text { /* the <h3> question - reset heading defaults */
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;          /* 18px - match home question */
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

/* Chevron: navy at rest, yellow + flipped up when open (matches home). */
.lz-faq__icon {
  flex: 0 0 auto;
  margin-inline-start: auto;
  position: relative;
  inline-size: 16px;
  block-size: 16px;
}
.lz-faq__icon::before {
  content: "";
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 4px;
  inline-size: 8px;
  block-size: 8px;
  border-right: 2px solid var(--navy-ink);
  border-bottom: 2px solid var(--navy-ink);
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform var(--duration-fast) var(--ease-base),
              border-color var(--duration-fast) var(--ease-base);
}
.lz-faq__item[open] .lz-faq__icon::before {
  transform: rotate(225deg);
  border-color: var(--yellow);
}

/* Answer */
.lz-faq__answer {
  padding: 0 24px 22px 24px;    /* match home content padding */
  color: var(--ink-2);
}
.lz-faq__answer > * { margin: 0; }
.lz-faq__answer > * + * { margin-block-start: var(--space-4); }
.lz-faq__answer p,
.lz-faq__answer li {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}
.lz-faq__answer strong { font-weight: 600; color: var(--ink); }
.lz-faq__answer ul,
.lz-faq__answer ol { padding-inline-start: var(--space-5); }

/* Focus-visible: global double-ring */
.lz-faq__q:focus-visible,
.lz-term-intro a:focus-visible,
.lz-term-seo a:focus-visible,
.lz-faq__answer a:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}
.lz-faq__q:focus-visible { border-radius: var(--radius-card); }

/* RESPONSIVE */
@media (max-width: 1023.98px) {
  .lz-term-seo h2 { font-size: var(--text-xl); }
}
@media (max-width: 767.98px) {
  .lz-term-intro,
  .lz-term-seo,
  .lz-term-faq { padding-inline: 16px; }
  .lz-term-intro p { font-size: var(--text-base); line-height: var(--leading-relaxed); }
  .lz-term-seo { margin-block-start: var(--space-9); padding-block-start: var(--space-7); }
  .lz-term-seo h2 { font-size: var(--text-xl); }
  .lz-term-seo h3 { font-size: var(--text-lg); }
  .lz-term-seo :is(h3, h4) { margin-block-start: var(--space-6); }
  .lz-term-faq { margin-block-start: var(--space-8); }
  .lz-term-faq .lz-term-faq__title { font-size: var(--text-xl); }
  .lz-faq__q { padding: 18px; }
}
