/* ===== MemberTel v5 Blog — index Model 2 + article Model 3 (panel/blog-sandbox.html) ===== */
.mtb-wrap, .mtb-band, .mtb-art-grid, .mtb-related-wrap { --mtb-ink:#181B1E; --mtb-soft:#41484B; --mtb-muted:#616B6A; --mtb-paper:#FAF6EC; --mtb-cream:#FFFCF5; --mtb-honey:#FFE39A; --mtb-sky:#D6E4FF; --mtb-sage:#CBE8D8; --mtb-em:#14595A; }
.mtb-wrap { max-width:1200px; margin:0 auto; padding:8px 0 40px; }
.mtb-crumb { font-size:12.5px; font-weight:700; color:#616B6A; margin:4px 0 16px; }
.mtb-crumb a { color:#41484B; text-decoration:none; }
.mtb-h1 { font-family:'Archivo Black',sans-serif !important; font-weight:400 !important; font-size:clamp(2rem,3.6vw,3rem) !important; line-height:1.08 !important; letter-spacing:-.02em; text-transform:uppercase; color:#181B1E; margin:0 !important; }
.mtb-h2 { font-family:'Archivo Black',sans-serif !important; font-weight:400 !important; font-size:clamp(1.45rem,2.4vw,2rem) !important; line-height:1.1; text-transform:uppercase; margin:0 0 16px !important; }
.mtb-wbox { display:inline; background:#181B1E; color:#FFFCF5; padding:0 .25em .06em; border-radius:10px; -webkit-box-decoration-break:clone; box-decoration-break:clone; }
.mtb-sub { font-size:15px; line-height:1.6; color:#41484B; max-width:460px; margin:12px 0 22px !important; }
.mtb-tag { display:inline-block; font-size:11px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; background:#FFE39A; border:1.5px solid #181B1E; border-radius:999px; padding:2px 10px; line-height:1.5; }
.mtb-tag.is-sky { background:#D6E4FF; } .mtb-tag.is-sage { background:#CBE8D8; }
.mtb-meta { font-size:12.5px; font-weight:700; color:#616B6A; display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:10px; }
.mtb-meta b { color:#181B1E; }
.mtb-btn { display:inline-flex; align-items:center; gap:8px; background:#181B1E; color:#FFFCF5 !important; text-decoration:none !important; font-weight:800; font-size:14px; border-radius:12px; padding:11px 16px; border:1.5px solid #181B1E; }
.mtb-btn.is-light { background:#FFFCF5; color:#181B1E !important; }
.mtb-cover { width:100%; height:auto !important; aspect-ratio:16/9; object-fit:cover; border-radius:14px; border:1.5px solid #181B1E; background:#FAF6EC; display:block; }
.mtb-clamp2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.mtb-box { background:#FAF6EC; border:1.5px solid #181B1E; border-radius:18px; padding:16px; }
.mtb-box.is-cta { background:#CBE8D8; }
.mtb-box-h { font-family:'Plus Jakarta Sans',sans-serif !important; font-size:12px !important; font-weight:800 !important; letter-spacing:.05em; text-transform:uppercase; margin:0 0 10px !important; line-height:1.3 !important; }
.mtb-box p { font-size:14px; line-height:1.55; margin:0 0 12px; }
.mtb-input { width:100%; font:inherit; font-size:14px; border:1.5px solid #181B1E !important; border-radius:999px !important; padding:9px 14px !important; background:#fff; box-shadow:none !important; }

/* Index — Model 2 */
.mtb-split { display:grid; grid-template-columns:300px minmax(0,1fr); gap:34px; align-items:start; }
.mtb-side { position:sticky; top:96px; display:flex; flex-direction:column; gap:14px; }
.mtb-cat { display:flex; justify-content:space-between; font-size:14px; font-weight:700; padding:7px 0; border-bottom:1px dashed rgba(24,27,30,.18); text-decoration:none; color:#181B1E; }
.mtb-cat:last-child { border-bottom:none; }
.mtb-cat.is-active { color:#14595A; }
.mtb-list { display:flex; flex-direction:column; gap:18px; }
.mtb-row { display:grid; grid-template-columns:260px minmax(0,1fr); gap:20px; align-items:center; padding-bottom:18px; border-bottom:1.5px solid rgba(24,27,30,.12); }
.mtb-row-h { font-family:'Plus Jakarta Sans',sans-serif !important; font-size:19px !important; line-height:1.28 !important; font-weight:800 !important; margin:8px 0 6px !important; text-transform:none !important; }
.mtb-row-h a { color:#181B1E; text-decoration:none; }
.mtb-row p { font-size:14px; line-height:1.55; color:#41484B; margin:0; }
.mtb-pager { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:10px; }

/* Article — Model 3 */
.mtb-progress { position:fixed; top:0; left:0; height:4px; width:0; background:#14595A; z-index:1000; }
.mtb-band { display:grid; grid-template-columns:1fr 1fr; gap:28px; align-items:center; background:#FAF6EC; border:1.5px solid #181B1E; border-radius:24px; padding:22px; margin:0 0 30px; }
.mtb-art-h1 { font-size:clamp(1.8rem,3vw,2.6rem) !important; margin-top:12px !important; }
.mtb-art-grid { display:grid !important; grid-template-columns:minmax(0,1fr) 320px; gap:40px; align-items:start; }
.mtb-art-grid > * { margin:0 !important; }
.mtb-art-main { min-width:0; }
.mtb-art-side { position:sticky; top:96px; display:flex; flex-direction:column; gap:14px; }
.mtb-toc a { display:block; text-decoration:none; padding:6px 10px; border-radius:10px; font-size:14px; line-height:1.4; font-weight:700; color:#41484B; }
.mtb-toc a:hover, .mtb-toc a.is-cur { background:#FFE39A; color:#181B1E; }
body.single-post .mtb-art-main .wp-block-post-content h2 { font-family:'Archivo Black',sans-serif; font-weight:400; font-size:clamp(1.4rem,2.2vw,1.8rem); line-height:1.15; letter-spacing:-.01em; scroll-margin-top:100px; }
body.single-post .mtb-art-main .wp-block-post-content h3 { scroll-margin-top:100px; }
.mtb-author { display:grid; grid-template-columns:64px 1fr; gap:14px; align-items:start; background:#FAF6EC; border:1.5px solid #181B1E; border-radius:18px; padding:16px; margin-top:40px; }
.mtb-author .mtb-av { width:64px; height:64px; border-radius:50%; border:1.5px solid #181B1E; }
.mtb-author-name { font-weight:800; color:#181B1E; text-decoration:none; }
.mtb-author p { font-size:14px; line-height:1.6; color:#41484B; margin:4px 0 0; }
.mtb-related-wrap { margin:48px 0 10px; }
.mtb-related { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.mtb-related a { text-decoration:none !important; display:flex; flex-direction:column; gap:12px; background:#FAF6EC; border:1.5px solid #181B1E; border-radius:20px; padding:10px 10px 16px; font-size:15.5px; font-weight:800; line-height:1.38; color:#181B1E; transition:transform .16s ease, box-shadow .16s ease; }
.mtb-related a:hover { transform:translateY(-2px); box-shadow:0 5px 0 #181B1E; }
.mtb-related a .mtb-cover { border-radius:13px; border:1px solid rgba(24,27,30,.12); }
.mtb-related a > span { padding:0 6px; -webkit-line-clamp:3; }

/* Shared WooCommerce Product Collection 1:1 square cards moved to sitewide membertel-v5.css (MT-054) */

/* Desktop: sidebar TOC replaces the in-content Easy TOC box; mobile keeps the in-content one */
@media (min-width:901px) { body.single-post .mtb-art-main #ez-toc-container { display:none !important; } }
@media (max-width:900px) {
  .mtb-split, .mtb-art-grid, .mtb-band { grid-template-columns:1fr; }
  .mtb-side, .mtb-art-side { position:static; }
  .mtb-toc-box { display:none; }
  .mtb-row { grid-template-columns:1fr; }
  .mtb-related { grid-template-columns:1fr 1fr; }
}
@media (max-width:560px) { .mtb-related { grid-template-columns:1fr; } }
.mtb-cat, .mtb-cat:hover { text-decoration:none !important; }
/* Mobile index: posts stay near the top — topics become a pill row, sidebar CTA moves out of the way */
@media (max-width:900px) {
  .mtb-side { gap:10px; }
  .mtb-side .mtb-box { padding:10px; }
  .mtb-side .is-cta { display:none; }
  .mtb-side .mtb-box-h { display:none; }
  .mtb-side .mtb-box:has(.mtb-cat) { display:flex; gap:8px; overflow-x:auto; background:transparent; border:none; padding:0; }
  .mtb-side .mtb-cat { flex:0 0 auto; border:1.5px solid #181B1E; border-radius:999px; padding:6px 12px; gap:8px; background:#FFFCF5; }
  .mtb-side .mtb-cat.is-active { background:#181B1E; color:#FFFCF5; }
}
.mtb-split > *, .mtb-side, .mtb-list { min-width:0; }

/* ===== Unified Search Results (Services + Guides, v5 Design) ===== */
.mtb-search-head { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,0.92fr); gap:28px; align-items:center; background:#FAF6EC; border:1.5px solid #181B1E; border-radius:24px; padding:26px 28px; margin:0 0 36px; }
.mtb-search-h1 { margin-top:12px !important; word-break:break-word; }
.mtb-search-sub { margin:10px 0 0 !important; max-width:460px; }
.mtb-search-controls { display:flex; flex-direction:column; gap:12px; min-width:0; }
.mtb-search-form { display:flex; gap:8px; align-items:center; background:#FFFCF5; border:1.5px solid #181B1E; border-radius:999px; padding:5px 5px 5px 16px; box-shadow:0 3px 0 #181B1E; }
.mtb-search-input { flex:1 1 auto; min-width:0; border:none !important; background:transparent !important; box-shadow:none !important; outline:none !important; font:inherit !important; font-size:14.5px !important; font-weight:600 !important; color:#181B1E !important; padding:7px 4px !important; }
.mtb-search-submit { flex:0 0 auto; appearance:none; background:#181B1E !important; color:#FFFCF5 !important; border:1.5px solid #181B1E !important; border-radius:999px !important; padding:10px 20px !important; font:inherit !important; font-size:13.5px !important; font-weight:800 !important; cursor:pointer; transition:opacity .15s ease; }
.mtb-search-submit:hover { opacity:.9; }
.mtb-search-pills, .mtb-search-chips { display:flex; flex-wrap:wrap; gap:8px; }
.mtb-spill { display:inline-flex; align-items:center; gap:7px; padding:7px 14px; border-radius:999px; border:1.5px solid #181B1E; background:#FFFCF5; color:#181B1E !important; text-decoration:none !important; font-size:13px; font-weight:800; transition:transform .14s ease, background .14s ease; }
.mtb-spill span { display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:20px; padding:0 6px; border-radius:999px; font-family:'JetBrains Mono',monospace; font-size:11.5px; font-weight:800; background:rgba(24,27,30,.08); color:#181B1E; }
.mtb-spill:hover { transform:translateY(-1px); background:#FFE39A; }
.mtb-spill.is-active { background:#181B1E; color:#FFFCF5 !important; }
.mtb-spill.is-active span { background:rgba(255,252,245,.2); color:#FFFCF5; }
.mtb-search-sec { margin:0 0 42px; }
.mtb-search-sec-top { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin:0 0 18px; }
.mtb-search-sec-top .mtb-h2 { margin:0 !important; }
.mtb-search-sec-top .mtb-meta { margin:0; }
.mtb-search-pgrid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.mtb-search-pcard { background:#FFFCF5; border:1.5px solid #181B1E; border-radius:22px; overflow:hidden; display:flex; flex-direction:column; transition:transform .18s ease, box-shadow .18s ease; }
.mtb-search-pcard:hover { transform:translateY(-3px); box-shadow:0 6px 0 #181B1E; }
.mtb-search-empty { background:#FAF6EC; border:1.5px solid #181B1E; border-radius:22px; padding:26px 28px; margin:0 0 36px; }
.mtb-search-empty-h { font-family:'Plus Jakarta Sans',sans-serif !important; font-size:20px !important; font-weight:800 !important; color:#181B1E; margin:0 0 8px !important; text-transform:none !important; }
.mtb-search-empty p { font-size:14.5px; line-height:1.6; color:#41484B; margin:0 0 14px; }
.mtb-search-empty p a { color:#14595A; font-weight:800; }
@media (max-width:1060px) { .mtb-search-pgrid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:900px) { .mtb-search-head { grid-template-columns:1fr; padding:20px; gap:18px; } }
@media (max-width:640px) {
  .mtb-band { padding:18px 16px; border-radius:20px; gap:18px; margin-bottom:24px; }
  .mtb-art-h1 { font-size:clamp(1.42rem,5.6vw,1.75rem) !important; line-height:1.14 !important; }
  .mtb-author { grid-template-columns:52px 1fr; gap:12px; padding:14px 15px; margin-top:28px; }
  .mtb-author .mtb-av { width:52px; height:52px; }
  .mtb-search-head, .mtb-search-empty { padding:18px 16px; border-radius:20px; }
}
@media (max-width:560px) {
  .mtb-search-pgrid { grid-template-columns:1fr; }
  .mtb-search-form { padding-left:12px; }
  .mtb-search-submit { padding:9px 14px !important; }
}

/* Single-column article band when a post has no featured image */
.mtb-band.is-no-img { grid-template-columns: 1fr !important; }
