/* Critical Business School — Ghost theme. Matches criticalbusinessschool.com */

/* ---------- Fonts ---------- */
@font-face{font-family:"Atlas Grotesk";font-weight:700;font-style:normal;font-display:swap;src:url("../fonts/Atlas-Grotesk-Bold.woff") format("woff");}
@font-face{font-family:"Atlas Grotesk";font-weight:400;font-style:italic;font-display:swap;src:url("../fonts/Atlas-Grotesk-Regular-Italic.woff") format("woff");}
@font-face{font-family:"Atlas Grotesk";font-weight:400;font-style:normal;font-display:swap;src:url("../fonts/Atlas-Grotesk-Regular.woff") format("woff");}
@font-face{font-family:"Berlingske Serif XCn";font-weight:700;font-style:normal;font-display:swap;src:url("../fonts/BerlingskeSerifXCn-Bd.woff") format("woff");}
@font-face{font-family:"Berlingske Serif XCn";font-weight:400;font-style:italic;font-display:swap;src:url("../fonts/BerlingskeSerifXCn-It.woff") format("woff");}
@font-face{font-family:"Berlingske Serif XCn";font-weight:400;font-style:normal;font-display:swap;src:url("../fonts/BerlingskeSerifXCn-Rg.woff") format("woff");}

/* ---------- Tokens ---------- */
:root{
  --c1:rgba(0,0,0,0.85);
  --c2:rgba(0,0,0,0.75);
  --c3:rgba(0,0,0,0.60);
  --c4:rgba(0,0,0,0.40);
  --c5:rgba(0,0,0,0.25);
  --line:rgba(0,0,0,0.75);
  --hair:rgba(0,0,0,0.17);
  --tint:rgba(0,0,0,0.04);
  --accent:#dfff00;
  --on-accent:rgba(0,0,0,0.85);
  --bg:#ffffff;
  --serif:"Berlingske Serif XCn", Georgia, serif;
  --sans:"Atlas Grotesk", Helvetica, Arial, sans-serif;
  --mono:"Monument Grotesk Mono Variable", ui-monospace, "SF Mono", Menlo, monospace;
  --col:760px;
}
.scheme-Light{color-scheme:light;}
.scheme-Dark, .scheme-Auto{color-scheme:light dark;}

@media (prefers-color-scheme: dark){
  body.scheme-Auto{
    --c1:rgba(255,255,255,0.92);--c2:rgba(255,255,255,0.74);--c3:rgba(255,255,255,0.58);
    --c4:rgba(255,255,255,0.42);--c5:rgba(255,255,255,0.28);
    --line:rgba(255,255,255,0.45);--hair:rgba(255,255,255,0.16);--tint:rgba(255,255,255,0.06);--bg:#111210;
    --on-accent:#141414;
  }
  body.scheme-Auto .gh-content img, body.scheme-Auto .article-image img{filter:brightness(0.9) contrast(1.02);}
}
body.scheme-Dark{
  color-scheme:dark;
  --c1:rgba(255,255,255,0.92);--c2:rgba(255,255,255,0.74);--c3:rgba(255,255,255,0.58);
  --c4:rgba(255,255,255,0.42);--c5:rgba(255,255,255,0.28);
  --line:rgba(255,255,255,0.45);--hair:rgba(255,255,255,0.16);--tint:rgba(255,255,255,0.06);--bg:#111210;
  --on-accent:#141414;
}
body.scheme-Dark .gh-content img, body.scheme-Dark .article-image img{filter:brightness(0.9) contrast(1.02);}

/* ---------- Base ---------- */
*{box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;}
html{background:var(--bg);}
body{overflow-x:clip;}
html,body{margin:0;padding:0;}
body{background:var(--bg);color:var(--c1);font-family:var(--sans);font-size:17px;line-height:1.1;}
a{color:inherit;text-decoration:none;}
a:focus-visible,button:focus-visible{outline:2px solid var(--c2);outline-offset:2px;border-radius:2px;}
img{display:block;max-width:100%;height:auto;}
hr{background:var(--line);border:0;height:1px;display:block;margin:0;}
b,strong{font-weight:700;}
.subtitle{font-family:var(--sans);font-weight:700;font-size:1.3rem;line-height:1.1;color:var(--c1);display:block;}
.caption{font-family:var(--mono);font-size:0.92rem;color:var(--c2);line-height:1.3;}
::selection{background:var(--accent);color:#141414;}

/* ---------- Buttons ---------- */
.button-13{display:inline-block;font-family:var(--sans);font-size:1.05rem;color:var(--on-accent);background:var(--accent);
  border:0.1rem solid rgba(0,0,0,0.1);border-radius:0.6rem;padding:0.8rem 1.4rem;line-height:1.1;
  filter:drop-shadow(0.3rem 0.3rem 0.4rem rgba(0,0,0,0.15));cursor:pointer;transition:filter .15s ease;}
.button-13:hover{filter:drop-shadow(0.15rem 0.15rem 0.25rem rgba(0,0,0,0.18));}
.button-ghost{display:inline-block;font-family:var(--sans);font-size:1rem;color:var(--c1);background:transparent;
  border:1px solid var(--line);border-radius:0.6rem;padding:0.55rem 1rem;cursor:pointer;transition:background .15s ease;}
.button-ghost:hover{background:var(--tint);}
@media (prefers-color-scheme: dark){
  body.scheme-Auto .button-13{border-color:rgba(0,0,0,0.28);filter:drop-shadow(0.25rem 0.25rem 0.4rem rgba(0,0,0,0.5));}
}
body.scheme-Dark .button-13{border-color:rgba(0,0,0,0.28);filter:drop-shadow(0.25rem 0.25rem 0.4rem rgba(0,0,0,0.5));}

/* header: see "Site header v2" below */

/* ---------- Layout ---------- */
.shell{display:block;max-width:var(--col);margin:0 auto;}
.intro{padding:1.75rem 1rem;border-bottom:1px solid var(--line);}
.intro p{margin:0 0 1rem 0;max-width:34em;line-height:1.25;}
.intro .meta{margin-top:1.25rem;display:flex;gap:0.9rem;align-items:center;flex-wrap:wrap;}
.intro .caption{font-size:0.72rem;text-transform:uppercase;letter-spacing:0.08em;color:var(--c3);margin-bottom:0.6rem;}
.list-title{font-family:var(--serif);font-weight:700;font-size:2.6rem;line-height:1;margin:0 0 1rem;color:var(--c1);}
.content{width:100%;padding:1.75rem 1rem 6rem;}
section.page{padding:0 0 3.5rem 0;}
.row{display:grid;grid-template-columns:8rem 1fr;gap:2rem;}
.row .body p{margin:0 0 0.9rem 0;max-width:34em;line-height:1.25;}
@media (max-width:820px){
  body{font-size:16px;}
  .intro{padding:1rem;}
  .content{padding:1.25rem 1rem 4rem;}
  .row{grid-template-columns:1fr;gap:0.5rem;}
}

/* ---------- Post list ---------- */
.sub-latest{display:flex;flex-direction:column;}
.post{padding:0.85rem 0;border-bottom:1px solid var(--hair);}
.post:first-child{border-top:1px solid var(--hair);}
.pmeta{font-family:var(--mono);font-size:0.72rem;color:var(--c4);text-transform:uppercase;letter-spacing:0.03em;display:flex;align-items:center;gap:0.6rem;flex-wrap:wrap;line-height:1.3;}
.sec-tag{font-family:var(--mono);font-size:0.66rem;text-transform:uppercase;letter-spacing:0.05em;color:#141414;background:var(--accent);border-radius:2rem;padding:0.18rem 0.6rem;}
.sec-tag.sec-none{background:var(--tint);color:var(--c3);}
.post .ptitle{display:inline-block;font-family:var(--serif);font-size:1.25rem;color:var(--c1);margin:0.25rem 0 0.3rem;line-height:1.05;border-bottom:1px solid transparent;}
.post .ptitle:hover{border-bottom-color:var(--hair);}
.post .pexc{font-size:0.95rem;color:var(--c3);max-width:34em;line-height:1.25;}

.pagination{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-top:1.25rem;font-family:var(--mono);font-size:0.78rem;color:var(--c3);}
.pagination a{border-bottom:1px solid var(--hair);color:var(--c2);}
.pagination a:hover{color:var(--c1);border-bottom-color:var(--c2);}

/* ---------- Subscribe ---------- */
.subscribe{margin-top:1.25rem;display:flex;gap:0.5rem;flex-wrap:wrap;align-items:center;}
.subscribe input{font-family:var(--sans);font-size:1rem;color:var(--c1);background:var(--bg);padding:0.7rem 0.9rem;border:1px solid var(--line);border-radius:0.6rem;min-width:16rem;flex:1;}
.subscribe input::placeholder{color:var(--c4);}
.subscribe input:focus{outline:2px solid var(--c2);outline-offset:1px;}
.form-msg{display:none;width:100%;margin:0.4rem 0 0 !important;font-family:var(--mono);font-size:0.78rem;color:var(--c2);}
.subscribe.success .form-success,.subscribe.error .form-error{display:block;}
.subscribe.loading button{opacity:0.6;}
.sub-links{margin-top:0.8rem;font-family:var(--mono);font-size:0.78rem;color:var(--c3);display:flex;gap:1.2rem;flex-wrap:wrap;}
.sub-links a{border-bottom:1px solid var(--hair);}

/* ---------- Article ---------- */
.article{border-bottom:1px solid var(--line);padding-bottom:3rem;}
.article-head{padding:1.75rem 1rem 1.5rem;}
.article-title{font-family:var(--serif);font-weight:700;font-size:clamp(2.2rem,6vw,3.4rem);line-height:0.98;margin:0.6rem 0 0;color:var(--c1);text-wrap:balance;}
.article-dek{font-family:var(--serif);font-size:1.45rem;line-height:1.2;color:var(--c2);margin:0.9rem 0 0;max-width:30em;}
.article-byline{margin-top:1.1rem;padding-top:0.7rem;border-top:1px solid var(--hair);font-family:var(--mono);font-size:0.78rem;color:var(--c3);}
.article-byline a{border-bottom:1px solid var(--hair);}
.article-image{margin:0 1rem 2rem;}
.article-image img{width:100%;border:1px solid var(--hair);border-radius:3px;}
.article-image figcaption{font-size:0.72rem;color:var(--c4);margin-top:0.5rem;}
.article-comments{margin-top:-1.1rem;}
.article-comments iframe{width:100%;color-scheme:light;}

/* ---------- Post content ---------- */
.gh-content{
  display:grid;
  grid-template-columns:
    [full-start] minmax(1rem,1fr)
    [wide-start] minmax(0,120px)
    [main-start] min(calc(var(--col) - 2rem), calc(100% - 2rem)) [main-end]
    minmax(0,120px) [wide-end]
    minmax(1rem,1fr) [full-end];
  font-size:1.06rem;line-height:1.5;color:var(--c1);
}
.gh-content > *{grid-column:main;margin:0 0 1.05em;}
.gh-content > .kg-width-wide{grid-column:wide;}
.gh-content > .kg-width-full{grid-column:full;}
.gh-content > .kg-width-full img{width:100%;}

@media (min-width:761px){ .shell .gh-content{width:100vw;margin-left:calc(50% - 50vw);} }

.gh-content h2,.gh-content h3{font-family:var(--serif);line-height:1.02;color:var(--c1);margin:1.6em 0 0.5em;}
.gh-content h2{font-weight:700;font-size:2rem;}
.gh-content h3{font-weight:400;font-size:1.7rem;color:var(--c2);}
.gh-content h4{font-family:var(--sans);font-weight:700;font-size:1.1rem;margin:1.6em 0 0.5em;}
.gh-content h5,.gh-content h6{font-family:var(--mono);font-size:0.78rem;text-transform:uppercase;letter-spacing:0.06em;color:var(--c3);font-weight:400;margin:1.8em 0 0.6em;}
.gh-content a{border-bottom:1px solid var(--c5);transition:border-color .15s ease;}
.gh-content a:hover{border-bottom-color:var(--c2);}
.gh-content blockquote{margin:1.6em 0;padding:0;font-family:var(--serif);font-style:italic;font-size:1.55rem;line-height:1.35;color:var(--c1);}
.gh-content blockquote::before{content:"";display:block;width:2.2rem;height:4px;background:var(--accent);border-radius:2px;margin:0 0 1rem;}
.gh-content blockquote.kg-blockquote-alt{font-style:normal;font-weight:700;font-size:2rem;line-height:1.05;text-align:left;}
.gh-content hr{background:var(--hair);margin:2.4em 0;}
.gh-content ul,.gh-content ol{padding-left:1.25em;}
.gh-content li{margin:0.35em 0;}
.gh-content li::marker{color:var(--c4);}
.gh-content figure{margin:1.8em 0;}
.gh-content figure img{border-radius:3px;}
.gh-content figcaption{font-family:var(--mono);font-size:0.72rem;color:var(--c4);margin-top:0.5rem;line-height:1.3;text-align:left;}
.gh-content code{font-family:var(--mono);font-size:0.86em;background:var(--tint);padding:0.1em 0.35em;border-radius:3px;}
.gh-content pre{font-family:var(--mono);font-size:0.85rem;line-height:1.5;background:var(--tint);border:1px solid var(--hair);border-radius:0.5rem;padding:1rem;overflow-x:auto;}
.gh-content pre code{background:none;padding:0;}
.gh-content .table-wrap{overflow-x:auto;}
.gh-content table{border-collapse:collapse;width:100%;font-size:0.92rem;}
.gh-content th,.gh-content td{text-align:left;padding:0.6rem 0.7rem;border-bottom:1px solid var(--hair);vertical-align:top;}
.gh-content th{font-family:var(--mono);font-size:0.72rem;text-transform:uppercase;letter-spacing:0.04em;color:var(--c3);font-weight:400;border-bottom-color:var(--line);}

/* Koenig cards, on-palette */
.gh-content .kg-callout-card{border-radius:0.6rem;}
.gh-content .kg-callout-card-grey,.gh-content .kg-callout-card-white{background:var(--tint);}
.gh-content .kg-callout-card-yellow,.gh-content .kg-callout-card-accent{background:rgba(223,255,0,0.14);}
.gh-content .kg-bookmark-card a.kg-bookmark-container{border:1px solid var(--hair);border-radius:0.5rem;color:var(--c1);border-bottom:1px solid var(--hair);}
.gh-content .kg-bookmark-title{font-family:var(--serif);font-weight:400;font-size:1.15rem;line-height:1.05;}
.gh-content .kg-bookmark-description{color:var(--c3);}
.gh-content .kg-bookmark-metadata{font-family:var(--mono);font-size:0.72rem;color:var(--c4);}
.gh-content .kg-button-card a.kg-btn,.gh-content .kg-product-card a.kg-product-card-button,.gh-content .kg-cta-button{
  background:var(--accent) !important;color:#141414 !important;border-radius:0.6rem;border:0.1rem solid rgba(0,0,0,0.1);font-family:var(--sans);font-weight:700;
  filter:drop-shadow(0.3rem 0.3rem 0.4rem rgba(0,0,0,0.15));}
.gh-content .kg-toggle-card{border-radius:0.5rem;border-color:var(--hair);background:transparent;}
.gh-content .kg-toggle-heading-text{font-family:var(--sans);font-weight:700;}
.gh-content .kg-header-card h2,.gh-content .kg-header-card h3{font-family:var(--serif);}
.gh-content .kg-audio-card,.gh-content .kg-file-card-container{border-radius:0.5rem;}
.gh-content .kg-embed-card{display:flex;flex-direction:column;align-items:center;}

/* footer: see "Site footer v2" below */

@media (prefers-reduced-motion:reduce){ *{transition:none !important;} }

/* ---------- Component overrides (audit) ---------- */
/* Paywall / upgrade CTA */
.gh-post-upgrade-cta{margin:2rem 0;}
.gh-post-upgrade-cta-content{background:var(--tint) !important;color:var(--c1) !important;border:1px solid var(--line);border-radius:0.6rem;padding:2rem 1.5rem !important;text-align:left !important;align-items:flex-start !important;}
.gh-post-upgrade-cta h2{font-family:var(--serif);font-weight:700;font-size:1.8rem;line-height:1;color:var(--c1) !important;margin:0 0 1.1rem !important;}
.gh-post-upgrade-cta a.gh-btn{display:inline-block;font-family:var(--sans);font-weight:700;font-size:1.05rem;color:#141414 !important;background:var(--accent) !important;
  border:0.1rem solid rgba(0,0,0,0.1);border-radius:0.6rem;padding:0.8rem 1.4rem;filter:drop-shadow(0.3rem 0.3rem 0.4rem rgba(0,0,0,0.15));}
.gh-post-upgrade-cta p{font-family:var(--mono);font-size:0.78rem;color:var(--c3) !important;margin:1rem 0 0 !important;}
.gh-post-upgrade-cta p a{color:var(--c1) !important;border-bottom:1px solid var(--hair);text-decoration:none;}

/* Bookmark */
.gh-content .kg-bookmark-card a.kg-bookmark-container{background:transparent;}
.gh-content .kg-bookmark-title{color:var(--c1);}
.gh-content .kg-bookmark-description{color:var(--c3);font-size:0.9rem;}
.gh-content .kg-bookmark-author,.gh-content .kg-bookmark-publisher{color:var(--c4);}
.gh-content .kg-bookmark-thumbnail img{border-radius:0 0.5rem 0.5rem 0;}

/* Audio */
.gh-content .kg-audio-card{background:transparent !important;border:1px solid var(--hair);box-shadow:none;border-radius:0.5rem;color:var(--c1);}
.gh-content .kg-audio-thumbnail.placeholder{background:var(--c1) !important;}
.gh-content .kg-audio-thumbnail.placeholder svg{fill:var(--bg);}
.gh-content .kg-audio-title{font-family:var(--serif);font-weight:400;font-size:1.25rem;color:var(--c1);}
.gh-content .kg-audio-player-container{--seek-before-color:var(--c1);--volume-before-color:var(--c1);}
.gh-content .kg-audio-player button,.gh-content .kg-audio-player svg{color:var(--c1);fill:var(--c1);}
.gh-content .kg-audio-current-time,.gh-content .kg-audio-time,.gh-content .kg-audio-duration,.gh-content .kg-audio-playback-rate{font-family:var(--mono);color:var(--c3);}
.gh-content .kg-audio-seek-slider,.gh-content .kg-audio-volume-slider{accent-color:var(--c1);}
.gh-content .kg-audio-seek-slider::-webkit-slider-thumb,.gh-content .kg-audio-volume-slider::-webkit-slider-thumb{background:var(--c1);border-color:var(--c1);}

/* File */
.gh-content .kg-file-card-container{background:transparent !important;border:1px solid var(--hair);color:var(--c1);}
.gh-content .kg-file-card-title{font-family:var(--serif);color:var(--c1);}
.gh-content .kg-file-card-caption,.gh-content .kg-file-card-metadata{font-family:var(--mono);color:var(--c3);}
.gh-content .kg-file-card-icon svg{color:var(--c1);}

/* Signup and CTA cards inside posts */
.gh-content .kg-signup-card,.gh-content .kg-cta-card{border-radius:0.6rem;}
.gh-content .kg-signup-card-button{background:var(--accent) !important;color:#141414 !important;border-radius:0.6rem;}

/* Tag landing copy (from a page with slug tag-<tag-slug>) */
.tag-content{max-width:34em;}
.tag-content > *{margin:0 0 1rem;}
.tag-content p{line-height:1.3;}
.tag-content h2{font-family:var(--serif);font-weight:700;font-size:1.6rem;line-height:1;margin:1.6rem 0 0.5rem;color:var(--c1);}
.tag-content h3{font-family:var(--sans);font-weight:700;font-size:1.05rem;margin:1.3rem 0 0.35rem;color:var(--c1);}
.tag-content blockquote{margin:0.5rem 0 1.4rem;padding:0;font-family:var(--serif);font-style:italic;font-size:1.55rem;line-height:1.3;color:var(--c1);}
.tag-content blockquote::before{content:"";display:block;width:2.2rem;height:4px;background:var(--accent);border-radius:2px;margin:0 0 0.9rem;}
.tag-content a{border-bottom:1px solid var(--c5);}
.tag-content ul{padding-left:1.1em;}
.tag-content li{margin:0.3em 0;line-height:1.3;}
.tag-content .kg-button-card{display:inline-block;margin:0.4rem 0.6rem 0 0;}
.tag-content .kg-button-card a.kg-btn{display:inline-block;background:var(--accent);color:#141414;font-weight:700;border:0.1rem solid rgba(0,0,0,0.1);border-radius:0.6rem;padding:0.8rem 1.4rem;border-bottom:0.1rem solid rgba(0,0,0,0.1);filter:drop-shadow(0.3rem 0.3rem 0.4rem rgba(0,0,0,0.15));}

.tag-content h6{font-family:var(--mono);font-weight:400;font-size:0.72rem;text-transform:uppercase;letter-spacing:0.08em;color:var(--c3);margin:1.8rem 0 0.2rem;}
.tag-content h6 + h3{margin-top:0;font-family:var(--serif);font-weight:700;font-size:1.45rem;line-height:1;}
.tag-content h2{font-size:2.1rem;line-height:1;}
.tag-content h4{font-family:var(--sans);font-weight:700;font-size:1.3rem;margin:2rem 0 0.5rem;color:var(--c1);}
.tag-content figure{margin:0 0 1.4rem;}
.tag-content figure img{border:1px solid var(--hair);border-radius:3px;width:100%;}
.tag-content h4 + figure img{width:50%;}
.tag-content figcaption{font-family:var(--mono);font-size:0.72rem;color:var(--c4);margin-top:0.5rem;}
.tag-content .kg-button-card{margin-top:1.2rem;}
.gh-content a.kg-btn,.tag-content a.kg-btn{font-family:var(--sans) !important;}
.tag-content > figure:first-child img{width:50%;}
.tag-content ul li > p{margin:0 0 0.8rem;}
.tag-content ul{margin-top:0.4rem;}
.tag-content ul li{margin-bottom:1rem;}

/* ---------- Homepage: featured / topics / archive ---------- */
.featured-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem;}
.fcard{display:flex;flex-direction:column;gap:0.45rem;}
.fcard .fimg img{width:100%;aspect-ratio:4/3;object-fit:cover;border:1px solid var(--hair);border-radius:3px;}
.fcard .ftitle{font-family:var(--serif);font-weight:700;font-size:1.35rem;line-height:1.02;color:var(--c1);}
.fcard:hover .ftitle{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:var(--c4);}
.fcard .pexc{font-size:0.9rem;color:var(--c3);line-height:1.25;}
.fcard .pmeta .sec-tag{margin-left:0.1rem;}
@media (max-width:820px){ .featured-grid{grid-template-columns:1fr;} .fcard{display:grid;grid-template-columns:7rem 1fr;column-gap:0.9rem;} .fcard .fimg{grid-row:span 3;} }

.topic-list{display:flex;flex-wrap:wrap;gap:0.5rem;}
.topic{font-family:var(--sans);font-size:0.95rem;border:1px solid var(--hair);border-radius:2rem;padding:0.35rem 0.8rem;color:var(--c1);}
.topic span{font-family:var(--mono);font-size:0.72rem;color:var(--c4);margin-left:0.25rem;}
.topic:hover{border-color:var(--c2);}

.archive details{border-top:1px solid var(--hair);}
.archive details:last-child{border-bottom:1px solid var(--hair);}
.archive summary{display:flex;justify-content:space-between;align-items:baseline;cursor:pointer;list-style:none;padding:0.7rem 0;font-family:var(--serif);font-weight:700;font-size:1.3rem;color:var(--c1);}
.archive summary::-webkit-details-marker{display:none;}
.archive summary::after{content:"+";font-family:var(--mono);font-weight:400;font-size:1rem;color:var(--c3);margin-left:0.8rem;}
.archive details[open] summary::after{content:"–";}
.archive summary .acount{font-family:var(--mono);font-weight:400;font-size:0.72rem;color:var(--c4);margin-left:auto;}
.arow{display:grid;grid-template-columns:7.6rem 1fr auto;gap:0.8rem;align-items:baseline;padding:0.38rem 0;border-top:1px dotted var(--hair);}
.arow:first-of-type{border-top:0;}
.arow time{font-family:var(--mono);font-size:0.72rem;color:var(--c4);text-transform:uppercase;}
.arow .atitle{font-family:var(--serif);font-size:1.1rem;line-height:1.1;color:var(--c1);}
.arow:hover .atitle{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:var(--c4);}
.archive details > .arow:last-child{padding-bottom:0.8rem;}

/* ---------- Meetups ---------- */
.meetup-head .mt-when{display:flex;flex-direction:column;gap:0.2rem;}
.meetup-head .mt-place{font-family:var(--sans);font-size:1rem;color:var(--c3);}
.meetup-head .mt-state-label{font-family:var(--mono);font-size:0.72rem;text-transform:uppercase;color:var(--c4);}
.meetup-cta{margin-top:1.2rem;}
.meetup-cta .subscribe{margin-top:0;}
.intro .subscribe{margin-top:1.2rem;}
.empty{margin:0;}

/* ---------- Podcast ---------- */
.pod-head{display:grid;grid-template-columns:160px 1fr;gap:1.2rem;align-items:start;}
.pod-cover{width:160px;height:160px;border:1px solid var(--hair);border-radius:3px;object-fit:cover;}
@media (max-width:600px){ .pod-head{grid-template-columns:96px 1fr;} .pod-cover{width:96px;height:96px;} }
.ep-audio{display:flex;align-items:center;gap:0.8rem;margin-top:0.6rem;}
.ep-audio audio{width:100%;max-width:26rem;height:36px;}
.ep-dur{font-family:var(--mono);font-size:0.72rem;color:var(--c4);}

/* ---------- Paid preview: text fades into the upgrade box ---------- */
.gh-content > .paywall-preview{position:relative;margin-bottom:0;max-height:15.5em;overflow:hidden;}
.paywall-preview p{margin:0 0 1.05em;}
.paywall-preview::after{content:"";position:absolute;left:0;right:0;bottom:0;height:75%;
  background:linear-gradient(to bottom, rgba(0,0,0,0), var(--bg) 92%);pointer-events:none;}
.paywall-preview + .gh-post-upgrade-cta,.paywall-preview ~ .gh-post-upgrade-cta{margin-top:-0.5rem;position:relative;}
.gh-post-upgrade-cta{grid-column:main;}
.gh-post-upgrade-cta-content{box-shadow:0 -1.5rem 2rem -1rem var(--bg);}
.gh-post-upgrade-cta .paywall-lede{font-family:var(--mono);font-size:0.72rem;text-transform:uppercase;letter-spacing:0.08em;color:var(--c3);margin:0 0 0.6rem !important;}
.gh-content h6 + h2,.gh-content h6 + h3{margin-top:0.35em;}
.gh-content h6{margin-bottom:0.2em;}

/* =====================================================================
   AI Literacy for Teams — B2B template (custom-ai-literacy-teams.hbs)
   ===================================================================== */
.teams-body{--tl-max:1180px;--tl-band:#656B20;font-size:17.6px;}
.tl-wrap{max-width:var(--tl-max);margin:0 auto;padding:0 1.25rem;}
.tl-top{position:sticky;top:0;z-index:60;background:var(--bg);border-bottom:1px solid var(--hair);}
.tl-top-row{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;}
.tl-top-row:first-child{padding-top:0.85rem;}
.tl-mark{font-family:var(--serif);font-weight:700;font-size:1.15rem;letter-spacing:-0.01em;}
.tl-loc{margin:0;font-size:0.8rem;color:var(--c3);}
.tl-tabs,.tl-util{display:flex;gap:1.35rem;font-size:0.82rem;}
.tl-tabs a{display:block;padding:0.7rem 0 0.6rem;color:var(--c3);border-bottom:2px solid transparent;transition:color .15s;}
.tl-tabs a:hover{color:var(--c1);}
.tl-tabs a[aria-current="page"]{color:var(--c1);font-weight:700;border-bottom-color:var(--c1);}
.tl-util a{color:var(--c2);padding:0.7rem 0 0.6rem;}
.tl-util a:hover{color:var(--c1);}
.tl-util .tl-book{color:var(--c1);font-weight:700;}

.tl-hero{padding-top:clamp(3rem,7vw,5.5rem);padding-bottom:2.75rem;}
.tl-eyebrow,.tl-kicker,.tl-num{font-family:var(--sans);font-size:0.7rem;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--c3);margin:0 0 1.1rem;}
.tl-title{font-family:var(--serif);font-weight:700;font-size:clamp(3rem,7.4vw,5.5rem);line-height:0.98;letter-spacing:-0.01em;margin:0 0 1.1rem;max-width:12ch;color:var(--c1);}
.tl-sub .tl-title{max-width:16ch;}
.tl-lead{font-size:clamp(1.3rem,2.4vw,2rem);line-height:1.2;color:var(--c3);max-width:26em;margin:0 0 2.5rem;}
.tl-meta{display:flex;flex-wrap:wrap;gap:0.5rem 2rem;font-size:0.8rem;color:var(--c3);margin:0;padding-bottom:2.75rem;border-bottom:1px solid var(--hair);}
.tl-meta b{color:var(--c1);margin-right:0.3em;}

/* sections */
.tl-content{padding-bottom:4rem;}
.tl-content:not(.is-ready){max-width:var(--col);}
.tl-sec{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:2rem 3.5rem;padding:3.25rem 0;border-bottom:1px solid var(--hair);}
.tl-sec:last-child{border-bottom:0;}
.tl-sec-head{position:sticky;top:6.5rem;align-self:start;}
.tl-num{text-transform:none;letter-spacing:0.02em;font-size:0.72rem;margin-bottom:0.6rem;}
.tl-sec-head h2{font-family:var(--sans);font-weight:700;font-size:clamp(1.6rem,2.6vw,2.1rem);line-height:1.08;letter-spacing:-0.01em;margin:0;max-width:14em;}
.tl-sec-body{font-size:1rem;line-height:1.5;color:var(--c1);max-width:36em;}
.tl-sec-body > *:first-child{margin-top:0;}
.tl-sec-body p{margin:0 0 1em;}
.tl-sec-body a:not(.kg-btn){text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:0.18em;}
.tl-sec-body h3{font-family:var(--serif);font-weight:700;font-size:1.9rem;line-height:1.02;margin:1.5em 0 0.5em;}
.tl-sec-body h4{font-weight:700;font-size:1rem;margin:1.6em 0 0.4em;}
.tl-sec-body h6{font-size:0.7rem;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--c3);margin:1.8em 0 0.6em;}
.tl-sec-body blockquote{font-family:var(--serif);font-size:1.7rem;line-height:1.1;margin:1em 0;padding:0;border:0;}
.tl-sub .tl-sec:first-child .tl-sec-body > p:first-child{font-family:var(--serif);font-size:clamp(1.6rem,2.7vw,2.15rem);line-height:1.08;letter-spacing:-0.005em;color:var(--c1);margin-bottom:0.9em;}
.tl-sub .tl-sec:first-child .tl-sec-body > p:first-child ~ p{color:var(--c3);}
.tl-sec-body ul,.tl-sec-body ol,.tl-dash{list-style:none;padding:0;margin:1.2em 0 1.4em;}
.tl-sec-body ul li,.tl-dash li{position:relative;padding:0.65em 0 0.65em 1.6em;border-bottom:1px solid var(--hair);}
.tl-sec-body ul li:last-child,.tl-dash li:last-child{border-bottom:0;}
.tl-sec-body ul li::before,.tl-dash li::before{content:"—";position:absolute;left:0;color:var(--c4);}
.tl-sec-body ol{counter-reset:tl;}
.tl-sec-body ol li{counter-increment:tl;position:relative;padding:0.5em 0 0.5em 2em;}
.tl-sec-body ol li::before{content:counter(tl,decimal-leading-zero);position:absolute;left:0;font-size:0.75em;top:0.75em;color:var(--c3);}
.tl-sec-body figure{margin:1.8em 0;}
.tl-sec-body figure img{width:100%;height:auto;}
.tl-sec-body figcaption{font-size:0.8rem;color:var(--c3);margin-top:0.6em;}
.tl-sec-body .kg-button-card{display:block;margin:0.6em 0 0;}
.tl-sec-body a.kg-btn{display:inline-block;background:none !important;color:var(--c1) !important;padding:0 0 0.15em !important;border:0 !important;border-bottom:1px solid var(--c1) !important;border-radius:0 !important;filter:none !important;font-weight:700;font-size:0.9rem;}
.tl-sec-body a.kg-btn:hover{border-bottom-width:2px !important;}
.tl-table{overflow-x:auto;margin:0.5em 0 1.5em;}
.tl-sec-body table{border-collapse:collapse;width:100%;font-size:0.92rem;line-height:1.35;}
.tl-sec-body th{font-size:0.66rem;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--c3);text-align:left;padding:0 0.9em 0.8em 0;border-bottom:1px solid var(--hair);}
.tl-sec-body td{padding:0.85em 0.9em 0.85em 0;border-bottom:1px solid var(--hair);vertical-align:top;}
.tl-sec-body td:first-child{font-family:var(--serif);font-size:1.05rem;color:var(--c3);}

/* workshop listings on overview */
.tl-sec--ws{grid-template-columns:minmax(0,5fr) minmax(0,7fr);}
.tl-sec--ws .tl-sec-body{max-width:none;}
.tl-ws{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,5fr);gap:1rem 2rem;padding:2rem 0;border-top:1px solid var(--hair);}
.tl-ws:first-of-type{margin-top:1.5rem;}
.tl-ws-a h6{margin:0 0 0.8em;}
.tl-ws-a h3{margin:0 0 0.5em;font-size:clamp(1.6rem,2.2vw,1.95rem);}
.tl-ws-a h3 a{text-decoration:none !important;}
.tl-ws-a h3 a:hover{text-decoration:underline !important;}
.tl-ws-ex{font-style:italic;color:var(--c3);font-size:0.88rem;line-height:1.35;}
.tl-ws-b{font-size:0.93rem;}

/* booking band */
.tl-band{--c1:rgba(255,255,255,0.95);--c2:rgba(255,255,255,0.84);--c3:rgba(255,255,255,0.7);--c4:rgba(255,255,255,0.5);--hair:rgba(255,255,255,0.22);
  background:var(--tl-band);color:var(--c1);padding:5rem 0 4rem;scroll-margin-top:5rem;}
.tl-band--ai-literacy-prediction{--tl-band:#490D44;}
.tl-band--ai-literacy-language{--tl-band:#24358C;}
.tl-band--ai-literacy-computational-thinking{--tl-band:#1C2B17;}
.tl-band-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:3rem 3.5rem;}
.tl-band h2{font-family:var(--serif);font-weight:700;font-size:clamp(2.4rem,4.5vw,3.6rem);line-height:0.98;margin:0 0 1.3rem;}
.tl-band p{font-size:0.95rem;line-height:1.5;margin:0 0 1em;color:var(--c2);}
.tl-band .tl-band-lede{font-size:1.1rem;line-height:1.4;color:var(--c1);}
.tl-band a{text-decoration:underline;text-underline-offset:0.18em;text-decoration-thickness:1px;}
.tl-band-side .tl-kicker{margin-top:0;}
.tl-band .tl-dash{margin:0 0 2.2rem;font-size:0.93rem;line-height:1.4;color:var(--c1);}
.tl-formats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0.75rem;margin-bottom:1.6rem;}
.tl-format{border:1px solid var(--hair);border-radius:4px;padding:0.9rem 1rem 0.6rem;}
.tl-format .tl-kicker{font-size:0.62rem;margin-bottom:0.5rem;}
.tl-format h3{font-family:var(--serif);font-weight:700;font-size:1.3rem;margin:0 0 0.4rem;}
.tl-format p{font-size:0.82rem;line-height:1.35;}
.tl-ctas{display:flex;align-items:center;gap:1.4rem;flex-wrap:wrap;margin-bottom:0.6rem;}
.tl-btn{display:inline-block;background:#fff;color:#141414 !important;text-decoration:none !important;font-weight:700;font-size:0.95rem;padding:0.8rem 1.3rem;border-radius:4px;transition:background .15s;}
.tl-btn:hover{background:var(--accent);}
.tl-link{font-size:0.95rem;}
.tl-fine{font-size:0.78rem !important;color:var(--c3) !important;}
.tl-instructor{grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:2rem 3.5rem;border-top:1px solid var(--hair);padding-top:3rem;margin-top:1rem;}
.tl-instructor img{width:100%;max-width:300px;aspect-ratio:4/5;object-fit:cover;object-position:50% 30%;border-radius:2px;}
.tl-instructor h3{font-family:var(--serif);font-weight:700;font-size:2rem;margin:0 0 0.7rem;}
.tl-instructor > div{max-width:36em;}
.tl-produced{display:flex;flex-wrap:wrap;gap:0.4rem 1.8rem;border-top:1px solid var(--hair);padding-top:1rem;margin-top:1.4rem !important;font-size:0.82rem !important;}
.tl-produced b{color:var(--c1);margin-right:0.3em;}

/* footer */
.tl-foot{background:var(--tl-band);color:rgba(255,255,255,0.72);text-align:center;padding:3rem 0 3.5rem;border-top:1px solid rgba(255,255,255,0.22);}
.teams-body:has(.tl-band--ai-literacy-prediction) .tl-foot{background:#490D44;}
.teams-body:has(.tl-band--ai-literacy-language) .tl-foot{background:#24358C;}
.teams-body:has(.tl-band--ai-literacy-computational-thinking) .tl-foot{background:#1C2B17;}
.tl-foot-mark{font-family:var(--serif);font-weight:700;font-size:1.5rem;color:#fff;}
.tl-foot p{margin:0.5rem 0 0;font-size:0.8rem;}
.tl-foot-sub{font-family:var(--serif);font-weight:700;color:#fff;font-size:0.95rem !important;}
.tl-foot-links{display:flex;justify-content:center;flex-wrap:wrap;gap:0.4rem 1.4rem;margin-top:1rem !important;}
.tl-foot-links a{color:#fff;text-decoration:underline;text-underline-offset:0.18em;}

/* responsive */
@media (max-width:900px){
  .tl-sec,.tl-sec--ws,.tl-band-grid,.tl-instructor{grid-template-columns:1fr;}
  .tl-sec-head{position:static;}
  .tl-ws{grid-template-columns:1fr;}
  .tl-formats{grid-template-columns:1fr;}
}
@media (max-width:700px){
  .tl-top-row--nav{flex-direction:column;align-items:flex-start;gap:0;}
  .tl-tabs{overflow-x:auto;max-width:100%;gap:1.1rem;white-space:nowrap;scrollbar-width:none;}
  .tl-util{gap:1rem;}
  .tl-util a{padding-top:0.1rem;}
  .tl-loc{display:none;}
  .tl-sec{padding:2.4rem 0;}
}
.tl-sec-body .kg-button-card{display:block !important;padding:0 !important;}
.tl-sec-body a.kg-btn{display:inline !important;width:auto !important;height:auto !important;min-height:0 !important;line-height:1.5 !important;}
.tl-top-row:first-child{align-items:center;}
.tl-sec,#top,#contact{scroll-margin-top:6rem;}

/* =====================================================================
   Site header v2 (main CBS section)
   ===================================================================== */
header.site{position:sticky;top:0;z-index:50;background:var(--bg);border-bottom:1px solid var(--line);}
.header-inner{max-width:var(--col);margin:0 auto;padding:0 1rem;}
.hd-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;}
.hd-row:first-child{padding-top:0.9rem;}
.hd-id{display:flex;align-items:baseline;gap:0.8rem;min-width:0;}
.brand{margin:0;white-space:nowrap;font-family:var(--serif);font-weight:700;font-size:1.65rem;line-height:1;letter-spacing:-0.005em;color:var(--c1);}
.loc{margin:0;white-space:nowrap;font-family:var(--sans);font-size:0.78rem;color:var(--c3);}
.hd-actions{display:flex;align-items:center;gap:0.9rem;font-size:0.85rem;white-space:nowrap;}
.hd-teams{color:var(--c2);}
.hd-teams:hover,.hd-signin:hover{color:var(--c1);}
.hd-signin{color:var(--c2);}
.hd-btn{display:inline-block;background:var(--accent);color:#141414;font-weight:700;padding:0.45rem 0.85rem;border-radius:0.45rem;border:1px solid rgba(0,0,0,0.12);line-height:1.1;transition:filter .15s;}
.hd-btn:hover{filter:brightness(0.95);}
.hd-btn--ghost{background:transparent;color:var(--c1);border-color:var(--line);}
.hd-row--nav{margin-top:0.35rem;}
.hd-tabs{display:flex;gap:1.35rem;font-size:0.86rem;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
.hd-tabs::-webkit-scrollbar{display:none;}
.hd-tabs a{display:block;white-space:nowrap;padding:0.6rem 0 0.55rem;color:var(--c3);border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .15s;}
.hd-tabs a:hover{color:var(--c1);}
.hd-tabs a[aria-current="page"]{color:var(--c1);font-weight:700;border-bottom-color:var(--c1);}
.hd-search{display:inline-flex;align-items:center;gap:0.4rem;font:inherit;font-size:0.82rem;color:var(--c3);background:none;border:0;padding:0.5rem 0;cursor:pointer;}
.hd-search:hover{color:var(--c1);}
@media (max-width:640px){
  .hd-row:first-child{padding-top:0.7rem;}
  .brand{font-size:1.3rem;}
  .loc,.hd-teams,.hd-signin{display:none;}
  .hd-search span{display:none;}
  .hd-tabs{gap:1.1rem;}
  .hd-tabs a{padding:0.75rem 0 0.65rem;}
}

/* =====================================================================
   Site footer v2
   ===================================================================== */
.site-footer{margin-top:4rem;padding:3rem 1rem 1.5rem;background:#141414;color:rgba(255,255,255,0.72);
  width:100vw;position:relative;left:50%;margin-left:-50vw;}
.site-footer > *{max-width:var(--col);margin-left:auto;margin-right:auto;}
.foot-top{display:grid;grid-template-columns:minmax(0,1fr);gap:2.5rem;}
.foot-brand{font-family:var(--serif);font-weight:700;font-size:2rem;line-height:1;color:#fff;}
.foot-lede{font-size:0.95rem;line-height:1.45;max-width:30em;margin:0.8rem 0 1.1rem;}
.foot-cta{display:inline-block;color:#141414;background:var(--accent);font-weight:700;font-size:0.9rem;padding:0.6rem 1rem;border-radius:0.45rem;}
.foot-cta:hover{filter:brightness(0.95);}
.foot-cols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.5rem;}
.foot-group{display:flex;flex-direction:column;gap:0.55rem;font-size:0.88rem;}
.foot-group .foot-h{font-size:0.66rem;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:rgba(255,255,255,0.45);margin-bottom:0.2rem;}
.foot-group a{color:rgba(255,255,255,0.86);width:fit-content;border-bottom:1px solid transparent;}
.foot-group a:hover{color:#fff;border-bottom-color:var(--accent);}
.foot-bottom{display:flex;flex-wrap:wrap;align-items:center;gap:0.5rem 1.4rem;margin-top:2.75rem;padding-top:1.1rem;border-top:1px solid rgba(255,255,255,0.14);font-size:0.78rem;color:rgba(255,255,255,0.5);}
.foot-bottom a{color:rgba(255,255,255,0.7);}
.foot-bottom a:hover{color:#fff;}
.foot-top-link{margin-left:auto;}
@media (prefers-color-scheme: dark){ body.scheme-Auto .site-footer{background:#0b0b0a;border-top:1px solid var(--hair);} }
body.scheme-Dark .site-footer{background:#0b0b0a;border-top:1px solid var(--hair);}
@media (max-width:640px){
  .foot-cols{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.8rem 1rem;}
  .foot-group a{min-height:36px;display:inline-flex;align-items:center;}
  .foot-top-link{margin-left:0;}
}

/* =====================================================================
   Teams: top strip with back link (full-bleed, sticky with header)
   ===================================================================== */
.tl-strip{display:flex;justify-content:space-between;align-items:center;padding:0.4rem 16px;background:var(--c1);color:var(--bg);font-size:0.74rem;}
.tl-strip-loc{margin:0;opacity:0.7;}
.tl-home{display:inline-flex;align-items:center;gap:0.35rem;color:var(--bg);font-weight:700;padding:0.25rem 0.6rem 0.25rem 0.5rem;margin-left:-0.5rem;border-radius:3px;transition:background .15s,color .15s;}
.tl-home:hover{background:var(--accent);color:#141414;}
.tl-home-short{display:none;}
@media (max-width:420px){.tl-home-long{display:none;}.tl-home-short{display:inline;}}

.meetup-head a.mt-place{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:0.2em;text-decoration-color:var(--c5);width:fit-content;}
.meetup-head a.mt-place:hover{color:var(--c1);text-decoration-color:var(--c1);}
/* Native paywall: fade the last preview block into the CTA */
.gh-content > *:has(+ .gh-post-upgrade-cta){-webkit-mask-image:linear-gradient(to bottom,#000 15%,transparent 100%);mask-image:linear-gradient(to bottom,#000 15%,transparent 100%);max-height:14em;overflow:hidden;}

/* Meetup location card */
.mt-card{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);border:1px solid var(--line);border-radius:0.6rem;overflow:hidden;margin:0 0 2.2rem;background:var(--bg);}
.mt-map{position:relative;min-height:260px;background:var(--tint);}
.mt-map iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}
.mt-info{padding:1.4rem 1.5rem 1.5rem;display:flex;flex-direction:column;}
.mt-kicker{font-family:var(--mono);font-size:0.7rem;letter-spacing:0.06em;text-transform:uppercase;color:var(--c3);margin:0 0 0.7rem;}
.mt-venue-name{font-family:var(--serif);font-weight:700;font-size:2rem;line-height:1;margin:0 0 0.45rem;color:var(--c1);}
.mt-addr{margin:0 0 0.9rem;color:var(--c2);font-size:0.98rem;line-height:1.35;}
.mt-time{margin:0 0 1.2rem;padding-top:0.8rem;border-top:1px solid var(--hair);font-size:0.95rem;color:var(--c1);}
.mt-actions{margin-top:auto;display:flex;flex-wrap:wrap;align-items:center;gap:0.6rem 1.1rem;}
.mt-btn{display:inline-block;background:var(--accent);color:#141414 !important;font-weight:700;font-size:0.9rem;padding:0.55rem 1rem;border-radius:0.45rem;border:1px solid rgba(0,0,0,0.12);}
.mt-btn:hover{filter:brightness(0.95);}
.mt-link{font-size:0.85rem;color:var(--c2);text-decoration:underline;text-underline-offset:0.2em;text-decoration-color:var(--c5);}
.mt-link:hover{color:var(--c1);text-decoration-color:var(--c1);}
@media (prefers-color-scheme: dark){ body.scheme-Auto .mt-map iframe{filter:invert(0.9) hue-rotate(180deg) saturate(0.7);} }
body.scheme-Dark .mt-map iframe{filter:invert(0.9) hue-rotate(180deg) saturate(0.7);}
@media (max-width:700px){ .mt-card{grid-template-columns:1fr;} .mt-map{min-height:220px;} }
.meetup-head:has(~ .mt-card:not([hidden])) .mt-place{display:none;}

/* Responsive embeds */
.gh-content iframe{max-width:100%;}
.gh-content .kg-embed-card iframe[src*="youtube"],.gh-content .kg-embed-card iframe[src*="vimeo"]{width:100% !important;height:auto !important;aspect-ratio:16/9;}

.author-head{display:flex;gap:1.2rem;align-items:flex-start;}
.author-photo{width:96px;height:96px;object-fit:cover;object-position:50% 25%;border-radius:50%;flex:none;}
.author-head p a{text-decoration:underline;text-underline-offset:0.18em;}
.gh-content .ep-follow{font-size:0.85rem;color:var(--c3);margin-top:-0.6rem;}
.gh-content .ep-follow a{color:var(--c2);}

/* header spacing */
.hd-row:first-child{padding-top:1.35rem;}
.hd-row--nav{margin-top:0.75rem;}
.hd-tabs a{padding-bottom:0.7rem;}
@media (max-width:640px){.hd-row:first-child{padding-top:1rem;}.hd-row--nav{margin-top:0.4rem;}}

/* Library */
.lib-cta{display:flex;flex-wrap:wrap;gap:0.7rem;margin-top:1.2rem;}
.lib-stats{margin-top:0.5rem;}
.lib-tools{display:flex;gap:0.6rem;margin-bottom:1.4rem;}
.lib-tools input,.lib-tools select{font:inherit;font-size:0.95rem;color:var(--c1);background:var(--bg);border:1px solid var(--line);border-radius:0.45rem;padding:0.55rem 0.75rem;}
.lib-tools input{flex:1;min-width:0;}
.lib-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:1.6rem 1.1rem;}
.lib-book h3{font-family:var(--serif);font-weight:700;font-size:1.05rem;line-height:1.05;margin:0.6rem 0 0.25rem;color:var(--c1);}
.lib-author{margin:0;font-size:0.8rem;color:var(--c3);line-height:1.3;}
.lib-status{margin:0.4rem 0 0;font-family:var(--mono);font-size:0.66rem;text-transform:uppercase;letter-spacing:0.05em;color:#141414;background:var(--accent);display:inline-block;padding:0.12rem 0.45rem;border-radius:999px;}
.lib-status.is-out{background:var(--tint);color:var(--c3);}
.lib-cover{aspect-ratio:2/3;border:1px solid var(--hair);border-radius:3px;background:var(--tint) center/cover no-repeat;position:relative;}
.lib-cover:not(.has-img)::after{content:attr(data-init);position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-weight:700;font-size:1.8rem;color:var(--c4);}
@media (max-width:640px){.lib-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.lib-tools{flex-direction:column;}}

/* Unified CTA buttons */
.cta-row{display:flex;flex-wrap:wrap;align-items:center;gap:0.7rem;margin-top:1.3rem;}
.cta-row .button-13,.cta-row .button-ghost{display:inline-flex;align-items:center;justify-content:center;gap:0.35rem;min-height:2.9rem;padding:0 1.3rem;border-radius:0.6rem;font-size:1rem;line-height:1;}
.cta-row .button-ghost{background:var(--bg);border:1px solid var(--line);color:var(--c1);}
.cta-row .button-ghost:hover{background:var(--c1);color:var(--bg);}
.lib-stats{font-family:var(--sans);font-size:0.85rem;color:var(--c3);}

/* Events archive (from events.criticalbusinessschool.com) */
.events-page .gh-content{padding:0 1rem 3rem;}
.events-page .gh-content > h2{font-family:var(--sans);font-weight:700;font-size:1.3rem;margin:2.2rem 0 1rem;}
.luma-embed iframe{display:block;width:100%;border:1px solid var(--hair);border-radius:0.6rem;background:#fff;}
.events-page .gh-content{display:block !important;max-width:var(--col);margin:0 auto;}
.events-page .gh-content > *{max-width:none !important;}
.ev-tools{display:flex;gap:0.6rem;flex-wrap:wrap;align-items:center;}
.ev-tools input{flex:1 1 16rem;min-width:0;font:inherit;font-size:1rem;color:var(--c1);background:var(--bg);border:1px solid var(--line);border-radius:0.6rem;padding:0.65rem 0.9rem;}
.ev-chips{display:flex;gap:0.5rem;flex-wrap:wrap;}
.ev-chips .chip{font:inherit;font-size:0.95rem;color:var(--c1);background:var(--bg);border:1px solid var(--line);border-radius:0.6rem;padding:0.55rem 0.95rem;cursor:pointer;}
.ev-chips .chip.is-on{background:var(--accent);color:#141414;border-color:rgba(0,0,0,0.12);}
.ev-count{font-family:var(--mono);font-size:0.72rem;letter-spacing:0.06em;text-transform:uppercase;color:var(--c3);margin:1.4rem 0 0.8rem;}
.ev-list{border-top:1px solid var(--hair);}
.ev{border-bottom:1px solid var(--hair);}
.ev-head{display:grid;grid-template-columns:76px 1fr 20px;gap:1rem;width:100%;text-align:left;font:inherit;color:inherit;background:none;border:0;padding:1.1rem 0;cursor:pointer;}
.ev.is-open .ev-head{background:var(--tint);}
.ev-cover{width:76px;height:76px;object-fit:cover;border:1px solid var(--hair);border-radius:2px;margin:0 !important;}
.ev-main{display:flex;flex-direction:column;gap:0.25rem;min-width:0;}
.ev-when{font-family:var(--mono);font-size:0.72rem;letter-spacing:0.04em;text-transform:uppercase;color:var(--c3);display:flex;align-items:center;gap:0.6rem;flex-wrap:wrap;}
.ev-tag{display:none;background:var(--accent);color:#141414;border-radius:999px;padding:0.05rem 0.5rem;}
.ev.is-upcoming .ev-tag{display:inline-block;}
.ev-name{font-family:var(--serif);font-weight:700;font-size:1.5rem;line-height:1.05;color:var(--c1);}
.ev-sub{font-size:0.95rem;color:var(--c2);}
.ev-stat{font-family:var(--mono);font-size:0.72rem;color:var(--c3);}
.ev-chev{font-size:1.2rem;color:var(--c3);align-self:start;}
.ev-body{padding:0 0 1.6rem 92px;}
.ev-meta{border-top:1px solid var(--hair);margin-bottom:1.1rem;}
.m-row{display:grid;grid-template-columns:7.5rem 1fr;gap:1rem;padding:0.6rem 0;border-bottom:1px solid var(--hair);font-size:0.95rem;}
.m-k{font-family:var(--mono);font-size:0.7rem;text-transform:uppercase;letter-spacing:0.05em;color:var(--c3);padding-top:0.15rem;}
.m-v a,.ev-luma{text-decoration:underline;text-underline-offset:0.18em;text-decoration-color:var(--c5);}
.ev-desc{max-width:36em;font-size:1rem;line-height:1.5;}
.ev-desc p{margin:0 0 0.9em;}
.ev-desc img{max-width:100%;height:auto;margin:0.4rem 0 1rem;border-radius:2px;}
@media (max-width:640px){.ev-head{grid-template-columns:56px 1fr 16px;gap:0.8rem;}.ev-cover{width:56px;height:56px;}.ev-name{font-size:1.25rem;}.ev-body{padding-left:0;}.m-row{grid-template-columns:5.5rem 1fr;}}
/* events toolbar: equal heights, centred labels */
.ev-tools{align-items:stretch;}
.ev-tools input{height:2.9rem;padding:0 0.9rem;line-height:1;box-sizing:border-box;}
.ev-chips .chip{display:inline-flex;align-items:center;justify-content:center;height:2.9rem;padding:0 1rem;line-height:1;margin:0;box-sizing:border-box;font-family:var(--sans);font-size:0.95rem;}
.ev-chips .chip:hover{background:var(--tint);}
.ev-chips .chip.is-on:hover{background:var(--accent);}
.ev-desc h3,.ev-desc h4,.ev-desc h5{font-family:var(--serif);font-weight:700;line-height:1.05;margin:1.4em 0 0.5em;color:var(--c1);}
.ev-desc h3{font-size:1.5rem;}.ev-desc h4{font-size:1.3rem;}.ev-desc h5{font-size:1.1rem;}
.ev-desc blockquote{margin:1em 0;padding:0 0 0 1rem;border-left:2px solid var(--accent);font-family:var(--serif);font-size:1.3rem;line-height:1.2;}
.ev-desc blockquote p{margin:0;}
.ev-desc ul,.ev-desc ol{padding-left:1.2rem;margin:0 0 1em;}
.ev-desc li{margin:0.25em 0;}
.ev-desc a{text-decoration:underline;text-underline-offset:0.18em;}
.ev-desc img{max-width:min(100%,420px) !important;display:block;}
[data-meetups="upcoming"] .post:first-child,[data-meetups="upcoming"] .post:first-of-type{border-top:0;}

.page .body.gh-content{display:block;}
.page .body.gh-content > *{max-width:100%;}
/* scrollable tab rows: fade the right edge so it reads as scrollable */
@media (max-width:640px){
  .hd-tabs,.tl-tabs{-webkit-mask-image:linear-gradient(to right,#000 82%,transparent);mask-image:linear-gradient(to right,#000 82%,transparent);padding-right:2rem;}
}
@media (max-width:640px){.arow{grid-template-columns:6.4rem 1fr auto;}}

/* ---------- Visual library (Cargo-style index) ---------- */
.mb-intro{border-bottom:0;}
.mb-page{position:relative;width:min(1240px,calc(100vw - 2rem));left:50%;transform:translateX(-50%);display:grid;grid-template-columns:11.5rem minmax(0,1fr);gap:0 2.5rem;border-top:1px solid var(--line);padding:1.1rem 0 3rem;font-family:var(--sans);}
.mb-index{min-width:0;position:sticky;top:1rem;align-self:start;max-height:calc(100vh - 2rem);overflow:auto;scrollbar-width:none;font-size:0.9rem;line-height:1.35;}
.mb-group{margin-bottom:1.4rem;}
.mb-h{margin:0 0 0.35rem;color:var(--c3);font-size:0.9rem;}
.mb-list{list-style:none;margin:0;padding:0;}
.mb-list li{margin:0;}
.mb-list button{display:flex;justify-content:space-between;gap:0.6rem;width:100%;font:inherit;text-align:left;color:var(--c3);background:none;border:0;padding:0.05rem 0;cursor:pointer;}
.mb-list button:hover{color:var(--c1);}
.mb-list button[aria-pressed="true"]{color:var(--c1);}
.mb-list button[aria-pressed="true"] .mb-t::before{content:"\2192\00a0";}
.mb-list button:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.mb-list .mb-c{color:var(--c4);font-variant-numeric:tabular-nums;}
.mb-stats{margin:0;color:var(--c4);font-size:0.8rem;}
.mb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:2rem 1.25rem;}
.mb-item{display:block;text-decoration:none;color:inherit;}
.mb-frame{aspect-ratio:4/5;background:var(--tint);display:flex;align-items:center;justify-content:center;overflow:hidden;}
.mb-frame img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;opacity:0;transition:opacity .4s ease;}
.mb-frame img.is-loaded{opacity:1;}
.mb-cap{display:grid;grid-template-columns:auto minmax(0,1fr);gap:0 0.6rem;margin-top:0.5rem;font-size:0.8rem;line-height:1.3;}
.mb-n{color:var(--c4);font-variant-numeric:tabular-nums;}
.mb-ti{color:var(--c1);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.mb-meta{grid-column:2;color:var(--c3);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
a.mb-item:hover .mb-ti{text-decoration:underline;text-underline-offset:2px;}
.mb-item:focus-visible{outline:2px solid var(--accent);outline-offset:3px;}
.mb-empty{color:var(--c3);font-size:0.9rem;margin:0;}
.mb-more{margin-top:2.2rem;}
.mb-more button{font:inherit;font-size:0.9rem;color:var(--c1);background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px;}
.mb-more button:hover{color:var(--c3);}
.mb-note{max-width:var(--col);margin:0 auto 3rem;padding:0 1rem;}
@media (max-width:760px){
  .mb-page{grid-template-columns:minmax(0,1fr);padding-top:0.9rem;}
  .mb-index{position:static;max-height:none;overflow:visible;margin-bottom:1.2rem;}
  .mb-group{margin-bottom:0.8rem;}
  .mb-list{display:flex;flex-wrap:wrap;gap:0.15rem 0.9rem;}
  .mb-list button{width:auto;}
  .mb-list .mb-c{margin-left:-0.3rem;}
  .mb-chans{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;white-space:nowrap;-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent);padding-right:2rem;}
  .mb-chans::-webkit-scrollbar{display:none;}
  .mb-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.4rem 0.8rem;}
}

/* ---------- About ---------- */
.ab-facts{list-style:none;margin:1.8rem 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--hair);}
.ab-facts li{padding:0.8rem 0.9rem 0 0;font-family:var(--sans);font-size:0.85rem;line-height:1.3;color:var(--c3);}
.ab-facts li + li{padding-left:0.9rem;border-left:1px solid var(--hair);}
.ab-facts b{display:block;color:var(--c1);font-size:1rem;margin-bottom:0.15rem;}
.ab-page{padding-top:0.5rem;}
.ab-page .gh-content{display:block;max-width:calc(var(--col) - 2rem);margin:0 auto;}
.ab-page .gh-content > *{max-width:100%;}
.ab-page .gh-content h2{margin-top:2.6rem;}
.ab-page .gh-content > h2:first-child{margin-top:1rem;}
.ab-page .gh-content .kg-button-card a.kg-btn:is([href*="/events/"],[href*="ai-literacy-for-teams"]){background:none !important;color:var(--c1) !important;padding:0 0 0.12em !important;border:0 !important;border-bottom:1px solid var(--c1) !important;border-radius:0 !important;filter:none !important;box-shadow:none !important;font-weight:700;font-size:0.95rem;}
.ab-page .gh-content .kg-button-card a.kg-btn:is([href*="/events/"],[href*="ai-literacy-for-teams"])::after{content:"\00a0\2192";}
.ab-page .gh-content .kg-button-card a.kg-btn:is([href*="/events/"],[href*="ai-literacy-for-teams"]):hover{border-bottom-width:2px !important;}
.ab-feature{margin:2.6rem 0;padding:1.8rem 0;border-top:1px solid var(--line);border-bottom:1px solid var(--hair);display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:1.8rem;align-items:start;}
.ab-page .gh-content .ab-feature blockquote{margin:0 !important;padding:0;border:0;background:none;font-family:var(--sans);font-size:1.18rem;line-height:1.45;color:var(--c1);font-style:normal;}
.ab-page .gh-content .ab-feature blockquote::after{display:none;}
.ab-who{margin-top:1rem;font-family:var(--sans);font-size:0.9rem;color:var(--c3);}
.ab-who a{color:var(--c1);}
.ab-feature img{width:100%;height:auto;display:block;border-radius:3px;}
.ab-feature figcaption{margin-top:0.4rem;font-family:var(--sans);font-size:0.75rem;color:var(--c4);}
.ab-quotes-h{margin:2.6rem 0 0.9rem !important;}
.ab-quotes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--hair);border:1px solid var(--hair);margin:0 0 0.9rem;}
.ab-quotes figure{margin:0;background:var(--bg);padding:1.2rem 1.2rem 1rem;display:flex;flex-direction:column;justify-content:space-between;gap:0.9rem;}
.ab-quotes p{margin:0 !important;font-family:var(--serif);font-size:1.35rem;line-height:1.2;color:var(--c1);}
.ab-quotes figcaption{font-family:var(--sans);font-size:0.8rem;color:var(--c3);}
.ab-more{font-family:var(--sans);font-size:0.9rem;}
.ab-end{max-width:calc(var(--col) - 2rem);margin:3.2rem auto 1rem;padding:2rem 0 0;border-top:1px solid var(--line);}
.ab-end h2{font-family:var(--serif);font-weight:700;font-size:2rem;line-height:1.05;margin:0.3rem 0 0.7rem;color:var(--c1);}
.ab-end p:not(.caption){max-width:34em;margin:0 0 1.2rem;line-height:1.4;color:var(--c2);}
.ab-end .caption{font-size:0.72rem;text-transform:uppercase;letter-spacing:0.08em;color:var(--c3);margin:0;}
.ab-page .gh-content .kg-button-card{margin-top:1rem;}
@media (max-width:640px){
  .ab-facts{grid-template-columns:repeat(2,minmax(0,1fr));}
  .ab-facts li:nth-child(3){padding-left:0;border-left:0;}
  .ab-facts li:nth-child(n+3){margin-top:0.8rem;border-top:1px solid var(--hair);}
  .ab-feature{grid-template-columns:1fr;}
  .ab-quotes{grid-template-columns:1fr;}
  .ab-page .gh-content .ab-feature blockquote{font-size:1.05rem;}
}
