/* Behavior and utility refinements for the Health / Wellness / Fitness
   cluster (YMYL). The homepage/category center and the header VISUAL DESIGN
   are approved by another designer and are deliberately NOT restyled here —
   this layer only carries the v2.1 mandate: sticky header with a compact
   logo, the vertical Cover Story unit, article chrome (crumb, ink rule,
   share), Coming-soon states, and the branded utility/author/404/data pages.
   Bump ?v= in EVERY attach point when editing:
   layouts/health-trust/{index,category,article}.ejs, sector-shared/_utility.ejs,
   sector-shared/author.ejs, sector-shared/404.ejs, and the sector test. */

/* Pages without the .ht body class (author, 404) still need the sector
   palette custom properties; mirror the .ht definitions at the layout level. */
.layout-health-trust {
  --ink: #12191a;
  --soft: #f6f7f7;
  --line: #e4e7e7;
  --muted: #6d7677;
  --accent: var(--vuga-color-accent, #1b7a78);
}

/* 🔒 Sticky header behavior (v2.1): masthead + rubric menu stay pinned to the
   top while scrolling, and the wordmark shrinks into a compact mode. Colors,
   fonts, and composition of the approved header are untouched; the compaction
   is a scroll-driven animation that leaves the resting design pixel-identical
   and simply holds the full-size logo in browsers without scroll timelines.
   z-index sits above content but below the search overlay (999) and the
   mobile menu drawer (50). */
.layout-health-trust .sector-sticky-head { position: sticky; top: 0; z-index: 30; background: #fff; }
.layout-health-trust .sector-nav[data-health-nav] { position: sticky; top: 0; z-index: 40; background: #fff; }
@supports (animation-timeline: scroll()) {
  .layout-health-trust .sector-sticky-head .sector-masthead { animation: ht-masthead-compact linear both; animation-timeline: scroll(root); animation-range: 0 9rem; }
  .layout-health-trust .sector-sticky-head .sector-brand strong { animation: ht-wordmark-compact linear both; animation-timeline: scroll(root); animation-range: 0 9rem; }
  .layout-health-trust .sector-sticky-head .sector-brand span { animation: ht-tagline-compact linear both; animation-timeline: scroll(root); animation-range: 0 9rem; }
}
@keyframes ht-masthead-compact { to { min-height: 3.2rem; padding-top: .35rem; padding-bottom: .3rem; } }
@keyframes ht-wordmark-compact { to { font-size: 1.3rem; } }
@keyframes ht-tagline-compact { to { font-size: 7px; letter-spacing: .18em; } }

/* 🔒 Cover Story sidebar unit (the only homepage addition): vertical 3:4
   cover under the Trending rail, up to two text lines, closing link;
   Coming soon while the rubric is empty. The vertical cover never enters a
   horizontal slot — the homepage flow excludes Cover Story articles. */
.layout-health-trust .ht-cover-story { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 2px solid var(--ink); }
.layout-health-trust .ht-cover-story h2 { font-size: 1.2rem; font-weight: 900; letter-spacing: -.02em; margin: 0 0 .7rem; }
.layout-health-trust .ht-cover-story p { margin: .5rem 0; color: #4d5657; font-size: .88rem; line-height: 1.5; }
.layout-health-trust .ht-cover-story > a { color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.layout-health-trust .ht-cs-feature { display: block; }
.layout-health-trust .ht-cs-feature .sector-media { aspect-ratio: 3 / 4; border-radius: .6rem; }
.layout-health-trust .ht-cs-feature h3 { font-size: 1.02rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; margin: .5rem 0 .3rem; }
.layout-health-trust .ht-cs-feature small { color: var(--muted); font-size: .74rem; line-height: 1.4; }
.layout-health-trust .ht-cs-more { display: block; padding: .8rem 0; border-top: 1px solid var(--line); }
.layout-health-trust .ht-cs-more h4 { font-size: .95rem; font-weight: 800; line-height: 1.3; margin: 0; }
.layout-health-trust .ht-cs-all { display: block; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }

/* 🔒 Cover Story category page: vertical magazine spread (7 per page). */
.layout-health-trust .ht-cs-page { margin-top: 2rem; }
.layout-health-trust .ht-cs-hero { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 2rem; align-items: end; padding-bottom: 1.6rem; border-bottom: 2px solid var(--ink); }
.layout-health-trust .ht-cs-hero-media .sector-media { aspect-ratio: 3 / 4; border-radius: .65rem; }
.layout-health-trust .ht-cs-hero h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 .5rem; }
.layout-health-trust .ht-cs-hero small { color: var(--muted); font-size: .82rem; }
.layout-health-trust .ht-cs-hero p { margin-top: .6rem; color: #4d5657; line-height: 1.55; }
.layout-health-trust .ht-cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.layout-health-trust .ht-cs-grid .sector-media { aspect-ratio: 3 / 4; border-radius: .6rem; }
.layout-health-trust .ht-cs-grid h3 { font-size: 1.08rem; line-height: 1.25; letter-spacing: -.01em; margin: .5rem 0 .2rem; }
.layout-health-trust .ht-cs-grid small { color: var(--muted); font-size: .76rem; }
@media (max-width: 720px) { .layout-health-trust .ht-cs-hero { grid-template-columns: 1fr; } .layout-health-trust .ht-cs-grid { grid-template-columns: 1fr; } }

/* 🔒 Empty approved rubrics publish a Coming soon card instead of a bare
   line. */
.layout-health-trust .ht-coming-soon { padding: 1.6rem 1.4rem; margin-top: 2rem; border: 1px dashed var(--line); background: var(--soft); }
.layout-health-trust .ht-coming-soon b { display: block; color: var(--accent); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.layout-health-trust .ht-coming-soon p { margin: .5rem 0 0; color: #4d5657; line-height: 1.5; }

/* 🔒 Article chrome: mono-caps breadcrumb, ink rule under the byline, and
   the share chip row with the canonical clean article URL. */
.layout-health-trust .ht-crumb { display: block; margin-bottom: 1rem; font-size: .72rem; font-weight: 800; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.layout-health-trust .ht-crumb a { color: var(--accent); }
.layout-health-trust .ht-byline { border-bottom: 2px solid var(--ink); }
.layout-health-trust .ht-share { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding-bottom: 1.1rem; }
.layout-health-trust .ht-share > span { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: .2rem; }
.layout-health-trust .ht-share a { border: 1px solid var(--line); background: #fff; padding: .45rem .7rem; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.layout-health-trust .ht-share a:hover { border-color: var(--accent); color: var(--accent); }
.layout-health-trust .sector-author { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--soft); }

/* 🔒 Utility pages (about, advertise, legal, contact) wear the sector's
   clinical voice: tracked caps crumb, Figtree 900 headline, ink rule. */
.layout-health-trust .sector-utility-wrap { max-width: 72rem; }
.layout-health-trust .sector-utility .sector-crumb { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.layout-health-trust .sector-utility .sector-crumb a { color: var(--accent); }
.layout-health-trust .sector-utility > h1 { font-weight: 900; letter-spacing: -.03em; margin: .55rem 0 0; padding-bottom: 1.1rem; border-bottom: 2px solid var(--ink); }
.layout-health-trust .sector-utility .sector-utility-intro { color: #4d5657; }
.layout-health-trust .vuga-contact-form label { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.layout-health-trust .vuga-contact-form input, .layout-health-trust .vuga-contact-form textarea { border: 1px solid var(--line); background: var(--soft); }
.layout-health-trust .vuga-contact-form input:focus, .layout-health-trust .vuga-contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent); }
.layout-health-trust .vuga-contact-form button[type="submit"] { border: 0; background: var(--ink); color: #fff; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.layout-health-trust .vuga-contact-form button[type="submit"]:hover { background: var(--accent); }

/* 🔒 Author page in the sector's voice: AUTHOR label in the accent, Figtree
   900 name over an ink rule, portrait tile, role/bio above the line, article
   grid with clean URLs. */
.layout-health-trust .sector-wrap { max-width: 72rem; }
.layout-health-trust .sector-author-page { padding-bottom: 1.4rem; border-bottom: 2px solid var(--ink); }
.layout-health-trust .sector-author-page-photo { border-radius: .6rem; }
.layout-health-trust .sector-author-page .sector-kicker { color: var(--accent); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.layout-health-trust .sector-author-page h1 { font-weight: 900; letter-spacing: -.03em; }
.layout-health-trust .sector-author-title { color: var(--accent); }
.layout-health-trust .sector-section-head { border-bottom: 2px solid var(--ink); }
