/* VBP Glossary — layout styles
   Imports the shared design system, adds glossary-specific components.
   Used by all /glossary/ and /fr/glossaire/ pages (depth-2 relative path). */

@import url("../vbp.css");

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0 0;
  max-width: var(--wrap-reading);
  margin: 0 auto;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--ink); }

/* ── Page wrapper ───────────────────────────────────────────────────────── */
.glossary-page {
  max-width: var(--wrap-reading);
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Term header ────────────────────────────────────────────────────────── */
.term-header {
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}
.term-cat {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.term-header h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.term-lede {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-style: italic;
}

/* ── Article body ───────────────────────────────────────────────────────── */
.term-body p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--ink);
}
.term-body p:last-child { margin-bottom: 0; }

/* ── Worked example ─────────────────────────────────────────────────────── */
.term-example {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 24px 28px;
  margin: 40px 0;
  border-radius: 0 4px 4px 0;
}
.term-example h2 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.term-example p {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

/* ── FAQ section ────────────────────────────────────────────────────────── */
.term-faqs {
  margin: 48px 0;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
}
.term-faqs h2 {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 24px;
}
.faq-item {
  border-bottom: 1px solid var(--rule-soft);
  padding: 0;
}
.faq-item summary {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  padding: 0 0 20px;
  margin: 0;
}

/* ── CTA block ──────────────────────────────────────────────────────────── */
.term-cta {
  margin: 48px 0;
}
.cta-block {
  display: block;
  background: var(--accent);
  color: #fff;
  padding: 24px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.cta-block:hover { opacity: 0.9; }
.cta-block strong {
  display: block;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.cta-block span {
  font-size: 14px;
  opacity: 0.88;
  line-height: 1.5;
}

/* ── Related terms ──────────────────────────────────────────────────────── */
.related-terms {
  margin: 40px 0 24px;
  border-top: 1px solid var(--rule-soft);
  padding-top: 24px;
}
.related-terms h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.related-chip {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 5px 14px;
  margin: 0 6px 8px 0;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.related-chip:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Language link ──────────────────────────────────────────────────────── */
.hreflang-note {
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
}
.hreflang-note a {
  color: var(--accent);
  text-decoration: none;
}
.hreflang-note a:hover { text-decoration: underline; }

/* ── Index page ─────────────────────────────────────────────────────────── */
.glossary-index {
  max-width: var(--wrap-reading);
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.index-header {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}
.index-header h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.1;
  margin-bottom: 16px;
}
.index-intro {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 620px;
}
.cat-heading {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-soft);
}
.term-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4px 24px;
}
.term-list li a {
  display: block;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s;
}
.term-list li a:hover { color: var(--accent); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .glossary-page, .glossary-index { padding-left: 16px; padding-right: 16px; }
  .term-header h1 { font-size: 28px; }
  .term-list { grid-template-columns: 1fr; }
  .cta-block { padding: 20px; }
}
