/* Growth pages (app/growth). The shared reading parts (one column, sources, page lists, the check at the end, the key
   numbers, the letter checker's answer) are in css/read.css; this file holds what only growth pages use. Tokens only;
   no green, amber or red here (those are for a Record's status). No inline styles. This sheet loads on every page, so
   every rule is scoped to a growth class. */

.growth-header { margin-bottom: var(--s-5); }
.growth-sheet .growth-header { margin-bottom: 0; }
.growth-header h1 { margin-bottom: var(--s-3); text-wrap: balance; max-width: 20em; }
.growth-narrow { max-width: 42rem; }
.growth-meta { display: flex; flex-wrap: wrap; gap: 0.25rem var(--s-4); align-items: center; margin: var(--s-2) 0 0; color: var(--ink-2); font-size: 1rem; }
.growth-meta strong { color: var(--ink); }
.growth-code { font-weight: 700; color: var(--ink); white-space: nowrap; }
.growth-affiliation { margin-top: var(--s-3); max-width: var(--measure); }
.growth-sheet .sheet__part > :last-child { margin-bottom: 0; }
.growth-sheet .sheet__part h2 { margin-top: 0; }
.growth-sheet .sheet__part h2:not(:first-child) { margin-top: var(--s-6); }
.growth-sheet .sheet__part > :is(p, ul, ol) { max-width: var(--measure); }
.growth-sheet .growth-answer { margin-top: var(--s-5); }
.growth-answer p { max-width: var(--measure); }
.growth-group { margin-top: var(--s-7); scroll-margin-top: var(--s-4); }
.growth-group h2 { margin-bottom: var(--s-1); font-size: var(--step-2); }
.growth-group__official { margin: 0 0 var(--s-3); color: var(--ink-3); font-size: 1rem; }
.growth-who { list-style: none; margin: 0 0 var(--s-4); padding: 0; border-top: 1px solid var(--rule); max-width: var(--measure); }
.growth-who li { padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
.growth-who p { margin: 0; }
.growth-plain-list { padding-left: 1.2rem; overflow-wrap: anywhere; }
.growth-callout { margin: var(--s-6) 0; }
.growth-callout > :last-child { margin-bottom: 0; }
.growth-official .read-small { margin-top: var(--s-2); }

/* Breadcrumbs: the ways back, quiet, above the heading */
.growth-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--s-2); padding: 0; margin: calc(var(--s-3) * -1) 0 var(--s-2); font-size: 1rem; }
.growth-crumbs li + li::before { content: "/"; color: var(--ink-3); margin-right: var(--s-2); }
.growth-crumbs a { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink-2); font-weight: 600; }
.growth-crumbs li { display: inline-flex; align-items: center; }
/* The page's own name is its heading: the trail shows only the ways back (screen readers still hear all of it). */
.growth-crumbs li:has(> [aria-current]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Contents of a guide, and the groups of the violation index */
.growth-toc { margin: 0 0 var(--s-5); }
.growth-toc ol { margin: 0; padding-left: 1.6rem; max-width: var(--measure); }
.growth-toc ol li::marker { color: var(--ink-3); }
.growth-toc li { margin: 0; }
.growth-toc a { display: inline-block; padding: 0.5rem 0; margin: -0.15rem 0; font-weight: 600; }
.growth-toc__groups { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.growth-toc__groups a {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 48px; padding: 0.4rem 0.9rem; margin: 0;
  border: 1.5px solid var(--rule-strong); border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; text-decoration: none;
}
.growth-toc__groups a:hover { border-color: var(--brand); color: var(--brand); }
.growth-toc__count { font-weight: 400; color: var(--ink-3); }

/* Notes and quotes inside a guide */
.growth-note { background: var(--paper-2); padding: var(--s-3) var(--s-4); margin: 0 0 var(--s-4); border-radius: var(--radius-small); }
.growth-note p { margin: 0; }
.growth-note p + p { margin-top: var(--s-2); }
.growth-quote { margin: 0 0 var(--s-3); padding: var(--s-3) var(--s-4); background: var(--paper-2); border-radius: var(--radius-small); font-weight: 700; max-width: var(--measure); }
.growth-quote p { margin: 0; }
.growth-official { margin-top: var(--s-4); }

/* Broker rules: numbered rows, the rule in bold, where it was published under it */
.growth-rules { margin: 0; padding-left: 1.6rem; max-width: var(--measure); }
.growth-rules li { padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); }
.growth-rules li::marker { color: var(--ink-3); font-weight: 600; }
.growth-rules li > * { margin: 0; }
.growth-rule__says { font-weight: 700; line-height: 1.45; margin-bottom: var(--s-1) !important; }
.growth-rule__when { font-size: 1rem; color: var(--ink-3); }
.growth-stale { font-size: 1rem; color: var(--ink-2); font-weight: 600; margin-top: 0.25rem !important; }

/* Letter checker. Its answer is the Record's verdict card (.answer, site.css): the shape and its colour, one plain
   sentence, why, and the line to check with FMCSA. */
.growth-verdict { margin: 0 0 var(--s-6); }
.growth-verdict .growth-verdict__lead { font-size: var(--step-0); line-height: 1.55; }
.growth-verdict__why :is(h3, h4) { margin: 0 0 var(--s-2); font-size: var(--step-0); }
.growth-verdict__why ul { margin: 0; padding-left: 1.2rem; }
.growth-verdict__why li + li { margin-top: 0.4rem; }
.growth-verdict__check { margin: 0; padding: var(--s-3) var(--s-4); background: var(--paper); border: 1px solid var(--sig-edge); border-radius: var(--radius-small); }
.growth-choices { margin-bottom: var(--s-4); }
.growth-form { margin: var(--s-6) 0; }
.growth-steps { padding-left: 1.6rem; max-width: var(--measure); }
.growth-steps li { margin-bottom: var(--s-2); line-height: 1.55; }
.growth-steps li::marker { color: var(--ink-3); font-weight: 600; }
.growth-steps .src, .growth-real .src { font-family: var(--font-sans); font-size: 1rem; }
.growth-real { padding-left: 1.3rem; max-width: var(--measure); }
.growth-real li { margin-bottom: var(--s-3); line-height: 1.55; }

/* Partners */
.growth-link-input { width: 100%; font-size: 1rem; }
.growth-post-form { margin-bottom: var(--s-4); }
.growth-code-block { font-family: var(--font-mono); font-size: 1rem; background: var(--paper-2); border-radius: var(--radius-small); padding: var(--s-3) var(--s-4); overflow-x: auto; }
.growth-code-block code { background: none; padding: 0; font-size: 1rem; }
.growth-posts .result p { margin: 0; padding: var(--s-3) var(--s-2); overflow-wrap: anywhere; }
.growth-posts .src { font-family: var(--font-sans); font-size: 1rem; }

/* Report: two plain charts. Bars are grey ink, never the blue of things you tap. */
.growth-chart { margin: var(--s-5) 0 var(--s-4); max-width: 44rem; }
.growth-chart__caption { font-weight: 700; font-size: var(--step-0); line-height: 1.4; margin-bottom: var(--s-3); }
.growth-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.growth-bars__row { display: grid; grid-template-columns: minmax(6.5rem, 9rem) 1fr minmax(4rem, auto); gap: var(--s-3); align-items: center; }
.growth-bars__label { font-size: 1rem; color: var(--ink-2); }
.growth-bars__value { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
.growth-bar { display: block; width: 100%; height: 1.4rem; }
.growth-bar__track { fill: var(--paper-2); }
.growth-bar__fill { fill: var(--ink-2); }
.growth-split { display: block; width: 100%; height: 2.4rem; }
.growth-seg-a { fill: var(--ink-2); background: var(--ink-2); }
.growth-seg-b { fill: var(--rule-strong); background: var(--rule-strong); }
.growth-legend { list-style: none; padding: 0; margin: var(--s-2) 0 0; display: grid; gap: var(--s-1); }
.growth-swatch { display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 2px; margin-right: var(--s-2); vertical-align: -0.1rem; }
.growth-report .detail-list > div { grid-template-columns: minmax(8rem, 30%) 1fr; }
.growth-report .detail-list code { overflow-wrap: anywhere; font-size: 1rem; }

@media (max-width: 30rem) {
  .growth-bars__row { grid-template-columns: 1fr minmax(3.5rem, auto); }
  .growth-bars__row .growth-bar { grid-column: 1 / -1; grid-row: 2; }
  .growth-report .detail-list > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

@media (forced-colors: active) {
  .growth-bar__fill, .growth-seg-a { fill: Highlight; }
  .growth-bar__track, .growth-seg-b { fill: GrayText; }
  .growth-swatch { forced-color-adjust: none; border: 1px solid CanvasText; }
}

/* Partners: what you get, as plain rows */
.growth-get dt { font-weight: 700; font-size: var(--step-0); color: var(--ink); }
.growth-get .ledger__value { font-weight: 400; }
.growth-after-list { margin-top: var(--s-3); color: var(--ink-2); max-width: var(--measure); }

/* A short phone clip near the top of an English guide (app/growth/clips.py): centred, at most 300px wide, nothing
   loaded until tapped. The transcript folds under it. */
.growth-clip { margin: 0 auto; max-width: 300px; text-align: center; }
.growth-clip video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: var(--ink); border-radius: var(--radius-small); }
.growth-clip figcaption { margin: var(--s-2) 0 0; color: var(--ink-2); font-size: 1rem; line-height: 1.4; }
.growth-clip__words { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.growth-clip__words .official__body p:last-child { margin-bottom: 0; }
