/* ==========================================================================
   The Men's Health Blog (2026-11-12) — laid out after UtiBox's blog, in the
   portal's own colours: navy bands, gold accents and each topic's colour
   (the user: "I don't want it black and white"). Solid colours only, as the
   portal's house rule. views/health/_blog.php, index.php and item.php.
   ========================================================================== */
.bl { --bl-max: 1240px; }
/* Room before the site footer (2026-11-12), as .cwrap leaves on the TV pages. */
.cpage-public > .bl { padding-bottom: 64px; }
@media (max-width: 640px) { .cpage-public > .bl { padding-bottom: 48px; } }
.bl-in { width: min(var(--bl-max), 100% - 48px); margin: 0 auto; }

/* The topics' colours (content_topics.tone) — solid. */
.bg-heart { background: #b0283f; } .bg-sugar { background: #9a6205; } .bg-navy { background: #163a7f; }
.bg-teal { background: #0b6156; } .bg-violet { background: #4b38a8; } .bg-green { background: #14653c; }
.bg-sky { background: #0b5a8a; } .bg-gold { background: #8a5a12; }

/* ---- the navy hero: kicker, headline, the featured lead and the 2 × 2 */
.bl-hero { background: var(--navy-950); color: #dfe7f8; padding: 44px 0 52px; }
.bl-kick { margin: 0 0 8px; font: 800 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-500); }
.bl-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -.01em; max-width: 860px; }
.bl-sub { margin: 10px 0 0; max-width: 680px; color: #b9c6e4; font-size: 16.5px; }
.bl-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 30px; margin-top: 34px; }
.bl-quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-content: start; }

/* ---- the pieces of a card */
.bl-cover { display: block; text-decoration: none; }
.bl-thumb { position: relative; display: block; overflow: hidden; border-radius: 16px; aspect-ratio: 16 / 9; }
.bl-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.bl-cover:hover .bl-thumb img { transform: scale(1.04); }
.bl-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .92); }
.bl-noimg svg { width: 40px; height: 40px; }
.bl-thumb.sq { width: 88px; aspect-ratio: 1; border-radius: 12px; }
.bl-thumb.round { width: 58px; aspect-ratio: 1; border-radius: 50%; }
.bl-thumb.sq .bl-noimg svg, .bl-thumb.round .bl-noimg svg { width: 24px; height: 24px; }
.bl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bl-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font: 700 12px var(--body); color: #fff; }
.bl-chip svg { width: 12px; height: 12px; }
.bl-chip-feat { background: var(--gold-500); color: var(--navy-950); }
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; color: var(--ink-3); }
.bl-meta span { display: inline-flex; align-items: center; gap: 5px; }
.bl-meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.bl-meta .bl-ok { color: var(--ok); }
.bl-meta .bl-being { color: var(--warn); font-weight: 600; }
.bl :is(.bl-lead h2, .bl-tile h3, .bl-row h3, .bl-mini h3) a { color: inherit; text-decoration: none; }
.bl :is(.bl-lead h2, .bl-tile h3, .bl-row h3, .bl-mini h3) a:hover { text-decoration: underline; text-underline-offset: 3px; }

.bl-lead .bl-thumb { border-radius: 20px; }
.bl-lead .bl-txt { margin-top: 18px; }
.bl-lead h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; line-height: 1.18; margin: 2px 0 10px; }
.bl-lead p { margin: 12px 0 0; font-size: 15.5px; max-width: 640px; }
.bl-tile .bl-txt { margin-top: 12px; }
.bl-tile h3 { font-size: 17px; font-weight: 800; line-height: 1.3; margin: 2px 0 8px; color: var(--navy-900); }
.bl-quad .bl-tile h3 { font-size: 15.5px; }

/* cards on the navy hero */
.bl-hero :is(.bl-lead h2, .bl-tile h3) { color: #fff; }
.bl-hero .bl-lead p { color: #c9d5ee; }
.bl-hero .bl-meta { color: #9fb1d6; }
.bl-hero .bl-meta .bl-ok { color: #7fd6a8; }
.bl-hero .bl-meta .bl-being { color: #f6c35c; }
.bl-hero a:focus-visible { outline-color: var(--gold-500); }

/* ---- the masthead: the day, then the topic tabs */
.bl-mast { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; padding: 36px 0 16px; border-bottom: 3px solid var(--navy-900); margin-bottom: 26px; }
.bl-date span { display: block; font: 800 14px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-600); }
.bl-date b { display: block; font: 800 clamp(28px, 3.4vw, 40px) / 1.05 var(--display); color: var(--navy-900); }
.bl-tabs { display: flex; gap: 4px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.bl-tabs::-webkit-scrollbar { display: none; }
.bl-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font: 600 14px var(--body); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.bl-tabs a:hover { background: var(--bg-soft); color: var(--navy-900); }
.bl-tabs a.on { background: var(--navy-900); color: #fff; }
.bl-tabs .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* ---- the list: three big cards, then compact rows */
.bl-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.bl-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 26px; margin-top: 18px; }
.bl-row { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); }
.bl-row[hidden] { display: none; }
.bl-row h3 { font-size: 15px; font-weight: 700; line-height: 1.35; margin: 0 0 6px; color: var(--navy-900); }
.bl-row .bl-cover { flex: none; }
.bl-moreb { text-align: center; margin: 26px 0 0; }
.bl-moreb svg { width: 16px; height: 16px; transform: rotate(90deg); }

/* ---- the browse band: every topic, its colour along the top */
.bl-browse { background: var(--navy-950); padding: 50px 0 56px; margin-top: 46px; }
.bl-browse-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.bl-browse-h h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); font-weight: 800; }
.bl-browse-h p { margin: 0; color: #9fb1d6; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.bl-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.bl-topic { display: flex; flex-direction: column; background: var(--navy-900); border: 1px solid rgba(255, 255, 255, .08); border-top: 4px solid var(--gold-500); border-radius: 18px; padding: 20px; color: #c9d5ee; }
.bl-topic.tc-heart { border-top-color: #e25a70; } .bl-topic.tc-sugar { border-top-color: #e8a02a; } .bl-topic.tc-navy { border-top-color: #5b8ff0; }
.bl-topic.tc-teal { border-top-color: #2bb3a0; } .bl-topic.tc-violet { border-top-color: #8f7ef0; } .bl-topic.tc-green { border-top-color: #3fbf7f; }
.bl-topic.tc-sky { border-top-color: #4cb4f2; } .bl-topic.tc-gold { border-top-color: #f2b632; }
.bl-topic-top { display: flex; justify-content: space-between; align-items: center; }
.bl-topic-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.bl-topic-ic svg { width: 20px; height: 20px; }
.bl-topic-top small { font: 700 11.5px var(--body); letter-spacing: .1em; text-transform: uppercase; color: #9fb1d6; }
.bl-topic h3 { color: #fff; font-size: 19px; font-weight: 800; margin: 14px 0 6px; }
.bl-topic p { margin: 0 0 12px; font-size: 13.5px; color: #9fb1d6; }
.bl-topic ul { list-style: none; margin: 0 0 14px; padding: 0; }
.bl-topic li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.bl-topic li a { color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-topic li a:hover { text-decoration: underline; }
.bl-topic li small { color: #7f93bd; font-size: 12px; white-space: nowrap; }
.bl-all { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--gold-500); text-decoration: none; }
.bl-all svg { width: 15px; height: 15px; }
.bl-browse a:focus-visible { outline-color: var(--gold-500); }

/* ---- latest and most read */
.bl-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding: 44px 0 6px; }
.bl-h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--navy-900); margin: 0 0 14px; }
.bl-h2::before { content: ""; width: 4px; height: 22px; border-radius: 2px; background: var(--gold-500); flex: none; }
.bl-mini { display: flex; gap: 14px; align-items: center; padding: 10px 0; }
.bl-mini .bl-cover { flex: none; }
.bl-mini h3 { font-size: 15px; font-weight: 700; line-height: 1.35; margin: 0 0 4px; color: var(--navy-900); }
.bl-top { list-style: none; margin: 0; padding: 0; }
.bl-top li { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bl-top span { font: 800 15px var(--display); color: var(--gold-600); min-width: 26px; }
.bl-top a { font-weight: 700; color: var(--navy-900); text-decoration: none; }
.bl-top a:hover { text-decoration: underline; }

/* ---- an article */
.bl-hero-post { padding: 34px 0 42px; }
.bl-post-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.cpage .bl-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; margin: 0 0 14px; color: #7f93bd; }
.cpage .bl-crumbs a { color: #b9c6e4; font-weight: 600; text-decoration: none; }
.cpage .bl-crumbs a:hover { color: #fff; }
.bl-post-txt h1 { color: #fff; font-size: clamp(28px, 3.8vw, 46px); font-weight: 800; line-height: 1.12; margin: 6px 0 14px; overflow-wrap: anywhere; }
.bl-lede { margin: 0 0 16px; font-size: 17.5px; color: #c9d5ee; }
.bl-post-pic .bl-thumb { border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }

.bl-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.bl-share-l { font: 700 13px var(--body); color: var(--ink-3); margin-right: 4px; }
.bl-share-b { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy-900); font: 600 13.5px var(--body); text-decoration: none; cursor: pointer; }
.bl-share-b:hover { border-color: var(--navy-900); }
.bl-share-b[hidden] { display: none; }
.bl-share-b svg { width: 15px; height: 15px; }
.bl-share-b.sh-whatsapp { background: #11793f; border-color: #11793f; color: #fff; }
.bl-share-b.sh-facebook { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.bl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.cpage .bl-article { border-radius: 20px; }
.bl-toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 16px 22px; margin: 0 0 26px; }
.bl-toc p { margin: 0 0 8px; font: 700 12px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.bl-toc ol { margin: 0; padding-left: 20px; }
.bl-toc li { padding: 3px 0; }
.bl-toc a { color: var(--navy-900); text-decoration: none; font-weight: 600; }
.bl-toc a:hover { color: var(--blue-600); text-decoration: underline; }
.bl-article .cbody h2 { scroll-margin-top: 96px; }
.bl-reviewed { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 30px 0 0; }
.bl-reviewed p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.bl-reviewed small { display: block; color: var(--ink-3); margin-top: 3px; font-size: 13px; }
.bl-reviewed-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.bl-reviewed-ic svg { width: 20px; height: 20px; }

.bl-side { display: grid; gap: 18px; position: sticky; top: 96px; }
.bl-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.bl-card h2 { font-size: 18px; font-weight: 800; margin: 12px 0 6px; }
.bl-card .bl-h2 { font-size: 17px; margin: 0 0 10px; }
.bl-card p { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }
.bl-card-navy { background: var(--navy-900); border-color: var(--navy-900); }
.bl-card-navy h2 { color: #fff; }
.bl-card-navy p { color: #b9c6e4; }
.bl-card-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: var(--gold-500); }
.bl-card-ic svg { width: 21px; height: 21px; }
.bl-card-ic-soft { background: var(--blue-100); color: var(--blue-600); }
.bl-topic-list { list-style: none; margin: 0; padding: 0; }
.bl-topic-list a { display: flex; align-items: center; gap: 12px; padding: 7px 6px; border-radius: 10px; text-decoration: none; color: var(--navy-900); font-weight: 600; font-size: 14.5px; }
.bl-topic-list a:hover, .bl-topic-list a[aria-current] { background: var(--bg-soft); }
.bl-topic-list small { margin-left: auto; font-size: 12px; background: var(--bg-soft); border-radius: 999px; padding: 1px 9px; color: var(--ink-3); }
.bl-topic-list .bl-topic-ic { width: 32px; height: 32px; border-radius: 9px; }
.bl-topic-list .bl-topic-ic svg { width: 16px; height: 16px; }
.bl-related { padding: 44px 0 20px; }

/* ---- inside the member portal (its own padding and sidebar) */
.cpage:not(.cpage-public) .bl-in { width: 100%; }
.cpage:not(.cpage-public) .bl-hero { border-radius: 20px; padding: 28px; }
.cpage:not(.cpage-public) .bl-side { top: 84px; }

/* ---- narrower screens */
@media (max-width: 1100px) {
  .bl-layout { grid-template-columns: minmax(0, 1fr); }
  .bl-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 960px) {
  .bl-hero-grid, .bl-post-head { grid-template-columns: minmax(0, 1fr); }
  .bl-grid3, .bl-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bl-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .bl-in { width: calc(100% - 32px); }
  .bl-hero { padding: 30px 0 36px; }
  .bl-quad, .bl-grid3, .bl-rows { grid-template-columns: minmax(0, 1fr); }
  .bl-mast { padding-top: 26px; }
  .bl-thumb.sq { width: 76px; }
  .cpage .bl-article { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .bl-thumb img { transition: none; }
}
