/* Seven Tree blog skin: blog lists, the free resource library, single posts and plain pages. */

body.stm-blog{
  --b-ease:cubic-bezier(0.23,1,0.32,1);
  --b-raise:10px 10px 24px rgba(0,0,0,.55),-8px -8px 20px rgba(255,255,255,.028);
  --b-raise-sm:6px 6px 14px rgba(0,0,0,.5),-5px -5px 12px rgba(255,255,255,.026);
  --b-well:inset 5px 5px 12px rgba(0,0,0,.6),inset -4px -4px 10px rgba(255,255,255,.03);
  --b-well-sm:inset 3px 3px 7px rgba(0,0,0,.6),inset -2px -2px 6px rgba(255,255,255,.03);
  color-scheme:dark;
}
/* page frame: dark everywhere, footer at the bottom */
html:has(body.stm-blog),body.stm-blog,body.stm-blog #tc-page-wrap,body.stm-blog #main-wrapper,body.stm-blog .tc-page-wrap{background:#212121 !important}
body.stm-blog #tc-page-wrap{min-height:100vh;min-height:100dvh;display:flex !important;flex-direction:column}
body.stm-blog .stm-blogx{flex:1 0 auto}

.stm-blogx{background:#212121 !important;color:#d6d6d6 !important;font-family:'Raleway',sans-serif !important;font-size:17px;line-height:1.6;padding:clamp(40px,5vw,80px) 0 clamp(64px,8vw,112px);-webkit-font-smoothing:antialiased}
.stm-blogx *,.stm-blogx *::before,.stm-blogx *::after{box-sizing:border-box}
.stm-blogx .stm-bwrap{max-width:1320px;margin:0 auto;padding:0 clamp(20px,5vw,72px)}
.stm-blogx a{text-decoration:none !important}
.stm-blogx .stm-mini{font-family:'JetBrains Mono',monospace !important;font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:#8c8c8c !important}
.stm-blogx .stm-eyebrow{display:inline-flex;align-items:center;gap:10px;padding:8px 14px;border-radius:12px;background:#1d1d1d !important;box-shadow:var(--b-well-sm);font-family:'JetBrains Mono',monospace !important;font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:#a8a8a8 !important;margin-bottom:18px}
.stm-blogx h1{font-family:'Raleway',sans-serif !important;font-weight:800 !important;font-size:clamp(36px,4.6vw,64px) !important;line-height:1.06 !important;letter-spacing:-0.02em !important;color:#f2f2f2 !important;text-transform:none !important;margin:0 !important;max-width:20ch}

/* ---------- list header ---------- */
.stm-blogx .stm-bhead{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,420px);gap:24px 48px;align-items:end;margin-bottom:22px}
.stm-blogx .stm-blead{font-size:clamp(17px,1.4vw,19px);color:#a8a8a8 !important;max-width:58ch;margin:16px 0 0 !important}
.stm-blogx .stm-btools{display:grid;gap:10px;justify-items:end}
.stm-blogx .stm-search{display:flex;align-items:center;gap:8px;width:100%;padding:6px 6px 6px 16px;border-radius:999px;background:#1a1a1a !important;box-shadow:var(--b-well-sm);margin:0 !important}
.stm-blogx .stm-search svg{width:18px;height:18px;fill:#8c8c8c;flex:none}
.stm-blogx .stm-search input[type=search]{flex:1;min-width:0;display:block !important;width:100% !important;max-width:none !important;height:44px !important;margin:0 !important;float:none !important;padding:0 6px !important;border:0 !important;background:transparent !important;box-shadow:none !important;color:#f2f2f2 !important;-webkit-text-fill-color:#f2f2f2 !important;font-family:'Raleway',sans-serif !important;font-size:16px !important;line-height:44px !important;letter-spacing:normal !important;text-transform:none !important;outline:none !important;-webkit-appearance:none}
.stm-blogx .stm-search input::placeholder{color:#777 !important;-webkit-text-fill-color:#777 !important}
.stm-blogx .stm-search button{flex:none;height:42px;padding:0 18px !important;border:0 !important;border-radius:999px !important;background:#ffcb14 !important;color:#1b1b1b !important;font-family:'Raleway',sans-serif !important;font-weight:800 !important;font-size:13px !important;letter-spacing:.06em !important;text-transform:uppercase !important;cursor:pointer;transition:transform .14s var(--b-ease)}
.stm-blogx .stm-search button:active{transform:scale(.96)}
.stm-blogx .stm-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 clamp(28px,3vw,40px)}
.stm-blogx .stm-chip{display:inline-flex;align-items:center;padding:9px 14px;border-radius:12px;background:#1d1d1d !important;box-shadow:var(--b-well-sm);font-family:'JetBrains Mono',monospace !important;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#a8a8a8 !important;transition:color .2s,box-shadow .2s}
.stm-blogx .stm-chip:hover{color:#f2f2f2 !important}
.stm-blogx .stm-chip.on{background:#ffcb14 !important;color:#1b1b1b !important;box-shadow:0 0 8px rgba(255,203,20,.35)}

/* ---------- cards ---------- */
.stm-blogx .stm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2vw,28px)}
.stm-blogx .stm-grid.lib{grid-template-columns:repeat(4,minmax(0,1fr))}
.stm-blogx .stm-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.stm-blogx .stm-card{position:relative;display:flex;flex-direction:column;min-width:0;border-radius:24px;padding:12px;background:linear-gradient(150deg,#262626,#202020) !important;box-shadow:var(--b-raise-sm);transition:transform .5s var(--b-ease),box-shadow .5s var(--b-ease)}
.stm-blogx .stm-card:hover{transform:translateY(-4px);box-shadow:var(--b-raise)}
.stm-blogx .stm-card-link{position:absolute;inset:0;z-index:2;border-radius:24px}
.stm-blogx .stm-card-img{border-radius:16px;overflow:hidden;aspect-ratio:16/10;background:#1a1a1a !important;box-shadow:var(--b-well-sm)}
.stm-blogx .stm-card-img img{display:block;width:100% !important;height:100% !important;object-fit:cover;transition:transform .8s var(--b-ease)}
.stm-blogx .stm-card:hover .stm-card-img img{transform:scale(1.04)}
.stm-blogx .stm-card-ico{display:grid;place-items:center;aspect-ratio:16/10;border-radius:16px;background:#1a1a1a !important;box-shadow:var(--b-well-sm)}
.stm-blogx .stm-card-ico svg{width:46px;height:46px;fill:#ffcb14}
.stm-blogx .stm-card-body{display:flex;flex-direction:column;flex:1;padding:16px 8px 6px}
.stm-blogx .stm-card-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-bottom:10px}
.stm-blogx .stm-tag{position:relative;z-index:3;display:inline-flex;align-items:center;gap:8px;padding:5px 10px;border-radius:10px;background:#1a1a1a !important;box-shadow:var(--b-well-sm);font-family:'JetBrains Mono',monospace !important;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#ffcb14 !important}
.stm-blogx .stm-tag .stm-led{width:6px;height:6px}
.stm-blogx .stm-card-title{font-family:'Raleway',sans-serif !important;font-weight:800 !important;font-size:20px !important;line-height:1.25 !important;letter-spacing:-0.01em !important;color:#f2f2f2 !important;margin:0 0 8px !important;text-transform:none !important}
.stm-blogx .stm-card-ex{font-size:15px;line-height:1.55;color:#a8a8a8 !important;margin:0 0 16px !important}
.stm-blogx .stm-card-foot{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:12px;border-top:1px solid #2c2c2c}
.stm-blogx .stm-card-go{display:inline-flex;align-items:center;gap:8px;font-family:'JetBrains Mono',monospace !important;font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;color:#ffcb14 !important}
.stm-blogx .stm-card-go svg{width:14px;height:14px;fill:#ffcb14;transition:transform .3s var(--b-ease)}
.stm-blogx .stm-card:hover .stm-card-go svg{transform:translateX(3px)}
/* featured: the newest post on the blog's first page */
.stm-blogx .stm-card.big{grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:clamp(16px,2.4vw,36px);padding:14px}
.stm-blogx .stm-card.big .stm-card-img,.stm-blogx .stm-card.big .stm-card-ico{aspect-ratio:16/9;height:auto}
.stm-blogx .stm-card.big .stm-card-body{padding:clamp(8px,1.6vw,22px) clamp(4px,1vw,14px)}
.stm-blogx .stm-card.big .stm-card-title{font-size:clamp(26px,2.6vw,36px) !important;line-height:1.12 !important}
.stm-blogx .stm-card.big .stm-card-ex{font-size:17px}
/* library cards: shelf feel */
.stm-blogx.is-lib .stm-card{border-radius:20px}
.stm-blogx.is-lib .stm-card-img,.stm-blogx.is-lib .stm-card-ico{aspect-ratio:4/3}
.stm-blogx .stm-tag.free{color:#f2f2f2 !important}

/* pager */
.stm-blogx .stm-pager{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:clamp(32px,4vw,56px)}
.stm-blogx .stm-pager .page-numbers{display:inline-flex;align-items:center;gap:8px;min-width:44px;height:44px;justify-content:center;padding:0 14px;border-radius:12px;background:#262626 !important;box-shadow:var(--b-raise-sm);font-family:'JetBrains Mono',monospace !important;font-size:13px;color:#d6d6d6 !important}
.stm-blogx .stm-pager .page-numbers svg{width:14px;height:14px;fill:currentColor}
.stm-blogx .stm-pager .page-numbers.current{background:#1d1d1d !important;box-shadow:var(--b-well-sm);color:#ffcb14 !important}
.stm-blogx .stm-pager .page-numbers.dots{background:none !important;box-shadow:none}
.stm-blogx .stm-pager a.page-numbers:hover{color:#ffcb14 !important}
.stm-blogx .stm-empty{display:grid;justify-items:center;gap:10px;text-align:center;padding:64px 20px;border-radius:26px;background:#1d1d1d !important;box-shadow:var(--b-well-sm)}
.stm-blogx .stm-empty h2{font-family:'Raleway',sans-serif !important;font-weight:800;font-size:26px;color:#f2f2f2 !important;margin:0}
.stm-blogx .stm-empty p{color:#a8a8a8 !important;margin:0}

/* ---------- single post ---------- */
.stm-progress{position:fixed;left:0;right:0;top:0;height:4px;z-index:99999;pointer-events:none;background:rgba(0,0,0,.35)}
.stm-progress i{display:block;height:100%;background:#ffcb14;box-shadow:0 0 8px rgba(255,203,20,.6);transform:scaleX(0);transform-origin:0 50%}
body.admin-bar .stm-progress{top:32px}
.stm-pagex .stm-bwrap{max-width:900px}
.stm-pagex.is-tool .stm-bwrap{max-width:1320px}
.stm-blogx .stm-back{display:inline-flex;align-items:center;gap:8px;margin-bottom:24px;font-family:'JetBrains Mono',monospace !important;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#a8a8a8 !important;transition:color .2s}
.stm-blogx .stm-back svg{width:15px;height:15px;fill:currentColor;transition:transform .3s var(--b-ease)}
.stm-blogx .stm-back:hover{color:#ffcb14 !important}
.stm-blogx .stm-back:hover svg{transform:translateX(-3px)}
.stm-blogx .stm-post-head{margin-bottom:clamp(24px,3vw,36px)}
.stm-blogx .stm-post-head h1{max-width:none;margin:6px 0 20px !important}
.stm-pagex .stm-post-head h1{margin:0 0 12px !important}
.stm-blogx .stm-byline{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding:12px 16px;border-radius:16px;background:#1d1d1d !important;box-shadow:var(--b-well-sm)}
.stm-blogx .stm-byline .stm-by-who{display:grid !important;gap:3px;min-width:0}
.stm-blogx .stm-byline .stm-by-who b{display:block !important;line-height:1.2}
.stm-blogx .stm-byline .stm-by-who .stm-mini{display:block !important}
.stm-blogx .stm-byline b{color:#f2f2f2 !important;font-size:15.5px}
.stm-blogx .stm-ava{width:40px !important;height:40px !important;border-radius:50% !important;box-shadow:var(--b-raise-sm);margin:0 !important}
.stm-blogx .stm-rt{margin-left:auto;display:inline-flex;align-items:center;gap:8px;font-family:'JetBrains Mono',monospace !important;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#ffcb14 !important}
.stm-blogx .stm-rt{flex-direction:row !important;white-space:nowrap}
.stm-blogx .stm-rt svg{display:inline-block !important;flex:0 0 16px;width:16px !important;height:16px !important;margin:0 !important;fill:#ffcb14}
.stm-blogx .stm-hero-img{margin:0 0 clamp(28px,3.4vw,44px) !important;border-radius:24px;overflow:hidden;padding:8px;background:#1a1a1a !important;box-shadow:var(--b-well)}
.stm-blogx .stm-hero-img img{display:block;width:100% !important;height:auto !important;border-radius:18px}

/* the article text */
.stm-prose{font-size:18px;line-height:1.75;color:#d6d6d6 !important}
.stm-prose > *{max-width:72ch}
.stm-prose > figure,.stm-prose > .wp-block-image,.stm-prose > table,.stm-prose > .wp-block-table,.stm-prose > .wp-block-embed,.stm-prose > iframe{max-width:none}
.stm-prose p,.stm-prose ul,.stm-prose ol{margin:0 0 1.15em !important}
.stm-prose h2,.stm-prose h3,.stm-prose h4{font-family:'Raleway',sans-serif !important;font-weight:800 !important;color:#f2f2f2 !important;letter-spacing:-0.015em !important;text-transform:none !important;line-height:1.2 !important}
.stm-prose h2{font-size:clamp(26px,2.4vw,32px) !important;margin:1.8em 0 .6em !important;padding-top:.6em;border-top:1px solid #2c2c2c}
.stm-prose h3{font-size:clamp(20px,1.8vw,23px) !important;margin:1.5em 0 .5em !important}
.stm-prose h4{font-size:18px !important;margin:1.3em 0 .4em !important}
.stm-prose strong,.stm-prose b{color:#f2f2f2 !important}
.stm-prose a{color:#ffcb14 !important;background-image:linear-gradient(rgba(255,203,20,.35),rgba(255,203,20,.35));background-size:100% 1px;background-position:0 100%;background-repeat:no-repeat;transition:background-size .3s}
.stm-prose a:hover{background-size:100% 100%;color:#1b1b1b !important;background-image:linear-gradient(#ffcb14,#ffcb14)}
.stm-prose ul,.stm-prose ol{padding-left:1.4em !important}
.stm-prose li{margin:.35em 0 !important}
.stm-prose ul li::marker{color:#ffcb14}
.stm-prose ol li::marker{color:#ffcb14;font-family:'JetBrains Mono',monospace;font-size:.85em}
.stm-prose blockquote{margin:1.6em 0 !important;padding:18px 22px !important;border:0 !important;border-radius:18px;background:#1d1d1d !important;box-shadow:var(--b-well-sm);font-size:19px;color:#f2f2f2 !important;font-style:normal !important;position:relative}
.stm-prose blockquote::before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:3px;border-radius:2px;background:#ffcb14}
.stm-prose blockquote p:last-child{margin:0 !important}
.stm-prose img{max-width:100%;height:auto;border-radius:16px}
.stm-prose figure{margin:1.6em 0 !important}
.stm-prose figcaption{font-family:'JetBrains Mono',monospace !important;font-size:12px;letter-spacing:.06em;color:#8c8c8c !important;margin-top:8px;text-align:center}
.stm-prose table{width:100%;border-collapse:separate !important;border-spacing:0;margin:1.6em 0 !important;border-radius:18px;overflow:hidden;background:#1d1d1d !important;box-shadow:var(--b-well-sm);font-size:16px}
.stm-prose th,.stm-prose td{padding:12px 14px !important;border:0 !important;border-bottom:1px solid #2a2a2a !important;text-align:left;color:#d6d6d6 !important;background:transparent !important}
.stm-prose th{font-family:'JetBrains Mono',monospace !important;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#ffcb14 !important;background:#232323 !important}
.stm-prose tr:last-child td{border-bottom:0 !important}
.stm-prose code{font-family:'JetBrains Mono',monospace !important;font-size:.88em;padding:2px 6px;border-radius:6px;background:#2a2a2a !important;color:#f2f2f2 !important}
.stm-prose pre{padding:18px !important;border-radius:16px;background:#151515 !important;box-shadow:var(--b-well-sm);overflow:auto}
.stm-prose pre code{background:none !important;padding:0}
.stm-prose hr{border:0 !important;height:1px;background:#2c2c2c !important;margin:2em 0 !important}
.stm-prose iframe{max-width:100%;border-radius:16px}
.stm-prose .wp-block-button__link,.stm-prose .button{display:inline-flex;align-items:center;min-height:50px;padding:12px 26px !important;border-radius:999px !important;background:#ffcb14 !important;color:#1b1b1b !important;font-weight:800;letter-spacing:.06em;text-transform:uppercase;font-size:14px;background-image:none !important}
.stm-blogx .stm-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}

/* call to action + related */
.stm-blogx .stm-cta-box{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px 32px;align-items:center;margin-top:clamp(40px,5vw,64px);padding:clamp(22px,3vw,36px);border-radius:28px;background:linear-gradient(150deg,#262626,#1f1f1f) !important;box-shadow:var(--b-raise)}
.stm-blogx .stm-cta-box h2{font-family:'Raleway',sans-serif !important;font-weight:800 !important;font-size:clamp(22px,2.2vw,28px) !important;line-height:1.2 !important;color:#f2f2f2 !important;margin:0 0 8px !important;text-transform:none !important}
.stm-blogx .stm-cta-box p{color:#a8a8a8 !important;margin:0 !important;font-size:16px}
.stm-blogx .stm-cta-box .stm-eyebrow{margin-bottom:12px}
.stm-blogx .stm-related{margin-top:clamp(48px,6vw,80px)}
.stm-blogx .stm-related > h2{font-family:'Raleway',sans-serif !important;font-weight:800 !important;font-size:clamp(26px,2.6vw,34px) !important;color:#f2f2f2 !important;margin:0 0 22px !important;text-transform:none !important}

/* plain pages */
.stm-pagex .stm-prose h2:first-child{border-top:0;padding-top:0;margin-top:0 !important}

@media (max-width:1100px){
  .stm-blogx .stm-grid.lib{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:900px){
  .stm-blogx .stm-bhead{grid-template-columns:minmax(0,1fr)}
  .stm-blogx .stm-btools{justify-items:start}
  .stm-blogx .stm-grid,.stm-blogx .stm-grid.lib,.stm-blogx .stm-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stm-blogx .stm-card.big{grid-template-columns:minmax(0,1fr)}
  .stm-blogx .stm-cta-box{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:600px){
  .stm-blogx .stm-grid,.stm-blogx .stm-grid.lib,.stm-blogx .stm-grid.three{grid-template-columns:minmax(0,1fr)}
  .stm-prose{font-size:17px}
  .stm-blogx .stm-rt{margin-left:0}
  body.admin-bar .stm-progress{top:46px}
}

/* theme hardening for article content */
.stm-blogx .stm-prose ul{list-style:disc outside !important}
.stm-blogx .stm-prose ol{list-style:decimal outside !important}
.stm-blogx .stm-prose li{display:list-item !important;list-style:inherit !important}
.stm-blogx .stm-prose blockquote{padding:18px 22px 18px 28px !important;font-family:'Raleway',sans-serif !important;font-weight:600 !important;line-height:1.5 !important;quotes:none}
.stm-blogx .stm-prose blockquote::after{content:none !important}
.stm-blogx .stm-prose blockquote *{font-family:inherit !important;font-size:inherit !important;font-weight:inherit !important;color:inherit !important;padding:0 !important;margin-left:0 !important}
.stm-blogx .stm-prose blockquote cite{display:block;margin-top:8px;font-family:'JetBrains Mono',monospace !important;font-size:12px !important;color:#8c8c8c !important;font-style:normal}
.stm-blogx .stm-prose table,.stm-blogx .stm-prose .wp-block-table table{border:0 !important;outline:0 !important}
.stm-blogx .stm-prose .wp-block-table{border:0 !important;margin:1.6em 0 !important}

/* single post: title and image span the frame, text + sticky rail below */
.stm-read .stm-post-head h1{max-width:24ch}
.stm-read .stm-byline{max-width:none}
.stm-read .stm-hero-img img{max-height:640px;object-fit:cover}
.stm-blogx .stm-post-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px);gap:clamp(40px,6vw,96px);align-items:start}
.stm-blogx .stm-post-main{min-width:0;max-width:760px}
.stm-blogx .stm-post-main .stm-prose > *{max-width:none}
.stm-blogx .stm-rail{position:sticky;top:110px;min-width:0}
body.admin-bar .stm-blogx .stm-rail{top:142px}
.stm-blogx .stm-rail-in{display:grid;gap:22px}
.stm-blogx .stm-toc{padding:18px 18px 14px;border-radius:22px;background:#1d1d1d !important;box-shadow:var(--b-well-sm)}
.stm-blogx .stm-toc[hidden]{display:none !important}
.stm-blogx .stm-toc .stm-eyebrow{margin-bottom:12px}
.stm-blogx .stm-toc-list{display:grid;gap:2px;max-height:46vh;overflow:auto}
.stm-blogx .stm-toc a{display:block !important;text-decoration:none !important;padding:7px 10px;border-radius:10px;font-size:14.5px;line-height:1.35;color:#a8a8a8 !important;transition:color .2s,background .2s}
.stm-blogx .stm-toc a.sub{padding-left:22px;font-size:13.5px}
.stm-blogx .stm-toc a:hover{color:#f2f2f2 !important}
.stm-blogx .stm-toc a.on{color:#ffcb14 !important;background:#262626 !important}
.stm-blogx .stm-rail-card{padding:22px;border-radius:22px;background:linear-gradient(150deg,#262626,#1f1f1f) !important;box-shadow:var(--b-raise-sm)}
.stm-blogx .stm-rail-card .stm-eyebrow{margin-bottom:12px}
.stm-blogx .stm-rail-card h3{font-family:'Raleway',sans-serif !important;font-weight:800 !important;font-size:20px !important;line-height:1.25 !important;color:#f2f2f2 !important;margin:0 0 8px !important;text-transform:none !important;letter-spacing:-0.01em !important}
.stm-blogx .stm-rail-card p{font-size:15px;line-height:1.5;color:#a8a8a8 !important;margin:0 0 16px !important}
.stm-blogx .stm-rail-card .stm-btn{width:100%;justify-content:center}
.stm-read .stm-post-body + .stm-cta-box{display:none}
@media (max-width:1000px){
  .stm-blogx .stm-post-body{grid-template-columns:minmax(0,1fr)}
  .stm-blogx .stm-post-main{max-width:none}
  .stm-blogx .stm-rail{display:none}
  .stm-read .stm-post-body + .stm-cta-box{display:grid}
}
