/* The world shell for new site pages (lab/pages/build_pages.py, 2026-10-22): the small set of rules the shared helpers
   need that /agentic-erp/'s own stylesheets key on page-specific ids. Everything else is linked from pages/erp/
   (erp.css, stage.css, world.css, glow.css, data.css). Loads after those and before the page's own stylesheet. */

/* a product window inside a chapter: the glow.css shell recipe (its selectors are the TagFlow page's #desk and #board),
   on a class any page can use. Same slab, rim, inner light and halo; the neon top and left edge in ::after. */
.erp .pwin {
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid rgb(255 255 255 / .2);
  background: radial-gradient(70% 45% at 30% 0%, color-mix(in oklab, var(--glow) 16%, transparent), transparent 70%),
    radial-gradient(50% 40% at 85% 100%, color-mix(in oklab, var(--glow) 10%, transparent), transparent 70%), linear-gradient(180deg, #10131c 0%, #07080d 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .32), inset 0 0 0 8px rgb(255 255 255 / .02), inset 0 0 70px -28px color-mix(in oklab, var(--glow) 60%, transparent),
    0 0 70px -22px color-mix(in oklab, var(--glow) 60%, transparent), 0 34px 70px -30px rgb(0 0 0 / .7);
}
.erp .pwin::after {
  content: ""; position: absolute; inset: 0; z-index: 9; border-radius: inherit; pointer-events: none;
  background: linear-gradient(90deg, transparent 12%, var(--neon) 50%, transparent 88%) top / 100% 1px no-repeat,
    linear-gradient(180deg, transparent 20%, color-mix(in oklab, var(--neon) 75%, transparent) 55%, transparent 90%) left / 1px 100% no-repeat;
  filter: drop-shadow(0 0 5px var(--glow));
}
/* the title bar reads like the Workspace window's (ws-quiet.css) */
.erp .pwin .win__bar { border-bottom-color: rgb(255 255 255 / .08); }
.erp .pwin .win__bar span { font: 600 14px/1 var(--sc-font-display); letter-spacing: -.01em; color: #f4f3ef; }
.erp .pwin__body { padding: clamp(16px, 2vw, 24px); color: rgb(238 242 251 / .82); font-size: 14px; line-height: 1.55; }
.erp .pwin__body p { margin: 0; }
/* quiet rows inside a window: hairlines, 72% white, colour only for state (ws-quiet.css) */
.erp .pwin__rows { list-style: none; margin: 0; padding: 0; }
.erp .pwin__rows li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid rgb(255 255 255 / .08); color: rgb(244 243 239 / .72); }
.erp .pwin__rows li:first-child { border-top: 0; }
.erp .pwin__rows b { color: #f4f3ef; font-weight: 600; }
.erp .pwin__rows em { font-style: normal; font: 500 12px/1 var(--sc-font-mono); color: #8f88a6; white-space: nowrap; }
.erp .pwin__rows em.live { color: var(--neon-soft); }
.erp .pwin__rows em.done { color: #4ade80; }
.erp .pwin__rows em.turn { color: #f0b27a; }

/* a text-only chapter still rises into the same screen as its neighbours; the product slot is simply empty */
.erp .erpst:empty { display: none; }

/* a plain row of facts under a section (term and description on hairlines), the chapter notes' form outside a chapter */
.erp .erp-notes { display: grid; gap: 22px clamp(24px, 3vw, 40px); margin: clamp(36px, 4vw, 52px) 0 0; padding: 0; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.erp .erp-notes div { padding-top: 14px; border-top: 1px solid rgb(244 243 239 / .14); }
.erp .erp-notes dt { font: 600 15px/1.35 var(--sc-font-display); color: #f4f3ef; letter-spacing: -.01em; }
.erp .erp-notes dd { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: rgb(233 228 247 / .74); max-width: 44ch; text-wrap: pretty; }
@media (max-width: 1100px) { .erp .erp-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .erp .erp-notes { grid-template-columns: 1fr; gap: 18px; } }
