/* ==========================================================================
   Blog: single post and, later, the blog and category lists. Loaded only on
   posts and post archives. Reads the site tokens; the article measure is set
   for long reading, with a sticky table of contents and a side card.
   ========================================================================== */

/* Reading progress, under the masthead */
.read-progress{position:fixed;left:0;right:0;top:0;height:3px;z-index:90;pointer-events:none}
.read-progress i{display:block;height:100%;width:100%;transform-origin:0 50%;transform:scaleX(var(--p,0));background:var(--grad-cool)}

/* Header */
.post-hero{position:relative;overflow:hidden;padding:3rem 0 0;background:linear-gradient(180deg,var(--paper),var(--mist))}
.post-hero .aurora .b1{opacity:.4}
.post-hero .aurora .b2{opacity:.3}
.post-head{position:relative;z-index:1;max-width:52rem}
.post-head .crumb-trail{margin:0 0 1.6rem}
.post-head h1{margin:0 0 1.1rem;font-size:clamp(2rem,1.4rem + 2.2vw,2.9rem);max-width:24ch;overflow-wrap:anywhere}
.post-lead{font-size:var(--fs-lead);color:var(--graphite);max-width:60ch;margin:0}
.post-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem .8rem;margin:1.8rem 0 0;font-size:.9rem;color:var(--graphite)}
.post-by{font-weight:600;color:var(--plum)}
.post-dot{width:.25rem;height:.25rem;border-radius:50%;background:currentColor;opacity:.5}
.post-av{display:grid;place-items:center;width:2.2rem;height:2.2rem;border-radius:50%;font-family:var(--display);font-weight:600;font-size:.8rem;color:#fff;background:var(--grad-v);flex:none}
.post-av.lg{width:3.4rem;height:3.4rem;font-size:1.1rem}
.post-cover{position:relative;z-index:1;margin:2.6rem auto 0;max-width:66rem}
.post-cover img{width:100%;height:auto;border-radius:20px 20px 0 0;border:1px solid var(--hairline);border-bottom:0;box-shadow:0 -10px 50px -30px var(--shadow-ink)}

/* Layout: contents, article, side card */
.post-grid{display:grid;grid-template-columns:14.5rem minmax(0,44rem) 16rem;justify-content:space-between;gap:2.6rem;padding:3.5rem 0 4rem;align-items:start}
.post-toc{position:sticky;top:6rem}
.post-side{align-self:stretch;display:flex;flex-direction:column}
.ps-stick{position:sticky;top:6rem;margin-top:2.4rem}
.ps-stick .ps-card{box-shadow:0 30px 60px -40px var(--shadow-ink)}
.post-toc details{padding:0}
.post-toc summary{list-style:none;cursor:default;font-size:var(--fs-label);letter-spacing:var(--track-label);text-transform:uppercase;font-weight:600;color:var(--graphite);margin:0 0 .8rem}
.post-toc summary::-webkit-details-marker{display:none}
.post-toc ol{list-style:none;margin:0;padding:0;border-left:1px solid var(--hairline);display:grid;gap:.1rem;max-height:calc(100vh - 10rem);overflow:auto;scrollbar-width:thin}
.post-toc a{display:block;padding:.35rem .6rem .35rem .9rem;border-left:2px solid transparent;font-size:.85rem;line-height:1.4;color:var(--graphite);text-decoration:none;transition:color .2s,border-color .2s,background .2s}
.post-toc a:hover{color:var(--plum)}
.post-toc a.on{color:var(--violet-deep);font-weight:600;border-left-color:var(--violet);background:linear-gradient(90deg,var(--v-soft),transparent)}

/* Article */
.post-body.prose{max-width:none;margin:0;font-size:1.075rem;line-height:1.78;color:var(--ink);overflow-wrap:break-word}
.post-body a{overflow-wrap:anywhere}
.post-body p{margin:0 0 1.15em}
.post-body h2{font-size:clamp(1.5rem,1.2rem + 1vw,1.95rem);line-height:1.3;margin:2.6em 0 .7em;scroll-margin-top:6rem}
.post-body h3{font-size:1.25rem;line-height:1.4;margin:1.9em 0 .5em;scroll-margin-top:6rem}
.post-body h4{font-size:1.08rem;margin:1.5em 0 .4em}
.post-sec:first-child h2,.post-body>h2:first-child{margin-top:0}
.post-body strong{color:var(--plum);font-weight:600}
.post-body a{color:var(--violet-deep);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--violet) 35%,transparent);text-underline-offset:3px}
.post-body a:hover{text-decoration-color:var(--violet)}
.post-body ul,.post-body ol{margin:0 0 1.3em;padding:0}
.post-body ul{list-style:none}
.post-body ul > li{position:relative;padding-left:1.5rem;margin:.45em 0}
.post-body ul > li::before{content:"";position:absolute;left:.3rem;top:.72em;width:.42rem;height:.42rem;border-radius:50%;background:var(--violet)}
.post-body ol{padding-left:1.5rem}
.post-body ol > li{margin:.45em 0;padding-left:.3rem}
.post-body ol > li::marker{color:var(--violet);font-weight:600}
.post-body blockquote{margin:1.6em 0;padding:1rem 1.3rem;border-left:3px solid var(--violet);background:var(--mist);border-radius:0 12px 12px 0;color:var(--plum)}
.post-body img{border-radius:14px;margin:1.4em 0}
.post-body hr{border:0;border-top:1px solid var(--hairline);margin:2.4em 0}

/* The quick answer section reads as a summary box */
.post-sec.answer{margin:0 0 2.4rem;padding:1.6rem 1.7rem .6rem;border-radius:18px;background:linear-gradient(160deg,color-mix(in srgb,var(--violet) 7%,#fff),var(--paper));border:1px solid var(--v-border)}
.post-sec.answer h2{margin-top:0;font-size:1.35rem}
.post-sec.answer h2::before{content:"Quick answer";display:block;margin:0 0 .5rem;font-family:var(--body);font-size:var(--fs-label);letter-spacing:var(--track-label);text-transform:uppercase;color:var(--violet)}

/* Tables */
.tbl-wrap{margin:1.6em 0 2em;overflow-x:auto;border:1px solid var(--hairline);border-radius:14px;background:var(--paper)}
.post-body table{width:100%;border-collapse:collapse;font-size:.92rem;line-height:1.55}
.post-body th,.post-body td{padding:.8rem 1rem;text-align:left;vertical-align:top;border-top:1px solid var(--hairline)}
.post-body thead th,.post-body tr:first-child th{border-top:0;background:var(--mist);font-family:var(--display);font-weight:600;color:var(--plum)}
.post-body tbody tr:nth-child(even) td{background:color-mix(in srgb,var(--mist) 45%,#fff)}
.post-body td:first-child{font-weight:600;color:var(--plum)}
.post-body table:has([rowspan]) td:first-child{font-weight:400;color:inherit}
.post-body table:has([rowspan]) td[rowspan]{font-weight:600;color:var(--plum);background:var(--paper)}

/* In article call to action */
.post-inline-cta{display:flex;align-items:center;justify-content:space-between;gap:1.4rem;margin:2.6rem 0;padding:1.4rem 1.6rem;border-radius:18px;color:#fff;background:var(--grad-band);box-shadow:0 24px 50px -34px var(--shadow-ink)}
.post-inline-cta p{margin:0;color:rgba(255,255,255,.8);font-size:.95rem;line-height:1.55}
.post-inline-cta .pic-t{font-family:var(--display);font-weight:600;font-size:1.15rem;color:#fff;margin-bottom:.2rem}
.post-inline-cta .btn.primary{background:#fff;color:var(--violet-deep);flex:none;text-decoration:none}

/* Author */
.post-author{display:flex;gap:1rem;align-items:center;margin:3.4rem 0 0;padding:1.4rem 0 0;border-top:1px solid var(--hairline)}
.post-author p{margin:0}
.pa-k{font-size:var(--fs-label);letter-spacing:var(--track-label);text-transform:uppercase;color:var(--graphite)}
.pa-n{font-family:var(--display);font-weight:600;font-size:1.1rem;color:var(--plum)}
.pa-d{font-size:.92rem;color:var(--graphite);margin-top:.3rem !important}

/* Side card and share */
.ps-card{padding:1.3rem;border-radius:18px;border:1px solid var(--hairline);background:linear-gradient(170deg,var(--mist),var(--paper));box-shadow:0 24px 50px -40px var(--shadow-ink)}
.ps-k{margin:0 0 .5rem;font-size:var(--fs-label);letter-spacing:var(--track-label);text-transform:uppercase;font-weight:600;color:var(--graphite)}
.ps-t{margin:0 0 1.1rem;font-family:var(--display);font-weight:600;font-size:1rem;line-height:1.4;color:var(--plum)}
.ps-card .btn{width:100%}
.ps-link{display:block;margin-top:.8rem;text-align:center;font-size:.88rem;font-weight:600;color:var(--violet-deep);text-decoration:none}
.ps-share{margin-top:0;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.ps-share .ps-k{flex-basis:100%}
.ps-share a,.ps-share button{display:grid;place-items:center;width:2.4rem;height:2.4rem;border-radius:10px;border:1px solid var(--hairline);background:var(--paper);color:var(--graphite);cursor:pointer;transition:color .2s,border-color .2s}
.ps-share a:hover,.ps-share button:hover{color:var(--violet);border-color:var(--violet)}
.ps-share svg{width:1rem;height:1rem}
.ps-share button.done{color:var(--ic-green);border-color:var(--ic-green)}

@media(max-width:1200px){
  .post-grid{grid-template-columns:14rem minmax(0,1fr);gap:2.6rem}
  .post-side{display:none}
}
@media(max-width:900px){
  .post-grid{grid-template-columns:minmax(0,1fr);gap:1.6rem;padding-top:2rem}
  .post-toc{position:static}
  .post-toc details{border:1px solid var(--hairline);border-radius:14px;padding:.9rem 1rem;background:var(--paper)}
  .post-toc details:not([open]) summary{margin:0}
  .post-toc summary{cursor:pointer;display:flex;justify-content:space-between}
  .post-toc summary::after{content:"+";font-size:1rem;color:var(--violet)}
  .post-toc details[open] summary::after{content:"\2212"}
  .post-toc ol{max-height:18rem}
  .post-inline-cta{flex-direction:column;align-items:flex-start}
  .post-sec.answer{padding:1.3rem 1.2rem .4rem}
  .post-body table{min-width:34rem;font-size:.86rem}
  .post-body th,.post-body td{padding:.65rem .8rem}
}


/* Category icon in the breadcrumb */
.crumb-cat{display:inline-flex;align-items:center;gap:.35rem}
.crumb-cat .ico{display:inline-grid;color:var(--violet)}
.crumb-cat svg{width:.95rem;height:.95rem}

/* Side panel: category label, latest posts, categories */
.ps-k{display:flex;align-items:center;gap:.45rem}
.ps-k .ico{display:inline-grid;place-items:center;width:1.6rem;height:1.6rem;border-radius:8px;color:#fff;background:var(--grad-v)}
.ps-k .ico svg{width:.9rem;height:.9rem}
.ps-block{margin-top:1.8rem;padding-top:1.4rem;border-top:1px solid var(--hairline)}
.pm{display:grid;grid-template-columns:4.6rem minmax(0,1fr);column-gap:.8rem;align-items:start;padding:.55rem 0;text-decoration:none}
.pm-img{grid-row:span 2;display:block;aspect-ratio:16/10;border-radius:8px;overflow:hidden;border:1px solid var(--hairline)}
.pm-img img{width:100%;height:100%;object-fit:cover}
.pm-t{font-family:var(--display);font-weight:600;font-size:.86rem;line-height:1.35;color:var(--plum);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.pm:hover .pm-t{color:var(--violet-deep)}
.pm-d{font-size:.74rem;color:var(--graphite);margin-top:.2rem}
.ps-cats{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.2rem .9rem}
.ps-cats a{display:inline-flex;align-items:center;gap:.35rem;padding:.25rem 0;font-size:.84rem;line-height:1.3;color:var(--graphite);text-decoration:none;transition:color .2s}
.ps-cats .ico{display:inline-grid;color:var(--violet-bright)}
.ps-cats svg{width:.95rem;height:.95rem}
.ps-cats a:hover{color:var(--violet-deep)}
.ps-cats li.on a{color:var(--violet-deep);font-weight:600;text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--v-border)}

/* Questions inside a post: accordion, first answer open */
.post-faq{display:grid;gap:.6rem;margin-top:1rem}
.post-faq details{border:1px solid var(--hairline);border-radius:14px;background:var(--paper);padding:0 1.2rem}
.post-faq details[open]{border-color:var(--v-border);background:linear-gradient(170deg,color-mix(in srgb,var(--violet) 4%,#fff),var(--paper))}
.post-faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 0;font-family:var(--display);font-weight:600;font-size:1.02rem;line-height:1.4;color:var(--plum)}
.post-faq summary::-webkit-details-marker{display:none}
.post-faq summary::after{content:"+";flex:none;font-size:1.3rem;color:var(--violet-bright);transition:transform .2s}
.post-faq details[open] summary::after{transform:rotate(45deg)}
.pf-a{padding:0 0 .6rem;font-size:1rem}
.pf-a p{margin:0 0 .8em}

/* More from the category */
.post-more .sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem 2rem;flex-wrap:wrap;max-width:none}
.post-more .sec-head h2{display:flex;align-items:center;gap:.8rem;margin:0}
.post-more .sec-head p{margin:0}
.pm-ico{display:inline-grid;place-items:center;flex:none;width:2.8rem;height:2.8rem;border-radius:14px;color:#fff;background:var(--grad-v)}
.pm-ico svg{width:1.4rem;height:1.4rem}
.post-more .sec-head p a{color:var(--violet-deep);font-weight:600;text-decoration:none}
.pc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.3rem;margin-top:2.6rem}
.pc{border-radius:18px;border:1px solid var(--hairline);background:var(--paper);overflow:hidden;transition:transform .25s var(--ease-out),box-shadow .25s}
.pc:hover{transform:translateY(-3px);box-shadow:0 26px 50px -34px var(--shadow-ink)}
.pc-link{display:flex;flex-direction:column;height:100%;text-decoration:none;color:inherit}
.pc-img{display:block;aspect-ratio:16/9;overflow:hidden;border-bottom:1px solid var(--hairline)}
.pc-img img{width:100%;height:100%;object-fit:cover}
.pc-body{display:flex;flex-direction:column;gap:.55rem;padding:1.2rem 1.3rem 1.4rem;flex:1}
.pc-cat{display:inline-flex;align-items:center;gap:.4rem;font-size:.78rem;font-weight:600;color:var(--violet-deep)}
.pc-cat .ico{display:inline-grid;color:var(--violet-bright)}
.pc-cat svg{width:1rem;height:1rem}
.pc-t{font-family:var(--display);font-weight:600;font-size:1.12rem;line-height:1.35;color:var(--plum);overflow-wrap:anywhere}
.pc:hover .pc-t{color:var(--violet-deep)}
.pc-x{font-size:.9rem;line-height:1.55;color:var(--graphite)}
.pc-m{margin-top:auto;padding-top:.4rem;font-size:.78rem;color:var(--graphite)}

/* Gallery from the old builder's image carousels */
.post-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(9rem,1fr));gap:.7rem;margin:1.2em 0 1.6em}
.post-gallery img{width:100%;aspect-ratio:16/10;object-fit:cover;margin:0;border-radius:10px;border:1px solid var(--hairline);background:var(--mist)}
.post-body figure{margin:1.6em 0}
.post-body figure img{margin:0}

/* Sub sections the old builder set as list items with a heading: no bullet, heading at sub section size */
.post-body ul li:has(> h2, > h3, > h4){padding-left:0;margin:1.2em 0}
.post-body ul li:has(> h2, > h3, > h4)::before{display:none}
.post-body li > h2,.post-body li > h3,.post-body li > h4{font-size:1.15rem;line-height:1.4;margin:0 0 .35em}
.post-body li > h2::before,.post-body li > h3::before,.post-body li > h4::before{content:"";display:inline-block;width:.45rem;height:.45rem;border-radius:50%;background:var(--violet);margin:0 .6rem .15rem 0;vertical-align:middle}
.post-video{display:block;width:100%;margin:1.4em 0 1.8em;border-radius:14px;border:1px solid var(--hairline);background:var(--plum)}
.post-body .wp-video{width:100% !important;margin:1.4em 0 1.8em}
.post-body .wp-video video,.post-body .wp-video .mejs-container{width:100% !important;height:auto !important;border-radius:14px;overflow:hidden}
/* The side card button sits at the right edge: its trial tooltip opens to the left and wraps */
.ps-card .btn[data-tip]::after,.post-inline-cta .btn[data-tip]::after{left:auto;right:0;white-space:normal;width:max-content;max-width:15rem;text-align:left}
.post-sec.summary{margin:0 0 2.4rem;padding:1.6rem 1.7rem .6rem;border-radius:18px;background:linear-gradient(160deg,color-mix(in srgb,var(--violet) 7%,#fff),var(--paper));border:1px solid var(--v-border)}
.post-sec.summary h2{margin-top:0;font-size:1.35rem}
.post-sec.summary+.post-sec h2{margin-top:1.2em}
@media(max-width:900px){.post-sec.summary{padding:1.3rem 1.2rem .4rem}}
.post-body td img,.post-body th img{margin:0;max-width:8rem;border-radius:6px}
@media(max-width:1000px){.pc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.pc-grid{grid-template-columns:1fr}}

/* ==========================================================================
   Blog home and category pages
   ========================================================================== */
.bl-hero{position:relative;overflow:hidden;padding:3rem 0 2.6rem;background:linear-gradient(180deg,var(--paper),var(--mist))}
.bl-hero .aurora .b1{opacity:.4}.bl-hero .aurora .b2{opacity:.3}
.bl-head{position:relative;z-index:1}
.bl-head .crumb-trail{margin:0 0 1.4rem}
.bl-head h1{margin:0 0 .8rem}
.bl-lead{font-size:var(--fs-lead);color:var(--graphite);max-width:60ch;margin:0}
.bl-search{display:flex;align-items:center;gap:.6rem;max-width:36rem;margin:1.8rem 0 0;padding:.35rem .35rem .35rem 1rem;border:1px solid var(--hairline);border-radius:14px;background:var(--paper);box-shadow:0 18px 40px -30px var(--shadow-ink)}
.bl-search:focus-within{border-color:var(--violet)}
.bl-search .ico{display:grid;color:var(--graphite)}
.bl-search .ico svg{width:1.1rem;height:1.1rem}
.bl-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:1rem;color:var(--ink);padding:.55rem 0}
.bl-search .btn{border-radius:10px;padding:.7rem 1.1rem}
.bl-catbar{padding:1.1rem 0;border-bottom:1px solid var(--hairline)}
.bl-cats ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.3rem 1.4rem}
.bl-cats a{display:inline-flex;align-items:center;gap:.4rem;padding:.35rem 0;font-size:.9rem;font-weight:500;color:var(--graphite);text-decoration:none;border-bottom:2px solid transparent;transition:color .2s,border-color .2s}
.bl-cats .ico{display:inline-grid;color:var(--violet-bright)}
.bl-cats svg{width:1rem;height:1rem}
.bl-cats a:hover{color:var(--violet-deep)}
.bl-cats li.on a{color:var(--violet-deep);font-weight:600;border-bottom-color:var(--violet)}
@media(max-width:800px){
  .bl-cats{overflow-x:auto;scrollbar-width:none;margin:0 calc(var(--gutter) * -1);padding:0 var(--gutter)}
  .bl-cats::-webkit-scrollbar{display:none}
  .bl-cats ul{flex-wrap:nowrap;width:max-content}
  .bl-cats a{white-space:nowrap}
}
.bl-top{padding-top:3rem}
.pf{border-radius:22px;border:1px solid var(--hairline);background:var(--paper);overflow:hidden;box-shadow:0 30px 60px -44px var(--shadow-ink);transition:box-shadow .25s}
.pf:hover{box-shadow:0 34px 70px -40px var(--shadow-ink)}
.pf-link{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);text-decoration:none;color:inherit}
.pf-img{display:block;min-height:100%;background:var(--mist)}
.pf-img img{width:100%;height:100%;object-fit:cover;aspect-ratio:16/10}
.pf-body{display:flex;flex-direction:column;gap:.7rem;justify-content:center;padding:2.2rem 2.4rem}
.pf-k{font-size:var(--fs-label);letter-spacing:var(--track-label);text-transform:uppercase;font-weight:600;color:var(--violet)}
.pf-t{font-family:var(--display);font-weight:600;font-size:clamp(1.4rem,1.1rem + 1vw,1.9rem);line-height:1.25;color:var(--plum)}
.pf:hover .pf-t{color:var(--violet-deep)}
.pf-x{font-size:1rem;line-height:1.6;color:var(--graphite)}
.pf-go{margin-top:.4rem;font-weight:600;color:var(--violet-deep)}
@media(max-width:900px){.pf-link{grid-template-columns:1fr}.pf-body{padding:1.5rem 1.4rem 1.7rem}}
.bl-sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem 2rem;flex-wrap:wrap;margin:3.2rem 0 0}
.bl-cat-sec .bl-sec-head,.bl-list .bl-sec-head{margin-top:0}
.bl-sec-head h2{margin:0;font-size:var(--fs-h3)}
.bl-sec-head > a{font-weight:600;color:var(--violet-deep);text-decoration:none;white-space:nowrap}
.bl-sec-head > a:hover{text-decoration:underline}
.bl-sh-t{display:flex;align-items:center;gap:1rem;max-width:48rem}
.bl-sh-t p{margin:.3rem 0 0;color:var(--graphite)}
.bl-top .pc-grid,.bl-cat-sec .pc-grid,.bl-list .pc-grid{margin-top:1.8rem}
.bl-cat-sec{padding:3.6rem 0}
.bl-none{font-size:1.05rem;color:var(--graphite)}
.bl-pages{margin:3rem 0 0}
.bl-pages ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:.4rem}
.bl-pages a,.bl-pages span{display:grid;place-items:center;min-width:2.6rem;height:2.6rem;padding:0 .8rem;border-radius:10px;border:1px solid var(--hairline);background:var(--paper);font-weight:600;color:var(--plum);text-decoration:none}
.bl-pages a:hover{border-color:var(--violet);color:var(--violet-deep)}
.bl-pages .current{background:var(--violet);border-color:var(--violet);color:#fff}
.bl-pages .dots{border:0;background:transparent}
/* category page */
.bl-cat-title{display:flex;align-items:center;gap:1rem;margin:0 0 .8rem}
.bl-cat-title h1{margin:0}
.bl-cat-ico{display:grid;place-items:center;flex:none;width:3.6rem;height:3.6rem;border-radius:18px;color:#fff;background:var(--grad-v);box-shadow:0 16px 30px -16px var(--violet)}
.bl-cat-ico svg{width:1.8rem;height:1.8rem}
.bl-count{margin:1rem 0 0;font-size:.9rem;font-weight:600;color:var(--violet-deep)}
.bl-cta{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:1.2rem 1.6rem;margin:0 0 2.6rem;padding:1.4rem 1.6rem;border-radius:18px;border:1px solid var(--v-border);background:linear-gradient(160deg,color-mix(in srgb,var(--violet) 7%,#fff),var(--paper))}
.bl-cta p{margin:0;font-family:var(--display);font-weight:600;font-size:1.1rem;line-height:1.4;color:var(--plum)}
.bl-cta-go{display:flex;align-items:center;gap:1.2rem;flex-wrap:wrap}
.bl-cta-link{font-weight:600;color:var(--violet-deep);text-decoration:none;white-space:nowrap}
.bl-cta .btn[data-tip]::after{left:auto;right:0;white-space:normal;width:max-content;max-width:15rem}
@media(max-width:800px){.bl-cta{grid-template-columns:auto minmax(0,1fr)}.bl-cta-go{grid-column:1/-1}}

/* Browse by topic: categories as vertical tabs beside their newest posts */
.bl-browse{padding:4rem 0}
.bb{margin-top:2rem}
.bb.js{display:grid;grid-template-columns:17rem minmax(0,1fr);gap:2.4rem;align-items:start}
.bb-list{display:flex;flex-direction:column;gap:.15rem;position:sticky;top:6rem;padding:.5rem;border-radius:18px;border:1px solid var(--hairline);background:var(--paper)}
.bb-list button{display:flex;align-items:center;gap:.65rem;width:100%;padding:.6rem .8rem;border:0;border-radius:11px;background:transparent;text-align:left;font:inherit;font-size:.92rem;font-weight:500;color:var(--graphite);cursor:pointer;transition:background .2s,color .2s}
.bb-list button:hover{background:var(--mist);color:var(--plum)}
.bb-list button[aria-selected="true"]{background:color-mix(in srgb,var(--violet) 10%,#fff);color:var(--violet-deep);font-weight:600}
.bb-list .ico{display:grid;place-items:center;flex:none;width:1.9rem;height:1.9rem;border-radius:9px;color:var(--violet);background:var(--mist)}
.bb-list button[aria-selected="true"] .ico{color:#fff;background:var(--grad-v)}
.bb-list svg{width:1rem;height:1rem}
.bb-panel + .bb-panel{margin-top:3rem}
.bb.js .bb-panel + .bb-panel{margin-top:0}
.bb-head{display:flex;align-items:flex-end;justify-content:space-between;gap:.6rem 2rem;flex-wrap:wrap}
.bb-head h3{font-size:1.45rem;margin:0}
.bb-head p{margin:.3rem 0 0;color:var(--graphite);max-width:52ch}
.bb-head > a{font-weight:600;color:var(--violet-deep);text-decoration:none;white-space:nowrap}
.bb-head > a:hover{text-decoration:underline}
.bb-panel .pc-grid{margin-top:1.4rem}
@media(max-width:1000px){
  .bb.js{grid-template-columns:1fr;gap:1.4rem}
  .bb-list{position:static;flex-direction:row;overflow-x:auto;scrollbar-width:none;padding:.35rem}
  .bb-list::-webkit-scrollbar{display:none}
  .bb-list button{width:auto;white-space:nowrap;flex:none}
}

/* Author photos */
img.post-av{object-fit:cover;background:var(--mist)}
.post-av.xl{width:7.5rem;height:7.5rem;font-size:2rem;box-shadow:0 18px 40px -24px var(--shadow-ink)}
.post-by{text-decoration:none}
.post-by:hover{color:var(--violet-deep);text-decoration:underline}
.pa-n a{color:inherit;text-decoration:none}
.pa-n a:hover{color:var(--violet-deep)}
.pa-r{font-size:.88rem;font-weight:600;color:var(--violet-deep);margin:.1rem 0 0 !important}
.pa-links{display:flex;gap:1.2rem;margin-top:.6rem !important;font-size:.9rem;font-weight:600}
.pa-links a{color:var(--violet-deep);text-decoration:none}
.pa-links a:hover{text-decoration:underline}
.post-author{align-items:flex-start}

/* Author page */
.au-card{display:flex;gap:1.8rem;align-items:flex-start;max-width:56rem}
.au-card h1{margin:0}
.au-role{margin:.4rem 0 0;font-weight:600;color:var(--violet-deep)}
.au-bio{margin:.9rem 0 0;color:var(--graphite);font-size:1.02rem;line-height:1.65}
.au-in{display:inline-flex;align-items:center;gap:.45rem;margin-top:1rem;font-weight:600;color:var(--violet-deep);text-decoration:none}
.au-in svg{width:1rem;height:1rem}
.au-in:hover{text-decoration:underline}
@media(max-width:640px){.au-card{flex-direction:column;gap:1.2rem}}

/* Authors list */
.au-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(16rem,1fr));gap:1.3rem}
.au-tile{border-radius:18px;border:1px solid var(--hairline);background:var(--paper);transition:transform .25s var(--ease-out),box-shadow .25s}
.au-tile:hover{transform:translateY(-3px);box-shadow:0 26px 50px -34px var(--shadow-ink)}
.au-link{display:flex;flex-direction:column;align-items:flex-start;gap:.45rem;height:100%;padding:1.5rem;text-decoration:none;color:inherit}
.au-link .post-av{width:5rem;height:5rem;font-size:1.4rem;margin-bottom:.5rem}
.au-n{font-family:var(--display);font-weight:600;font-size:1.15rem;color:var(--plum)}
.au-r{font-size:.86rem;font-weight:600;color:var(--violet-deep)}
.au-b{font-size:.9rem;line-height:1.55;color:var(--graphite)}
.au-go{margin-top:auto;padding-top:.6rem;font-weight:600;color:var(--violet-deep)}

/* Meet the authors strip on the blog home */
.bl-authors{padding:2.6rem 0;border-bottom:1px solid var(--hairline)}
.bla{display:flex;align-items:center;justify-content:center;gap:1rem 1.6rem;flex-wrap:wrap;text-align:center}
.bla-faces{display:flex}
.bla-faces .post-av{width:3rem;height:3rem;border:3px solid var(--paper);box-shadow:0 8px 18px -10px var(--shadow-ink)}
.bla-faces .post-av + .post-av{margin-left:-.8rem}
.bla p{margin:0;font-family:var(--display);font-weight:600;font-size:1.1rem;color:var(--plum)}

/* Mera Work category: the brand mark (favicon) in place of a drawn icon. On the gradient tiles it sits on white. */
.mw-mark{display:block;width:1.15em;height:1.15em;object-fit:contain}
.pm-ico .mw-mark{width:2rem;height:2rem}
.bl-cat-ico .mw-mark{width:2.5rem;height:2.5rem}
.ps-k .ico .mw-mark{width:1.15rem;height:1.15rem}
.bb-list .ico .mw-mark{width:1.3rem;height:1.3rem}
.pm-ico:has(.mw-mark),.bl-cat-ico:has(.mw-mark),.ps-k .ico:has(.mw-mark),.bb-list button[aria-selected="true"] .ico:has(.mw-mark){background:#fff;box-shadow:inset 0 0 0 1px var(--hairline)}
/* Affiliate programme panel in the post side column, above the categories. */
.ps-block.ps-aff{padding:1rem 1.1rem 1.1rem;border:1px solid var(--hairline);border-radius:14px;background:var(--mist)}
.ps-aff .ps-k{margin-bottom:.6rem}
.ps-aff-t{margin:0 0 .3rem;font-weight:600;font-size:.95rem;line-height:1.35;color:var(--plum)}
.ps-aff-x{margin:0 0 .7rem;font-size:.85rem;line-height:1.45;color:var(--graphite)}
.ps-aff-l{font-weight:600;font-size:.85rem;color:var(--violet-deep);text-decoration:none}
.ps-aff-l:hover{text-decoration:underline;text-underline-offset:4px}
