/* ==========================================================================
   Article Detail — includes/blocks/article-detail/style.css

   Bakes in every class from article.html's own page-specific <style> block
   (not shared bio.css) that this block's markup uses: .a-head, .a-hero,
   .byline/.av, .art-cols, .a-body (prose typography), .pull, .dose, .a-foot/
   .author, .rel/.rel-row, .top-side/.top-item. Self-contained on purpose —
   the Learn block's own style.css also styles .top-side/.top-item/.rel-row,
   but that stylesheet only loads on pages that actually use the Learn
   block, not on an arbitrary single-post page using this block instead — so
   the rules are re-baked here rather than assumed to already be on the page.

   Classes intentionally left alone because they're genuinely global (loaded
   site-wide via the theme's own bio.css): .pill, .tag/.tag.hi, .crumb,
   .card, .tbl, .kicker, .sec-head, .rv/.rv-in, .prods.
   ========================================================================== */

.mhs-article-detail{color:var(--text)}
.mhs-article-detail .wrap{max-width:1180px;margin:0 auto;padding:0 24px}

/* ---- Head ---------------------------------------------------------- */
.mhs-article-detail .a-head{padding:32px 0 24px}
.mhs-article-detail .a-head h1{
  font-size:var(--pl-fs-h2);line-height:var(--pl-lh-tight);margin:10px 0 14px;color:var(--head);
}
.mhs-article-detail .a-head h1 em{font-style:italic;color:var(--text)}
.mhs-article-detail .a-head .dek{font-size:var(--pl-fs-lg);line-height:1.6;color:var(--text);max-width:640px;margin:0 0 20px}

.mhs-article-detail .byline{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  margin-top:28px;padding-top:20px;border-top:1px solid var(--line);font-size:13.5px;
}
.mhs-article-detail .byline .av{
  width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:var(--text);color:#FFFFFF;font-weight:700;font-size:14px;flex:none;
}
.mhs-article-detail .byline > span{display:flex;flex-direction:column;line-height:1.3}
.mhs-article-detail .byline b{font-size:14px;color:var(--head)}
.mhs-article-detail .byline small{font-size:12px;color:var(--text)}
.mhs-article-detail .byline .share{margin-left:auto}

/* ---- Hero ------------------------------------------------------------ */
.mhs-article-detail .a-hero{margin-bottom:32px}
.mhs-article-detail .a-hero img{
  width:100%;height:auto;max-height:480px;object-fit:cover;border-radius:20px;display:block;
}
.mhs-article-hero-placeholder{
  width:100%;height:320px;border-radius:20px;
  background:linear-gradient(135deg,var(--bgcolor),#E6E6E6);
}

/* ---- Two-column body -------------------------------------------------- */
.mhs-article-detail .art-cols{
  display:grid;grid-template-columns:1fr 320px;gap:48px;align-items:start;margin-bottom:48px;
}
@media (max-width:920px){
  .mhs-article-detail .art-cols{grid-template-columns:1fr}
}

.mhs-article-detail .a-body{font-size:var(--pl-fs-md);line-height:1.75}
.mhs-article-detail .a-body h2{font-size:clamp(22px,1.8vw,24px);line-height:var(--pl-lh-snug);margin:36px 0 14px;color:var(--head)}
.mhs-article-detail .a-body h2:first-child{margin-top:0}
.mhs-article-detail .a-body h3{font-size:var(--pl-fs-h4);line-height:var(--pl-lh-snug);margin:26px 0 10px;color:var(--head)}
.mhs-article-detail .a-body p{margin:0 0 16px}
.mhs-article-detail .a-body ul,
.mhs-article-detail .a-body ol{margin:0 0 16px;padding-left:22px}
.mhs-article-detail .a-body li{margin:0 0 8px}
.mhs-article-detail .a-body figure{margin:24px 0}
.mhs-article-detail .a-body img{max-width:100%;height:auto;border-radius:var(--pl-radius,16px);display:block}
.mhs-article-detail .a-body figcaption{font-size:13px;color:var(--text);margin-top:8px}
.mhs-article-detail .a-body blockquote.pull,
.mhs-article-detail .a-body blockquote{
  border-left:3px solid var(--pl-pink);padding:4px 0 4px 20px;margin:28px 0;
  font-size:22px;line-height:1.4;font-style:italic;color:var(--head);
}
.mhs-article-detail .a-body .dose{margin:18px 0}
/* tables in posts (2026-10-09): site look — rounded outline, grey header row,
   left aligned, row dividers only (WordPress default was a dark full grid with
   centred headers); scrolls sideways on phones instead of squeezing */
.mhs-article-detail .a-body .wp-block-table{margin:28px 0;overflow-x:auto;border:1px solid var(--pl-line);border-radius:var(--pl-radius,16px);-webkit-overflow-scrolling:touch}
.mhs-article-detail .a-body .wp-block-table table{width:100%;min-width:560px;margin:0;border:0;border-collapse:collapse;font-size:15px;line-height:1.5}
.mhs-article-detail .a-body .wp-block-table thead{border:0}
.mhs-article-detail .a-body .wp-block-table :is(th,td){border:0;border-bottom:1px solid var(--pl-line);padding:14px 16px;text-align:left;vertical-align:top}
.mhs-article-detail .a-body .wp-block-table th,
.mhs-article-detail .a-body .wp-block-table thead td{background:var(--pl-seafoam,#f4f4f4);color:var(--head);font-family:var(--global-body-font-family);font-size:14px;font-weight:700;line-height:1.35}
.mhs-article-detail .a-body .wp-block-table tbody td:first-child{color:var(--head);font-weight:600}
.mhs-article-detail .a-body .wp-block-table tbody tr:last-child :is(th,td){border-bottom:0}
.mhs-article-detail .a-body .wp-block-table figcaption{margin:0;padding:10px 16px;border-top:1px solid var(--pl-line);font-size:13px}
/* links in body copy: navy with a thin underline (hover pink comes from the site-wide link rule) */
.mhs-article-detail .a-body :is(p,li,td) a:not(.btn){color:var(--head);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.mhs-article-detail .a-body li::marker{color:var(--head)}

/* ---- Author box -------------------------------------------------------- */
.mhs-article-detail .a-foot{margin-top:40px}
.mhs-article-detail .card.author{
  display:flex;gap:16px;align-items:flex-start;padding:22px 24px;
}
.mhs-article-detail .card.author .av{width:44px;height:44px;font-size:16px}
.mhs-article-detail .card.author b{display:block;font-size:15px;color:var(--text);margin-bottom:6px}
.mhs-article-detail .card.author p{font-size:14px;line-height:1.6;color:var(--text);margin:0}

/* ---- Most read sidebar -------------------------------------------------- */
.mhs-article-detail aside.card.top-side{
  padding:24px;position:sticky;top:90px;margin-top:24px;
}
.mhs-article-detail .top-side h3{font-size:15px;margin:0 0 14px;color:var(--head)}
.mhs-article-detail .top-list{display:flex;flex-direction:column;gap:14px}
.mhs-article-detail .top-item{
  display:grid;grid-template-columns:18px 56px 1fr;gap:10px;align-items:center;
  text-decoration:none;color:inherit;
  padding:12px 0;border-bottom:1px solid var(--line);
}
.mhs-article-detail .top-item:last-child{border-bottom:0;padding-bottom:0}   /* no rule under the last "Most read" item */
.mhs-article-detail .top-item .n{font-size:13px;font-weight:700;color:var(--text)}
.mhs-article-detail .top-item .th{
  width:56px;height:56px;border-radius:10px;overflow:hidden;background:var(--bgcolor);flex:none;
}
.mhs-article-detail .top-item .th img{width:100%;height:100%;object-fit:cover;display:block}
.mhs-article-detail .top-item b{display:block;font-size:13px;line-height:1.35;color:var(--head);font-weight:600}
.mhs-article-detail .top-item small{font-size:11px;color:var(--text)}

/* ---- Mentioned in this guide -------------------------------------------- */
.mhs-article-mentioned{margin:56px auto}
.mhs-article-mentioned .prods{list-style:none;padding:0;margin:24px 0 0}

/* ---- Keep reading -------------------------------------------------------- */
.mhs-article-keepreading{margin:56px auto 72px}
.mhs-article-keepreading .rel{display:flex;flex-direction:column;gap:2px;margin-top:20px}
.mhs-article-keepreading .rel-row{
  display:grid;grid-template-columns:88px 1fr 20px;gap:16px;align-items:center;
  padding:16px 4px;border-top:1px solid #E6E6E6;text-decoration:none;color:inherit;
}
.mhs-article-keepreading .rel-row:first-child{border-top:none}
.mhs-article-keepreading .rel-row .th{
  width:88px;height:64px;border-radius:10px;overflow:hidden;background:var(--bgcolor);flex:none;
}
.mhs-article-keepreading .rel-row .th img{width:100%;height:100%;object-fit:cover;display:block}
.mhs-article-keepreading .rel-row h3{font-size:15px;margin:4px 0 4px;color:var(--head)}
.mhs-article-keepreading .rel-row .meta{font-size:12px;color:var(--text)}
.mhs-article-keepreading .rel-row .go{font-size:18px;color:var(--text)}

/* Phones: the theme container already gives the 20px page gutter; the extra 24px here made posts 44px from the
   edge while every other page is 20px (Dennis 2026-10-15, "check every page"). */
@media (max-width: 767px) {
  .mhs-article-detail .wrap { padding-left: 0; padding-right: 0; }
}

/* ---- Product-shot hero (2026-10-21) ----------------------------------
   Square/portrait featured images (pack shots) are shown whole on a white
   panel instead of being cropped to a strip; render.php adds the class. */
.mhs-article-detail .a-hero--contain .wrap > img{
  max-height:440px;object-fit:contain;background:#fff;
  border:1px solid rgba(3,0,50,.08);padding:24px;box-sizing:border-box;
}
@media (max-width:767px){
  .mhs-article-detail .a-hero--contain .wrap > img{max-height:320px;padding:16px}
}

/* Mentioned in this guide: the homepage product carousel brings its own
   padding and heading, so drop the old grid spacing. */
.mhs-article-mentioned{margin:40px 0}

/* ---- Product-shot stage (2026-10-21) ------------------------------------
   Square/portrait pack shots (the hero, and product images in a guide's body)
   sit on a soft brand-tinted panel lit by a blurred copy of the same photo;
   multiply blends the photo's white background into the panel. render.php
   sets --hero-img and the .a-hero-stage / .is-product-shot classes. */
.mhs-article-detail .a-hero-stage,
.mhs-article-detail .is-product-shot{
  position:relative;isolation:isolate;overflow:hidden;border-radius:20px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#f5f2ff 0%,#fdf0fc 55%,#fff7dc 100%);
}
.mhs-article-detail .a-hero-stage::before,
.mhs-article-detail .is-product-shot::before{
  content:"";position:absolute;inset:-10%;z-index:-1;pointer-events:none;
  background:var(--hero-img) center/55% no-repeat;
  filter:blur(56px) saturate(1.5);opacity:.6;
}
.mhs-article-detail .a-hero-stage > img{
  width:auto;max-width:100%;height:auto;max-height:420px;object-fit:contain;
  padding:36px 24px;box-sizing:border-box;border:0;border-radius:0;
  background:transparent;mix-blend-mode:multiply;
}
.mhs-article-detail .a-body .is-product-shot img{
  width:auto;max-width:100%;height:auto;max-height:360px;
  padding:28px 20px;box-sizing:border-box;border-radius:0;mix-blend-mode:multiply;
}
.mhs-article-detail .is-product-shot figcaption{position:relative;margin:0 0 16px;padding:0 20px}
@media (max-width:767px){
  .mhs-article-detail .a-hero-stage > img{max-height:300px;padding:24px 16px}
  .mhs-article-detail .a-body .is-product-shot img{max-height:280px;padding:20px 16px}
}

/* Other images in a guide: rounded to match the cards around them. */
.mhs-article-detail .a-body .wp-block-image img{border-radius:16px}

/* Composed 16:9 cover images (pl-hero.php): whole image, no crop. */
.mhs-article-detail .a-hero--wide .wrap > img{max-height:none;aspect-ratio:16/9;object-fit:cover}
