/* The Features page: its grids of cards, the small pictures in them, and the blocks it keeps from before, set in the shared look. */

.mono-i { font-family: var(--mono); font-size: .92em; color: var(--ink); }
.c-teal { --c: var(--pal-teal); } .c-purple { --c: var(--pal-purple); } .c-gold { --c: var(--pal-gold); }
.c-rust { --c: var(--pal-rust); } .c-green { --c: var(--pal-green); } .c-indigo { --c: var(--pal-indigo); }

.sec .wrap > .frame,
.sec .wrap > .states,
.sec .wrap > .fgrid { margin-top: 0; }
.sec .wrap > .states,
.sec .wrap > .fgrid { margin-top: 1.25rem; }

/* The four marks */
.states { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.st { display: grid; gap: .75rem; align-content: start; }
.st dt { margin: 0; }
.st-mark { width: 2rem; height: 2rem; }
.st-running { color: var(--ink); }
.st-waiting { color: var(--waiting); }
.st-done { color: var(--done); }
.st-failed { color: var(--failed); }
.st dd { margin: 0; }

/* A card of the grid: a picture in the shared frame, then its words */
.fgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.fgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fc { display: grid; grid-template-rows: auto 1fr; padding: .5rem; }
.fc .frame { height: 13.5rem; border-radius: calc(var(--r-card) - .25rem); box-shadow: none; --inset: 1.25rem; }
.fc-text { display: grid; gap: .625rem; align-content: start; padding: 1.25rem 1rem 1rem; }
.fc-text .more { justify-self: start; margin-top: .25rem; }
.fc:hover .frame { border-color: var(--accent-ring); }

/* What is drawn in a frame: a panel of the window's own materials, cut off at the foot */
.x { flex: 1; align-self: stretch; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px 12px 0 0; overflow: hidden; background: var(--w-sheet); backdrop-filter: blur(24px); box-shadow: 0 0 0 1px var(--w-line2), var(--w-shadow); color: var(--w-text); font-family: var(--font); font-size: 12.5px; line-height: 1.4; text-align: left; }
.x.col { gap: 10px; }
.x.cols { flex-direction: row; gap: 10px; }
.x.rel { position: relative; }
.x.colx { gap: 14px; justify-content: space-between; }
.x-grow { flex: 1; }
.x-p { position: relative; min-width: 0; padding: 10px; border-radius: 9px; background: var(--w-term); box-shadow: 0 0 0 1px var(--w-line2); display: flex; flex-direction: column; gap: 8px; }
.x-p.on { box-shadow: 0 0 0 1.5px var(--w-accent); }
.x-p.wt { background: linear-gradient(var(--w-waitwash), var(--w-waitwash)), var(--w-term); box-shadow: 0 0 0 1.5px var(--w-waiting); }
.x-p.col { gap: 8px; }
.x-p.drop { border: 1.5px dashed var(--w-accent); box-shadow: none; background: var(--w-wash); color: var(--w-accent); align-items: center; justify-content: center; font-weight: 600; flex: 1; animation: x-pulse 2.4s ease-in-out infinite; }
.x-col { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; min-width: 0; }
.x.cols > .x-p, .x.cols > .x-col { flex: 1; }
.x-float { position: absolute; left: 34%; right: 12px; top: 46px; bottom: 0; border-radius: 9px 9px 0 0; box-shadow: 0 0 0 1.5px var(--w-accent), 0 14px 34px -10px var(--w-accent-ring, rgba(0,0,0,.4)); background: var(--w-sheet); }
.x-ln { display: block; height: 6px; border-radius: 3px; background: var(--w-line2); flex: none; max-width: 100%; }
.x-ln.acc { background: var(--w-accent); opacity: .7; }
.x-ln.warn { background: var(--w-waiting); opacity: .8; }
.x-row { position: relative; display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 8px; border-radius: 8px; color: var(--w-text2); white-space: nowrap; flex: none; }
.x-row.two { min-height: 46px; }
.x-row.l1 { padding-left: 24px; }
.x-row.sel { background: var(--w-sel); color: var(--w-text); box-shadow: 0 0 0 1px var(--w-line2); }
.x-row.dim { opacity: .65; }
.x-t { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; text-overflow: ellipsis; color: var(--w-text); }
.x-t b { font-weight: 600; }
.x-sub { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.x-e { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 12px; font-variant-numeric: tabular-nums; }
.x-cap { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--w-muted); }
.x-mono { font-family: var(--mono); font-size: 11.5px; color: var(--w-termtext); white-space: pre; overflow: hidden; }
.x.cols .x-mono { white-space: normal; }
.fgrid.two .fc .frame { height: 11.5rem; }
.x-ph { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12.5px; }
.x-path { font-weight: 400; font-size: 11.5px; }
.x-dock { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.x-tiles { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: 8px; min-height: 0; }
.x-tiles .x-p { padding: 7px; }
.x-split { display: grid; gap: 5px; grid-template-columns: 1fr 1fr; align-content: start; }
.x-split.v { grid-template-columns: 1fr; }
.x-code { display: flex; flex-direction: column; gap: 2px; flex: 1; font-family: var(--mono); font-size: 12px; line-height: 1.65; color: var(--w-termtext); }
.x-code i { font-style: normal; }
.x-code .k { color: var(--w-accent); } .x-code .s { color: var(--w-done); } .x-code .m { color: var(--w-text); font-weight: 600; }
.x-cmd { margin-top: auto; padding: 4px 10px; border-radius: 8px; background: var(--w-field); box-shadow: 0 0 0 1px var(--w-line); color: var(--w-text); }
.x-img { position: relative; display: block; flex: 1; min-height: 0; border-radius: 6px; overflow: hidden; }
.x-img.wide { flex: none; width: 70%; aspect-ratio: 2 / 1; }
.x-moon { position: absolute; top: 10px; right: 22px; width: 15px; height: 15px; border-radius: 50%; background: #fff3d6; }
.x-mtn { position: absolute; inset: auto 0 0 0; height: 60%; }
.x-keys { display: grid; gap: 8px; align-content: start; }
.x-keys > div { display: flex; gap: 6px; flex-wrap: wrap; }
.key.on { border-color: var(--accent); color: var(--accent); }
.x-hint { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--w-text); }
.x-hint span { margin-left: 4px; }
.x-keys .key { min-width: 1.85rem; height: 1.85rem; border-radius: .5rem; font-size: .72rem; }
.x-mode { align-self: flex-start; gap: 10px; background: var(--w-wash); box-shadow: inset 0 0 0 1px var(--w-accent); color: var(--w-text); }
.x-find { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 8px; background: var(--w-field); box-shadow: inset 0 0 0 1px var(--w-line); font-family: var(--mono); font-size: 12.5px; color: var(--w-text); flex: none; margin-bottom: 4px; }
.x .caret { display: inline-block; width: 7px; height: 14px; background: var(--w-accent); animation: blink 1.1s steps(1) infinite; }
.x-themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; flex: 1; }
.x-themes span { display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 10px 8px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(128, 128, 128, .35); }
.x-themes i { display: block; height: 6px; border-radius: 3px; }
.x-switch { width: 34px; height: 20px; border-radius: 10px; background: var(--w-field); box-shadow: inset 0 0 0 1px var(--w-line2); position: relative; flex: none; }
.x-switch i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--w-text2); transition: transform .3s; }
.x-switch.on { background: var(--w-accent); box-shadow: none; }
.x-switch.on i { transform: translateX(14px); background: var(--w-accent-ink); }
.x-select { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 8px 0 10px; border-radius: 7px; background: var(--w-field); box-shadow: inset 0 0 0 1px var(--w-line2); }
.x-num { display: inline-flex; align-items: center; gap: 10px; height: 26px; padding: 0 4px; border-radius: 7px; background: var(--w-field); box-shadow: inset 0 0 0 1px var(--w-line2); font-variant-numeric: tabular-nums; }
.x-num b { width: 20px; text-align: center; font-weight: 500; color: var(--w-muted); }
.x-list { display: flex; flex-direction: column; gap: 4px; }
.x-list .x-row { background: var(--w-raised); }
.x-btn { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; flex: none; font-size: 12px; font-weight: 500; background: var(--w-btn); box-shadow: inset 0 0 0 1px var(--w-line2); color: var(--w-text); }
.x-btn.pri { background: var(--w-accent); color: var(--w-accent-ink); box-shadow: none; font-weight: 600; }
.x-btn.bad { color: var(--w-failed); }
.x-dlg { margin: auto; padding: 14px; border-radius: 12px; background: var(--w-sheet); box-shadow: 0 0 0 1px var(--w-line2); display: grid; gap: 12px; }
.x-dlg-h { display: flex; gap: 12px; align-items: flex-start; }
.x-dlg-h p { margin: 2px 0 0; font-size: 12px; }
.x-dlg-h .w-gbox { width: 32px; height: 32px; }
.x-dlg-f { display: flex; justify-content: flex-end; gap: 8px; }
.x-dlg .w-kbd, .x-btn .w-kbd { background: rgba(127, 127, 127, .18); border: 0; color: inherit; }
.x-banner { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--w-wash); box-shadow: inset 0 0 0 1px var(--w-accent); }
.x .w-chip.x-opt { display: none; }
@media (min-width: 1100px) { .x .w-chip.x-opt { display: inline-flex; } }

@keyframes x-pulse { 50% { opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .x-p.drop { animation: none; } }

/* The interface in a terminal, the command line, the measurements: the blocks kept from before */
.sec .stage { margin-top: 0; }
.speed .grid { margin-top: 0; }
.speed .stats { margin-top: 1.25rem; }
.speed > .wrap > .grid { margin-bottom: 0; }
.typed-stage { max-width: 56rem; margin-inline: auto; }
.speed .stat { --a: var(--accent) !important; --b: var(--accent-hover) !important; }
.cmp { margin-top: 0; overflow-x: auto; padding: .5rem; }
.cmp table { min-width: 34rem; }
.cmp-note { max-width: 46rem; margin: 2rem auto 0; text-align: center; text-wrap: balance; }

@media (max-width: 1100px) {
  .states { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .states, .fgrid, .fgrid.two { grid-template-columns: minmax(0, 1fr); }
}
