/* docs/SUBSCRIPTION-SPEC.md 10.5: styles for the exports track's pages and partials (templates/subs/).
   Owner: exports track. Loaded after app.css on every page; uses the tokens app.css defines.
   No style attributes anywhere (the content security policy forbids them). */

/* "Take it with you" on Worth a look */
.fixit-bar { display: grid; gap: var(--space-3); }
.fixit-bar-title { margin: 0; color: var(--ink); font-size: 18px; line-height: 24px; }
.fixit-offers { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.fixit-offer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); min-width: 0; }
.fixit-count { color: var(--body); font-size: 15px; font-weight: 600; white-space: nowrap; }
.fixit-note { flex: 1 1 100%; margin: 0; }
.fixit-about { margin: 0; }

/* The Fix it page */
.fixit-files { display: grid; gap: var(--space-4); }
.fixit-file { margin-bottom: 0; }
.fixit-promise { max-width: 760px; margin-top: var(--space-2); }
.fixit-check { padding: var(--space-3); border-left: 4px solid var(--watch-mark); border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--ink); }
.fixit-tips { margin: 0 0 var(--space-3); padding-left: 1.2em; color: var(--body); }
.fixit-tips li + li { margin-top: var(--space-1); }
.fixit-table caption { padding: 0 0 var(--space-2); text-align: left; caption-side: top; }
.fixit-table td { min-width: 8rem; overflow-wrap: break-word; }
.fixit-empty { margin: 0; }

@media (min-width: 640px) {
  .fixit-offers { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* On a phone the first rows of each file read as short "heading: value" lines, the way a
   list insight's table reads on the snapshot (app.css, .insight-list .list-table), so nothing
   scrolls sideways (owner review, 2026-10-09). From 640px they are a table again. A blank cell,
   such as the invoice number left for the owner to fill in, is left out. */
@media (max-width: 639px) {
  .fixit-table, .fixit-table caption, .fixit-table tbody, .fixit-table tr, .fixit-table td { display: block; width: 100%; }
  .fixit-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .fixit-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 22px; }
  table.data.fixit-table td { display: inline; width: auto; min-width: 0; padding: 0; border: 0; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  .fixit-table td::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; }
  .fixit-table td:not(:last-child)::after { content: " \00B7  "; color: var(--muted); }
  table.data.fixit-table td:empty { display: none; }
  .fixit-file .table-wrap { overflow-x: visible; }
}
