/* Alpha testing hub (src/sections/alpha.js). Builds on site.css and community.css tokens. */

/* home page banner */
.alpha-banner { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; border-left-color: var(--signal); }
.alpha-banner a { font-weight: 700; }

.ax-tabs { margin-bottom: 26px; }
.ax-head { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; justify-content: space-between; }
.ax-head p { margin: 0 0 12px; }
.ax-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.ax-intro .panel h3 { font-size: 1.5rem; }
.ax-template { padding-left: 1.2em; }
.ax-template li { margin-bottom: 4px; }
.ok { color: var(--go); }
.no { color: #ff8a8a; }
.bl { color: var(--sodium); }

/* progress per area: name, numbers, a stacked bar, % covered */
.ax-areas { list-style: none; margin: 0; padding: 0; }
.ax-areas li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(90px, 200px) 3.2em; gap: 6px 18px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.ax-areas li:last-child { border-bottom: 1px solid var(--line); }
.ax-areas a { text-decoration: none; }
.ax-areas a strong { font: 800 1.3rem/1.1 var(--display); }
.ax-areas a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.ax-nums { color: var(--muted); font-size: .9rem; }
.ax-pct { font: 800 1.3rem/1 var(--display); text-align: right; }
.ax-bar { display: flex; height: 8px; border-radius: 999px; background: var(--street-3); overflow: hidden; }
.ax-bar span { display: block; height: 100%; }
.ax-bar .p { background: var(--go); }
.ax-bar .f { background: var(--signal); }
.ax-bar .b { background: var(--sodium); }

/* chips: areas and filters (wrap, never scroll the page sideways) */
.ax-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.ax-chips a { text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .9rem; }
.ax-chips a span { opacity: .75; font-weight: 400; margin-left: 2px; }
.ax-chips a:hover { color: var(--text); }
.ax-chips a[aria-current="page"] { background: var(--paper); color: var(--paper-ink); border-color: var(--paper); }
.ax-filters { margin-bottom: 26px; }
.ax-filters a { border-style: dashed; }
.ax-filters a[aria-current="page"] { border-style: solid; }

/* the checks */
.ax-area { margin-bottom: 36px; }
.ax-area h2 { font-size: 2rem; margin-bottom: 4px; }
.ax-about { max-width: 72ch; margin: 0 0 8px; }
.ck-list { list-style: none; margin: 0; padding: 0; }
.ck { border-top: 1px solid var(--line); padding: 16px 0 16px 14px; border-left: 3px solid transparent; }
.ck.v-pass { border-left-color: var(--go); }
.ck.v-fail { border-left-color: var(--signal); }
.ck.v-blocked { border-left-color: var(--sodium); }
.ck:target { background: var(--street-2); }
.ck-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.ck-head h3 { font-size: 1.4rem; margin: 0; }
.ck-head h3 a { text-decoration: none; }
.ck-head h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ck-n { font: 800 1rem var(--display); color: var(--muted); min-width: 1.4em; }
.ck-exp { margin: 6px 0 4px; max-width: 80ch; }
.ck-steps { margin: 4px 0; color: var(--muted); font-size: .94rem; }
.ck-agg { margin: 4px 0; font-size: .9rem; }
.ck-notes { list-style: none; margin: 6px 0; padding: 0; font-size: .92rem; }
.ck-notes li { padding: 4px 0; overflow-wrap: anywhere; }
.ck-notes.big li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ck-form { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 10px; }
.ck-form input[name=note] { flex: 1 1 220px; min-width: 0; min-height: 34px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg .btn.on { color: var(--street); border-color: transparent; }
.seg .r-pass.on { background: var(--go); }
.seg .r-fail.on { background: var(--signal); color: #fff; }
.seg .r-blocked.on { background: var(--sodium); }

/* the board */
.ax-board-filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(5, minmax(0, 1fr)); gap: 4px 12px; align-items: end; margin-bottom: 8px; }
.ax-board-filters .field { margin: 0; }
.ax-board-filters .check { margin: 8px 0; grid-column: 1 / -2; }
.ax-board-filters .btn { justify-self: start; }
.ax-reports li { align-items: flex-start; }
.ax-reports a span { overflow-wrap: anywhere; }
.ax-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; padding-top: 14px; flex: none; }

/* a report */
.ax-details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; margin: 0 0 28px; }
.ax-details dt { color: var(--muted); font-weight: 600; }
.ax-details dd { margin: 0; overflow-wrap: anywhere; }
.ax-details dd.pre { margin: 0; }
.ax-h { font-size: 1.6rem; }
.ax-metoo { margin: 0 0 10px; color: var(--muted); }
.ax-metoo strong { font: 800 2.2rem/1 var(--display); color: var(--text); margin-right: 4px; }
.thread > li { overflow-wrap: anywhere; }

/* the form */
.ax-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
.ax-sev { align-items: flex-start; margin: 6px 0 10px; font-weight: 400; }
.ax-sev input { margin-top: 4px; flex: none; }

/* staff */
.ax-scroll { position: relative; } /* keeps the queue's visually hidden labels inside the scroller */
.ax-queue td form { flex-wrap: nowrap; }
.ax-edit-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.ax-edit-head h2 { margin: 0; }
.ax-edit-list { list-style: none; margin: 10px 0; padding: 0; }
.ax-edit-list li { display: flex; justify-content: space-between; gap: 10px 16px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.ax-edit-list li.retired { opacity: .6; }
.ax-move { gap: 4px; flex-wrap: nowrap; }
.ax-add summary { cursor: pointer; font-weight: 700; margin: 8px 0; }
.ax-build { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ax-build summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.ax-digest { max-height: 640px; }

@media (max-width: 900px) {
  .ax-board-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-board-filters .ax-q, .ax-board-filters .check { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .ax-intro, .ax-row { grid-template-columns: 1fr; }
  .ax-areas li { grid-template-columns: minmax(0, 1fr) auto; }
  .ax-areas .ax-nums, .ax-areas .ax-bar { grid-column: 1 / -1; }
  .ax-areas .ax-pct { grid-row: 1; grid-column: 2; }
  .ax-details { grid-template-columns: 1fr; gap: 2px; }
  .ax-details dd { margin-bottom: 10px; }
  .ax-reports li { flex-direction: column; align-items: stretch; gap: 0; }
  .ax-tags { justify-content: flex-start; padding: 0 0 12px; }
  .ck { padding-left: 10px; }
  .ax-queue td form { flex-wrap: wrap; }
}
