/* SPDX-License-Identifier: LicenseRef-Vahini-Proprietary
   © 2026 Vahini Technologies. All rights reserved.

   factor-page.css — the twenty per-factor guide pages generated by
   tools/gen-factor-pages.mjs, plus the link grid they hang off on
   factors.html. Loaded after site.css and only by those pages.

   Every colour here is a theme token. Nothing in this file may hard-code
   a hex value: the active theme is chosen in js/theme.config.js and these
   pages have to follow it like every other page does. */

/* Prose column. Same measure as the .gd guides so the two read alike. */
.fpg { max-width: 760px; }
.fpg h2 { font-size: clamp(22px, 2.7vw, 30px); margin: 0 0 10px; }
.fpg h3 { font-family: var(--serif); font-size: 19px; font-weight: 600;
  color: var(--ink); margin: 26px 0 6px; }
.fpg p { font-size: 16.5px; line-height: 1.7; color: var(--muted); margin: 0 0 14px; }
.fpg p strong { color: var(--ink); }
.fpg em { font-style: normal; font-weight: 600; color: var(--ink); }
.fpg ul { margin: 0 0 16px; padding-left: 20px; }
.fpg li { font-size: 16.5px; line-height: 1.7; color: var(--muted); margin-bottom: 7px; }

/* The drill the report itself prescribes, quoted from the analyser. */
.fpg-drill { border-left: 3px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0; padding: 16px 20px; margin: 22px 0 0; }
.fpg-drill .eyebrow { margin: 0 0 6px; color: var(--accent-ink); }
.fpg-drill p:last-child { margin: 0; color: var(--ink); font-size: 16.5px; }

/* Measurement summary. */
.fpg-meta { display: grid; grid-template-columns: max-content 1fr; gap: 9px 22px;
  margin: 20px 0 0; padding: 18px 22px; border: 1px solid var(--rule);
  border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.fpg-meta dt { font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--hint); align-self: center; }
.fpg-meta dd { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.fpg-meta code { font-size: 14px; background: var(--ivory-2); border: 1px solid var(--rule);
  border-radius: 6px; padding: 2px 7px; color: var(--ink); }

/* Previous / next factor. */
.fpg-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 34px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); }
.fpg-nav a { font-family: var(--sans); font-size: 14.5px; font-weight: 600;
  color: var(--accent-ink); text-decoration: none; }
.fpg-nav a:hover { text-decoration: underline; }

/* Questions. Matches the .faqp blocks on the other guide pages. */
.fpg-faq details { border: 1px solid var(--rule); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-1); margin-bottom: 11px; overflow: hidden; }
.fpg-faq summary { list-style: none; cursor: pointer; padding: 18px 22px;
  font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--ink); }
.fpg-faq summary::-webkit-details-marker { display: none; }
.fpg-faq details[open] summary { border-bottom: 1px solid var(--rule); }
.fpg-faq .a { padding: 16px 22px 20px; }
.fpg-faq .a p { margin: 0; }

/* The grid of twenty links on factors.html. */
.fpg-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px; margin-top: 34px; }
.fpg-list__col { border: 1px solid var(--rule); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-1); padding: 20px 20px 14px; }
.fpg-list__col h3 { font-family: var(--serif); font-size: 17px; font-weight: 600;
  color: var(--ink); margin: 0 0 4px; }
.fpg-list__blurb { font-size: 13.5px; line-height: 1.5; color: var(--hint); margin: 0 0 14px; }
.fpg-list__col a { display: flex; align-items: baseline; gap: 9px; padding: 7px 0;
  font-family: var(--sans); font-size: 14.5px; line-height: 1.4; color: var(--ink);
  text-decoration: none; border-top: 1px solid var(--rule); }
.fpg-list__col a:hover { color: var(--accent-ink); }
.fpg-list__n { flex: none; width: 21px; font-size: 11.5px; font-weight: 700; color: var(--hint);
  font-variant-numeric: tabular-nums; }
.fpg-list__col a:hover .fpg-list__n { color: var(--accent); }
