/*
 * RiseUpToHIV — Shared Design System
 * styles.css
 * Link from every page: <link rel="stylesheet" href="styles.css">
 * Last updated: March 2026
 *
 * ══════════════════════════════════════════════════════════════
 * CANONICAL HEADER — copy this block to every new page
 * (replace hub-link-active class to match the active pill)
 * ══════════════════════════════════════════════════════════════
 *
 * <div class="crisis-banner">⚠️ <strong>Urgent update headline</strong>
 *   Short action-focused support text.
 *   <a href="relevant-support-page.html">See what changed →</a></div>
 *
 * <header class="site-header">
 * <div class="header-inner">
 *   <div class="masthead-row masthead-row-refined">
 *     <div class="brand-left">
 *       <a href="index.html" class="logo refined-logo">
 *         <span class="header-ribbon" aria-hidden="true"><!-- ribbon SVG --></span>
 *         <span class="logo-wordmark">RISE<span class="logo-accent">UP</span>TOHIV</span>
 *       </a>
 *     </div>
 *     <div class="brand-center">
 *       <span class="refined-tagline">EDUCATION • RESOURCES • COMMUNITY • ADVOCACY</span>
 *     </div>
 *     <div class="brand-right">
 *       <div class="header-social"><!-- FB + IG icons --></div>
 *     </div>
 *   </div>
 *   <div class="header-divider"></div>
 *   <nav class="hub-nav">
 *     <a href="newly-diagnosed.html" class="hub-link hub-newlydiag">Newly Diagnosed</a>
 *     <a href="locator.html"         class="hub-link hub-care">Find Care</a>
 *     <a href="treatment-hub.html"   class="hub-link hub-red">Treatment</a>
 *     <a href="prevention.html"      class="hub-link hub-prevention">Prevention</a>
 *     <a href="education.html"       class="hub-link hub-education">Education</a>
 *     <a href="wellness.html"        class="hub-link hub-wellness">Wellness</a>
 *     <a href="community.html"       class="hub-link hub-orange">Community</a>
 *     <a href="pledge.html"          class="hub-link hub-pledge">Pledge</a>
 *     <a href="stories.html"         class="hub-link hub-story">Stories</a>
 *     <a href="share.html"           class="hub-link hub-share">Share Facts</a>
 *     <a href="learning-hub.html"    class="hub-link hub-explainers">Deep Dives</a>
 *     <a href="resource.html"        class="hub-link hub-resource">Resource Hub</a>
 *     <a href="policy.html"          class="hub-link hub-policy">Policy</a>
 *     <a href="faq.html"             class="hub-link hub-faq">FAQ</a>
 *   </nav>
 *   <div class="header-divider header-divider-bottom"></div>
 * </div>
 * </header>
 * ══════════════════════════════════════════════════════════════
 */

/* ============================================================
   1. GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@400;500;600;700&display=swap');


/* ============================================================
   2. DESIGN TOKENS — CSS VARIABLES
   ============================================================ */
:root {
  /* Brand colors — update these first for a sitewide shared-palette change */
  --accent:           #1F6F78;
  --accent-dark:      #16324F;
  --accent-light:     #E6F2F3;

  /* UI colors */
  --bg:               #F6F8F7;
  --card-bg:          #ffffff;
  --nav-bg:           #EEF2F1;
  --border:           #D7E0DF;

  /* Text */
  --text:             #1a1a1a;
  --text-secondary:   #555555;

  /* Link */
  --link:             #245E91;

  /* Hub accent colors */
  --hub-red:          #2F6B57;
  --hub-orange:       #B76E2B;
  --hub-blue:         #245E91;
  --hub-purple:       #264653;

  /* Deep-dive page palettes (used on uu, prep, newly-diagnosed, etc.) */
  --navy:             #16324F;
  --navy-light:       #2B5B78;
  --gold:             #8a5a1a;
  --white:            #ffffff;
  --soft-white:       #F3F7F8;
  --gray:             #A9B8BF;

  /* Shared chrome */
  --chrome-bg:        #36505E;
  --chrome-surface:   #2C414D;
  --chrome-footer:    #2B3F4B;
  --brand-highlight:  #8a5a1a;
  --brand-highlight-hover: #E2B565;
  --brand-highlight-ink:   #1E2A33;

  /* Hub pill colors */
  --hub-home-bg:        #16324F;
  --hub-home-text:      #E7C98B;
  --hub-home-border:    rgba(214,162,74,0.35);
  --hub-newlydiag-bg:   #245E91;
  --hub-care-bg:        #1F7A6B;
  --hub-treatment-bg:   #2F6B57;
  --hub-prevention-bg:  #0F766E;
  --hub-education-bg:   #3E6B78;
  --hub-wellness-bg:    #5B7F4B;
  --hub-community-bg:   #B76E2B;
  --hub-resource-bg:    #8a5a1a;
  --hub-resource-text:  #1E2A33;
  --hub-pledge-bg:      #6A7B52;
  --hub-story-bg:       #356B73;
  --hub-daily-bg:       #8A6A3B;
  --hub-share-bg:       #2E5E86;
  --hub-explainers-bg:  #264653;
  --hub-policy-bg:      #334155;
  --hub-faq-bg:         #55626D;

  /* Typography scale */
  --font-serif:       'Source Serif 4', Georgia, serif;
  --font-sans:        'DM Sans', Arial, sans-serif;

  --text-xs:          0.7rem;
  --text-sm:          0.82rem;
  --text-base:        0.92rem;
  --text-md:          1rem;
  --text-lg:          1.15rem;
  --text-xl:          1.3rem;
  --text-2xl:         1.6rem;
  --text-3xl:         2rem;

  /* Spacing scale */
  --space-1:          4px;
  --space-2:          8px;
  --space-3:          12px;
  --space-4:          16px;
  --space-5:          20px;
  --space-6:          24px;
  --space-8:          32px;
  --space-10:         40px;
  --space-12:         48px;
  --space-14:         56px;
  --space-16:         64px;
  --space-20:         80px;

  /* Border radius */
  --radius-sm:        4px;
  --radius-md:        8px;
  --radius-lg:        12px;
  --radius-xl:        20px;
  --radius-full:      9999px;

  /* Shadows */
  --shadow-sm:        0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:        0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg:        0 8px 30px rgba(0,0,0,0.10);

  /* Max content width */
  --max-width:        900px;

  /* Transitions */
  --transition:       all 0.2s ease;
}


/* ============================================================
   3. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ============================================================
   4. CRISIS BANNER
   ============================================================ */
/* ============================================================
   CRISIS BANNER
   ============================================================ */
.crisis-banner {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  border: 0;
}

.crisis-banner a {
  color: var(--brand-highlight);
  font-weight: 700;
  text-decoration: none;
}

.crisis-banner a:hover {
  text-decoration: underline;
}

/* ============================================================
   5. SITE HEADER & HUB NAVIGATION
   ============================================================ */
/* ── ANTON WORDMARK ANIMATION ── */
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

.site-header {
  background: var(--chrome-bg);
  border: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

/* Wordmark */
.anton-wordmark {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  position: relative;
  cursor: pointer;
  transition: opacity 0.18s;
}
.anton-wordmark:hover { opacity: 0.82; text-decoration: none; }
.anton-wordmark .wm-rise,
.anton-wordmark .wm-to,
.anton-wordmark .wm-hiv-letters { color: #FFFFFF; }
.anton-wordmark .wm-up { color: var(--brand-highlight); }
.anton-wordmark .wm-hiv { color: var(--brand-highlight); }
.anton-wordmark .wm-to { opacity: 0.35; }

/* Hide old hub-nav grid on desktop — replaced by hub-nav-bar */
@media (min-width: 769px) {
  .hub-nav:not(.mobile-open) {
    display: none !important;
  }
  .header-divider-bottom {
    display: none !important;
  }
}

/* Load animation — letters wave up once on page load */
.wm-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation: wmWaveUp 0.45s cubic-bezier(0.34,1.4,0.64,1) forwards;
}
@keyframes wmWaveUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Pill bar — two-tone, two-row, red bookends */
.hub-nav-bar {
  background: var(--chrome-surface);
  border-top: 3px solid var(--brand-highlight);
  border-bottom: 3px solid var(--brand-highlight);
  padding-block: 7px;
  /* Cap pill content width so 14 pills split cleanly into 7+7 rows on desktop */
  padding-inline: max(16px, calc((100% - 720px) / 2));
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  overflow-x: visible;
  scrollbar-width: none;
}
.hub-nav-bar::-webkit-scrollbar { display: none; }
.hub-nav-bar .hub-link {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.76rem;
  flex-shrink: 0;
}

/* Updated hub pill colors — clean labels no Hub */
/* Updated hub pill colors — Scheme A journey gradient */
.hub-home       { background: var(--hub-home-bg); color: var(--hub-home-text); border: 1px solid var(--hub-home-border); }
.hub-newlydiag  { background: var(--hub-newlydiag-bg); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.hub-care       { background: var(--hub-care-bg); color: #fff; border: 1px solid rgba(255,255,255,0.15); outline: 3px solid var(--brand-highlight); outline-offset: 2px; }
.hub-red        { background: var(--hub-treatment-bg); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.hub-prevention { background: var(--hub-prevention-bg); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.hub-education  { background: var(--hub-education-bg); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.hub-wellness   { background: var(--hub-wellness-bg); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.hub-orange     { background: var(--hub-community-bg); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.hub-resource   { background: var(--hub-resource-bg); color: var(--hub-resource-text); border: 1px solid rgba(0,0,0,0.08); }
.hub-pledge     { background: var(--hub-pledge-bg); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.hub-story      { background: var(--hub-story-bg); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.hub-daily      { background: var(--hub-daily-bg); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.hub-share      { background: var(--hub-share-bg); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.hub-explainers { background: var(--hub-explainers-bg); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.hub-policy     { background: var(--hub-policy-bg); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.hub-faq        { background: var(--hub-faq-bg); color: #fff; border: 1px solid rgba(255,255,255,0.15); }

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 30px);
}

/* Masthead row: logo + social on one line */
.masthead-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 15px 0 13px;
  text-align: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
  text-decoration: none;
  min-width: 0;
}

.logo:hover { text-decoration: none; }

.logo-wordmark {
  color: #fff;
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-tag {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}

/* ── Refined masthead (3-column: logo | tagline | social) ── */
.masthead-row-refined {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand-left, .brand-center, .brand-right { flex: 1; }
.brand-left  { display: flex; align-items: center; }
.brand-center { text-align: center; display: flex; align-items: center; justify-content: center; }
.brand-right { display: flex; justify-content: flex-end; align-items: center; gap: 9px; }

.search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.78);
  flex-shrink: 0;
}
.search-trigger svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.search-trigger:hover { color: #fff; }
.refined-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.header-ribbon { color: var(--accent); font-size: 17px; line-height: 1; }
.masthead-row-refined .logo-wordmark {
  font-size: 29px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #ffffff;
}
.logo-accent { color: var(--brand-highlight); }
.refined-tagline {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}
.brand-right .header-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
@media (max-width: 960px) {
  .masthead-row-refined {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
  }
  .brand-left, .brand-center, .brand-right {
    flex: unset;
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .brand-left  { justify-content: center; }
  .brand-right { justify-content: center; gap: 8px; }
  .brand-right .header-social { display: none; }
  .refined-tagline {
    white-space: normal;
    color: rgba(255,255,255,0.78);
  }
  .mobile-wm-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
  }
  .mobile-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.2s, filter 0.2s;
  }
  .mobile-social-icon:hover { transform: translateY(-2px); filter: brightness(1.1); }
  .mobile-social-icon svg { width: 16px; height: 16px; fill: #fff; }
  .brand-right a[href="about.html"],
  .brand-right a[href="hub-form.html"] {
    color: rgba(255,255,255,0.78) !important;
  }
}

/* Hide mobile wordmark row on desktop — CRITICAL */
.mobile-wm-row { display: none; }

/* Social icons — branded circles */
.header-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
  flex-shrink: 0;
}

.header-social-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.header-social-link svg {
  width: 17px;
  height: 17px;
}

.social-fb { background: #1877f2; color: #fff; }
.social-fb svg { fill: #fff; }
.social-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.social-ig svg { fill: #fff; }

/* Divider lines */
.header-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

/* Hub nav pills — centered two-row grid */
.hub-nav {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 0;
  display: grid;
  grid-template-columns: repeat(6, max-content);
  justify-content: center;
  gap: 8px 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.hub-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(4, 14, 33, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.hub-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(4, 14, 33, 0.2);
  filter: brightness(1.06);
  text-decoration: none;
}

.hub-link.active,
.hub-link-active {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 2px;
}

/* ============================================================
   6. MOBILE NAVIGATION DRAWER
   ============================================================ */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--bg);
  z-index: 201;
  overflow-y: auto;
  transition: right 0.3s ease;
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  margin-bottom: var(--space-4);
  display: block;
}

.mobile-nav-section {
  margin-bottom: var(--space-6);
}

.mobile-nav-section h3 {
  font-family: var(--font-serif);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.mobile-nav-section a {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--text-base);
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.mobile-nav-section a:hover {
  color: var(--accent);
  text-decoration: none;
  padding-left: var(--space-2);
}

/* Hub links in mobile drawer */
.mobile-hub-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.mobile-hub-links .hub-link {
  text-align: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}


/* ============================================================
   7. FOOTER
   ============================================================ */

/* Footer social buttons (used in page footers) */
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 8px;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 24px;
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}

.footer-social-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
}

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-10) var(--space-6);
  border-top: 2px solid var(--border);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

footer p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

footer a {
  color: var(--link);
  text-decoration: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

/* Social media icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: var(--space-4);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.1);
  text-decoration: none;
  opacity: 0.85;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.social-icon.facebook { background: #1877F2; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon.substack { background: #FF6719; }



.resource-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.resource-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px var(--space-5);
  transition: var(--transition);
}

.resource-card:hover {
  border-color: #ccc;
  box-shadow: var(--shadow-md);
}

.resource-card .org-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.resource-card .org-name a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.resource-card .org-name a:hover {
  border-bottom-color: var(--link);
  text-decoration: none;
}

.resource-card .org-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.resource-card .org-desc a {
  color: var(--link);
}

.resource-card .org-phone {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-2);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.resource-card .org-phone:hover {
  text-decoration: underline;
}

.resource-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-2) + 2px;
}

/* Tags */
.tag {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px var(--space-2);
  border-radius: var(--radius-sm);
  background: #FFF3E0;
  color: #E65100;
}

.tag.ryan-white  { background: #E8F5E9; color: #2E7D32; }
.tag.telehealth  { background: #E3F2FD; color: #1565C0; }
.tag.spanish     { background: #FFF3E0; color: #E65100; }
.tag.rapid-start { background: #F3E5F5; color: #7B1FA2; }


/* ============================================================
   9. NOTE BOXES & CALLOUTS
   ============================================================ */
.note-box {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-5) 0;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: #5D4037;
}

.note-box.info {
  background: #E3F2FD;
  border-color: #90CAF9;
  color: #1A237E;
}

.note-box.save {
  background: var(--nav-bg);
  border-color: var(--border);
  color: var(--text);
}

.note-box a {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}

/* Companion guides block */
.companion-guides {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: var(--space-5) var(--space-6);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-8) 0;
}

.companion-guides h3 {
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--accent-dark);
}

.companion-guides ul {
  list-style: none;
  padding: 0;
}

.companion-guides li {
  padding: 6px 0;
  font-size: 0.9rem;
}

.companion-guides a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

.companion-guides .desc {
  color: var(--text-secondary);
  font-weight: 400;
}


/* ============================================================
   10. SECTION LAYOUT (index.html content sections)
   ============================================================ */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-20);
}

.section {
  margin-bottom: var(--space-14);
  scroll-margin-top: 100px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--border);
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
}

.section-header .section-emoji {
  font-size: 1.5rem;
}

.section-intro {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  font-style: italic;
}

.section-prose {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.section-prose a { color: var(--link); text-decoration: none; }
.section-prose strong { color: var(--text); }

.subsection {
  margin-bottom: var(--space-8);
}

.subsection h3 {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-6);
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.back-to-top:hover {
  color: var(--accent);
  text-decoration: none;
}


/* ============================================================
   11. QUICK NAVIGATION GRID
   ============================================================ */
.quick-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-12);
}

.quick-nav h2 {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-5);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-3);
}

.nav-category {
  margin-bottom: var(--space-4);
}

.nav-category-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 6px;
}

.nav-link:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateX(4px);
  text-decoration: none;
}

.nav-link .emoji {
  font-size: 1.1rem;
  flex-shrink: 0;
}


/* ============================================================
   12. SEARCH BAR
   ============================================================ */
.search-container {
  margin: var(--space-5) 0 var(--space-8);
  position: relative;
}

.search-input {
  width: 100%;
  padding: 14px var(--space-5) 14px 48px;
  border: 2px solid var(--border);
  border-radius: var(--space-3);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--card-bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--accent);
}

.search-input::placeholder {
  color: #aaa;
}

.search-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 1.1rem;
}

.search-results-count {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: var(--space-2);
  display: none;
}


/* ============================================================
   13. HERO SECTION
   ============================================================ */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-16) var(--space-6) var(--space-10);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.hero .subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.hero .intro-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

/* Section-specific hero color backgrounds */
.hero-colored {
  max-width: 100%;
  padding: var(--space-16) var(--space-6) var(--space-10);
  color: #fff;
}
.hero-colored .hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.hero-colored h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: #fff;
}
.hero-colored .subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.92);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}
.hero-colored .credibility-line {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.88);
  max-width: 700px;
  line-height: 1.8;
  margin-bottom: var(--space-3);
  font-style: italic;
}
.hero-colored .context-line {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
.hero-colored .hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #fff;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.hero-colored .hero-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

/* Resource Hub hero — slate blue to deep navy */
.hero-resource { background: linear-gradient(135deg, #245E91 0%, #16324F 100%); }
.hero-resource .hero-btn { color: #245E91; }

/* Community Hub hero — copper */
.hero-community { background: linear-gradient(135deg, #B76E2B 0%, #8A531F 100%); }
.hero-community .hero-btn { color: #8A531F; }

/* Information Hub hero — teal to navy */
.hero-info { background: linear-gradient(135deg, #1F6F78 0%, #16324F 100%); }
.hero-info .hero-btn { color: #1F6F78; }

/* Share the Facts hero — amber/sand */
.hero-share { background: linear-gradient(135deg, #C8963D 0%, #DDB46A 55%, #F0D7A5 100%); color: var(--brand-highlight-ink); }
.hero-share h1 { color: var(--brand-highlight-ink); }
.hero-share .subtitle { color: rgba(30,42,51,0.85); }
.hero-share .credibility-line { color: rgba(30,42,51,0.8); }
.hero-share .context-line { color: rgba(30,42,51,0.75); }
.hero-share .hero-btn { background: var(--accent-dark); color: #F5E6C6; }
.hero-share .hero-btn:hover { background: #1C3D5B; }


/* ============================================================
   14. BLUE & ORANGE COLOR ACCENTS
   ============================================================ */
/* Section headers default to blue bottom border */
.section-header {
  border-bottom: 3px solid var(--hub-blue);
}

/* Subsection h3 uses orange */
.subsection h3 {
  color: var(--hub-orange);
}

/* Resource cards blue left border on hover */
.resource-card:hover {
  border-left: 3px solid var(--hub-blue);
}

/* Quick nav heading blue accent */
.quick-nav h2 {
  border-bottom-color: var(--hub-blue);
}

/* Footer blue-to-orange gradient border */
footer {
  border-top: 3px solid transparent;
  border-image: linear-gradient(to right, var(--hub-blue), var(--hub-orange)) 1;
}

/* Footer logo blue-to-orange gradient */
.footer-logo {
  background: linear-gradient(135deg, var(--hub-blue), var(--hub-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav links hover blue */
.footer-links a:hover {
  color: var(--hub-blue);
}

/* Back to top link hover blue */
.back-to-top:hover {
  color: var(--hub-blue);
}


/* ============================================================
   15. PRINT STYLES
   ============================================================ */
@media print {
  .site-header,
  .crisis-banner,
  .search-container,
  .back-to-top,
  .nav-toggle,
  .mobile-nav-overlay,
  .mobile-nav-drawer { display: none !important; }

  .resource-card {
    break-inside: avoid;
    border: 1px solid #ccc;
  }

  body { font-size: 11pt; }
}


/* ============================================================
   16. RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 1120px) {
  .hub-nav {
    grid-template-columns: repeat(4, max-content);
  }
}

@media (max-width: 860px) {
  .masthead-row {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 0 12px;
  }
  .hub-nav {
    grid-template-columns: repeat(3, max-content);
  }
}

@media (max-width: 768px) {
  /* Hero */
  .hero {
    padding: var(--space-10) var(--space-4) var(--space-8);
  }

  .hero h1 { font-size: 1.8rem; }

  .hero-colored {
    padding: var(--space-10) var(--space-4) var(--space-8);
  }
  .hero-colored h1 { font-size: 1.8rem; }

  /* Quick nav */
  .quick-nav {
    padding: 0 var(--space-4) var(--space-9);
  }

  .nav-grid { grid-template-columns: 1fr; }

  /* Content */
  .content {
    padding: 0 var(--space-4) var(--space-16);
  }
}

@media (max-width: 620px) {
  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .masthead-row { gap: 8px; }

  .logo-wordmark {
    font-size: 1.18rem;
    letter-spacing: 0.07em;
  }

  .logo-tag {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .header-social-link {
    width: 28px;
    height: 28px;
  }

  .hub-nav {
    grid-template-columns: repeat(2, max-content);
    gap: 9px 10px;
  }

  .hub-link {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.78rem;
  }
}

/* ── Hero: two-button row ── */
.hero-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.hero-colored .hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.5);
  transition: var(--transition);
}
.hero-colored .hero-btn-secondary:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.8);
}

/* ── Crisis Cards Block ── */
.crisis-cards-block {
  background: var(--bg);
  padding: 40px 24px;
}
.crisis-cards-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .crisis-cards-inner { grid-template-columns: 1fr; }
}
.crisis-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  border-top: 4px solid;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.crisis-card-blue  { border-top-color: #1565C0; }
.crisis-card-orange { border-top-color: #E65100; }
.crisis-card-green  { border-top-color: #2E7D32; }
.crisis-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}
.crisis-card-blue  .crisis-card-badge { background: #E3F2FD; color: #1565C0; }
.crisis-card-orange .crisis-card-badge { background: #FFF3E0; color: #E65100; }
.crisis-card-green  .crisis-card-badge { background: #E8F5E9; color: #2E7D32; }
.crisis-card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}
.crisis-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.crisis-card-btn {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
}
.crisis-card-blue  .crisis-card-btn { color: #1565C0; }
.crisis-card-orange .crisis-card-btn { color: #E65100; }
.crisis-card-green  .crisis-card-btn { color: #2E7D32; }
.crisis-card-btn:hover { text-decoration: underline; }

/* ── HUB CARD GRID ── */
.hub-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 8px;
}
.hub-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e0ddd8);
  border-top: 4px solid var(--card-color, var(--accent, #1565C0));
  border-radius: 10px;
  padding: 20px 20px 16px;
  text-decoration: none;
  color: var(--text, #1a1a1a);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.hub-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
  transform: translateY(-2px);
  text-decoration: none;
}
.hub-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--card-color, var(--accent, #1565C0));
}
.hub-card-title {
  font-family: var(--font-serif, 'Source Serif 4', serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
  line-height: 1.35;
}
.hub-card-desc {
  font-size: 0.83rem;
  color: var(--text-secondary, #555);
  line-height: 1.6;
  flex: 1;
}
.hub-card-arrow {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--card-color, var(--accent, #1565C0));
  margin-top: 4px;
}
@media (max-width: 600px) {
  .hub-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ── FIND CARE BAND (reusable) ── */
.find-care-band{background:linear-gradient(135deg,#162d47 0%,#1d3e5f 100%);padding:40px 24px;border-bottom:3px solid #4FC3F7}
.find-care-inner{max-width:820px;margin:0 auto}
.find-care-inner .fc-eyebrow{font-size:0.7rem;font-weight:700;text-transform:uppercase;letter-spacing:0.12em;color:rgba(255,255,255,0.55);margin-bottom:8px}
.find-care-inner h2{font-family:'Source Serif 4',serif;font-size:1.5rem;font-weight:700;color:#fff;margin-bottom:6px}
.find-care-inner .fc-sub{font-size:0.9rem;color:rgba(255,255,255,0.72);margin-bottom:24px;line-height:1.6}
.fc-search-row{display:flex;gap:12px;flex-wrap:wrap;align-items:stretch;margin-bottom:16px}
.fc-zip-wrap{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,0.1);border:1.5px solid rgba(255,255,255,0.25);border-radius:10px;padding:12px 16px;flex:0 1 220px;transition:border-color 0.2s}
.fc-zip-wrap:focus-within{border-color:#4FC3F7;background:rgba(255,255,255,0.15)}
.fc-zip-wrap svg{flex-shrink:0;color:rgba(255,255,255,0.5)}
.fc-zip-wrap input{flex:1;border:none;background:none;font-family:'DM Sans',sans-serif;font-size:1rem;color:#fff;outline:none;letter-spacing:0.06em}
.fc-zip-wrap input::placeholder{color:rgba(255,255,255,0.4)}
.fc-btn-row{display:flex;gap:10px;flex-wrap:wrap;flex:1}
.fc-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:10px;font-family:'DM Sans',sans-serif;font-size:0.85rem;font-weight:700;text-decoration:none;white-space:nowrap;cursor:pointer;border:none;transition:all 0.2s}
.fc-btn:hover{transform:translateY(-1px);text-decoration:none}
.fc-btn-prep{background:#4FC3F7;color:#0f2540}.fc-btn-prep:hover{background:#81D4FA}
.fc-btn-testing{background:#66BB6A;color:#fff}.fc-btn-testing:hover{background:#81C784}
.fc-btn-all{background:rgba(255,255,255,0.12);color:#fff;border:1.5px solid rgba(255,255,255,0.25)}.fc-btn-all:hover{background:rgba(255,255,255,0.2)}
.fc-btn-florida{background:#FF8F00;color:#fff}.fc-btn-florida:hover{background:#FFA000}
.fc-error{display:none;font-size:0.82rem;color:#FF8A80;margin-bottom:12px}
.fc-error.visible{display:block}
.fc-stat-line{margin-top:16px;font-size:0.8rem;color:rgba(255,255,255,0.5);letter-spacing:0.02em;line-height:1.6}
.fc-stat-line strong{color:rgba(255,255,255,0.75)}
.fc-fl-callout{background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.12);border-radius:10px;padding:14px 18px;margin-top:16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.fc-fl-callout .fc-fl-text{font-size:0.85rem;color:rgba(255,255,255,0.75);line-height:1.6;flex:1;min-width:200px}
.fc-fl-callout .fc-fl-text a{color:#4FC3F7;font-weight:700;text-decoration:none}
.fc-fl-callout .fc-fl-text a:hover{text-decoration:underline}
@media(max-width:600px){
  .fc-search-row{flex-direction:column}
  .fc-zip-wrap{flex:1 1 100%}
  .fc-btn-row{flex-direction:column}
  .fc-btn{justify-content:center}
  .find-care-band{padding:28px 16px}
}

/* ── HAMBURGER MENU (mobile only) ── */
.hamburger-btn{display:none;background:rgba(255,255,255,0.12);border:1.5px solid rgba(255,255,255,0.55);border-radius:8px;padding:7px 12px;cursor:pointer;align-self:center;margin-left:10px;transition:all 0.2s;align-items:center;gap:6px}
.hamburger-btn:hover{background:rgba(255,255,255,0.2);border-color:#fff}
.hamburger-btn svg{display:block;width:22px;height:22px;stroke:#fff;stroke-width:2.5;stroke-linecap:round;fill:none}
.hamburger-btn .menu-label{font-size:0.68rem;font-weight:800;color:#fff;text-transform:uppercase;letter-spacing:0.1em;white-space:nowrap}
.hamburger-btn .bar1,.hamburger-btn .bar2,.hamburger-btn .bar3{transition:all 0.3s ease}
.hamburger-btn.active .bar1{transform:rotate(45deg) translate(4px,4px)}
.hamburger-btn.active .bar2{opacity:0}
.hamburger-btn.active .bar3{transform:rotate(-45deg) translate(4px,-4px)}
.mobile-nav-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.5);z-index:9990;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.mobile-nav-overlay.active{display:block}
.mobile-nav-close{display:none}

@media(max-width:768px){
  .hub-nav-bar{display:none !important}
  .hamburger-btn{display:inline-flex}
  .hub-nav{display:flex !important;flex-direction:column;gap:0;padding:0;background:#3a4d58;position:fixed;top:0;right:0;width:280px;height:100vh;z-index:9991;overflow-y:auto;padding-top:60px;box-shadow:-4px 0 20px rgba(0,0,0,0.3);transform:translateX(100%);transition:transform 0.3s ease;visibility:hidden}
  .hub-nav.mobile-open{transform:translateX(0);visibility:visible}
  .hub-nav .hub-link{border-radius:0 !important;margin:0;padding:14px 24px;font-size:0.88rem;border-bottom:1px solid rgba(255,255,255,0.08);text-align:left;width:100%;justify-content:flex-start;display:block !important;outline:none !important}
  .hub-nav .hub-link:last-child{border-bottom:none}
  .mobile-nav-close{display:block;position:absolute;top:16px;right:16px;background:none;border:none;color:rgba(255,255,255,0.6);font-size:1.6rem;cursor:pointer;padding:4px 10px;z-index:9992}
  .mobile-nav-close:hover{color:#fff}
  .header-divider{display:none}
  .brand-right a[href="about.html"],
  .brand-right a[href="hub-form.html"]{color:rgba(255,255,255,0.78) !important}
  .search-trigger{color:rgba(255,255,255,0.78);display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:10px;background:none;border:none;cursor:pointer;}
}


/* Hide mobile wordmark row on desktop — CRITICAL */
.mobile-wm-row { display: none; }

/* ============================================================
   GLOBAL FOOTER — RiseUpToHIV
   ============================================================ */
.site-footer {
  background: var(--chrome-footer);
  font-family: 'DM Sans', sans-serif;
}
.footer-gold-strip {
  height: 3px;
  background: var(--brand-highlight);
  width: 100%;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px clamp(18px,3vw,40px) 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-wordmark {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  text-decoration: none;
}
.footer-ribbon { display: inline-flex; align-items: center; }
.footer-tagline {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}
.footer-bio {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  margin-bottom: 14px;
}
.footer-social {
  display: flex;
  gap: 9px;
  align-items: center;
}
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s, filter 0.2s;
  flex-shrink: 0;
}
.footer-social-icon:hover { transform: translateY(-2px); filter: brightness(1.1); }
.footer-social-icon svg { width: 15px; height: 15px; fill: #fff; }
.footer-social-icon.social-fb { background: #1877f2; }
.footer-social-icon.social-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.footer-col-title {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-bottom: 11px;
}
.footer-link {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.15s;
  line-height: 1.3;
}
.footer-link:hover { color: #fff; }
.footer-link-sub {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  margin-top: 1px;
}
.footer-cta-block { margin-bottom: 16px; }
.footer-cta-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}
.footer-cta-sub {
  font-size: 10.5px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 9px;
  line-height: 1.5;
}
.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 9px 16px;
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
}
.footer-btn-gold { background: var(--brand-highlight); color: var(--brand-highlight-ink); }
.footer-btn-gold:hover { background: var(--brand-highlight-hover); }
.footer-btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(255,255,255,0.25);
  margin-top: 8px;
}
.footer-btn-outline:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 16px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal {
  font-size: 10.5px;
  color: rgba(255,255,255,0.3);
  line-height: 1.7;
}
/* --- promoted anonymous byline (replaces .footer-legal on new pages) --- */
.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 62%;
}
.footer-attribution {
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-attr-ribbon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.footer-disclaimer {
  font-size: 10.5px;
  color: rgba(255,255,255,0.35);
  line-height: 1.65;
}
.footer-disclaimer a {
  color: rgba(255,255,255,0.55);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.25);
}
.footer-disclaimer a:hover { color: rgba(255,255,255,0.85); }
/* --- end promoted byline --- */
.footer-bottom-right { text-align: right; }
.footer-util-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-bottom: 5px;
}
.footer-util-links a {
  font-size: 10.5px;
  color: rgba(255,255,255,0.32);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-util-links a:hover { color: rgba(255,255,255,0.7); }
.footer-copy {
  font-size: 10px;
  color: rgba(255,255,255,0.22);
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .footer-bottom-left { max-width: 100%; }
  .footer-bottom-right { text-align: left; }
  .footer-util-links { justify-content: flex-start; }
}
/* end footer css */

/* end styles.css */


/* === RiseUpToHIV: print + a11y additions === */

/* --- Enforce minimum readable text size (fixes WAVE 'very small text' alerts) --- */
body,p,li,td,th,dd,dt,figcaption,label,input,textarea,select,button {
  font-size: max(1em, 14px);
}
small, .small, .fine-print, .footnote, .caption, .meta {
  font-size: max(0.85em, 13px);
}
sup, sub {
  font-size: max(0.7em, 11px);
}

/* --- Print CSS: clean, readable article printouts --- */
@media print {
  /* Set page margins */
  @page {
    margin: 0.75in;
  }

  /* Hide navigation, footers, and interactive UI */
  header, nav, footer,
  .site-nav, .top-nav, .mobile-nav, .breadcrumbs,
  .medical-notice-strip,
  .share-block, .share-row, .share-modal,
  .language-switcher, .lang-toggle,
  .translate-buttons, .translation-controls,
  .locator-widget, .florida-locator,
  .newsletter-signup, .cta-banner,
  .back-to-top, .print-hide,
  #google_translate_element,
  script, noscript {
    display: none !important;
  }

  /* Reset body for print */
  body {
    color: #000;
    background: #fff;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11pt;
    line-height: 1.5;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  /* Article typography */
  h1 {
    font-size: 20pt;
    margin-top: 0;
    page-break-after: avoid;
  }
  h2 {
    font-size: 15pt;
    page-break-after: avoid;
    margin-top: 1.5em;
  }
  h3 {
    font-size: 13pt;
    page-break-after: avoid;
  }
  h4, h5, h6 {
    font-size: 11pt;
    page-break-after: avoid;
  }
  p, li {
    orphans: 3;
    widows: 3;
  }

  /* Show link URLs after text */
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #444;
    word-break: break-all;
  }
  /* Don't add URL for internal anchors */
  a[href^="#"]:after,
  a[href^="mailto:"]:after,
  a[href^="tel:"]:after {
    content: "";
  }

  /* Keep the medical disclaimer visible + prominent */
  .medical-disclaimer-callout,
  .medical-notice-callout {
    display: block !important;
    border: 2pt solid #666;
    padding: 12pt;
    margin: 12pt 0;
    background: #fafafa !important;
    page-break-inside: avoid;
  }

  /* How-to-cite block: print it, it's a citation aid */
  .how-to-cite,
  .cite-this,
  #cite-this-title,
  #cite-this-title + * {
    display: block !important;
    border-top: 1pt solid #ccc;
    padding-top: 8pt;
    margin-top: 12pt;
    page-break-inside: avoid;
    font-size: 10pt;
  }

  /* References section */
  .references, .sources, #references, #sources {
    page-break-before: auto;
    page-break-inside: auto;
  }
  .references li, .sources li {
    page-break-inside: avoid;
    margin-bottom: 6pt;
  }

  /* Tables */
  table {
    page-break-inside: avoid;
    border-collapse: collapse;
    width: 100%;
  }
  th, td {
    border: 1pt solid #666;
    padding: 4pt 6pt;
  }
  th {
    background: #eee !important;
  }

  /* Images */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* Cards, badges, buttons */
  .card, .med-card, .hub-card {
    border: 1pt solid #999;
    page-break-inside: avoid;
    margin-bottom: 8pt;
    background: #fff !important;
  }
  .badge, .pill, .tag {
    border: 1pt solid #666;
    padding: 1pt 4pt;
    background: transparent !important;
    color: #000 !important;
  }

  /* Footnote markers stay superscript */
  sup {
    font-size: 8pt;
  }
}


/* === hero last-reviewed contrast fix === */
/* Ensures the "Last reviewed" line stays legible when it sits inside any
   dark or colored hero container, without touching the light-context rule. */
.cover-hero .last-reviewed,
.faq-hero .last-reviewed,
.crisis-banner .last-reviewed,
[class*="hero"] .last-reviewed {
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
