/* /agents/ — the ten controls. Loaded after main.css. */

.waves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.wave { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); }
.wave h3 { font-size: 1.25rem; margin-bottom: 16px; }
.wave ol { margin: 0; padding-left: 1.6em; }
.wave li { padding: 6px 0; font-weight: 600; }
.wave li::marker { color: var(--ink-3); font-weight: 600; }
.wave a { color: var(--ink); }
.wave a:hover { color: var(--green); }
@media (max-width: 760px) { .waves { grid-template-columns: 1fr; } }

.ctl {
  display: grid; grid-template-columns: clamp(64px, 9vw, 120px) minmax(0, 1fr); gap: 8px clamp(20px, 3vw, 40px);
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--rule);
}
.ctl:first-child { border-top: 0; padding-top: 0; }
.ctl-num {
  font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; letter-spacing: -0.05em; line-height: .9;
  color: #8e949c;
}
.ctl h2 { font-size: clamp(1.5rem, 2.8vw, 2.125rem); letter-spacing: -0.03em; line-height: 1.12; font-weight: 800; max-width: 26em; }
.ctl-where { margin: 10px 0 0; color: var(--ink-3); font-size: .9375rem; }
.ctl-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(32px, 4vw, 56px); margin-top: 32px; }
.ctl-cols p { margin: 0; }
.ctl-cols p + p { margin-top: 8px; }
.ctl-label { font-size: .9375rem; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.ctl-cols .ctl-label + p { color: var(--ink-2); }
.ctl-verify { margin-top: 28px; background: var(--mist); border-radius: var(--radius); padding: 20px 24px; }
.ctl-verify pre {
  margin: 0 0 10px; overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .875rem; line-height: 1.5;
  background: var(--night); color: var(--night-ink); border-radius: 10px; padding: 14px 16px;
}
.ctl-verify .small { margin: 0; }
.ctl-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px clamp(32px, 4vw, 56px); margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); font-size: .9375rem; }
.ctl-meta dt { color: var(--ink-3); }
.ctl-meta dd { margin: 4px 0 0; font-weight: 600; }
@media (max-width: 760px) {
  .ctl { grid-template-columns: minmax(0, 1fr); }
  .ctl-cols, .ctl-meta { grid-template-columns: minmax(0, 1fr); }
}

/* Compact controls: one line visible, detail on demand */
.ctl { padding: clamp(28px, 3.5vw, 40px) 0; }
.ctl h2 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); }
.ctl-num { font-size: clamp(2.25rem, 4vw, 3.25rem); }
.ctl-why { margin: 10px 0 0; color: var(--ink-2); font-size: 1.125rem; max-width: 40em; }
.ctl-more { margin-top: 14px; }
.ctl-more summary { cursor: pointer; list-style: none; color: var(--link, #2997ff); font-size: 1rem; display: inline-flex; align-items: center; gap: 8px; }
.ctl-more summary::-webkit-details-marker { display: none; }
.ctl-more summary::after { content: "+"; font-size: 1.25rem; line-height: 1; transition: transform .2s; }
.ctl-more[open] summary::after { transform: rotate(45deg); }
.ctl-detail { margin-top: 18px; padding: 24px 28px; border-radius: 20px; background: var(--tile, #161617); max-width: 52em; }
.ctl-detail p { margin: 0 0 14px; color: var(--ink-2); }
.ctl-detail .ctl-label { margin: 18px 0 6px; color: var(--ink); }
.ctl-detail .ctl-full { color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.ctl-detail .ctl-verify { margin-top: 18px; background: #000; }

/* Control matrix: controls x frameworks, each row opens to its detail */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.matrix { --cols: repeat(6, 92px); border-top: 1px solid var(--rule); }
.mhead, .mrow > summary { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.mdots { display: grid; grid-template-columns: var(--cols); justify-items: center; }
.mhead { padding: 18px 0 14px; border-bottom: 1px solid var(--rule); }
.mhead b { font-size: .8125rem; font-weight: 500; color: var(--ink-2); text-align: center; line-height: 1.25; }
.mrow { border-bottom: 1px solid var(--rule); }
.mrow > summary { list-style: none; cursor: pointer; padding: 18px 0; }
.mrow > summary::-webkit-details-marker { display: none; }
.mn { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.04em; color: #8e8e93; font-variant-numeric: tabular-nums; }
.mname { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.mrow > summary:hover .mname, .mrow[open] .mname { color: var(--link); }
.mdots i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px #3a3a3c; }
.mdots i.on { background: var(--link); box-shadow: none; }
.mrow .ctl-detail { margin: 0 0 24px 72px; }
.mnote { margin-top: 20px; }
@media (max-width: 760px) {
  .matrix { --cols: repeat(6, 18px); }
  .mhead, .mrow > summary { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; }
  .mhead { align-items: end; }
  .mhead b { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .6875rem; text-align: left; white-space: nowrap; }
  .mn { font-size: 1.25rem; }
  .mname { font-size: 1rem; line-height: 1.25; }
  .mdots i { width: 10px; height: 10px; }
  .mrow .ctl-detail { margin: 0 0 20px; padding: 20px; }
}
