/* "Other tests": the section page (three tag tiles) and the "Other" tag (search,
   topics, tests grouped by topic). Port of proto/more.html (design-06). The hero
   (.hsx, .sh2, .h1s, .ds2, .mt2) is system.css. */

/* tag tiles: glow and mark in the tag's colour, the first tests as links */
.tgs { position: relative; display: grid; gap: 8px; margin-top: 28px; }
.tgt { position: relative; display: flex; flex-direction: column; min-height: 260px; padding: 20px; border-radius: var(--r-card); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.tgt::before { content: ""; position: absolute; right: -120px; top: -140px; width: 360px; height: 320px; background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--c) 34%, transparent), transparent 100%); pointer-events: none; }
.tgt > * { position: relative; }
.tgt .gl { flex: none; width: 56px; height: 56px; margin-bottom: 18px; color: var(--c); }
.tgt h2 { font-size: 28px; line-height: 1.05; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.tgt h2 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.tgt .cnt { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--c); }
.tgt p { max-width: 26em; margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--tx-body); }
.tgt ul { position: relative; z-index: 1; display: grid; margin: auto 0 0; padding: 16px 0 0; list-style: none; }
.tgt li a { display: flex; align-items: center; max-width: 100%; min-height: 44px; border-top: 1px solid var(--line); font-size: 15px; color: var(--tx-body); }
.tgt li.all a { justify-content: space-between; color: var(--tx); font-weight: 500; }
.tgt li.all svg { width: 18px; height: 18px; flex: none; }

/* "Other": search, topics, groups */
.fnd { position: relative; margin-top: 24px; max-width: 560px; }
.fnd svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--tx2); pointer-events: none; }
.fnd input { width: 100%; min-height: 48px; padding: 0 16px 0 42px; border: 0; border-radius: var(--r-ctl); font: inherit; font-size: 16px; color: var(--tx); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line2); -webkit-appearance: none; appearance: none; }
.fnd input::placeholder { color: var(--tx3); }
.fnd input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--tx); }
.fnd input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.no-js .fnd { display: none; }
.chips { display: flex; gap: 6px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); font-size: 15px; color: var(--tx-body); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.chips a em { font-style: normal; font-size: 13px; color: var(--tx3); font-variant-numeric: tabular-nums; }
.fcount { margin-top: 12px; min-height: 18px; font-size: 13px; color: var(--tx2); }
.ogp { padding-top: 40px; scroll-margin-top: 16px; }
.ogp h2 { display: flex; align-items: baseline; gap: 10px; font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.ogp h2 em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--tx3); font-variant-numeric: tabular-nums; }
.olr { display: grid; gap: 6px; margin-top: 12px; }
.olr a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 8px 14px; border-radius: var(--r-ctl); background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; letter-spacing: -.012em; line-height: 1.25; transition: background-color .15s, box-shadow .15s; }
.olr a b { font-weight: inherit; }
.olr a span { flex: none; font-size: 13px; font-weight: 400; color: var(--tx2); font-variant-numeric: tabular-nums; }
.olr a.done { background: color-mix(in srgb, var(--c) 14%, var(--s1)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }
.olr a.done span { font-size: 15px; font-weight: 600; color: var(--tx); }
.olr mark { background: none; color: var(--tx); text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.js .olr a.cut { display: none; }
.ogp.open .olr a.cut, .ogp.q .olr a.cut { display: flex; }
.mor { display: none; }
.js .mor { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; padding: 0 12px 0 0; font-size: 15px; font-weight: 500; color: var(--tx); }
.mor svg { width: 18px; height: 18px; color: var(--tx2); }
.ogp.open .mor, .ogp.q .mor { display: none; }
.none { display: none; margin-top: 24px; padding: 20px; border-radius: var(--r-ctl); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--tx-body); }
.none.on { display: block; }
.none button { margin-top: 12px; }
[hidden] { display: none !important; }

@media (min-width: 900px) {
  .tgs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
  .tgs.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tgt { min-height: 360px; padding: 26px; }
  .tgt .gl { width: 72px; height: 72px; margin-bottom: 24px; }
  .tgt h2 { font-size: 38px; overflow-wrap: break-word; hyphens: auto; }
  .chips { flex-wrap: wrap; overflow: visible; }
  .olr { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ogp { padding-top: 56px; }
  .ogp h2 { font-size: 28px; letter-spacing: -.03em; }
}
@media (hover: hover) and (pointer: fine) {
  .tgt:hover { background: var(--s2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
  .tgt li a:hover { color: var(--tx); }
  .olr a:hover { background: var(--s2); box-shadow: inset 0 0 0 1px var(--line2); }
  .chips a:hover { background: rgba(255,255,255,.09); color: var(--tx); }
}
