/* The trial notes (tests.omarali.xyz). Same shell as the Board page: the BRIDGE header and footer, the mist page,
   white cards with the sprites' outline, Rubik throughout. Light only, like every BRIDGE page. */
.tests-page { background: var(--mist); }
.tests-page .top { position: fixed; background: linear-gradient(var(--mist) 70%, rgba(237, 242, 239, 0)); padding-bottom: 14px; }
.tn-wrap { max-width: 1180px; margin: 0 auto; padding: 108px var(--gutter) 96px; }
.tn-wrap a { color: var(--ink); text-decoration-color: var(--canal); text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
.tn-wrap a:hover { color: var(--canal); }

.tn-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4.5vw, 64px); align-items: center; margin-bottom: 40px; }
.tn-kicker { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--brick); }
.tn-intro h1 { margin: 0; font-size: clamp(44px, 6.4vw, 84px); line-height: 1; color: var(--ink); }
.tn-lead { margin: 16px 0 0; max-width: 60ch; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.tn-status { margin: 18px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.tn-btn { margin-top: 12px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--outline); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.tn-btn:hover { background: var(--mist-2); }
.tn-hall { margin: 0; min-width: 0; }
.tn-hall img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1.5px var(--outline); background: var(--mist-2); }
.tn-hall figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }

.tn-index ol { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tn-index a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(42, 37, 34, .16); font-size: 15px; font-weight: 600; text-decoration: none; }
.tn-index a:hover { box-shadow: inset 0 0 0 2px var(--canal); }

.tn-trials article { margin-top: 20px; padding: clamp(22px, 3.6vw, 44px); background: #fff; border-radius: 14px;
  box-shadow: inset 0 0 0 1.5px rgba(42, 37, 34, .16); scroll-margin-top: 96px; }
.tn-badge { display: inline-block; margin: 0 0 12px; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; line-height: 1.3; background: var(--mist-2); color: var(--ink); }
.tn-badge.tn-complete { background: #dfe9d6; color: #34502a; }
.tn-badge.tn-running { background: #f7e4b8; color: #6b4a0e; }
.tn-trials h2 { margin: 0 0 26px; max-width: 32ch; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; color: var(--ink); text-wrap: balance; }
.tn-trials dl { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px 28px; margin: 0; }
.tn-trials dt { padding-top: 2px; font-size: 14px; font-weight: 600; color: var(--brick); }
.tn-trials dd { margin: 0; max-width: 68ch; font-size: 16.5px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.tn-trials dd ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }

.tn-models { margin-top: 72px; scroll-margin-top: 96px; }
.tn-models h2 { margin: 0; max-width: 24ch; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; color: var(--ink); }
.tn-projects { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.tn-project { padding: 22px 22px 20px; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(42, 37, 34, .16); min-width: 0; }
.tn-project h3 { margin: 0; font-size: 19px; line-height: 1.3; color: var(--ink); }
.tn-total { margin: 4px 0 14px; font-size: 14px; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tn-project p:last-child { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.tn-bar { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1.5px var(--outline); background: var(--outline); }
.tn-bar i { flex: var(--n) 1 0; min-width: 3px; }
.tn-bar .c, .tn-key .c { background: var(--brick); }
.tn-bar .g, .tn-key .g { background: var(--canal); }
.tn-bar .m, .tn-key .m { background: var(--lamp); }
.tn-bar .u, .tn-key .u { background: #fff; background-image: repeating-linear-gradient(135deg, transparent 0 4px, rgba(42, 37, 34, .18) 4px 5.5px); }
.tn-key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; font-size: 14px; color: var(--ink-soft); }
.tn-key span { display: inline-flex; align-items: center; gap: 8px; }
.tn-key i { width: 14px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1.5px var(--outline); }
.tn-note { margin: 18px 0 0; max-width: 68ch; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

@media (min-width: 761px) {
  .tn-wrap { padding-top: 132px; }
}
@media (max-width: 760px) {
  .tn-wrap { padding: 84px 16px 64px; }
  .tn-intro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tn-intro h1 { font-size: clamp(42px, 12vw, 52px); }
  .tn-trials dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tn-trials dd { margin-bottom: 14px; font-size: 16px; }
  .tn-trials article { padding: 20px 18px 8px; }
  .tn-models { margin-top: 56px; }
}
