/* The future-of-work summary page: what it holds beyond the essay shell in /css/essay.css
   (results tables, the start block's cards and lookup, the acknowledgment). Loaded after essay.css. */

/* A long title on a results page: smaller than an essay's, on a wider measure */
.fow .essay-head h1 { max-width: 26ch; font-size: var(--text-section); line-height: 1.02; }
.fow .sheet > h2, .fow .sheet > section > h2 { max-width: 30em; font-size: var(--text-xl); line-height: 1.2; }

/* The draft label keeps its word as written; each line of the byline block starts with a capital */
.fow .essay-meta span::first-letter { text-transform: uppercase; }

/* The three pages, listed beside the summary; the one being read is not a link to follow */
.fow-pages a[aria-current="page"] { color: var(--color-ink); font-family: var(--font-display); font-weight: 600; text-decoration: none; }

/* Results tables: figures right, row labels left */
.fow .sheet .tablewrap { margin: var(--space-lg) 0 var(--space-xs); }
.fow .sheet table { margin: 0; font-variant-numeric: tabular-nums lining-nums; }
.fow .sheet caption { padding-bottom: var(--space-xs); color: var(--color-ink); font: 600 var(--text-md)/1.3 var(--font-display); letter-spacing: var(--tracking-display); text-align: left; caption-side: top; }
.fow .sheet th, .fow .sheet td { padding: var(--space-xs) var(--space-xs); text-align: right; vertical-align: bottom; }
.fow .sheet thead th { border-bottom: var(--rule-bar) solid var(--color-rule-2); color: var(--color-ink-2); font: 500 var(--text-xs)/1.3 var(--font-display); }
.fow .sheet th:first-child, .fow .sheet td:first-child { padding-left: 0; text-align: left; }
.fow .sheet td:first-child { color: var(--color-ink); white-space: nowrap; }
.fow .sheet td:last-child, .fow .sheet th:last-child { padding-right: 0; }
.fow .sheet table.wide { min-width: 36rem; font-size: var(--text-xs); }
.fow .sheet table.wide td:first-child { min-width: 9em; white-space: normal; }
.tnote { max-width: 46em !important; margin: var(--space-xs) 0 var(--space-lg) !important; color: var(--color-muted); font-size: var(--text-sm); line-height: 1.45; }
.fow .sheet > .tnote + p { margin-top: 0; }
.fow .sheet > .tablewrap + p { margin-top: var(--space-lg); }
.fow .sheet > .tablewrap + .tnote { margin-top: var(--space-xs) !important; }

/* The start block: why, three scenario links, a lookup, and the comparison with other explorers */
.fow .sheet > section.start { margin: var(--space-xl) 0 0; padding: 0; border-left: 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.fow .card { padding: var(--space-md); background: var(--color-tile); border: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); font-size: var(--text-sm); line-height: 1.45; }
.fow .card h3 { max-width: none; margin: 0 0 var(--space-xs); color: var(--color-ink); font-size: var(--text-md); line-height: 1.25; }
.fow .card ul { margin: 0; padding: 0; list-style: none; }
.fow .card li + li { margin-top: var(--space-sm); }
.fow .card li a { display: block; color: var(--color-ink); font-weight: 500; }
.fow .card li span, .fow .card .hint { color: var(--color-muted); font-size: var(--text-xs); line-height: 1.4; }
.fow .card li span { display: block; margin-top: var(--space-3xs); }
.fow .card .hint { max-width: none; margin: var(--space-sm) 0 0; }
.fow .card p { max-width: none; }
.fow .sheet .xrow { display: flex; gap: var(--space-xs); max-width: none; margin: 0; }
.xrow input { flex: 1; min-width: 0; min-height: 44px; padding: 0 var(--space-sm); background: var(--color-sheet); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); color: var(--color-ink); font-size: var(--text-sm); }
.xrow input::placeholder { color: var(--color-muted); opacity: 1; }
.fow .sheet .xrow .btn { min-height: 44px; margin-top: 0; padding-inline: var(--space-md); }
.fow .contrib .tablewrap { margin: var(--space-sm) 0 0; }
.fow .contrib table { min-width: 34rem; font-size: var(--text-xs); }
.fow .contrib th, .fow .contrib td { padding: var(--space-xs) var(--space-sm) var(--space-xs) 0; text-align: left; vertical-align: top; }
.fow .contrib td:first-child { font-weight: 500; white-space: normal; }

/* Figures are drawn on white; the frame keeps them from bleeding into the sheet */
.fow .sheet figure a { display: block; }
.fow .sheet figure img { background: #fff; outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; }

.ack { max-width: 37.5em !important; margin-top: var(--space-2xl) !important; padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); font-size: var(--text-md); line-height: 1.5; }
.ack + .colophon { margin-top: var(--space-md) !important; padding-top: 0; border-top: 0; }

@media (max-width: 40rem) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .fow .card { padding: var(--space-sm); }
}

/* A narrow side column: the byline and the page's own contents; the section's pages are in the row above the title */
.fow .essay-side { grid-column: 1 / span 2; }
.fow .sheet { grid-column: 3 / -1; }
.fow .essay-side .links { font-size: var(--text-sm); }
.fow .essay-side .links a { padding-block: var(--space-3xs); }
@media (max-width: 90rem) { .fow .essay-side { grid-column: 1 / span 3; } .fow .sheet { grid-column: 4 / -1; } }
@media (max-width: 60rem) { .fow .essay-side, .fow .sheet { grid-column: 1 / -1; } }
