/* /try/: shared page parts for the hub, the story and the six flow pages (the form, crumbs,
   before-and-after lists). The running flow itself is styled by /try/lab/lab.css. */
:root { --color-warn: #a3401a; --color-warn-tint: #fbeee7; }
@media (prefers-color-scheme: dark) { :root { --color-warn: #f3a47e; --color-warn-tint: #3a2a22; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-short { padding-bottom: var(--space-6); }
.hero-short h1 { font-size: 52px; }
/* — the HR record form — */
.hire-fields { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-5); }
.hire-fields .wide { grid-column: 1 / -1; }
.hire label { display: flex; flex-direction: column; gap: 6px; font-size: 16px; font-weight: 600; color: var(--color-neutral-300); }
.hire input, .hire select {
  font: inherit; font-weight: 400; font-size: 17px; color: var(--color-text);
  background: var(--color-bg); border: 1px solid var(--color-neutral-600); border-radius: var(--radius-md);
  padding: 9px 10px; min-height: 44px; width: 100%;
}
button.btn { font-family: var(--font-body); }
button.btn:disabled, .btn-quiet:disabled { opacity: .45; cursor: not-allowed; text-decoration: none; }
.btn-quiet {
  font: 600 17px/1.2 var(--font-body); color: var(--color-accent); background: transparent;
  border: 1px solid var(--color-neutral-600); border-radius: var(--radius-md); padding: 11px 18px; cursor: pointer;
}
.btn-quiet:hover:not(:disabled) { border-color: var(--color-accent); text-decoration: underline; }

@media (max-width: 620px) {
  .hero-short h1 { font-size: 40px; }
  .hire-fields { grid-template-columns: 1fr; }
}
@media print { .hire { display: none !important; } }

/* — page bits: crumb back to /try/, source list — */
.crumb { margin: 0 0 var(--space-3); font-size: 15px; font-weight: 600; }
.crumb a { color: var(--color-neutral-500); text-decoration: none; }
.crumb a::before { content: "\2190\00a0"; }
.crumb a:hover { color: var(--color-accent); text-decoration: underline; }
.sources li { overflow-wrap: anywhere; }
.after-list { margin-top: var(--space-5); }

/* — access review: the reviewer's own table of keep/remove calls — */
.review-table { margin: 0 0 var(--space-4); overflow-x: auto; }
.review-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.review-table caption { text-align: left; color: var(--color-neutral-500); font-size: 15px; padding-bottom: var(--space-2); }
.review-table th, .review-table td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--color-divider); }
.review-table thead th { font-size: 14px; font-weight: 600; color: var(--color-neutral-500); }
.review-table tbody th { color: var(--color-neutral-100); font-weight: 600; }
.review-table td { color: var(--color-neutral-300); }
.review-table fieldset { border: 0; margin: 0; padding: 0; display: flex; gap: var(--space-3); white-space: nowrap; }
.review-table label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.review-table input[type="radio"] { accent-color: var(--color-accent); width: 18px; height: 18px; margin: 0; }
.review-table tr.flagged td, .review-table tr.flagged th { color: var(--color-warn); }
@media (max-width: 600px) {
  .review-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .review-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--color-divider); }
  .review-table th, .review-table td { border: 0; padding: 0; }
  .review-table td.choice { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .review-table fieldset { flex-direction: column; gap: 6px; }
  .review-table td:not(.choice) { font-size: 15px; }
  .review-table td:nth-child(3)::before { content: "Last used: "; color: var(--color-neutral-500); }
}
.flows { margin-top: var(--space-6); }
/* hub: the story is the front door */
.story-door { display: block; margin: 0 0 var(--space-8); padding: var(--space-5) var(--space-6); border: 1.5px solid var(--color-accent); border-radius: var(--radius-lg); background: var(--color-accent-900); text-decoration: none; color: var(--color-text); }
.story-door:hover .story-door-title { text-decoration: underline; }
.story-door:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.story-door-kicker { display: block; font-size: 15px; font-weight: 600; color: var(--color-accent); }
.story-door-title { display: block; margin: 2px 0 var(--space-2); font-family: var(--font-heading); font-weight: 600; font-size: 28px; line-height: 1.15; color: var(--color-accent); }
.story-door-text { display: block; max-width: 36em; color: var(--color-neutral-300); }
.flows-h { font-size: 24px; margin: 0 0 var(--space-3); }

/* before / after / what went wrong, from the case studies */
.bae { margin: 0; max-width: 40em; }
.bae dt { font-weight: 700; margin-top: var(--space-4); }
.bae dt:first-child { margin-top: 0; }
.bae dd { margin: 4px 0 0; padding-left: var(--space-3); border-left: 3px solid var(--color-divider); }
.quick-door { margin: calc(-1 * var(--space-6)) 0 var(--space-8); color: var(--color-neutral-300); }
.quick-door a { display: inline-block; padding: 10px 0; min-height: 44px; }


/* the flow pages' start form sits in the lab section */
.lab .hire h2 { margin-bottom: var(--space-3); }
.lab-js .hire[hidden]:not(.started) { display: block; visibility: hidden; }
