.qhw-bloglist,
.qhw-blogpost{
  --qhw-section-y:80px;
  --qhw-card-pad:30px;
  --qhw-card-radius:20px;
  --qhw-font-head:"Funnel Display","DM Sans",system-ui,sans-serif;
  --qhw-font-body:"DM Sans",system-ui,sans-serif;
  position:relative;
  isolation:isolate;
  background:#000;
  color:#b8bcc4;
  font-family:var(--qhw-font-body);
}
.qhw-bloglist{overflow:hidden}
body.qhw-blog{
  scroll-padding-top:96px;
}
.qhw-bloglist :is(h1,h2,h3,h4,h5,h6),
.qhw-blogpost :is(h1,h2,h3,h4,h5,h6),
.qhw-blogpost__body .elementor-heading-title{
  font-family:var(--qhw-font-head) !important;
  font-weight:500;
  letter-spacing:-.035em;
  color:#fff;
}
.qhw-bloglist :is(p,li,time,button,a,span,em),
.qhw-blogpost :is(p,li,time,button,a,span,em,td,th,blockquote){
  font-family:var(--qhw-font-body);
}
.qhw-bloglist__glow,
.qhw-bloglist__mesh,
.qhw-blogpost__glow,
.qhw-blogpost__mesh{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
}
.qhw-bloglist__glow,
.qhw-blogpost__glow{
  background:
    radial-gradient(60% 55% at 50% 0%,rgba(255,255,255,.14),transparent 70%),
    linear-gradient(180deg,rgba(0,0,0,.35),#000 98%);
}
.qhw-bloglist__mesh,
.qhw-blogpost__mesh{
  background-image:
    linear-gradient(rgba(255,255,255,.1) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.1) 1px,transparent 1px);
  background-size:72px 72px;
  opacity:.35;
  -webkit-mask-image:radial-gradient(70% 70% at 50% 40%,#000,transparent);
  mask-image:radial-gradient(70% 70% at 50% 40%,#000,transparent);
}
.qhw-bloglist__in,
.qhw-blogpost__in{
  position:relative;
  z-index:1;
  width:min(1180px,100% - 56px);
  margin:0 auto;
}
.qhw-bloglist__in{padding:var(--qhw-section-y,80px) 0}
.qhw-blogpost__in{padding:var(--qhw-section-y,80px) 0}

.qhw-bloglist__hero{
  max-width:740px;
  margin:0 auto 48px;
  text-align:center;
}
.qhw-bloglist__hero h1,
.qhw-blogpost h1{
  margin:0;
  color:#fff;
  font:500 clamp(40px,2rem + 3.2vw,72px)/1.06 var(--qhw-font-head);
  letter-spacing:-.035em;
}
.qhw-bloglist__hero p{
  margin:18px 0 0;
  color:#b8bcc4;
  font:400 18px/1.5 var(--qhw-font-body);
}

.qhw-pill{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:transparent;
  color:#fff;
  font:500 12px/1 var(--qhw-font-body);
  letter-spacing:.02em;
}
.qhw-pill--cat{
  background:#fff;
  border-color:#fff;
  color:#111;
}

body.qhw-blog .qhw-blogcard{
  display:flex;
  flex-direction:column;
  height:100%;
  background:#111 !important;
  color:#c8c8c8;
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--qhw-card-radius);
  overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.qhw-blogcard__media{
  display:block;
  aspect-ratio:16 / 10;
  background:#1a1a1a;
  overflow:hidden;
}
.qhw-blogcard__media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.qhw-blogcard__ph{
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  color:#fff;
  font:500 42px/1 var(--qhw-font-head);
}
.qhw-blogcard__body{padding:var(--qhw-card-pad)}
.qhw-blogcard__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.qhw-blogcard__meta em{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  margin-left:auto;
  padding:0 12px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:transparent;
  color:#fff;
  font:500 12px/1 var(--qhw-font-body);
  font-style:normal;
}
.qhw-blogcard__meta em::before{
  content:"★";
  margin-right:6px;
}
.qhw-blogcard h2{
  margin:16px 0 0;
  font:500 22px/1.25 var(--qhw-font-head);
  letter-spacing:-.03em;
  color:#fff !important;
}
body.qhw-blog .qhw-blogcard h2,
body.qhw-blog .qhw-blogcard h2 a{
  color:#fff !important;
  text-decoration:none;
}
.qhw-blogcard__body p{
  margin:12px 0 0;
  color:#b3b3b3;
  font:400 15px/1.55 var(--qhw-font-body);
}
.qhw-blogcard__foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:22px;
}
.qhw-blogcard__foot time{
  color:#9a9a9a;
  font:400 13px/1 var(--qhw-font-body);
}
body.qhw-blog .qhw-blogcard__go{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 18px;
  border:1px solid #fff;
  border-radius:999px;
  background:#fff !important;
  color:#111 !important;
  font:500 14px/1 var(--qhw-font-body);
  text-decoration:none;
}
.qhw-theme .qhw-blogcard__go:hover,
.qhw-theme .qhw-blogcard__go:focus{
  background:#111 !important;
  color:#fff !important;
  border-color:#fff !important;
  box-shadow:0 0 0 1px #fff;
}

body.qhw-blog .qhw-blogcard--feature{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  margin:0 0 36px;
}
body.qhw-blog .qhw-blogcard--feature .qhw-blogcard__media{
  aspect-ratio:auto;
  min-height:100%;
  height:100%;
}
body.qhw-blog .qhw-blogcard--feature h2{font-size:clamp(26px,3vw,36px)}

.qhw-bloglist__cats{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 28px;
}
.qhw-bloglist__cats button{
  min-height:34px;
  padding:0 14px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  background:transparent;
  color:#c8c8c8;
  font:500 13px/1 var(--qhw-font-body);
  cursor:pointer;
}
.qhw-bloglist__cats button.is-on,
.qhw-bloglist__cats button:hover{
  background:#fff;
  color:#111;
  border-color:#fff;
}
.qhw-bloglist__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}
.qhw-bloglist__cell[hidden],
.qhw-blogcard[hidden],
.qhw-bloglist__more[hidden],
.qhw-blogpost__toc[hidden]{display:none !important}
.qhw-bloglist__more{
  display:block;
  margin:36px auto 0;
  min-height:44px;
  padding:0 22px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:999px;
  background:transparent;
  color:#fff;
  font:500 14px/1 var(--qhw-font-body);
  cursor:pointer;
}
.qhw-bloglist__more:hover{border-color:#fff;background:#fff;color:#111}

.qhw-blogpost__back{
  display:block;
  margin:0 0 28px;
  color:#b8bcc4;
  font:500 13px/1 var(--qhw-font-body);
  text-align:center;
  text-decoration:none;
}
.qhw-blogpost__back:hover{color:#fff}
.qhw-blogpost__pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
  margin:0 0 16px;
}
.qhw-blogpost .qhw-pill{
  border-color:rgba(255,255,255,.2);
  background:transparent;
  color:#fff;
}
.qhw-blogpost .qhw-pill--cat{
  background:#fff;
  border-color:#fff;
  color:#111;
}
.qhw-blogpost h1{
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
  font-size:clamp(32px,4vw,44px);
  line-height:1.15;
  text-align:center;
}
.qhw-blogpost__by{
  margin:16px 0 0;
  color:#9a9a9a;
  font:400 16px/1.4 var(--qhw-font-body);
  text-align:center;
}
/* The theme sizes every post paragraph at 40px; keep the title and date line small. */
.qhw-blogpost p.qhw-blogpost__by{font-size:16px !important;line-height:1.4 !important}
@media (max-width:767px){
  .qhw-blogpost h1{font-size:28px}
}
.qhw-blogpost__hero{
  margin:36px 0 0;
  border-radius:var(--qhw-card-radius);
  overflow:hidden;
  background:#111;
  border:1px solid rgba(255,255,255,.1);
}
.qhw-blogpost__hero img{
  display:block;
  width:100%;
  height:auto;
}
.qhw-blogpost__read{
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
  gap:48px 56px;
  align-items:start;
  margin:48px 0 0;
}
.qhw-blogpost__toc{
  position:sticky;
  top:104px;
  margin:0;
  padding:0;
  max-height:calc(100vh - 128px);
  overflow:auto;
}
.qhw-blogpost__toc > p{
  margin:0 0 16px;
  color:#c8c8c8;
  font:500 15px/1.3 var(--qhw-font-body);
}
.qhw-blogpost__toc ol{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.qhw-blogpost__toc li{margin:0}
.qhw-blogpost__toc a{
  display:block;
  padding:0 0 0 14px;
  border-left:3px solid transparent;
  color:#8d8d8d;
  font:400 14px/1.45 var(--qhw-font-body);
  text-decoration:none;
}
.qhw-blogpost__toc a:hover{color:#fff}
.qhw-blogpost__toc a.is-on{
  color:#fff;
  font-weight:600;
  border-left-color:#fff;
}
.qhw-blogpost__toc .is-h3 a{padding-left:26px}
/* The theme's post paragraph/list size (40px on some posts) also hits the title and list here; keep them small. */
.qhw-blogpost .qhw-blogpost__toc > p{font-size:15px !important;line-height:1.3 !important}
.qhw-blogpost .qhw-blogpost__toc ol{font-size:14px !important}
.qhw-blogpost__in,
.qhw-blogpost__read,
.qhw-blogpost__body{
  min-width:0;
  max-width:100%;
}
.qhw-blogpost__body{
  width:100%;
  margin:0;
  color:#b8bcc4;
  font:400 18px/1.7 var(--qhw-font-body);
  text-align:left;
}
.qhw-blogpost__body h2,
.qhw-blogpost__body h2.elementor-heading-title{
  font-size:clamp(28px,1.35rem + 1.4vw,42px) !important;
  line-height:1.15 !important;
  margin:48px 0 16px;
}
.qhw-blogpost__body h3,
.qhw-blogpost__body h3.elementor-heading-title{
  font-size:clamp(22px,1.15rem + .7vw,30px) !important;
  line-height:1.2 !important;
  margin:32px 0 12px;
}
.qhw-blogpost__body h4{font-size:22px !important;margin:28px 0 10px}
.qhw-blogpost__body h5{font-size:18px !important;margin:24px 0 8px}
.qhw-blogpost__body h6{font-size:16px !important;margin:20px 0 8px}
.qhw-blogpost__body p,
.qhw-blogpost__body li{
  color:#b8bcc4;
  font:400 18px/1.7 var(--qhw-font-body);
}
.qhw-blogpost__body a{color:#fff}

.qhw-blogpost__body figure.wp-block-table,
.qhw-blogpost__body .wp-block-table,
.qhw-blogpost__body .qhw-tablewrap{
  display:block;
  width:100%;
  max-width:100%;
  margin:28px 0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
body.qhw-blog .qhw-blogpost__body table{
  width:max-content;
  min-width:100%;
  max-width:none;
  border-collapse:collapse;
  table-layout:auto;
}
body.qhw-blog .qhw-blogpost__body table.has-fixed-layout{
  table-layout:auto;
  width:max-content;
  min-width:100%;
}
body.qhw-blog .qhw-blogpost__body th,
body.qhw-blog .qhw-blogpost__body td{
  min-width:140px;
  padding:12px 16px;
  border:1px solid rgba(255,255,255,.14);
  background:transparent;
  color:#c8c8c8;
  font:400 15px/1.45 var(--qhw-font-body);
  text-align:left;
  vertical-align:top;
  word-break:normal;
  overflow-wrap:break-word;
  hyphens:none;
}
body.qhw-blog .qhw-blogpost__body th,
body.qhw-blog .qhw-blogpost__body thead td,
body.qhw-blog .qhw-blogpost__body tr:first-child td{
  color:#fff;
  font-weight:600;
  background:rgba(255,255,255,.06);
}
body.qhw-blog .qhw-blogpost__body td:first-child{
  color:#fff;
  font-weight:500;
}
.qhw-blogpost__body .elementor-widget-theme-post-title,
.qhw-blogpost__body .elementor-widget-theme-post-featured-image,
.qhw-blogpost__body .elementor-widget-post-info,
.qhw-blogpost__body .elementor-widget-theme-post-excerpt,
.qhw-blogpost__body .elementor-widget-post-title,
.qhw-blogpost__body .elementor-author-box,
.qhw-blogpost__body .elementor-widget-author-box{
  display:none !important;
}

body.qhw-blog .qhw-bloglist img,
body.qhw-blog .qhw-blogpost img,
body.qhw-blog .qhw-blogcard img{
  filter:none !important;
}

body.qhw-blog.single .post_header,
body.qhw-blog.single .post_featured,
body.qhw-blog.single .post_meta,
body.qhw-blog.single .post_footer,
body.qhw-blog.single .post-navigation,
body.qhw-blog.single .nav-links,
body.qhw-blog.single .related_wrap,
body.qhw-blog.single .comments_wrap,
body.qhw-blog.single .socials_share,
body.qhw-blog.single .author_info,
body.qhw-blog.single .author_description,
body.qhw-blog.single .author_label,
body.qhw-blog.single .post_author,
body.qhw-blog .qhw-blogpost__by .post_author{
  display:none !important;
}
body.qhw-blog.single .post_content,
body.qhw-blog.single .content,
body.qhw-blog.page .post_content{
  padding:0 !important;
  max-width:none !important;
  width:100% !important;
}

@media (max-width:1099px){
  .qhw-blogpost__read{
    grid-template-columns:1fr;
    gap:28px;
    margin-top:36px;
  }
  .qhw-blogpost__toc{
    position:static;
    max-height:none;
    padding-bottom:8px;
    border-bottom:1px solid rgba(255,255,255,.1);
  }
}
@media (max-width:1023px){
  .qhw-bloglist,
  .qhw-blogpost{--qhw-card-pad:24px}
  body.qhw-blog .qhw-blogcard--feature{grid-template-columns:1fr}
  body.qhw-blog .qhw-blogcard--feature .qhw-blogcard__media{min-height:220px;aspect-ratio:16 / 10}
  .qhw-bloglist__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:767px){
  .qhw-bloglist,
  .qhw-blogpost{--qhw-section-y:50px}
}
@media (max-width:640px){
  .qhw-bloglist,
  .qhw-blogpost{--qhw-card-pad:20px}
  .qhw-bloglist__in,
  .qhw-blogpost__in{width:min(1180px,100% - 32px)}
  .qhw-bloglist__grid{grid-template-columns:1fr}
  .qhw-blogpost h1{max-width:none}
  .qhw-blogpost__body{width:100%}
  .qhw-blogpost__body th,
  .qhw-blogpost__body td{
    min-width:128px;
    padding:10px 12px;
    font-size:14px;
  }
}

/* Pasted posts (Word, Google Docs, other sites) bring their own font sizes, fonts and colours,
   e.g. a 48px grey span. Ignore them so every post keeps the body size and colour above. */
.qhw-blogpost__body :is(p, li, span, font, a, strong, em, b, i, u){
  font-size:inherit !important;
  font-family:inherit !important;
  line-height:inherit !important;
}
.qhw-blogpost__body :is(p, li, span, font, strong, em, b, i, u){
  color:inherit !important;
}
.qhw-blogpost__body :is(span, font){
  background:none !important;
}
.qhw-blogpost__body :is(h1, h2, h3, h4, h5, h6) :is(span, font, strong, em, b, i, a){
  color:inherit !important;
}
/* Elementor text-editor widgets (and some lists) carry their own size and colour, so "inherit" above
   can pick up a wrong size. Set the post body text directly: 18px, 16px on mobile. */
.qhw-blogpost__body :is(p, li){
  font-size:18px !important;
  line-height:1.7 !important;
  color:#b8bcc4 !important;
}
@media (max-width:767px){
  .qhw-blogpost__body :is(p, li){font-size:16px !important}
}

/* Featured video (YouTube): 16:9, centred in the image area of the featured card and in the post hero */
.qhw-blogcard__media--video{display:flex;align-items:center}
.qhw-blogcard__media--video iframe,
.qhw-blogpost__hero--video iframe{display:block;width:100%;aspect-ratio:16 / 9;height:auto;border:0}
@media (max-width:1023px){
  body.qhw-blog .qhw-blogcard--feature .qhw-blogcard__media--video{aspect-ratio:auto;min-height:0}
}

.qhw-blogcard__media--video,
.qhw-blogpost__hero--video{position:relative}
.qhw-vbtns{position:absolute;left:12px;bottom:52px;display:flex;gap:8px;z-index:2}
.qhw-vbtn{
  display:grid;place-items:center;width:34px;height:34px;padding:0;
  border:1px solid rgba(255,255,255,.28);border-radius:50%;
  background:rgba(0,0,0,.6);color:#fff;cursor:pointer;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  transition:background .2s ease,color .2s ease;
}
.qhw-vbtn:hover,.qhw-vbtn:focus-visible{background:#fff;color:#111}

/* Blog videos always in colour (overrides the site-wide grey filter) */
.qhw-theme.single video,
.qhw-theme.single iframe,
.qhw-theme.single .elementor-video,
.qhw-theme.single .e-hosted-video video,
.qhw-theme.single [class*="qhw-blog"] video,
.qhw-theme.blog video,
.qhw-theme.archive video{
  -webkit-filter:none !important;
  filter:none !important;
}
