/* Medical Alert Comparison blog. Scoped to .macb-* so it can't change other pages. */
.macb-page { background:#fff; }
.macb-wrap { max-width: 780px; margin: 0 auto; padding: 24px 16px 48px; color:#474352; font-family:"Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif; font-size:18px; line-height:1.65; }
.macb-wrap h1, .macb-wrap h2, .macb-wrap h3 { font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif; color:#1f1d27; line-height:1.25; }
.macb-wrap h1 { font-size: 34px; font-weight:700; margin: 8px 0 12px; }
.macb-wrap h2 { font-size: 25px; font-weight:700; margin: 36px 0 12px; scroll-margin-top: 90px; }
.macb-wrap h3 { font-size: 20px; font-weight:600; margin: 24px 0 8px; }
.macb-wrap p, .macb-wrap li { font-size:18px; }
.macb-wrap a { color:#3b71db; text-decoration: underline; text-underline-offset: 2px; }
.macb-wrap a:hover { color:#2a56b0; }
.macb-crumbs { font-size:14px; color:#7a7685; margin-bottom: 8px; }
.macb-crumbs a { color:#7a7685; }
.macb-kicker { margin:0; font-size:14px; text-transform:uppercase; letter-spacing:.06em; font-weight:700; }
.macb-kicker a { text-decoration:none; color:#d63c2f; }
.macb-byline { font-size:15px; color:#6c6878; margin: 0 0 8px; }
.macb-disclosure { font-size:13px; color:#8a8695; background:#f6f5f9; border-radius:6px; padding:8px 12px; margin: 20px 0 0; }
.macb-toc { background:#f3f6fd; border:1px solid #dde6fa; border-radius:8px; padding:14px 18px; margin: 0 0 24px; }
.macb-toc-title { font-weight:700; margin:0 0 6px; font-size:16px; color:#1f1d27; }
.macb-toc ol { margin:0; padding-left: 20px; }
.macb-toc li { font-size:16px; margin: 2px 0; }
.macb-body ul, .macb-body ol { padding-left: 24px; }
.macb-body li { margin: 6px 0; }
.macb-body table { width:100%; border-collapse: collapse; margin: 16px 0 20px; font-size:16px; }
.macb-body th, .macb-body td { border:1px solid #e3e1ea; padding: 8px 10px; text-align:left; vertical-align: top; }
.macb-body th { background:#f6f5f9; font-weight:700; }
.macb-table-wrap { overflow-x:auto; -webkit-overflow-scrolling: touch; }
.macb-callout { border-left: 4px solid #3b71db; background:#f3f6fd; padding: 12px 16px; margin: 20px 0; border-radius: 0 6px 6px 0; }
.macb-callout p:last-child { margin-bottom:0; }
.macb-btn { display:inline-block; background:#d63c2f; color:#fff !important; text-decoration:none !important; font-weight:700; border-radius:6px; padding: 12px 20px; font-size:17px; }
.macb-btn:hover { background:#b93227; }
.macb-btn-alt { background:#3b71db; }
.macb-btn-alt:hover { background:#2a56b0; }
.macb-offer { display:grid; gap:14px; margin: 32px 0 8px; }
.macb-offer-card { border:2px solid #f0c64a; background:#fffbea; border-radius:10px; padding: 16px 18px; }
.macb-offer-brand { font-size:13px; text-transform:uppercase; letter-spacing:.05em; font-weight:700; color:#8a6a00; margin:0 0 4px; }
.macb-offer-line { font-size:19px; font-weight:700; color:#1f1d27; margin:0 0 6px; }
.macb-offer-code { font-size:15px; margin:0 0 10px; }
.macb-offer-cta { margin:0; font-size:16px; }
.macb-offer-cta span { margin-left: 8px; white-space: nowrap; }
.macb-faq { margin-top: 28px; }
.macb-faq-item { border:1px solid #e3e1ea; border-radius:8px; padding: 10px 14px; margin: 10px 0; }
.macb-faq-item summary { font-weight:700; cursor:pointer; color:#1f1d27; }
.macb-faq-item div { margin-top: 8px; }
.macb-tags { margin-top: 24px; font-size:15px; }
.macb-tags a, .macb-tagbar a { display:inline-block; margin: 4px 6px 4px 0; padding: 4px 10px; border-radius: 999px; background:#eef2fb; color:#2a56b0; text-decoration:none; font-size:14px; }
.macb-tagbar-all { background: transparent !important; text-decoration: underline !important; }
.macb-related, .macb-next { margin-top: 36px; border-top:1px solid #ecebf1; padding-top: 8px; }
.macb-next ul { padding-left: 20px; }
.macb-lede { font-size:19px; color:#5b5767; }
.macb-count { font-size:14px; color:#8a8695; }
.macb-cards { display:grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
.macb-card { border:1px solid #e6e4ec; border-radius:10px; padding: 16px 18px; background:#fff; }
.macb-card-meta { font-size:13px; color:#8a8695; margin:0 0 4px; }
.macb-card-meta a { color:#d63c2f; text-decoration:none; font-weight:600; }
.macb-card-title { font-size:21px !important; margin: 0 0 6px !important; }
.macb-card-title a { color:#3b71db; text-decoration:none; }
.macb-card-title a:hover { color:#2a56b0; text-decoration:underline; }
.macb-card-text { font-size:16px !important; margin:0 0 8px; color:#5b5767; }
.macb-card-more { font-size:15px; font-weight:700; text-decoration:none !important; }
.macb-pager { display:flex; justify-content: space-between; align-items:center; margin-top: 24px; font-size:16px; }
.macb-topic-list { list-style:none; padding:0; }
.macb-topic-list li { border-bottom:1px solid #ecebf1; padding: 10px 0; }
.macb-topic-list li a { font-weight:700; font-size:19px; }
.macb-topic-list li span { color:#8a8695; font-size:14px; }
.macb-topic-list li p { margin: 4px 0 0; font-size:15px; color:#6c6878; }
@media (min-width: 720px) {
  .macb-cards { grid-template-columns: 1fr 1fr; }
  .macb-offer { grid-template-columns: 1fr 1fr; }
  .macb-offer:has(> .macb-offer-card:only-child) { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .macb-wrap { font-size:17px; padding-top: 16px; }
  .macb-wrap h1 { font-size: 27px; }
  .macb-wrap h2 { font-size: 22px; }
  .macb-wrap p, .macb-wrap li { font-size:17px; }
  .macb-offer-cta span { display:block; margin: 8px 0 0; }
}

/* Guard against site-wide rules (e.g. white hero headings or link colors) leaking into the blog */
body.macb-page .macb-wrap h1, body.macb-page .macb-wrap h2, body.macb-page .macb-wrap h3 { color:#1f1d27 !important; text-shadow:none !important; text-align:left !important; }
body.macb-page .macb-wrap p, body.macb-page .macb-wrap li, body.macb-page .macb-wrap td { color:#474352; }
body.macb-page .macb-body a, body.macb-page .macb-faq a, body.macb-page .macb-next a, body.macb-page .macb-lede a, body.macb-page .macb-disclosure a, body.macb-page .macb-toc a, body.macb-page .macb-byline a, body.macb-page .macb-offer-cta span a { color:#3b71db !important; }
body.macb-page .macb-card-title a { color:#3b71db !important; }
body.macb-page .macb-card-title a:hover { color:#2a56b0 !important; }
body.macb-page .macb-crumbs a { color:#7a7685 !important; }

/* topic chips under the article title and on cards */
.macb-tags-top { margin: 10px 0 0 !important; }
.macb-tags-top a, .macb-card-tags a { font-size:13px !important; padding:3px 10px !important; margin:3px 6px 3px 0 !important; }
.macb-card-tags { margin: 0 0 8px !important; }

/* article photos, card thumbnails and videos */
.macb-hero-wrap { margin: 14px 0 18px !important; }
.macb-hero { display:block; width:100% !important; height:clamp(180px, 34vw, 340px) !important; object-fit:cover; border-radius:12px; max-width:none !important; }
.macb-card { overflow:hidden; }
.macb-card-img { display:block; margin:-16px -18px 12px; }
.macb-thumb { display:block; width:100% !important; height:170px !important; object-fit:cover; max-width:none !important; }
.macb-video { margin: 24px 0 !important; }
.macb-video-btn { position:relative; display:block; width:100%; padding:0; border:0; background:#000; border-radius:12px; overflow:hidden; cursor:pointer; aspect-ratio:16/9; }
.macb-video-btn img { width:100% !important; height:100% !important; object-fit:cover; opacity:.85; max-width:none !important; }
.macb-play { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:68px; height:48px; border-radius:12px; background:#eb343b; color:#fff; font-size:24px; line-height:48px; text-align:center; }
.macb-video iframe { width:100%; aspect-ratio:16/9; border:0; border-radius:12px; display:block; }
.macb-video figcaption { font-size:14px !important; color:#5b5767; margin-top:6px; }

.macb-author { display:flex; gap:14px; align-items:flex-start; border:1px solid #e6e4ec; border-radius:12px; padding:14px 16px; margin:26px 0 12px; background:#fafafe; }
.macb-author img { width:72px !important; height:72px !important; border-radius:50%; flex:none; object-fit:cover; }
.macb-author p { margin:0 0 4px !important; font-size:15px !important; color:#5b5767; }
.macb-author-name { font-weight:700; color:#1f1d27 !important; }
.macb-since { color:#5b5767; font-size:15px !important; margin-top:-4px; }

.macb-byline-img { width:36px !important; height:36px !important; border-radius:50%; vertical-align:middle; margin-right:8px; object-fit:cover; display:inline-block !important; }
.macb-trust { font-size:14px !important; color:#5b5767; margin:4px 0 0 !important; }
.macb-trust a { color:#3b71db !important; }

/* compact photo and collapsible contents so the article starts higher */
.macb-hero-wrap { margin: 12px 0 14px !important; }
.macb-hero { height:clamp(140px, 22vw, 230px) !important; }
details.macb-toc { padding:10px 14px !important; margin:0 0 18px !important; }
details.macb-toc summary { cursor:pointer; font-weight:700; list-style:revert; }
details.macb-toc ol { margin:8px 0 2px !important; }
/* make the contents toggle look like a button */
details.macb-toc summary { list-style:none !important; display:flex; align-items:center; justify-content:space-between; gap:10px; color:#1f1d27; }
details.macb-toc summary::-webkit-details-marker { display:none; }
details.macb-toc summary::after { content:"Show \25BE"; font-size:13px; font-weight:700; color:#fff; background:#3b71db; border-radius:999px; padding:4px 12px; white-space:nowrap; }
details.macb-toc[open] summary::after { content:"Hide \25B4"; }
details.macb-toc summary:hover::after { background:#2a56b0; }

/* mobile sticky call bar (Medical Guardian, current offer) */
.macb-callbar { display:none; }
@media (max-width: 767px) {
  .macb-callbar { display:block; position:fixed; left:0; right:0; bottom:0; z-index:9998; padding:8px 10px calc(8px + env(safe-area-inset-bottom)); background:rgba(255,255,255,.97); box-shadow:0 -4px 14px rgba(0,0,0,.12); transform:translateY(110%); transition:transform .25s ease; }
  .macb-callbar.is-on { transform:translateY(0); }
  .macb-callbar-btn { display:block; text-align:center; background:#eb343b; color:#fff !important; text-decoration:none !important; border-radius:10px; padding:9px 10px; line-height:1.25; }
  .macb-callbar-top { display:block; font:800 17px 'Montserrat', Arial, sans-serif; }
  .macb-callbar-offer { display:block; font-size:13px; font-weight:600; opacity:.95; }
  body { padding-bottom:76px; }
}
