/* P2 widgets — loaded only by apps that ship a P2 tool. Prefixed to avoid global collisions. */
.p2-tool { margin: 1.5rem 0 2rem; }
.p2-tool h2 { margin: 0 0 .35rem; }
.p2-tool h3 { margin: .2rem 0 .45rem; font-size: 1.05rem; }
.p2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.p2-card, .p2-tool figure.p2-card { border: 1px solid color-mix(in srgb, currentColor 16%, transparent); border-radius: 12px; padding: .75rem 1rem; margin: 0; }
.p2-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin: .75rem 0; }
.p2-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; }
.p2-picks { display: flex; flex-wrap: wrap; gap: .4rem .7rem; margin: .5rem 0 1rem; }
.p2-picks label { display: inline-flex; gap: .35rem; align-items: center; }
.p2-radar, .p2-ashby, .p2-flowsvg, .p2-anatomy svg, .p2-card svg { width: 100%; height: auto; max-width: 720px; }
.p2-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.p2-sheet { border: 1px dashed color-mix(in srgb, currentColor 35%, transparent); border-radius: 12px; padding: 1rem; }
.p2-sheet table { width: 100%; border-collapse: collapse; }
.p2-sheet th, .p2-sheet td { border: 1px solid color-mix(in srgb, currentColor 20%, transparent); min-width: 2.2rem; height: 2.2rem; padding: .25rem; }
.p2-bottles { display: flex; flex-wrap: wrap; gap: .5rem; }
.p2-bottle { display: inline-flex; flex-direction: column; align-items: center; gap: .25rem; width: 7.5rem; padding: .5rem; border: 1px solid transparent; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; }
.p2-bottle.on { border-color: currentColor; }
.p2-bottle i { display: block; width: 36px; height: 96px; border: 2px solid currentColor; border-radius: 4px 4px 12px 12px; position: relative; overflow: hidden; }
.p2-bottle i b { position: absolute; left: 0; right: 0; bottom: 0; background: #c45c7a; }
.p2-anatomy g:target rect { stroke-width: 3; fill-opacity: .28; }
.p2-examples { padding-left: 1.1rem; }
@media (max-width: 700px) { .p2-pair { grid-template-columns: 1fr; } }
@media print {
  .p2-sheet { break-inside: avoid; }
  body.study header, body.study .hero, body.study footer, body.study .p2-tool:not(#p2-stu-sheet) { display: none !important; }
}
