/* "What SASY does" and "How SASY differs" sections. Kept out of index.html,
   which is near the repo's 1000-line limit. Uses the page's color tokens. */
.features { list-style: none; margin: 8px 0 0; padding: 0; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
.features li { border-top: 1px solid var(--line-strong); padding-top: 14px; }
.features h3 { font-family: var(--sans); font-size: 16px; font-weight: 600;
  line-height: 1.35; margin: 0 0 6px; }
section.note .features p { font-size: 15.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.vs-card { border: 1px solid var(--line); background: var(--surface);
  border-radius: 8px; padding: 18px 20px 14px; min-width: 0; }
.vs-card table { width: 100%; border-collapse: collapse; font-size: 14px; }
.vs-card th, .vs-card td { padding: 7px 6px; border-top: 1px solid var(--line);
  text-align: center; vertical-align: middle; line-height: 1.3; }
.vs-card thead td, .vs-card thead th { border-top: 0; font-family: var(--mono);
  font-size: 11.5px; font-weight: 500; color: var(--muted); }
.vs-card thead th:nth-child(2) { color: var(--accent); }
.vs-card tbody th { text-align: left; font-weight: 400; padding-left: 0; width: 38%; }
.vs-card td.y { color: var(--t-green); font-weight: 600; }
.vs-card td:nth-child(2) { background: var(--accent-soft); }
.vs-card td.n { color: var(--muted); }
.vs-card td.p { color: var(--muted); font-size: 12.5px; }
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .features { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
section.note .vs-card + .caption { margin-top: 14px; }
@media (max-width: 480px) {
  .vs-card { padding: 14px 12px 10px; }
  .vs-card table { font-size: 13px; }
  .vs-card th, .vs-card td { padding: 6px 3px; }
  .vs-card thead th { font-size: 10.5px; }
}
@media (max-width: 560px) {
  .vs-card table, .vs-card thead, .vs-card tbody { display: block; }
  .vs-card tr { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
  .vs-card thead td { display: none; }
  .vs-card tbody th { grid-column: 1 / -1; width: auto; padding: 10px 0 2px; }
  .vs-card tbody td { border-top: 0; }
  .vs-card th, .vs-card td { min-width: 0; overflow-wrap: anywhere; }
  .vs-card td.p { font-size: 11.5px; }
  .vs-card thead th { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0; overflow-wrap: normal; hyphens: manual; }
}
section.note p.vs-lead { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.4; }
/* Desktop: product names cascade on separate lines, each ending above its column
   with a thin line down to it, so no name wraps. SASY is on the bottom line. */
@media (min-width: 561px) {
  .vs-card table.cascade { table-layout: fixed; }
  .vs-card table.cascade thead td { width: 38%; }
  .vs-card table.cascade thead th { position: relative; vertical-align: bottom; padding: 0;
    height: calc((var(--cols) - 1) * 19px + 30px); }
  .vs-card table.cascade .vs-name { position: absolute; right: calc(50% + 5px);
    bottom: calc(var(--i) * 19px + 14px); white-space: nowrap; }
  .vs-card table.cascade thead th::after { content: ""; position: absolute; left: 50%;
    bottom: 4px; width: 1px; height: calc(var(--i) * 19px + 18px); background: var(--line-strong); }
  .vs-card table.cascade thead th::before { content: ""; position: absolute; right: 50%;
    bottom: calc(var(--i) * 19px + 21px); width: 5px; height: 1px; background: var(--line-strong); }
}
@media (min-width: 561px) { .vs-card table.cascade .vs-name wbr { display: none; } }
@media (max-width: 380px) { .vs-card td.p { font-size: 10.5px; overflow-wrap: normal; } }
/* SASY Guard: one install panel per coding agent, switched by tabs. */
.agent-tablist { display: flex; gap: 6px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.agent-tablist [role="tab"] { display: inline-flex; align-items: center; gap: 8px; font: inherit;
  font-size: 15px; color: var(--muted); background: none; border: 0;
  border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 8px 12px; cursor: pointer; }
.agent-tablist [role="tab"]:hover { color: var(--ink); }
.agent-tablist [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.agent-tablist [role="tab"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.agent-icon { width: 18px; height: 18px; flex: none; }
.agent-tabs [role="tabpanel"][hidden] { display: none; }
.agent-tabs [role="tabpanel"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.vs-card td a { text-decoration: none; }
.vs-card td a:hover, .vs-card td a:focus-visible { text-decoration: underline; }
/* Tinted backgrounds from 24-bit terminal colors (pi's tool boxes). */
.term-out .bgred { background: color-mix(in srgb, var(--t-red) 20%, transparent); }
.term-out .bggreen { background: color-mix(in srgb, var(--t-green) 18%, transparent); }
.term-out .bgblue { background: color-mix(in srgb, var(--t-blue) 18%, transparent); }
.term-out .bgcyan { background: color-mix(in srgb, var(--t-cyan) 18%, transparent); }
.term-out .bgyellow { background: color-mix(in srgb, var(--t-yellow) 18%, transparent); }
.term-out .bgmagenta { background: color-mix(in srgb, var(--t-magenta) 18%, transparent); }
