/* ============================================================
   Sondax Medical — Blog & Author (Health Guides)
   Distinct article structure with E-E-A-T author signals.
   Depends on 20.sondax-common.css (design tokens) + 20.sondax-medical.css
   ============================================================ */

/* ---------- shared ---------- */
.st-mb-wrap { --mb-teal:#0d9488; --mb-navy:#0f4c75; }
.st-mb-container { max-width:1180px; margin:0 auto; padding:0 20px; }
.st-mb-article-container { max-width:760px; margin:0 auto; padding:0 20px; }

/* ---------- listing hero ---------- */
.st-mb-hero { background:linear-gradient(135deg,#0f4c75 0%,#1b6ca8 45%,#0d9488 100%); padding:64px 0 56px; color:#fff; }
.st-mb-hero-inner { max-width:760px; margin:0 auto; text-align:center; padding:0 20px; }
.st-mb-hero-kicker { display:inline-flex; align-items:center; gap:6px; background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.3); border-radius:100px; padding:6px 16px; font-size:.8125rem; font-weight:600; margin-bottom:18px; }
.st-mb-hero-title { font-size:clamp(1.75rem,4vw,2.5rem); font-weight:800; line-height:1.2; margin:0 0 14px; }
.st-mb-hero-sub { font-size:1.0625rem; opacity:.88; line-height:1.6; margin:0; }

/* ---------- category filter ---------- */
.st-mb-filters { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; padding:32px 0 8px; }
.st-mb-filter { display:inline-flex; align-items:center; padding:8px 18px; border-radius:100px; border:1px solid var(--color-border); background:var(--color-card); color:var(--color-text); font-size:.875rem; font-weight:600; text-decoration:none; transition:all .15s; }
.st-mb-filter:hover { border-color:var(--mb-teal); color:var(--mb-teal); }
.st-mb-filter.is-active { background:var(--mb-teal); border-color:var(--mb-teal); color:#fff; }

/* ---------- post grid ---------- */
.st-mb-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:28px; padding:32px 0 64px; }
.st-mb-card { background:var(--color-card); border:1px solid var(--color-border); border-radius:var(--radius-xl,16px); overflow:hidden; display:flex; flex-direction:column; text-decoration:none; transition:transform .2s,box-shadow .2s,border-color .2s; }
.st-mb-card:hover { transform:translateY(-4px); box-shadow:0 14px 40px rgba(0,0,0,.1); border-color:var(--mb-teal); }
.st-mb-card-img { width:100%; aspect-ratio:16/9; object-fit:cover; background:#eef2f5; display:block; }
.st-mb-card-img-ph { width:100%; aspect-ratio:16/9; background:linear-gradient(135deg,#e8f0f3,#dcebe9 0); display:flex; align-items:center; justify-content:center; color:var(--mb-teal); }
.st-mb-card-body { padding:22px 22px 24px; display:flex; flex-direction:column; flex:1; }
.st-mb-card-cat { font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--mb-teal); margin-bottom:8px; }
.st-mb-card-title { font-size:1.1875rem; font-weight:800; line-height:1.35; color:var(--color-text); margin:0 0 10px; }
.st-mb-card-excerpt { font-size:.9rem; color:var(--color-muted); line-height:1.6; margin:0 0 18px; flex:1; }
.st-mb-card-meta { display:flex; align-items:center; gap:8px; font-size:.8125rem; color:var(--color-muted); padding-top:14px; border-top:1px solid var(--color-border); }
.st-mb-card-avatar { width:28px; height:28px; border-radius:50%; object-fit:cover; background:#dfe7ec; }
.st-mb-card-author { font-weight:600; color:var(--color-text); }
.st-mb-card-dot { opacity:.5; }

/* ---------- article ---------- */
.st-mb-article { padding:40px 0 64px; }
.st-mb-breadcrumb { font-size:.8125rem; color:var(--color-muted); margin-bottom:22px; }
.st-mb-breadcrumb a { color:var(--mb-teal); text-decoration:none; }
.st-mb-breadcrumb a:hover { text-decoration:underline; }
.st-mb-art-cat { font-size:.8125rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--mb-teal); margin-bottom:10px; }
.st-mb-art-title { font-size:clamp(1.6rem,3.6vw,2.4rem); font-weight:800; line-height:1.2; color:var(--color-text); margin:0 0 16px; }
.st-mb-art-excerpt { font-size:1.125rem; color:var(--color-muted); line-height:1.6; margin:0 0 24px; }

/* byline */
.st-mb-byline { display:flex; flex-wrap:wrap; align-items:center; gap:14px 18px; padding:18px 0; border-top:1px solid var(--color-border); border-bottom:1px solid var(--color-border); margin-bottom:28px; }
.st-mb-byline-who { display:flex; align-items:center; gap:10px; }
.st-mb-byline-avatar { width:42px; height:42px; border-radius:50%; object-fit:cover; background:#dfe7ec; }
.st-mb-byline-name { font-size:.9rem; font-weight:700; color:var(--color-text); text-decoration:none; line-height:1.3; }
.st-mb-byline-name:hover { color:var(--mb-teal); }
.st-mb-byline-role { font-size:.75rem; color:var(--color-muted); }
.st-mb-byline-meta { display:flex; flex-wrap:wrap; gap:6px 14px; font-size:.8125rem; color:var(--color-muted); margin-left:auto; }
.st-mb-byline-meta-item { display:inline-flex; align-items:center; gap:5px; }
.st-mb-reviewed { display:inline-flex; align-items:center; gap:5px; color:var(--mb-teal); font-weight:600; }
.st-mb-reviewed svg { width:14px; height:14px; }

/* cover */
.st-mb-art-cover { width:100%; border-radius:14px; margin:0 0 28px; display:block; }

/* takeaways */
.st-mb-takeaways { background:rgba(13,148,136,.06); border:1px solid rgba(13,148,136,.22); border-radius:12px; padding:20px 24px; margin:0 0 28px; }
.st-mb-takeaways-title { font-size:.8125rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--mb-teal); margin:0 0 12px; }
.st-mb-takeaways ul { margin:0; padding-left:0; list-style:none; }
.st-mb-takeaways li { position:relative; padding:5px 0 5px 26px; font-size:.95rem; color:var(--color-text); line-height:1.55; }
.st-mb-takeaways li::before { content:''; position:absolute; left:2px; top:11px; width:14px; height:14px; background:var(--mb-teal); -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline points='20 6 9 17 4 12' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline points='20 6 9 17 4 12' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E") center/contain no-repeat; }

/* body typography */
.st-mb-body { font-size:1.0625rem; line-height:1.75; color:var(--color-text); }
.st-mb-body h2 { font-size:1.5rem; font-weight:800; margin:38px 0 14px; line-height:1.3; }
.st-mb-body h3 { font-size:1.25rem; font-weight:700; margin:30px 0 12px; }
.st-mb-body p { margin:0 0 20px; }
.st-mb-body ul, .st-mb-body ol { margin:0 0 20px; padding-left:24px; }
.st-mb-body li { margin:0 0 8px; }
.st-mb-body img { max-width:100%; height:auto; border-radius:10px; margin:8px 0; }
.st-mb-body a { color:var(--mb-teal); text-decoration:underline; }
.st-mb-body blockquote { margin:24px 0; padding:14px 20px; border-left:4px solid var(--mb-teal); background:rgba(13,148,136,.05); color:var(--color-text); font-style:italic; border-radius:0 8px 8px 0; }
.st-mb-body table { width:100%; border-collapse:collapse; margin:20px 0; font-size:.95rem; }
.st-mb-body th, .st-mb-body td { border:1px solid var(--color-border); padding:10px 12px; text-align:left; }
.st-mb-body th { background:rgba(13,148,136,.06); font-weight:700; }

/* references */
.st-mb-refs { margin:40px 0 0; padding:24px; background:var(--color-muted-bg,#f8f9fa); border-radius:12px; }
.st-mb-refs-title { font-size:1rem; font-weight:800; color:var(--color-text); margin:0 0 14px; }
.st-mb-refs ol { margin:0; padding-left:22px; }
.st-mb-refs li { font-size:.85rem; color:var(--color-muted); line-height:1.6; margin:0 0 8px; word-break:break-word; }
.st-mb-refs a { color:var(--mb-teal); }

/* medical disclaimer */
.st-mb-disclaimer { margin:28px 0 0; padding:16px 20px; border:1px dashed var(--color-border); border-radius:10px; font-size:.8125rem; color:var(--color-muted); line-height:1.6; display:flex; gap:12px; }
.st-mb-disclaimer svg { width:20px; height:20px; flex-shrink:0; color:var(--mb-teal); margin-top:1px; }

/* author bio box (end of article) */
.st-mb-biobox { margin:36px 0 0; padding:24px; border:1px solid var(--color-border); border-radius:14px; background:var(--color-card); display:flex; gap:18px; align-items:flex-start; }
.st-mb-biobox + .st-mb-biobox { margin-top:16px; }
.st-mb-biobox-avatar { width:72px; height:72px; border-radius:50%; object-fit:cover; flex-shrink:0; background:#dfe7ec; }
.st-mb-biobox-avatar-ph { width:72px; height:72px; border-radius:50%; flex-shrink:0; background:rgba(13,148,136,.1); display:flex; align-items:center; justify-content:center; color:var(--mb-teal); }
.st-mb-biobox-body { flex:1; min-width:0; }
.st-mb-biobox-role { font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--mb-teal); margin-bottom:4px; }
.st-mb-biobox-name { font-size:1.0625rem; font-weight:800; color:var(--color-text); margin-bottom:2px; }
.st-mb-biobox-cred { font-size:.8125rem; color:var(--color-muted); margin-bottom:8px; }
.st-mb-biobox-bio { font-size:.875rem; color:var(--color-text); line-height:1.6; margin-bottom:10px; }
.st-mb-biobox-link { display:inline-flex; align-items:center; gap:5px; font-size:.8125rem; font-weight:600; color:var(--mb-teal); text-decoration:none; }
.st-mb-biobox-link svg { width:13px; height:13px; }

/* related */
.st-mb-related { margin:48px 0 0; }
.st-mb-related-title { font-size:1.25rem; font-weight:800; color:var(--color-text); margin:0 0 18px; }

/* ---------- author profile page ---------- */
.st-au-hero { background:linear-gradient(135deg,#0f4c75,#0d9488); color:#fff; padding:48px 0; }
.st-au-hero-inner { max-width:980px; margin:0 auto; padding:0 20px; display:flex; gap:28px; align-items:center; flex-wrap:wrap; }
.st-au-photo { width:140px; height:140px; border-radius:50%; object-fit:cover; border:4px solid rgba(255,255,255,.35); flex-shrink:0; background:#dfe7ec; }
.st-au-photo-ph { width:140px; height:140px; border-radius:50%; border:4px solid rgba(255,255,255,.35); flex-shrink:0; background:rgba(255,255,255,.15); display:flex; align-items:center; justify-content:center; }
.st-au-hero-info { flex:1; min-width:240px; }
.st-au-role { display:inline-block; background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.3); border-radius:100px; padding:4px 14px; font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; margin-bottom:10px; }
.st-au-name { font-size:clamp(1.5rem,3.2vw,2.1rem); font-weight:800; margin:0 0 6px; }
.st-au-cred { font-size:1rem; opacity:.9; margin:0 0 10px; }
.st-au-title { font-size:.9375rem; opacity:.85; line-height:1.5; margin:0; }
.st-au-socials { display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }
.st-au-social { display:inline-flex; align-items:center; gap:6px; background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.3); border-radius:8px; padding:7px 14px; font-size:.8125rem; font-weight:600; color:#fff; text-decoration:none; }
.st-au-social:hover { background:rgba(255,255,255,.25); color:#fff; }
.st-au-social svg { width:15px; height:15px; }

.st-au-body { max-width:980px; margin:0 auto; padding:40px 20px 64px; }
.st-au-back { display:inline-flex; align-items:center; gap:6px; font-size:.85rem; color:var(--mb-teal); text-decoration:none; margin-bottom:24px; }
.st-au-section { margin:0 0 32px; }
.st-au-section-title { font-size:1.125rem; font-weight:800; color:var(--color-text); margin:0 0 14px; padding-bottom:8px; border-bottom:2px solid rgba(13,148,136,.2); }
.st-au-bio { font-size:1rem; line-height:1.75; color:var(--color-text); }
.st-au-bio p { margin:0 0 16px; }
.st-au-list { list-style:none; margin:0; padding:0; }
.st-au-list li { position:relative; padding:8px 0 8px 24px; font-size:.95rem; color:var(--color-text); line-height:1.55; border-bottom:1px solid var(--color-border); }
.st-au-list li:last-child { border-bottom:none; }
.st-au-list li::before { content:''; position:absolute; left:2px; top:15px; width:8px; height:8px; border-radius:50%; background:var(--mb-teal); }
.st-au-tags { display:flex; flex-wrap:wrap; gap:8px; }
.st-au-tag { background:rgba(13,148,136,.08); border:1px solid rgba(13,148,136,.25); border-radius:100px; padding:5px 14px; font-size:.8125rem; font-weight:600; color:var(--mb-teal); }

/* author articles list */
.st-au-articles { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:18px; }
.st-au-article { display:block; padding:16px; border:1px solid var(--color-border); border-radius:12px; text-decoration:none; transition:border-color .15s,transform .15s; }
.st-au-article:hover { border-color:var(--mb-teal); transform:translateY(-2px); }
.st-au-article-cat { font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--mb-teal); margin-bottom:6px; }
.st-au-article-title { font-size:.9375rem; font-weight:700; color:var(--color-text); line-height:1.4; }

/* team listing */
.st-team-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:24px; padding:40px 0 64px; }
.st-team-card { background:var(--color-card); border:1px solid var(--color-border); border-radius:16px; padding:28px 24px; text-align:center; text-decoration:none; transition:transform .2s,box-shadow .2s,border-color .2s; }
.st-team-card:hover { transform:translateY(-4px); box-shadow:0 12px 36px rgba(0,0,0,.1); border-color:var(--mb-teal); }
.st-team-photo { width:96px; height:96px; border-radius:50%; object-fit:cover; margin:0 auto 14px; background:#dfe7ec; }
.st-team-photo-ph { width:96px; height:96px; border-radius:50%; margin:0 auto 14px; background:rgba(13,148,136,.1); display:flex; align-items:center; justify-content:center; color:var(--mb-teal); }
.st-team-name { font-size:1.0625rem; font-weight:800; color:var(--color-text); margin-bottom:2px; }
.st-team-cred { font-size:.8125rem; color:var(--mb-teal); font-weight:600; margin-bottom:8px; }
.st-team-bio { font-size:.85rem; color:var(--color-muted); line-height:1.55; }

/* 404 */
.st-mb-404 { text-align:center; padding:80px 20px; }
.st-mb-404 h2 { font-size:1.5rem; color:var(--color-text); margin-bottom:10px; }
.st-mb-404 a { color:var(--mb-teal); }

@media (max-width:640px) {
    .st-mb-byline-meta { margin-left:0; width:100%; }
    .st-au-hero-inner { flex-direction:column; text-align:center; }
    .st-au-socials { justify-content:center; }
    .st-mb-biobox { flex-direction:column; }
}
