/* The workshop guides at /workshop/guides. Loaded after /legal.css and /guides/guides.css,
   which set the type, header, footer, steps and guide cards; this swaps in the blueprint
   tokens and ground from /workshop/ (frontend/src/index.css, :root[data-edition="workshop"])
   and adds the spanner mark and the "workshop" line under the wordmark. */

:root {
  --paper: #e6eef7;
  --surface: #f8fbfe;
  --surface-2: #eef3f9;
  --ink: #1d2733;
  --ink-soft: #566577;
  --line: #c6d4e3;
  --line-soft: #dce5ef;
  --accent-ink: #184a80;
  --brand-stone: #8e8577;
  --blueprint: url("/workshop/workshop-blueprint.webp");
  /* A wash of pale paper over the drawing, heavier than the landing page's because these
     pages are long runs of text on the page ground. */
  --blueprint-veil: rgba(236, 243, 250, 0.86);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1a2b;
    --surface: #152236;
    --surface-2: #1a2940;
    --ink: #e4ecf6;
    --ink-soft: #94a6bd;
    --line: #263a55;
    --line-soft: #1e2f47;
    --accent-ink: #a8c8ee;
    --blueprint: url("/workshop/workshop-blueprint-dark.webp");
    --blueprint-veil: rgba(15, 26, 43, 0.82);
  }
}

body {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--blueprint-veil), var(--blueprint-veil)),
    var(--blueprint);
  background-size:
    100% 100%,
    627px 627px;
  background-repeat: no-repeat, repeat;
  background-attachment: fixed;
}

header.top .brand {
  align-items: center;
}

.ws-wordmark {
  display: inline-block;
  line-height: 1;
}

.ws-name {
  color: var(--brand-stone);
  display: block;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0.42em;
  margin-top: 0.3em;
  text-transform: uppercase;
}

/* Sample rows in a guide (a parts list, a vehicle record): a card around the table. */
.guide table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 18px 0 26px;
  max-width: 44rem;
}

.guide th:first-child,
.guide td:first-child {
  padding-left: 14px;
}

.guide table caption {
  color: var(--ink-soft);
  caption-side: bottom;
  font-size: 14px;
  padding: 8px 14px;
  text-align: left;
}

/* The call to action at the foot of each guide. */
.try {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin: 40px 0 0;
  max-width: 44rem;
  padding: 18px 20px;
}

.try p {
  margin-bottom: 12px;
}

.try a.go {
  background: var(--accent-ink);
  border-radius: 9px;
  color: var(--surface);
  display: inline-block;
  font-weight: 600;
  padding: 8px 14px;
  text-decoration: none;
}
