/* AI ল্যাব / income engine section (template-parts/ai-lab.php).
   Paper Dusk only: ink band, paper lines, terracotta highlights. */
.ai-lab { --al-ink: #1F1D24; --al-paper: #EDE6D6; --al-acc: #B9533C; --al-acc2: #9C4130; --al-line: rgba(237,230,214,.14); --al-dim: rgba(237,230,214,.62);
  background: var(--al-ink); color: var(--al-paper); padding: 64px 0 72px; overflow: hidden; }
.ai-lab .al-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
/* HUD labels: every one of them is Bangla, which a monospace stack cannot draw, so the phone fell back to its own Bengali font. Hind Siliguri with tabular digits keeps the instrument look (audit 4). */
.ai-lab .al-mono { font-family: "Hind Siliguri", system-ui, sans-serif; font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .01em; font-size: .78rem; }
.ai-lab .al-acc { color: #D9876F; } .ai-lab .al-dim { color: var(--al-dim); }
.ai-lab .al-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--al-line); padding-bottom: 16px; }
.ai-lab h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.2; margin: 6px 0 0; color: var(--al-paper); }
.ai-lab .al-top p { color: var(--al-dim); margin: 8px 0 0; line-height: 1.55; }
.ai-lab .al-live { display: flex; align-items: center; gap: 8px; color: #D9876F; }
.ai-lab .al-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--al-acc); animation: alBlink 1.6s infinite; }
@keyframes alBlink { 50% { opacity: .25; } }
.ai-lab .al-pipe { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 10px; }
/* Copy 13: the no-guarantee line sits right under the steps it qualifies. */
.ai-lab .al-note { margin: -8px 0 22px; max-width: 72ch; font-size: .92rem; line-height: 1.6; color: var(--al-dim); }
.ai-lab h1 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.2; margin: 6px 0 0; color: var(--al-paper); }
.ai-lab .al-node { border: 1px solid var(--al-line); border-radius: 6px; padding: 12px 12px 10px; position: relative; transition: border-color .4s, background .4s; }
.ai-lab .al-node .al-mono { color: var(--al-dim); }
.ai-lab .al-node b { display: block; font-size: 1rem; line-height: 1.35; margin-top: 4px; font-weight: 600; }
.ai-lab .al-ticks { display: flex; gap: 3px; margin-top: 10px; } .ai-lab .al-ticks i { flex: 1; height: 5px; border-radius: 2px; background: rgba(237,230,214,.12); transition: background .3s; }
.ai-lab .al-node.on { border-color: var(--al-acc); background: rgba(185,83,60,.13); } .ai-lab .al-node.on .al-ticks i { background: var(--al-acc); }
.ai-lab .al-node.done .al-ticks i { background: rgba(237,230,214,.45); }
.ai-lab .al-node:not(:last-child)::after { content: "›"; position: absolute; right: -9px; top: 50%; transform: translateY(-50%); color: var(--al-dim); }
.ai-lab .al-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.ai-lab .al-panel { border: 1px solid var(--al-line); border-radius: 8px; padding: 14px 16px; position: relative; min-width: 0; }
.ai-lab .al-ph { display: flex; justify-content: space-between; gap: 10px; color: var(--al-dim); margin-bottom: 8px; }
.ai-lab .al-ring { height: 430px; position: relative; }
.ai-lab .al-torus { width: 100%; height: 100%; display: block; }
.ai-lab .al-tags { position: absolute; right: 8px; top: 30px; list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; text-align: right; }
.ai-lab .al-tags a { color: var(--al-dim); text-decoration: none; font-size: .88rem; transition: color .3s; }
.ai-lab .al-tags li.on a, .ai-lab .al-tags a:hover, .ai-lab .al-tags a:focus-visible { color: var(--al-paper); }
.ai-lab .al-tags em { font-style: normal; color: #D9876F; font-family: ui-monospace, Menlo, monospace; font-size: .75rem; margin-left: 8px; }
.ai-lab .al-callout { position: absolute; left: 12px; bottom: 12px; border: 1px solid var(--al-acc); padding: 8px 12px; border-radius: 4px; background: rgba(31,29,36,.82); }
.ai-lab .al-callout b { color: #D9876F; font-weight: 600; }
.ai-lab .al-side { display: grid; gap: 16px; min-width: 0; }
.ai-lab .al-bars { display: flex; align-items: flex-end; gap: 7px; height: 120px; padding-top: 10px; }
.ai-lab .al-bars i { flex: 1; height: 100%; background: rgba(237,230,214,.35); border-radius: 3px 3px 0 0; transform-origin: bottom; transform: scaleY(var(--h)); }
.ai-lab .al-bars i.hi { background: var(--al-acc); }
.pd-js .ai-lab:not(.in) .al-bars i { transform: scaleY(.05); }
.ai-lab .al-bars i { transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.ai-lab .al-blabels { display: flex; gap: 7px; margin-top: 6px; } .ai-lab .al-blabels span { flex: 1; text-align: center; font-size: .62rem; color: var(--al-dim); }
.ai-lab .al-wave { width: 100%; height: 46px; display: block; }
.ai-lab .al-wave .w0 { stroke: rgba(237,230,214,.7); } .ai-lab .al-wave .w1 { stroke: var(--al-acc); } .ai-lab .al-wave .w2 { stroke: rgba(237,230,214,.4); }
.ai-lab .al-lower { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 16px; margin-top: 16px; }
.ai-lab .al-heat { display: grid; grid-template-columns: repeat(21, 1fr); gap: 3px; }
.ai-lab .al-heat i { aspect-ratio: 1; border-radius: 2px; background: rgba(237,230,214,.08); transition: background .25s; }
.ai-lab .al-heat i.lit { background: rgba(237,230,214,.5); } .ai-lab .al-heat i.hot { background: var(--al-acc); }
.ai-lab .al-dag { width: 100%; height: 170px; }
.ai-lab .al-dag-l { stroke: rgba(237,230,214,.35); } .ai-lab .al-acc-f { fill: var(--al-acc); } .ai-lab .al-paper-f { fill: var(--al-paper); }
.ai-lab .al-dag-t text { font-family: "Hind Siliguri", sans-serif; font-size: 11px; fill: rgba(237,230,214,.82); }
.ai-lab .al-foot { display: flex; justify-content: space-between; margin-top: 14px; color: var(--al-dim); }
.ai-lab .al-p { line-height: 1.6; margin: 0; } .ai-lab .al-stu { margin: 14px 0 0; }
.ai-lab .al-ctas { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.ai-lab .al-cta { display: inline-block; background: var(--al-acc2); color: var(--al-paper); padding: 13px 24px; border-radius: 10px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 0 #6f2d21; transition: transform .15s; }
.ai-lab .al-cta:hover { transform: translateY(-2px); color: var(--al-paper); }
.ai-lab .al-more { color: var(--al-paper); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) {
  .ai-lab .al-pipe { grid-template-columns: repeat(2, 1fr); } .ai-lab .al-node::after { display: none; }
  .ai-lab .al-node:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ai-lab .al-grid, .ai-lab .al-lower { grid-template-columns: 1fr; }
  .ai-lab .al-ring { height: 320px; } .ai-lab .al-tags { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ai-lab * { animation: none !important; transition: none !important; } }

/* The page H1 is for screen readers and search; the section heading is the visible one. */
.ai-lab-page .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
