/* AndrIoT blog: extends site.css tokens. No inline styles, CSP-safe. */
.crumbs{margin-bottom:1.1rem;font-size:.875rem;color:var(--dim)}
.crumbs ol{display:flex;flex-wrap:wrap;gap:.4em .6em}
.crumbs li+li::before{content:"/";margin-right:.6em;color:var(--dim)}
.crumbs a{color:var(--mute)}.crumbs a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.crumbs [aria-current]{color:#c3cbdb}
.nav-links a[aria-current=page]:not(.btn){color:#fff;background:var(--card2)}
.post-hero h1{max-width:22ch;text-wrap:balance}
.post-hero .eyebrow{margin-bottom:.9rem}
.post-hero .post-meta{font-size:.9375rem;color:var(--mute);max-width:none}
.post-hero .post-meta strong{color:#fff;font-weight:650}
.blog-hero h1{max-width:20ch;text-wrap:balance}
.blog-hero p a{color:#9db8ff;text-decoration:underline;text-underline-offset:3px}

/* article body */
.post{max-width:76ch;min-width:0}
.post-cover{border-radius:var(--r);overflow:hidden;border:1px solid var(--line);margin:0 0 1.6rem;aspect-ratio:16/9;background:#10131b}
.post-cover .cv{width:100%;height:100%}
.post-intro p{font-size:1.15rem;color:#e3e8f4;line-height:1.65;margin:.8em 0}
.post-intro p:first-child{font-size:1.2rem;color:#fff}
.post h3{scroll-margin-top:96px}
.post code{font-family:var(--mono);font-size:.9em;padding:.12em .4em;border-radius:6px;background:rgba(255,255,255,.08);color:#dbe4ff}
.post ol.steps-l{counter-reset:s;margin:1em 0;padding:0;list-style:none}
.post ol.steps-l>li{counter-increment:s;position:relative;margin:.9em 0;padding:.2em 0 .2em 3.2rem;min-height:2.3rem}
.post ol.steps-l>li::before{content:counter(s);position:absolute;left:0;top:.1em;width:2.3rem;height:2.3rem;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:.95rem;color:#fff;background:var(--grad-btn);box-shadow:0 6px 18px -6px rgba(99,102,241,.7)}
.post ul.chk{list-style:none;padding-left:0}
.post ul.chk li{position:relative;padding-left:2rem;margin:.55em 0}
.post ul.chk li::before{content:"";position:absolute;left:.1rem;top:.32em;width:1.05rem;height:1.05rem;border-radius:5px;border:2px solid #6d7bd9;background:rgba(99,102,241,.12)}
.post ul.chk li::after{content:"";position:absolute;left:.42rem;top:.5em;width:.32rem;height:.6rem;border:solid #9db8ff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.takeaways{margin:1.8rem 0;padding:22px 26px;border-radius:20px;border:1px solid rgba(139,140,255,.4);background:linear-gradient(180deg,rgba(99,102,241,.16),rgba(59,130,246,.05))}
.takeaways h2{font-size:1.15rem!important;margin:0 0 .5em!important;color:#fff;letter-spacing:-.01em}
.takeaways ul{margin:.4em 0 0}
.tblw{margin:1.3em 0}
.tblw:focus-visible{outline-offset:2px}
.tbl td{color:#cbd3e3}
.tbl td:first-child{color:#fff;font-weight:600}
.post .tblw .tbl{min-width:520px}

/* figures */
.fig{margin:1.8em 0}
.fig-s{border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02));padding:14px;overflow-x:auto}
.fig-s:focus-visible{outline-offset:2px}
.fig figcaption{margin-top:.7em;font-size:.875rem;color:var(--dim);text-align:center;max-width:62ch;margin-inline:auto}
.dg{width:100%;height:auto;min-width:420px;aspect-ratio:var(--ar,auto);font-family:var(--font)}
.dg .nd,.dg .tile{fill:rgba(255,255,255,.05);stroke:rgba(255,255,255,.16)}
.dg .tile.hl{fill:rgba(99,102,241,.14);stroke:rgba(139,140,255,.5)}
.dg .win{fill:#0d1017;stroke:rgba(255,255,255,.16)}
.dg .url{fill:rgba(255,255,255,.06)}
.dg .rm{fill:#0d1118;stroke:rgba(255,255,255,.14)}
.dg .ic{fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.dg g.ic{stroke:#9db8ff}
.dg .ar{stroke:#8aa0d6;stroke-width:2;fill:none}
.dg .bp{stroke:#4ade80;stroke-width:2;fill:none;stroke-dasharray:6 5}
.dg .ln{stroke:rgba(255,255,255,.22);stroke-width:2}
.dg .gr{stroke:rgba(255,255,255,.1);stroke-width:1}
.dg .gl{fill:none;stroke:#22c55e;stroke-width:3;stroke-linejoin:round}
.dg .redl{stroke:#ef4444;stroke-width:2.5;stroke-dasharray:4 4}
.dg text{fill:#cbd3e3;font-size:13px}
.dg .t1{fill:#fff;font-size:14px;font-weight:650}
.dg .t1g{fill:#86efac;font-size:14px;font-weight:700}
.dg .t2{fill:#aab4c8;font-size:13px}
.dg .t2w{fill:#fff;font-size:13px}
.dg .t3{fill:#8f9ab0;font-size:11.5px}
.dg .t3g{fill:#86efac;font-size:11.5px}
.dg .t3r{fill:#fca5a5;font-size:11.5px}
.dg .tn{fill:#fff;font-size:18px;font-weight:800}
.dg .tv{fill:#fff;font-size:24px;font-weight:800}
.dg .tv2{fill:#fff;font-size:17px;font-weight:750}
.cv{display:block;width:100%;height:auto;aspect-ratio:16/9}
.cv .ic{fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* pros / limits */
.pl{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:1.2em 0}
.pl-c{border-radius:18px;padding:18px 22px;border:1px solid var(--line)}
.pl-c h3{margin:0 0 .4em!important;font-size:1.05rem!important}
.pl-c ul{margin:.3em 0 0}
.pl-p{background:rgba(34,197,94,.07);border-color:rgba(34,197,94,.35)}
.pl-p h3{color:#86efac!important}
.pl-l{background:rgba(245,158,11,.07);border-color:rgba(245,158,11,.38)}
.pl-l h3{color:#fcd34d!important}
.pl-p li::marker{color:#4ade80}.pl-l li::marker{color:#fbbf24}
@media(max-width:700px){.pl{grid-template-columns:1fr}}

/* faq inside article */
.post #faq~h3{font-size:1.08rem;margin:1.5em 0 .3em}
.post #faq~h3+p{margin-top:.3em}
.post #faq~.post-cta h3{margin:0}

/* CTA */
.post-cta{margin:2.6em 0 .5em;padding:clamp(22px,3vw,34px);border-radius:24px;border:1px solid rgba(139,140,255,.45);background:radial-gradient(500px 200px at 10% 0%,rgba(59,130,246,.28),transparent 70%),radial-gradient(500px 220px at 100% 100%,rgba(139,92,246,.28),transparent 70%),rgba(255,255,255,.03)}
.post-cta h2{margin:0 0 .3em!important;font-size:1.5rem!important}
.post-cta p{margin:.3em 0 0;color:#d4daea}
.post-cta .cta-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:1.1rem}
.post-cta small{display:block;margin-top:1rem;color:var(--mute)}
.post-cta .btn,.post .post-cta a.btn{text-decoration:none;color:#fff}
.post-cta small a{color:#9db8ff;text-decoration:underline;text-underline-offset:3px}
@media(max-width:520px){.post-cta .cta-row .btn{width:100%}}

/* cards */
.pgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.pc{display:flex;flex-direction:column;border-radius:22px;border:1px solid var(--line);background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025));overflow:hidden;transition:transform .3s,border-color .3s,box-shadow .3s;min-width:0}
.pc:hover,.pc:focus-within{transform:translateY(-4px);border-color:rgba(139,140,255,.4);box-shadow:0 24px 50px -24px rgba(80,90,255,.45)}
.pc-cover{display:block;aspect-ratio:16/9;background:#10131b}
.pc-b{display:flex;flex-direction:column;gap:.5rem;padding:18px 22px 22px;flex:1}
.pc-cat{font-size:.75rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#a9c3ff}
.pc h3{font-size:1.18rem;line-height:1.28;font-weight:750;letter-spacing:-.015em;color:#fff;text-wrap:balance}
.pc h3 a:hover{text-decoration:underline;text-underline-offset:4px}
.pc-d{color:var(--mute);font-size:.95rem;line-height:1.55}
.pc-m{margin-top:auto;padding-top:.4rem;color:var(--dim);font-size:.85rem}
@media(max-width:1020px){.pgrid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.pgrid{grid-template-columns:1fr}}
.related{margin-top:clamp(40px,6vw,72px)}
.related h2{font-size:clamp(1.5rem,3vw,2rem);font-weight:800;letter-spacing:-.025em;margin-bottom:1.2rem}

/* index: pure-CSS category filter */
.blog-list{padding-bottom:20px}
.chips{display:block}
.chip-l{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 28px}
.chip-l label{padding:.55em 1.1em;border-radius:999px;border:1px solid var(--line2);background:var(--card);color:var(--mute);font-weight:600;font-size:.9375rem;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.chip-l label:hover{color:#fff;background:var(--card2)}
.chip-r:focus-visible~.chip-l label{outline:none}
#c-all:checked~.chip-l label[for=c-all],#c-cameras:checked~.chip-l label[for=c-cameras],#c-sensors:checked~.chip-l label[for=c-sensors],#c-automation:checked~.chip-l label[for=c-automation],#c-guides:checked~.chip-l label[for=c-guides]{background:var(--grad-btn);border-color:transparent;color:#fff}
#c-all:focus-visible~.chip-l label[for=c-all],#c-cameras:focus-visible~.chip-l label[for=c-cameras],#c-sensors:focus-visible~.chip-l label[for=c-sensors],#c-automation:focus-visible~.chip-l label[for=c-automation],#c-guides:focus-visible~.chip-l label[for=c-guides]{outline:2px solid #93b8ff;outline-offset:3px}
#c-cameras:checked~.pgrid .pc:not([data-cat=cameras]),#c-sensors:checked~.pgrid .pc:not([data-cat=sensors]),#c-automation:checked~.pgrid .pc:not([data-cat=automation]),#c-guides:checked~.pgrid .pc:not([data-cat=guides]){display:none}
.blog-end{margin-top:clamp(40px,6vw,72px);padding:clamp(22px,3vw,32px);border-radius:22px;border:1px solid var(--line);background:var(--card);max-width:820px}
.blog-end h2{font-size:1.4rem;font-weight:800;margin-bottom:.4em}
.blog-end p{color:var(--mute)}
.blog-end a{color:#9db8ff;text-decoration:underline;text-underline-offset:3px}

/* home: from the blog */
.home-blog .pgrid{margin-top:0}
.home-blog .more{display:flex;justify-content:center;margin-top:32px}

/* article layout tweaks */
@media(max-width:900px){.toc{margin-bottom:8px}.post-cover{border-radius:16px}}
@media(max-width:520px){.dg{min-width:460px}.post ol.steps-l>li{padding-left:2.9rem}}
@media(prefers-reduced-motion:reduce){.pc,.chip-l label{transition:none}.pc:hover{transform:none}}
