/* The truck pages (/trucks, /trucks/ford-f-150, /trucks/ford-f-150/wheels ...).
   Loaded only there: theme.css is fetched by every page and sits at its
   budget (test_what_a_page_costs). Colors are the theme's own variables, so a
   table or a door reads like the rest of the store. */

.truck-head { max-width: 72ch; margin: 0 0 22px; }
.truck-head h1 { margin: 4px 0 10px; line-height: 1.1; }
.truck-head .lede { margin: 0 0 16px; color: var(--text-1); }
.truck-actions { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 0 0 10px; }
.truck-note { margin: 0; }

/* The three doors on a hub, and the list of trucks on /trucks. */
.truck-doors, .truck-index {
  display: grid; gap: 12px; margin: 0 0 26px; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}
.truck-door {
  display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box;
  padding: 16px 16px 14px; border: 1px solid var(--line-bright); border-radius: 14px;
  background: linear-gradient(180deg, var(--ink-1), var(--ink-0));
  color: var(--text-0); text-decoration: none;
}
.truck-door:hover { border-color: var(--volt); }
.truck-door-label { font-size: var(--text-name); font-weight: 700; }
.truck-door-count { color: var(--text-1); font-size: var(--text-small); }
.truck-door-price { color: var(--text-0); font-size: var(--text-small); }

.truck-block { margin: 0 0 30px; max-width: 100%; }
.truck-block h2 { font-size: var(--text-section); margin: 0 0 10px; line-height: 1.15; }
.truck-block h3 { font-size: var(--text-name); margin: 18px 0 8px; }
.truck-block .hint { max-width: 72ch; }
.truck-count { font-size: var(--text-small); font-weight: 400; color: var(--text-1); }
.truck-more { margin: 14px 0 0; }

/* A plain table of facts. Narrow columns and wrapping cells keep four
   columns inside a phone's width with no sideways scroll. */
.truck-table {
  width: 100%; max-width: 720px; border-collapse: collapse; margin: 0 0 10px;
  font-size: var(--text-small); table-layout: auto;
}
.truck-table th, .truck-table td {
  text-align: left; vertical-align: top; padding: 9px 10px 9px 0;
  border-bottom: 1px solid var(--line); overflow-wrap: anywhere;
}
.truck-table thead th { color: var(--text-1); font-weight: 600; }
.truck-table tbody th { font-weight: 600; color: var(--text-0); white-space: nowrap; }
/* A number or a price never breaks across two lines ("$132." over "95"). */
.truck-table .truck-num { white-space: nowrap; overflow-wrap: normal; }
.truck-aside { display: block; color: var(--text-1); font-size: var(--text-small); }

.truck-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.truck-chips li {
  padding: 6px 12px; border: 1px solid var(--line-bright); border-radius: 999px;
  color: var(--text-0); font-size: var(--text-small);
}
.truck-chips li span { color: var(--text-1); }

.truck-facts { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.truck-facts b { display: inline-block; min-width: 8.5em; color: var(--text-0); }
.truck-facts li { color: var(--text-1); font-size: var(--text-small); }

/* Questions and answers: read, not clicked open. */
.truck-faq { max-width: 72ch; }
.truck-qa { padding: 12px 0; border-top: 1px solid var(--line); }
.truck-qa h3 { margin: 0 0 6px; }
.truck-qa p { margin: 0; color: var(--text-1); }

/* Links out: this truck's other pages, then every other truck. */
.truck-links ul { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.truck-links a { display: inline-block; padding: 6px 0; }
