/* WordPress glue for the Measure Twice design */
body{margin:0}
.wp-site-blocks{padding:0}
.wp-site-blocks > *{margin-block-start:0}
.site img{max-width:100%;height:auto}

/* Header */
.mt-header{position:sticky;top:0;z-index:20}
.admin-bar .mt-header{top:32px}
@media (max-width:782px){.admin-bar .mt-header{top:46px}}
.hdr{backdrop-filter:saturate(1.4) blur(8px)}
.nav .mobile-only{display:none}
.logo{white-space:nowrap}
@media (min-width:761px){.hdr .menu{display:none}}
@media (max-width:760px){
  .hdr.open .nav{display:flex;flex-direction:column;gap:4px;position:absolute;top:64px;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);padding:12px 20px 20px;box-shadow:0 20px 30px -24px rgba(38,52,45,.3)}
  .hdr.open .nav a{padding:12px 0;font-size:17px;border-bottom:1px solid var(--line)}
  .hdr.open .nav .mobile-only{display:block}
}

/* Back to top */
.totop{position:fixed;right:24px;bottom:24px;width:52px;height:52px;border-radius:50%;background:var(--cta);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(38,52,45,.22);z-index:50;text-decoration:none;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s,transform .2s,visibility .2s}
.totop.show{opacity:1;visibility:visible;transform:none}
.totop:hover{background:var(--cta-hover)}
.totop svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:760px){.totop{right:16px;bottom:16px;width:46px;height:46px}}

/* Pricing guide signup hides until its link is set */
body.no-guide .sec:has(.mt-guide){display:none}
#guide{scroll-margin-top:220px}
.mt-guide-ok{flex:1 1 380px;background:var(--tint2);border-radius:12px;padding:18px 20px;color:var(--ink);font-size:16px}
.mt-guide-err{flex:1 1 100%;margin:0;background:#F6EAD3;color:#7A4A0C;border-radius:10px;padding:12px 14px;font-size:15px;font-weight:600}
.mt-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Shared helpers */
.stack{display:flex;flex-direction:column;gap:18px}
.sec > .wrap.stack{gap:32px}
.blog-hero .stack{gap:18px}
.narrow{max-width:860px}
.site .wp-block-post-title a{color:var(--ink)!important;text-decoration:none}
.site .wp-block-post-title a:hover{color:var(--forest)!important}

/* Meta row and category tags */
.site .meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:14px;color:var(--muted)}
.site .tags{display:flex;gap:6px;flex-wrap:wrap}
.site .tags a{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;background:var(--tint2);color:var(--forest)!important;font-size:12px;font-weight:700;text-decoration:none}
.site .wp-block-post-terms__separator{display:none}

/* Category chips */
.chips{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:8px}
.chips ul{list-style:none;margin:0;padding:0;display:flex;gap:8px;flex-wrap:wrap}
.chips a,.chips .chip-all{height:38px;padding:0 16px;border-radius:999px;border:1px solid var(--line-strong);background:#fff;display:inline-flex;align-items:center;font-size:14px;font-weight:600;color:var(--body)!important;text-decoration:none}
.chips .current-cat a,.chips .chip-all.on{background:var(--cta);border-color:var(--cta);color:#fff!important}

/* Featured post */
.mt-featured .wp-block-post-template{list-style:none;margin:0;padding:0}
.card.feature{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));overflow:hidden}
.card.feature .img{margin:0;min-height:340px;background:var(--tint2)}
.card.feature .img a,.card.feature .img img{display:block;width:100%;height:100%;object-fit:cover}
.card.feature .fbody{padding:44px;display:flex;flex-direction:column;gap:16px;justify-content:center}
.card.feature .h2{font-size:34px}

/* Post cards */
.mt-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px}
.mt-grid > li{margin:0;display:flex}
.card.post{display:flex;flex-direction:column;overflow:hidden;width:100%}
.card.post .img{margin:0;background:var(--tint2)}
.card.post .img img{display:block;width:100%;height:100%;object-fit:cover}
.card.post .body{padding:22px;display:flex;flex-direction:column;gap:10px}
.site .wp-block-post-excerpt{color:var(--body);font-size:15px}
.site .wp-block-post-excerpt__excerpt{margin:0}
.site .wp-block-post-excerpt__more-text{margin:10px 0 0}
.site .wp-block-post-excerpt__more-link{font-weight:700;color:var(--forest)!important;text-decoration:none}

/* Pagination */
.mt-pages{display:flex;gap:10px;justify-content:center;align-items:center;flex-wrap:wrap;margin-top:40px;font-weight:700}
.mt-pages a,.mt-pages .page-numbers{text-decoration:none;color:var(--body)!important;padding:8px 12px;border-radius:10px}
.mt-pages .current{background:var(--cta);color:#fff!important}

/* Single post */
.post-hero{padding:72px 0 40px}
.post-hero .narrow{display:flex;flex-direction:column;gap:20px;text-align:center;align-items:center}
.post-hero .meta{justify-content:center}
.post-hero .display{font-size:52px}
.post-hero .back{font-weight:700;text-decoration:none;font-size:15px}
.site .hero-img{max-width:1000px;margin:0 auto;border-radius:20px;overflow:hidden}
.site .hero-img img{display:block;width:100%;aspect-ratio:2/1;object-fit:cover}
.post-body{padding-top:64px}
.prose > .wp-block-post-content > *{margin-top:0}
.prose figure{margin:32px 0}
.prose img{border-radius:14px}
.prose a{color:var(--forest);font-weight:600}
.prose h3{font-size:23px;line-height:1.3;color:var(--ink);margin:36px 0 12px}
.prose ol{padding-left:22px;margin:0 0 22px}
.prose li{margin-bottom:8px}
.prose blockquote p{margin:0}
.prose .wp-block-pullquote{border:0;padding:0}
.page .prose{max-width:760px}

@media (max-width:760px){
  .card.feature{grid-template-columns:minmax(0,1fr)}
  .card.feature .img{min-height:200px}
  .card.feature .fbody{padding:26px}
  .card.feature .h2{font-size:26px}
  .post-hero .display,.blog-hero .display{font-size:36px!important}
  .mt-grid{grid-template-columns:minmax(0,1fr)}
}

/* Download buttons inside posts */
.prose .wp-block-buttons{margin:28px 0}
.prose .wp-block-button__link{display:inline-flex;align-items:center;gap:8px;height:52px;padding:0 24px;border-radius:12px;background:var(--cta);color:#fff!important;font-size:16px;font-weight:700;text-decoration:none}
.prose .wp-block-button__link:hover{background:var(--cta-hover)}
.prose hr{border:0;border-top:1px solid var(--line);margin:40px 0}
.prose h3{margin-top:28px}
