/* /compatibility support matrix (src/app/compatibility/route.ts). Loads after p-discovery.css. */
.cm{padding-top:64px}
.cm .dc-head{max-width:760px;margin-left:auto;margin-right:auto;margin-bottom:24px}

/* Pills */
.cm-pill{display:inline-flex;align-items:center;gap:7px;flex-shrink:0;height:26px;padding:0 11px;border-radius:999px;font-size:12px;line-height:1;font-weight:500;letter-spacing:-.005em;white-space:nowrap}
.cm-pill:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.cm-yes{background:#eef6ea;color:#4f8b43}
.cm-part{background:#fff3de;color:#c47a12}
.cm-no{background:#ecebe6;color:#8a8a85}

/* Legend */
.cm-legend{list-style:none;margin:0 auto 40px;padding:0;max-width:760px;display:flex;flex-wrap:wrap;gap:10px 22px}
.cm-legend li{display:flex;align-items:center;gap:10px;min-width:0;font-size:13px;line-height:20px;color:#888}
.dc .cm-legend code{font-size:.92em;white-space:nowrap}

/* Groups */
.cm-groups{display:grid;gap:16px}
.cm-group{padding:8px;border-radius:24px;background:#f0f0ed;scroll-margin-top:24px}
.cm-group-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 14px;padding:22px 22px 18px}
.cm-group-head h3{font-family:var(--head);font-weight:400;font-size:26px;line-height:1.2;letter-spacing:-.04em;color:#1c1c1a}
.story .cm-group-head p{font-size:14px;line-height:22px;color:#999;margin-left:auto}
.cm-rows{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.cm-rows>li{display:flex}

/* Rows */
.cm-row{display:flex;flex-direction:column;width:100%;padding:20px 22px;border-radius:16px;background:#fff;color:inherit;transition:box-shadow .25s var(--ease),transform .25s var(--ease)}
a.cm-row:hover{box-shadow:0 18px 44px rgba(26,24,20,.08);transform:translateY(-1px)}
a.cm-row:active{transform:scale(.995)}
.cm-row-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.cm-row h4{margin:0;font-size:17px;line-height:24px;font-weight:500;letter-spacing:-.02em;color:#222}
.story .cm-level{font-size:12px;line-height:18px;color:#a8a8a3;margin-top:4px}
.story .cm-note{font-size:14px;line-height:22px;color:#666;margin-top:10px}
.cm-arrow{display:inline-block;margin-left:2px;font-size:14px;color:#a8a8a3;transition:transform .25s var(--ease),color .25s var(--ease)}
a.cm-row:hover .cm-arrow{color:#222;transform:translate(2px,-2px)}
.cm-rows>li:last-child:nth-child(odd){grid-column:1/-1}

@media(max-width:820px){
  .cm{padding-top:40px}
  .cm-rows{grid-template-columns:1fr}
  .cm-group-head{padding:18px 16px 14px}
  .story .cm-group-head p{margin-left:0;flex-basis:100%}
  .cm-row{padding:18px}
  .cm-legend{gap:10px 16px;margin-bottom:28px}
  .cm-legend li{flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){.cm-row,.cm-arrow{transition:none}a.cm-row:hover{transform:none}}
