/* /packs and /packs/<id> (scripts/site_packs.py). Ported from Mira's site-v2 design/tools/v2.css; tokens from site.css.
   Linked only on pack pages. Green stays for checked things, so the "does" rows and never rows use violet and dim. */

.sec { padding: 104px 0; }
.sec.sec-tight { padding-top: 24px; }
.sec.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec h2 { font-size: clamp(32px, 4vw, 52px); text-wrap: balance; }
.sec-top { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.sec-top .more-link { flex: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--line-2); color: var(--v8); font: 500 12px/1.4 var(--mono); letter-spacing: 0; text-transform: none; }

/* Head */
.ph { padding: 56px 0 64px; }
.ph-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.ph-grid.solo { grid-template-columns: minmax(0, 1fr); }
.ph h1 { margin-top: 12px; max-width: 16em; font-size: clamp(40px, 5vw, 64px); text-wrap: balance; }
.ph .kicker { margin-top: 20px; }
.ph.center .kicker { margin-top: 0; }
.ph .lede { margin-top: 20px; max-width: 34em; font-size: 19px; color: var(--v8); text-wrap: pretty; }
.ph .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ph .small { margin-top: 14px; font-size: 14px; color: var(--dim); }
.ph.center { text-align: center; }
.ph.center .lede, .ph.center h1 { margin-inline: auto; }
.ph.center .row { justify-content: center; }
.ph .crumbs { margin-bottom: 0; }
.ph .crumbs span[aria-current] { color: var(--v8); }
.hero-avs { margin-top: 24px; display: flex; align-items: end; gap: 6px; }
.hero-avs .av { width: 36px; height: 36px; image-rendering: pixelated; }
.hero-avs .av-lead { width: 48px; height: 48px; }

/* Demo K, only when its video is in assets/media */
.pk-demo { --u: 4px; --px-edge: var(--frame); --px-fill: var(--panel); margin: 0; padding: 10px; }
.pk-demo video { width: 100%; height: auto; }
.pk-demo figcaption { padding: 10px 4px 2px; font-size: 14px; color: var(--dim); }
.how3 + .pk-demo { max-width: 880px; margin: 40px auto 0; }

/* /packs */
.pfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.pfilter a { --u: 2px; --px-edge: var(--line-2); --px-fill: var(--bg); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; color: var(--v8); text-decoration: none; font: 600 15px var(--sans); }
.pfilter a:hover { --px-edge: var(--v6); color: var(--v9); }
.pfilter a i { font: 500 12px var(--mono); font-style: normal; opacity: .75; }
.pgroup { scroll-margin-top: 96px; }
.pgroup + .pgroup { margin-top: 64px; }
.pgroup > h2 { font-size: 30px; margin-bottom: 8px; }
.pgroup > .gsub { margin-bottom: 24px; color: var(--dim); font-size: 16px; }
.pcard { --u: 3px; --px-edge: var(--line-2); --px-fill: var(--bg-2); display: flex; flex-direction: column; padding: 22px; color: var(--v8); }
.pcard .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pcard .avs { display: flex; align-items: end; }
.pcard .avs .av { width: 44px; height: 44px; image-rendering: pixelated; }
.pcard .avs .av + .av { width: 30px; height: 30px; margin-left: -3px; }
.pcard h3 { margin-top: 14px; font-size: 20px; }
.pcard .line { margin-top: 6px; font-size: 15px; color: var(--v8); }
.pcard .ticks { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pcard .ticks li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; line-height: 1.5; }
.pcard .ticks .pi { width: 14px; height: 14px; margin-top: 4px; color: var(--v7); }
.pcard .never { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
.pcard .never b { color: var(--v8); font-weight: 600; }
.pcard .meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: auto; padding-top: 16px; font: 500 12.5px var(--mono); color: var(--dim); }
.pcard .meta a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -11px; color: var(--link); font: 600 14.5px var(--sans); }
.how3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.how3 .n { display: inline-block; padding: 2px 7px; background: var(--v7); color: var(--v1); font: 600 12px var(--mono); }
.how3 h3 { margin-top: 12px; }
.how3 p { margin-top: 6px; font-size: 15px; color: var(--v8); }

/* /packs/<id> */
.bots3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bots3:has(> :nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bots3.one { grid-template-columns: minmax(0, 420px); }
.bot { --u: 3px; --px-edge: var(--line-2); --px-fill: var(--bg); padding: 22px; }
.bot .bot-av { --u: 2px; display: inline-grid; place-items: center; width: 64px; height: 64px; background: var(--v2); clip-path: var(--steps); }
.bot .bot-av .av { width: 48px; height: 48px; image-rendering: pixelated; }
.bot h3 { margin-top: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bot .lead { padding: 1px 6px; background: var(--v9); color: var(--v1); font: 600 11px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.bot .role { margin-top: 4px; font: 500 12.5px var(--mono); color: var(--dim); }
.bot p:not(.role) { margin-top: 8px; font-size: 15px; color: var(--v8); }
.split2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.asks { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.asks li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.asks .av { width: 36px; height: 36px; image-rendering: pixelated; }
.asks .bub { --u: 2px; --px-edge: var(--line-2); --px-fill: var(--surface); padding: 10px 14px; font-size: 15px; color: var(--ink); }
.asks .bub small { display: block; margin-top: 2px; color: var(--dim); font-size: 13px; }
.side { display: grid; gap: 20px; }
.side-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.listbox { --u: 3px; --px-edge: var(--line-2); --px-fill: var(--bg-2); padding: 24px; }
.listbox h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 18px; }
.rt { margin: 12px 0 0; padding: 0; list-style: none; }
.rt li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.rt li:last-child { border-bottom: 0; }
.rt li span { color: var(--dim); font: 500 13px var(--mono); }
.safe { --u: 3px; --px-edge: var(--line-2); --px-fill: var(--surface); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; padding: 32px; }
.safe h2 { font-size: clamp(28px, 3vw, 40px); }
.safe .safe-say { margin-top: 14px; color: var(--v8); }
.nos { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.nos li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.nos .pi { width: 16px; height: 16px; margin-top: 4px; color: var(--v7); }
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.skills li { --u: 2px; --px-edge: var(--line); --px-fill: var(--bg-2); padding: 16px 18px; font-size: 14.5px; color: var(--muted); }
.skills b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 15.5px; font-weight: 600; }

@media (max-width: 1023px) {
  .bots3:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid3, .bots3, .bots3:has(> :nth-child(4)), .bots3.one, .how3, .split2, .safe, .ph-grid, .skills, .side-2 { grid-template-columns: minmax(0, 1fr); }
  .ph-grid { gap: 40px; }
}
@media (max-width: 640px) {
  .sec { padding: 72px 0; }
  .sec.sec-tight { padding-top: 16px; }
  .sec-top { display: block; margin-bottom: 28px; }
  .sec-top .more-link { display: inline-block; margin-top: 14px; padding-block: 11px; margin-block: 3px -11px; }
  .ph { padding: 32px 0 40px; }
  .ph h1 { font-size: 38px; line-height: 1.04; }
  .ph .lede { font-size: 17px; }
  .ph .row .btn { width: 100%; }
  .safe { padding: 22px 18px; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .pfilter a, .pcard .meta a { transition: none; }
}
