/* Trudian FAQ Library — technical buyer-answer system */
:root {
  --faq-ink: #081a2c;
  --faq-navy: #0d2942;
  --faq-blue: #2368d3;
  --faq-cyan: #67b9df;
  --faq-paper: #edf3f6;
  --faq-surface: #ffffff;
  --faq-surface-muted: #f7fafc;
  --faq-line: #d5e1e8;
  --faq-line-strong: #b9ccd7;
  --faq-muted: #526a79;
  --faq-amber: #b7791f;
  --faq-violet: #7357a6;
  --faq-radius-sm: 8px;
  --faq-radius-md: 13px;
  --faq-radius-lg: 18px;
  --faq-shadow-1: 0 1px 2px rgba(7, 27, 44, .05), 0 7px 18px rgba(24, 54, 76, .06);
  --faq-shadow-2: 0 2px 4px rgba(7, 27, 44, .05), 0 18px 42px rgba(24, 54, 76, .1);
  --faq-shadow-3: 0 3px 8px rgba(3, 17, 29, .12), 0 32px 80px rgba(2, 18, 31, .26);
}

body.faq-library-page {
  background: var(--faq-paper);
  color: var(--faq-ink);
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

.faq-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.faq-library-page .breadcrumb-shell {
  position: relative;
  z-index: 2;
  background: #f8fafb;
  border-bottom-color: var(--faq-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9), 0 7px 18px rgba(19, 48, 69, .04);
}

.faq-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.4rem, 8vw, 7.4rem) 0 clamp(4rem, 7vw, 6.7rem);
  border-bottom: 1px solid rgba(148, 196, 224, .18);
  background:
    radial-gradient(circle at 76% 25%, rgba(50, 126, 173, .2), transparent 31%),
    radial-gradient(circle at 16% 88%, rgba(36, 104, 211, .12), transparent 32%),
    linear-gradient(118deg, #061624 0%, #0a2135 55%, #102f4a 100%);
  color: #fff;
  box-shadow: inset 0 -1px rgba(255, 255, 255, .06);
}

.faq-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(141, 191, 222, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 191, 222, .06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(105deg, #000, rgba(0, 0, 0, .72) 48%, transparent 78%);
  content: "";
}

.faq-hero::after {
  position: absolute;
  top: -210px;
  right: -160px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(115, 185, 220, .2);
  border-radius: 50%;
  box-shadow:
    0 0 0 54px rgba(115, 185, 220, .045),
    0 0 0 108px rgba(115, 185, 220, .022),
    inset 0 0 80px rgba(84, 169, 216, .035);
  content: "";
}

.faq-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(400px, .9fr);
  gap: clamp(2.5rem, 4.5vw, 4.5rem);
  align-items: center;
}

.faq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
  color: #91cae8;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.faq-eyebrow::before {
  width: 30px;
  height: 2px;
  background: currentColor;
  content: "";
}

.faq-hero h1 {
  max-width: 700px;
  margin: 0 0 1.2rem;
  color: #fff;
  font-size: clamp(2.7rem, 5.3vw, 4.85rem);
  line-height: .98;
  letter-spacing: -.055em;
  text-shadow: 0 12px 36px rgba(0, 0, 0, .18);
}

.faq-hero-copy > p {
  max-width: 580px;
  margin: 0;
  color: #b8c9d6;
  font-size: 1rem;
  line-height: 1.75;
}

.faq-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  margin-top: 2rem;
}

.faq-ledger div {
  padding: .95rem .85rem;
  border: 1px solid rgba(165, 202, 225, .2);
  border-radius: var(--faq-radius-sm);
  background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
  box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 9px 20px rgba(0, 0, 0, .08);
}

.faq-ledger strong { display: block; color: #fff; font-size: 1.35rem; line-height: 1.15; }
.faq-ledger span { color: #8da7b9; font-size: .65rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

.faq-query-console {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 520px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(159, 205, 232, .42);
  border-top: 4px solid var(--faq-cyan);
  border-radius: var(--faq-radius-lg);
  background: linear-gradient(145deg, rgba(24, 59, 88, .98), rgba(13, 42, 66, .98));
  box-shadow: var(--faq-shadow-3), inset 0 1px rgba(255, 255, 255, .08);
}

.faq-query-console::before {
  position: absolute;
  top: -42%;
  right: -12%;
  z-index: -1;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 185, 223, .16), transparent 68%);
  content: "";
}

.faq-console-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid rgba(159, 205, 232, .2);
  background: rgba(6, 25, 41, .18);
  color: #9fc6dd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.faq-console-head span:last-child { display: inline-flex; align-items: center; gap: .45rem; color: #84d8b0; }
.faq-console-head span:last-child::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(132, 216, 176, .1); content: ""; }
.faq-console-body { padding: 1.35rem; }
.faq-console-body label { display: block; margin-bottom: .55rem; color: #fff; font-size: .82rem; font-weight: 800; }

.faq-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .65rem;
}

.faq-search-input,
.faq-filter-select {
  width: 100%;
  min-height: 50px;
  border: 1px solid #8aa8ba;
  border-radius: var(--faq-radius-sm);
  background: #fff;
  color: var(--faq-ink);
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(9, 34, 53, .07), 0 1px 0 rgba(255, 255, 255, .12);
}

.faq-search-input { padding: .75rem 1rem; }
.faq-filter-select { padding: .75rem 2.4rem .75rem .85rem; }
.faq-search-input::placeholder { color: #7b8e9b; }

.faq-search-submit,
.faq-clear-button,
.faq-more-button {
  min-height: 50px;
  border: 1px solid var(--faq-blue);
  border-radius: var(--faq-radius-sm);
  background: linear-gradient(180deg, #2d75df, #1f5ec1);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(14, 70, 157, .28), inset 0 1px rgba(255, 255, 255, .2);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.faq-search-submit { padding: .75rem 1.15rem; }
.faq-clear-button { display: none; margin-top: .7rem; padding: .6rem .85rem; border-color: #7b93a4; background: transparent; color: #d5e5ef; }
.faq-clear-button.is-visible { display: inline-flex; align-items: center; }
.faq-more-button { display: block; margin: 1.5rem auto 0; padding: .7rem 1.25rem; }
.faq-search-submit:hover,
.faq-more-button:hover { border-color: #347be5; background: linear-gradient(180deg, #347be5, #205fc2); box-shadow: 0 11px 24px rgba(14, 70, 157, .32), inset 0 1px rgba(255, 255, 255, .22); transform: translateY(-1px); }

.faq-search-input:focus-visible,
.faq-filter-select:focus-visible,
.faq-search-submit:focus-visible,
.faq-clear-button:focus-visible,
.faq-more-button:focus-visible,
.faq-category-card:focus-visible,
.faq-library-item summary:focus-visible,
.faq-result-link:focus-visible {
  outline: 3px solid #96d4f3;
  outline-offset: 3px;
}

.faq-console-hint {
  margin: .8rem 0 0;
  color: #98afbf;
  font-size: .72rem;
  line-height: 1.55;
}

.faq-library-main {
  position: relative;
  isolation: isolate;
  padding: clamp(4.2rem, 7vw, 6.8rem) 0;
  background:
    radial-gradient(circle at 7% 8%, rgba(103, 185, 223, .09), transparent 25rem),
    radial-gradient(circle at 93% 48%, rgba(35, 104, 211, .055), transparent 30rem),
    linear-gradient(180deg, #f8fafb 0%, #eef3f6 52%, #f5f8fa 100%);
  box-shadow: inset 0 1px #fff;
}

.faq-library-main::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 520px;
  background-image:
    linear-gradient(rgba(54, 103, 132, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 103, 132, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(#000, transparent 90%);
  content: "";
}

.faq-section-head {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--faq-line);
}

.faq-section-head::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 116px;
  height: 2px;
  background: linear-gradient(90deg, var(--faq-blue), var(--faq-cyan));
  content: "";
}

.faq-section-head h2 {
  max-width: 720px;
  margin: .55rem 0 0;
  color: var(--faq-ink);
  font-size: clamp(1.9rem, 4vw, 3.05rem);
  line-height: 1.07;
  letter-spacing: -.055em;
}

.faq-section-head p {
  max-width: 450px;
  margin: 0;
  color: var(--faq-muted);
  font-size: .86rem;
  line-height: 1.65;
}

.faq-section-label {
  color: #3a7294;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.faq-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.15rem;
}

.faq-category-card {
  --faq-card-accent: #2f75b7;
  --faq-card-soft: #edf6fb;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-column: span 2;
  grid-template-columns: 66px minmax(0, 1fr) 24px;
  gap: 1rem;
  min-height: 208px;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid rgba(185, 204, 215, .88);
  border-radius: var(--faq-radius-md);
  background: linear-gradient(145deg, #fff 0%, #fff 70%, #f7fafc 100%);
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--faq-shadow-1), inset 0 1px #fff;
  transition: transform .22s ease-out, box-shadow .22s ease-out, border-color .22s ease-out;
}

.faq-category-card:nth-child(2) { --faq-card-accent: #2484a8; --faq-card-soft: #edf8fa; }
.faq-category-card:nth-child(3) { --faq-card-accent: #2e806c; --faq-card-soft: #eef8f4; }
.faq-category-card:nth-child(4) { --faq-card-accent: #a06c21; --faq-card-soft: #fff7e9; grid-column: span 3; }
.faq-category-card:nth-child(5) { --faq-card-accent: #67529b; --faq-card-soft: #f5f1fb; grid-column: span 3; }

.faq-category-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--faq-card-accent), transparent 84%);
  content: "";
}

.faq-category-card::after {
  position: absolute;
  top: -78px;
  right: -78px;
  z-index: -1;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--faq-card-soft);
  opacity: .78;
  content: "";
}

.faq-category-card:hover {
  z-index: 2;
  border-color: var(--faq-line-strong);
  color: inherit;
  box-shadow: 0 4px 8px rgba(8, 31, 49, .06), 0 24px 54px rgba(22, 59, 84, .15);
  transform: translateY(-5px);
}

.faq-category-card:active { transform: translateY(-1px); }

.faq-category-index {
  display: grid;
  place-items: center;
  align-self: start;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(164, 188, 201, .8);
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, var(--faq-card-soft));
  color: var(--faq-card-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .74rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 50, 73, .08), inset 0 1px #fff;
}

.faq-category-card h3 { margin: 0 0 .55rem; color: var(--faq-ink); font-size: 1.03rem; line-height: 1.35; }
.faq-category-card p { margin: 0; color: var(--faq-muted); font-size: .8rem; line-height: 1.62; }
.faq-category-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.faq-category-meta span { padding: .25rem .48rem; border: 1px solid #d7e2e8; border-radius: 999px; background: rgba(248, 250, 251, .92); color: #587180; font-size: .62rem; font-weight: 800; }
.faq-category-arrow { color: var(--faq-card-accent); font-size: 1.1rem; transition: transform .22s ease-out; }
.faq-category-card:hover .faq-category-arrow { transform: translateX(3px); }

.faq-search-workspace { margin-top: clamp(4.5rem, 7vw, 6.2rem); }
.faq-search-toolbar { display: grid; grid-template-columns: 1fr 270px; gap: .75rem; margin-bottom: 1rem; }
.faq-search-toolbar .faq-search-input,
.faq-search-toolbar .faq-filter-select { border-color: #b9cbd5; }

.faq-result-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 1rem;
  padding: .38rem .7rem;
  border: 1px solid #d1e0e8;
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: var(--faq-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
}

.faq-results { display: grid; gap: 1rem; }

.faq-result {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 150px;
  gap: 1.25rem;
  align-items: center;
  overflow: hidden;
  padding: 1.3rem 1.35rem;
  border: 1px solid rgba(195, 211, 220, .9);
  border-left: 4px solid #62a9ce;
  border-radius: var(--faq-radius-md);
  background: linear-gradient(125deg, #fff 0%, #fff 82%, #f6fafc 100%);
  box-shadow: var(--faq-shadow-1), inset 0 1px #fff;
  transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s ease-out;
}

.faq-result:hover { border-color: #b8cfdb; box-shadow: 0 3px 7px rgba(8, 31, 49, .05), 0 18px 38px rgba(22, 59, 84, .11); transform: translateY(-2px); }

.faq-result-category {
  justify-self: start;
  padding: .36rem .55rem;
  border: 1px solid #d2e1e9;
  border-radius: 999px;
  background: #f1f7fa;
  color: #477997;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.faq-result h3 { margin: 0 0 .4rem; color: var(--faq-ink); font-size: 1rem; line-height: 1.38; }
.faq-result p { margin: 0; color: var(--faq-muted); font-size: .82rem; line-height: 1.62; }
.faq-result-match { display: block; margin-top: .42rem; color: #708694; font-size: .66rem; }
.faq-result-link { display: inline-flex; align-items: center; justify-content: center; justify-self: end; min-height: 44px; padding: .62rem .82rem; border: 1px solid #c1d4df; border-radius: var(--faq-radius-sm); background: #f8fbfd; color: #235eae; font-size: .74rem; font-weight: 800; text-decoration: none; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.faq-result-link:hover { border-color: var(--faq-blue); background: var(--faq-blue); color: #fff; text-decoration: none; transform: translateY(-1px); }

.faq-empty {
  padding: 2rem;
  border: 1px dashed #aebfc9;
  border-radius: var(--faq-radius-md);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--faq-shadow-1);
  text-align: center;
}
.faq-empty h3 { margin-bottom: .45rem; }
.faq-empty p { margin: 0; color: var(--faq-muted); }

.faq-governance {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  overflow: hidden;
  margin-top: clamp(4rem, 8vw, 7rem);
  border: 1px solid var(--faq-line-strong);
  border-radius: var(--faq-radius-lg);
  background: #fff;
  box-shadow: var(--faq-shadow-2), inset 0 1px #fff;
}

.faq-governance-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(1.7rem, 4vw, 3rem);
  border-left: 5px solid #d2a24c;
  background:
    radial-gradient(circle at 100% 0, rgba(102, 174, 212, .18), transparent 46%),
    linear-gradient(145deg, #10283d, #183c58);
}
.faq-governance-copy::after { position: absolute; right: -56px; bottom: -72px; width: 180px; height: 180px; border: 1px solid rgba(132, 190, 222, .15); border-radius: 50%; box-shadow: 0 0 0 32px rgba(132, 190, 222, .03); content: ""; }
.faq-governance-copy .faq-section-label { color: #e4bd73; }
.faq-governance-copy h2 { margin: .65rem 0 .8rem; color: #fff; font-size: 2rem; line-height: 1.12; }
.faq-governance-copy p { margin: 0; color: #b7c8d3; font-size: .84rem; line-height: 1.7; }

.faq-governance-rules { display: grid; grid-template-columns: repeat(2, 1fr); background: linear-gradient(145deg, #fff, #f7fafc); }
.faq-governance-rule { padding: 1.6rem; border-right: 1px solid var(--faq-line); border-bottom: 1px solid var(--faq-line); transition: background-color .2s ease; }
.faq-governance-rule:hover { background: rgba(234, 244, 249, .56); }
.faq-governance-rule:nth-child(2n) { border-right: 0; }
.faq-governance-rule:nth-last-child(-n + 2) { border-bottom: 0; }
.faq-governance-rule b { display: block; margin-bottom: .45rem; color: #477997; font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; }
.faq-governance-rule p { margin: 0; color: var(--faq-muted); font-size: .75rem; line-height: 1.58; }

.faq-category-hero { padding-bottom: clamp(3.8rem, 7vw, 6rem); }
.faq-category-hero .faq-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(330px, .72fr); }
.faq-category-route { overflow: hidden; padding: 1.5rem; border: 1px solid rgba(159, 205, 232, .38); border-radius: var(--faq-radius-md); background: linear-gradient(145deg, rgba(23, 58, 86, .96), rgba(14, 44, 68, .94)); box-shadow: var(--faq-shadow-3), inset 0 1px rgba(255, 255, 255, .08); }
.faq-category-route b { display: block; margin-bottom: .55rem; color: #8fc8e8; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.faq-category-route p { margin: 0 0 1rem; color: #c0d0da; font-size: .8rem; line-height: 1.6; }
.faq-category-route a { color: #fff; font-size: .78rem; font-weight: 800; }

.faq-category-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.faq-category-aside {
  position: sticky;
  top: 94px;
  overflow: hidden;
  border: 1px solid var(--faq-line);
  border-top: 3px solid #7cadc7;
  border-radius: var(--faq-radius-md);
  background: #fff;
  box-shadow: var(--faq-shadow-2);
}

.faq-category-aside h2 { padding: 1.1rem 1rem .7rem; font-size: .84rem; letter-spacing: .02em; }
.faq-anchor-list { max-height: calc(100vh - 180px); overflow: auto; padding: 0 .65rem .7rem; }
.faq-anchor-list a { display: grid; grid-template-columns: 34px 1fr; gap: .55rem; min-height: 44px; padding: .65rem .45rem; border-top: 1px solid #e1e8ec; color: #4f6877; font-size: .69rem; line-height: 1.4; transition: background-color .18s ease, color .18s ease; }
.faq-anchor-list a:hover { color: #1f60b6; background: #f0f6fa; }
.faq-anchor-list b { color: #3f7a9f; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .61rem; }

.faq-entry-list { display: grid; gap: 1rem; }
.faq-library-item { scroll-margin-top: 96px; overflow: hidden; border: 1px solid var(--faq-line); border-left: 4px solid #8eb7cc; border-radius: var(--faq-radius-md); background: linear-gradient(145deg, #fff, #fbfdfe); box-shadow: var(--faq-shadow-1); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.faq-library-item:hover { border-color: #b9cfd9; box-shadow: var(--faq-shadow-2); }
.faq-library-item[open] { border-left-color: var(--faq-blue); box-shadow: var(--faq-shadow-2); transform: translateY(-1px); }
.faq-library-item summary { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr) 28px; gap: 1rem; align-items: center; min-height: 78px; padding: 1rem 1.1rem; cursor: pointer; list-style: none; }
.faq-library-item summary::-webkit-details-marker { display: none; }
.faq-entry-id { color: #4e7f9c; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .63rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.faq-entry-question { color: var(--faq-ink); font-size: .96rem; font-weight: 800; line-height: 1.42; }
.faq-entry-toggle { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #b7cbd6; border-radius: 8px; background: #f8fbfc; color: #356f93; font-size: 1rem; box-shadow: inset 0 1px #fff; }
.faq-entry-toggle::before { content: "+"; }
.faq-library-item[open] .faq-entry-toggle { background: #edf5f9; }
.faq-library-item[open] .faq-entry-toggle::before { content: "−"; }

.faq-entry-body {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 1rem;
  padding: 0 1.1rem 1.25rem;
}

.faq-evidence-state {
  align-self: start;
  padding: .38rem .45rem;
  border: 1px solid #d7c39e;
  border-radius: 999px;
  background: #fff8ea;
  color: #92651d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .57rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.faq-evidence-state[data-state="buyer-guidance"] { border-color: #b9d4c6; background: #f0f8f3; color: #317052; }
.faq-evidence-state[data-state="model-verification"] { border-color: #d8bdc1; background: #fff3f4; color: #984452; }
.faq-answer-copy p { margin: 0; color: #536b79; font-size: .86rem; line-height: 1.75; }

.faq-query-coverage {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid #e0e8ec;
  color: #718692;
  font-size: .68rem;
  line-height: 1.55;
}
.faq-query-coverage b { color: #526f7f; }
.faq-answer-route { display: inline-flex; margin-top: .8rem; color: #2362b5; font-size: .74rem; font-weight: 800; }
.faq-answer-route:hover { text-decoration: underline; }

.faq-category-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.7rem 1.9rem;
  border: 1px solid #b9cfdb;
  border-left: 5px solid #74a9c5;
  border-radius: var(--faq-radius-md);
  background: linear-gradient(135deg, #fff, #f5fafc);
  box-shadow: var(--faq-shadow-2);
}
.faq-category-cta h2 { margin: 0 0 .4rem; font-size: 1.35rem; }
.faq-category-cta p { margin: 0; color: var(--faq-muted); font-size: .78rem; }
.faq-category-cta .btn { min-height: 44px; }

@media (max-width: 980px) {
  .faq-hero-grid,
  .faq-category-hero .faq-hero-grid,
  .faq-governance,
  .faq-category-layout { grid-template-columns: 1fr; }
  .faq-query-console { justify-self: start; max-width: 720px; }
  .faq-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-category-card,
  .faq-category-card:nth-child(4),
  .faq-category-card:nth-child(5) { grid-column: auto; }
  .faq-category-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .faq-category-aside { position: static; }
  .faq-anchor-list { display: grid; grid-template-columns: repeat(2, 1fr); max-height: none; }
  .faq-result { grid-template-columns: 120px minmax(0, 1fr); }
  .faq-result-link { grid-column: 2; justify-self: start; }
}

@media (max-width: 720px) {
  .faq-shell { width: min(100% - 32px, 1180px); }
  .faq-hero { padding-top: 3.8rem; }
  .faq-hero h1 { font-size: 3rem; }
  .faq-category-grid,
  .faq-governance-rules,
  .faq-search-toolbar { grid-template-columns: 1fr; }
  .faq-category-card,
  .faq-category-card:nth-child(4),
  .faq-category-card:nth-child(5),
  .faq-category-card:last-child:nth-child(odd) { grid-column: 1; }
  .faq-section-head { display: block; }
  .faq-section-head p { margin-top: .85rem; }
  .faq-category-card { grid-template-columns: 62px minmax(0, 1fr) 20px; padding: 1.2rem; }
  .faq-category-index { width: 48px; height: 48px; }
  .faq-governance-rule,
  .faq-governance-rule:nth-child(2n),
  .faq-governance-rule:nth-last-child(-n + 2) { border-right: 0; border-bottom: 1px solid var(--faq-line); }
  .faq-governance-rule:last-child { border-bottom: 0; }
  .faq-result { grid-template-columns: 1fr; gap: .55rem; }
  .faq-result p { font-size: 1rem; line-height: 1.7; }
  .faq-result-link { grid-column: 1; justify-self: stretch; }
  .faq-category-card p { font-size: .9rem; }
  .faq-section-head p { font-size: .94rem; }
  .faq-anchor-list { grid-template-columns: 1fr; }
  .faq-library-item summary { grid-template-columns: 1fr 28px; gap: .65rem; }
  .faq-entry-id { grid-column: 1; }
  .faq-entry-question { grid-column: 1; }
  .faq-entry-toggle { grid-column: 2; grid-row: 1 / span 2; }
  .faq-entry-body { grid-template-columns: 1fr; }
  .faq-evidence-state { justify-self: start; }
  .faq-category-cta { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .faq-search-row { grid-template-columns: 1fr; }
  .faq-search-submit { width: 100%; }
  .faq-ledger { grid-template-columns: repeat(3, 1fr); gap: .4rem; }
  .faq-ledger div { padding: .8rem .42rem; }
  .faq-ledger strong { font-size: 1.15rem; }
  .faq-ledger span { font-size: .52rem; letter-spacing: .055em; }
  .faq-category-card { grid-template-columns: 54px minmax(0, 1fr) 18px; gap: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-category-card,
  .faq-category-arrow,
  .faq-result,
  .faq-result-link,
  .faq-library-item,
  .faq-search-submit,
  .faq-more-button,
  .faq-governance-rule { transition: none; }
  .faq-category-card:hover,
  .faq-category-card:active,
  .faq-result:hover,
  .faq-result-link:hover,
  .faq-library-item[open],
  .faq-search-submit:hover,
  .faq-more-button:hover { transform: none; }
}

@media print {
  .faq-query-console,
  .faq-search-workspace,
  .faq-category-aside,
  .faq-category-cta { display: none !important; }
  .faq-library-item { break-inside: avoid; }
  .faq-library-item .faq-entry-body { display: grid !important; }
}
