/* TestSlot - extra styles for the test-centre and guide pages.
   Load AFTER styles.css. Uses only the variables defined there, so the brand tokens
   and dark mode carry over automatically. Mobile first. No external assets. */

/* Breadcrumbs */
.breadcrumbs ol {
  list-style: none;
  margin: 0 0 .5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  font-size: .95rem;
  color: var(--muted);
}
.breadcrumbs li + li::before {
  content: "›";
  margin-right: .25rem;
  color: var(--muted);
}

/* Stat tiles */
.stat-tiles {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  display: grid;
  gap: .75rem;
}
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.stat-label { font-size: .95rem; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 1.75rem; font-weight: 800; line-height: 1.2; color: var(--text); }
.stat-note { font-size: .9rem; color: var(--muted); }

/* Data tables */
table.data { font-variant-numeric: tabular-nums; }
table.data caption { color: var(--muted); font-size: .95rem; }
table.data th[scope="row"] { font-weight: 600; background: var(--surface); }
table.data .num { text-align: right; white-space: nowrap; }
table.data thead th { vertical-align: bottom; }
table.data tbody tr:nth-child(even) td,
table.data tbody tr:nth-child(even) th[scope="row"] { background: var(--bg-soft); }
table.data tr.group th {
  background: var(--accent-bg);
  color: var(--text);
  font-size: .95rem;
  letter-spacing: .01em;
}
table.grouped tbody tr.group:nth-child(even) th { background: var(--accent-bg); }
.table-scroll { -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline: 3px solid var(--focus); }

/* Source / attribution line */
.source {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .9rem;
  color: var(--muted);
}

/* Small "check this" note at the top of a guide */
.check-note {
  background: var(--warn-bg);
  color: var(--warn-text);
  border: 1px dashed var(--warn-border);
  border-radius: 8px;
  padding: .5rem .75rem;
  font-size: .95rem;
  margin: 0 0 1.25rem;
}
.check-note a { color: inherit; }

/* Guide list */
.guide-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .75rem; }
.guide-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.25rem;
}
.guide-list h2, .guide-list h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.guide-list p { margin: .25rem 0 0; color: var(--muted); }

/* Comfortable reading width for long text */
.prose { max-width: 42rem; }
.prose li { margin: .3rem 0; }

@media (min-width: 40rem) {
  .stat-tiles { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
}

/* Question-and-answer blocks on centre pages ("How long is the wait at ...?") */
.faq-block .qa {
  border-left: 4px solid var(--border);
  padding: .1rem 0 .1rem 1rem;
  margin: 1rem 0;
}
.faq-block .qa h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.faq-block .qa p { margin: 0; }

/* "Am I ready to book?" checker (guides/ready-to-book.html) */
.ready fieldset { border: 1px solid var(--line, #d9dbe3); border-radius: 12px; padding: .8rem 1rem; margin: 0 0 1rem; }
.ready legend { font-weight: 600; padding: 0 .3rem; }
.ready label { display: block; margin: .35rem 0; }
.ready input[type="date"] { font: inherit; padding: .4rem; }
.callout.good { background: var(--good-soft, #e7f6ec); }

/* Car-checks flashcards (guides/car-checks.html) */
.card-check { border: 1px solid var(--line, #d9dbe3); border-radius: 12px; padding: .7rem 1rem; margin: 0 0 .6rem; }
.card-check summary { cursor: pointer; font-weight: 600; }
.card-check p { margin: .6rem 0 0; }
