:root{
  --brand:#00487a;
  --bg:#f5f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --border:rgba(15,23,42,.12);
  --thumbnail-border: rgb(219 230 251);
  --shadow:0 14px 34px rgba(15,23,42,.10);
  --blue-shadow: 0 8px 20px rgba(0, 72, 122, 0.10);
  --subtle-shadow: 0 6px 16px rgba(0, 72, 122, 0.06);
  --radius:18px;
  --max:1180px;

  --ring: 0 0 0 4px rgba(0,72,122,.18);
  --glass: linear-gradient(180deg, rgba(0,72,122,.06), rgba(0,72,122,.02));
}

*{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body{ margin:0; color:var(--text); background:var(--bg); }

#csFoot { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.mtop-3{ margin-top: .75rem !important; }
.mtop-8{ margin-top: 3rem; }

a{ color:var(--brand); text-underline-offset:3px; }
a:hover{ text-decoration:underline; }

.shell{
  max-width:var(--max);
  margin:0 auto;

  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  padding: 16px;
  border-radius: 6px;
}

.shell-intro{
  max-width:var(--max);
  margin:0 auto;

  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  padding: 0 16px 16px 16px;
  border-radius: 6px;
}

/* Accessibility helpers */
.skip-link{
  position:absolute; left:-999px; top:auto;
  width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto;
  padding:10px 12px;
  border-radius:12px;
  background:#fff;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  z-index:9999;
}
.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* =========================
   Layout
   ========================= */
.layout{
  display:grid;
  grid-template-columns: 240px 1fr;
  gap:24px;
  align-items:start;
}

.content{ min-width:0; }

/* =========================
   Sidebar polish
   ========================= */

/* Sticky feels better with a tiny offset and smoother paint */
.side{
  position: sticky;
  top: 16px;
  align-self: start;
  z-index: 10;

  /* optional: reduces layout jitter on scroll */
  will-change: transform;
}

/* Card: featured + slightly stronger presence */
.side-card{
  position: relative;
  background: var(--card);
  border: 1px solid rgba(0,72,122,.22);
  border-radius: 18px;
  padding: 14px;

  box-shadow:
    0 6px 16px rgba(15,23,42,.06),
    0 10px 24px rgba(0,72,122,.08);

  /* subtle “premium” top glow */
  background-image: var(--glass);
  backdrop-filter: saturate(120%);
}

/* Title: TURNED INTO A HEADER STRIP */
.side-title{
  display: flex;
  align-items: center;
  gap: 10px;

  /* pull title to card edges */
  margin: -14px -14px 12px;
  padding: 12px 14px;

  font-weight: 850;
  font-size: 13px;
  letter-spacing: .10em;
  text-transform: uppercase;

  color: #fff;

  background: linear-gradient(
    90deg,
    rgba(0,72,122,.95),
    rgba(0,72,122,.75)
  );

  border-top-left-radius: 18px;
  border-top-right-radius: 18px;

  box-shadow: inset 0 -1px 0 rgba(255,255,255,.18);
}

/* Small accent dot for visual anchor */
.side-title::before{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 0 0 4px rgba(255,255,255,.22);
}

/* Do NOT show the dot on the contact card title */
.side-title--contact::before{
  content: none;
}

/* Mobile select: nicer focus, chevron, consistent sizing */
.topic-select{
  width: 100%;
  padding: 12px 44px 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.14);
  background: #fff;

  font-size: 15px;
  font-weight: 650;
  color: var(--text);

  box-shadow: 0 6px 16px rgba(0,72,122,.06);
  margin: 6px 0 12px;

  /* custom dropdown arrow */
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(15,23,42,.55) 50%),
    linear-gradient(135deg, rgba(15,23,42,.55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 12px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.topic-select:focus{
  outline: none;
  border-color: rgba(0,72,122,.40);
  box-shadow: var(--ring), 0 10px 20px rgba(0,72,122,.08);
}

/* Hide mobile select on desktop */
@media (min-width: 980px){
  .topic-select{ display: none !important; }
}
/* Show on mobile/tablet */
@media (max-width: 979px){
  .topic-select{ display: block; }
}

/* Desktop nav container: cleaner spacing *
.topic-nav{
  display: none;
  margin-top: 4px;
  margin-left: -10px;

  /* list-like stack *
  gap: 0;
}*/
@media (min-width: 980px){
  .topic-nav{ display: grid; }
}

/* =========================
   UPDATED: Nav links (box/list style + dividers)
   ========================= */
.topic-nav a{
  position: relative;
  display: block;
  text-decoration: none;

  padding: 10px 12px 10px 12px;

  /* removes button feel */
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;

  color: rgba(15,23,42,.88);
  font-weight: 650;

  transition: background-color 140ms ease, color 140ms ease;
}

/* Divider between topics */
.topic-nav a:not(:last-child){
  border-bottom: 1px solid rgba(15,23,42,.10);
}

/* Left accent strip (kept, but box/list style) */
.topic-nav a::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  background: transparent;
  transition: background-color 140ms ease;
}

/* Hover/focus: subtle row highlight (no lift/shadow) */
.topic-nav a:hover,
.topic-nav a:focus-visible{
  background: rgba(0,72,122,.06);
  color: var(--brand);
  outline: none;
}
.topic-nav a:hover::before,
.topic-nav a:focus-visible::before{
  background: rgba(0,72,122,.45);
}

/* Active: clear but calm */
.topic-nav a.active{
  background: rgba(0,72,122,.10);
  color: var(--brand);
  font-weight: 750;

  /* make background span full card width */
  margin-right: -6px;

  /* reapply inner spacing */
  padding-right: 2px;
}
.topic-nav a.active::before{
  background: var(--brand);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce){
  .topic-nav a{
    transition: none;
  }
}

/* Mobile layout you already have */
@media (max-width: 900px){
  #panelStage{
    height: auto !important;       /* override inline px height */
    overflow: visible !important;
    transition: none !important;
  }

  #panelStage > section.panel{
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: none !important;
    margin-bottom: 14px !important;
  }

  /* keep only active panel visible (optional) */
  #panelStage > section.panel:not(.is-active){
    display: none !important;
  }
}

/* =========================
   Public intro (above shell)
   ========================= */
.page-intro{
  padding: 12px 0 0;
  font-size: 1.1rem;
}

.page-intro__title{
  margin: 0 -16px 12px; /* ← cancels shell padding */
  padding: 0.3em 16px;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.15;

  background: rgb(91 141 183);
  color: #fff;

  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}

.page-intro__lead{
  margin:0 0 10px;
  color: var(--muted);
  max-width: 100%;
  font-size: 1.15rem;
}

.page-intro__topics{
  margin:0;
  color: var(--muted);
  max-width: 100%;
}

/* Slightly tighter on small screens */
@media (max-width: 520px){
  .page-intro__title{
    font-size: 1.6rem;
    padding: 0.5em 14px;
  }
}

/* =========================
   Top search (above panels)
   ========================= */

.top-search{
  position: relative;

  /* featured container look */
  background: linear-gradient(
    180deg,
    rgba(0,72,122,.06),
    rgba(0,72,122,.06)
  );
  border: 1px solid rgba(0,72,122,.22);
  border-radius: 16px;

  box-shadow:
    0 8px 20px rgba(15,23,42,.08),
    0 12px 28px rgba(0,72,122,.10);

  padding: 14px;
  margin-bottom: 20px;

  display:flex;
  gap:10px;
  align-items:center;
}

/* subtle brand accent bar */
.top-search::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:3px;
}

/* Input: slightly larger + clearer */
.top-search input{
  width:100%;
  padding:13px 14px;
  border-radius:14px;

  border:2px solid rgb(0 71 121);
  background:#fff;

  font-size:1.15rem !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

/* Strong but clean focus */
.top-search input:focus{
  outline: none;
  border-color: rgba(0,72,122,.45);
  box-shadow:
    var(--ring),
    inset 0 1px 0 rgba(255,255,255,.9);
}

/* Clear button = secondary action */
.clear-btn{
  padding:10px 14px;
  border-radius:8px;

  border:1px solid rgba(0,72,122,.25);
  background: rgb(0 72 122);
  color: #fff;

  font-weight:700;
  font-size: 1.1rem !important;
  cursor:pointer;
  white-space:nowrap;
}

.clear-btn:hover{
  background: rgb(0 72 122 / 90%);
}

/* Mobile layout */
@media (max-width: 520px){
  .top-search{
    flex-direction:column;
    align-items:stretch;
    padding:12px;
  }
  .clear-btn{ width:100%; }
}

/* =========================
   Panels
   ========================= */
.panel{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--blue-shadow);
  padding:14px;
}

.panel-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid var(--border);
  padding-bottom:10px;
  margin-bottom:12px;
}
.panel-head h2{
  margin:0 0 6px;
  font-size:20px;
  line-height:1.2;
}
.panel-head p{
  margin:0;
  color:var(--muted);
}

/* Resource grid */
.resource-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
@media (min-width: 760px){
  .resource-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Resource item card */
.item{
  display:grid;
  grid-template-columns: 54px 1fr 96px;
  gap:12px;
  align-items:stretch;
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  background:#fff;
}

.item-icon{
  width:54px; height:54px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-weight:900;
  font-size:12px;
  color:#0b2a44;
  background:rgba(0,72,122,.10);
  border:1px solid rgba(0,72,122,.18);
}

.item-body h3{
  margin:0 0 6px;
  font-size:15px;
  line-height:1.25;
}
.meta{
  margin:0 0 10px;
  color:var(--muted);
  font-size:13px;
}

.links{ display:flex; flex-wrap:wrap; gap:8px; }

.pill{
  text-decoration:none;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(0,72,122,.20);
  background:rgba(0,72,122,.06);
  font-weight:800;
  font-size:13px;
}
.pill:hover{ background:rgba(0,72,122,.10); }

.thumb{
  display:grid;
  place-items:center;
  border-top-left-radius:17px;
  border-top-right-radius:17px;
  border-bottom-left-radius:4px;
  border-bottom-right-radius:4px;
  overflow:hidden;
  border:1px solid var(--thumbnail-border);
  background:rgba(15,23,42,.03);
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

@media (max-width: 520px){
  .item{ grid-template-columns: 54px 1fr; }
  .thumb{ display:none; }
}

/* Videos */
.video-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
@media (min-width: 900px){
  .video-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.video{
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  background:#fff;
}
.video h3{ margin:0 0 10px; font-size:15px; }

.ratio{
  width:100%;
  aspect-ratio: 16/9;
  /*border-radius:14px;*/
  overflow:hidden;
  border:1px solid var(--border);
  background:#000;
}
.ratio iframe,
.ratio video{
  width:100%;
  height:100%;
  border:0;
  display:block;
  border-radius: 0px !important;
}

/* =========================
   To top button (optional)
   ========================= */
.to-top{
  position:fixed;
  right:16px;
  bottom:16px;
  width:48px;
  height:48px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  box-shadow:var(--shadow);
  cursor:pointer;
  display:none;
  font-size:18px;
  font-weight:900;
}
.to-top.show{ display:grid; place-items:center; }

/* ================================
   SINGLE-PANEL VIEW (fixed height + search-friendly)
   ================================ */

#panelStage{
  position: relative !important;
  min-height: 0;
  transition: height 220ms ease; /* optional but nice */
  overflow: hidden;  
  padding-bottom: 3px;  /* tiny buffer so bottom border isn't cut */
  min-height: 0;   
  border-radius: var(--radius);
}

/* Stack panels, but DO NOT use inset:0 (it breaks measuring) */
#panelStage > section.panel{
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;

  /* IMPORTANT: no bottom:0 / no inset:0 */
  width: 100% !important;
  height: auto !important;

  margin-bottom: 0 !important;

  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;

  transform: translateY(6px) !important;
  transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms !important;

  overflow: visible;
  display: flow-root;
}

#panelStage > section.panel > :last-child {
  margin-bottom: 0 !important;
}

/* Active panel fades in */
#panelStage > section.panel.is-active{
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
  transition: opacity 220ms ease, transform 220ms ease, visibility 0s !important;
}

/* Leaving panel fades out */
#panelStage > section.panel.is-leaving{
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(6px) !important;
}

/* Subtle divider between search results */
.search-results li:not(:last-child){
  position: relative;
}

.search-results li:not(:last-child)::after{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:-2px;

  height:1px;
  background:linear-gradient(
    to right,
    transparent,
    rgba(15,23,42,.12),
    transparent
  );
}

/* Search results container stays the same */
.search-results{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:10px 12px;
  margin:0 0 14px;
  max-height:300px;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}

.search-results .summary{
  font-weight:800;
  font-size:14px;
  margin:0 0 10px;
}

/* List layout */
.search-results ul{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:6px;
}

/* List item button = clean row */
.search-results li button{
  width:100%;
  appearance:none;
  background:transparent;
  border:0;

  padding:10px 12px;
  text-align:left;
  font-weight:600;
  font-size:14px;
  color:var(--text);
  cursor:pointer;

  display:flex;
  align-items:center;
  gap:8px;

  transition:
    background-color 160ms ease,
    transform 120ms ease;
}

/* Hover / focus = soft highlight */
.search-results li button:hover,
.search-results li button:focus-visible{
  background:rgba(0,72,122,.08);
  outline:none;
}

/* Active click feedback */
.search-results li button:active{
  transform: translateY(1px);
}

/* Optional: subtle left accent on hover */
.search-results li button::before{
  content:"";
  width:4px;
  height:100%;
  border-radius:4px;
  background:transparent;
  margin-right:6px;
  transition: background-color 160ms ease;
}

.search-results li button:hover::before,
.search-results li button:focus-visible::before{
  background:var(--brand);
}

.search-results ul li{
  margin-left: 0 !important;
}

/* Strong, visible highlight for a clicked search result card */
.item.flash,
.video.flash{
  outline: 3px solid rgba(0,72,122,.45);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(0,72,122,.10), var(--shadow);
  border-radius: 16px;
}

/* Optional: little pulse to make it obvious */
@keyframes flashPulse {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-1px); }
  60%  { transform: translateY(0); }
  100% { transform: translateY(0); }
}
.item.flash,
.video.flash{
  animation: flashPulse 450ms ease;
}

/* Global focus styles (keyboard visible focus) */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(0,72,122,.45);
  outline-offset: 3px;
  border-radius: 10px;
}

/* =========================
   PrEP cards – image-first layout
   ========================= */

.item--feature{
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  transition: transform 120ms ease, box-shadow 160ms ease;
}

.item--feature:hover{
  transform: none;
  box-shadow: 0 16px 30px rgba(15,23,42,.12);
}

/* Full-width image */
.item--feature .thumb{
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ratio iframe, .ratio video {
  border-radius: 0px !important;
}

.item--feature .thumb img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background-color: rgb(240 248 255 / 75%);
}

/* PDF badge (top-right overlay) */
.item-badge{
  position: absolute;
  top: 10px;
  right: 10px;

  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;

  color: #fff;
  background: linear-gradient(
    135deg,
    #0a2a86,
    #00487a
  );

  border-radius: 999px;
  border: 1px solid rgba(0, 72, 122, .45);

  box-shadow:
    0 6px 16px rgba(15,23,42,.22),
    0 0 0 2px rgba(255,255,255,.9);

  pointer-events: none;
}

/*.item-badge{
  position: absolute;
  top: 12px;
  right: -38px;                  /* pulls ribbon out *
  z-index: 5;

  padding: 6px 44px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;

  color: #ffffff;
  background: linear-gradient(
    135deg,
    #0a2a86,
    #00487a
  );

  transform: rotate(45deg);
  transform-origin: center;

  box-shadow:
    0 4px 10px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.18);

  pointer-events: none;          /* purely decorative *
}

/* subtle edge highlight *
.item-badge::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.35),
    rgba(255,255,255,0) 55%
  );
}*/

/* Card body */
.item--feature .item-body{
  padding: 14px;
}

.item--feature h3{
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.25;
}

.item--feature .meta{
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--muted);
}

/* Pills stay consistent */
.item--feature .links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Grid tuning for 1003px */
.resource-grid--prep{
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Mobile */
@media (max-width: 760px){
  .resource-grid--prep{
    grid-template-columns: 1fr;
  }
}

/* DROPDOWN MENU FOR CARDS */
.links--dropdown{
  position: relative;
  display: inline-block;
}

/* Trigger button (better-looking) */
.pill--dropdown{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 34px;
  padding: 10px 50px 10px 16px; /* room for divider + caret */

  border-radius: 10px;
  border: 1px solid rgba(0,72,122,.26);
  background: linear-gradient(180deg, rgba(0,72,122,.10), rgba(0,72,122,.06));

  color: #0b2a44;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: .01em;

  box-shadow:
    0 8px 18px rgba(0,72,122,.10),
    inset 0 1px 0 rgba(255,255,255,.70);

  cursor: pointer;
  user-select: none;
  transition: transform 120ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.pill--dropdown:hover{
  border-color: rgba(0,72,122,.38);
  background: linear-gradient(180deg, rgba(0,72,122,.14), rgba(0,72,122,.08));
  box-shadow:
    0 10px 22px rgba(0,72,122,.14),
    inset 0 1px 0 rgba(255,255,255,.78);
  transform: translateY(-1px);
}

.pill--dropdown:active{
  transform: translateY(0);
  box-shadow:
    0 6px 14px rgba(0,72,122,.12),
    inset 0 1px 0 rgba(255,255,255,.65);
}

/* Strong focus (keyboard) */
.pill--dropdown:focus-visible{
  outline: none;
  border-color: rgba(0,72,122,.50);
  box-shadow: var(--ring), 0 12px 24px rgba(0,72,122,.14);
}

/* Divider (cleaner + more subtle) */
.pill--dropdown::before{
  content:"";
  position:absolute;
  right: 38px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: rgba(15,23,42,.14);
  opacity: .9;
}

/* Caret (crisper + consistent) */
.pill--dropdown::after{
  content:"";
  position:absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);

  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid rgba(11,42,68,.92);

  transition: transform 160ms ease, opacity 160ms ease;
  opacity: .95;
}

.pill--dropdown[aria-expanded="true"]::after{
  transform: translateY(-50%) rotate(180deg);
}

/* Active/open state: looks selected */
.pill--dropdown[aria-expanded="true"]{
  border-color: rgba(0,72,122,.55);
  background: linear-gradient(180deg, rgba(0,72,122,.18), rgba(0,72,122,.10));
  box-shadow:
    0 12px 26px rgba(0,72,122,.18),
    inset 0 1px 0 rgba(255,255,255,.70);
}

.chs-dropdown-menu{
  position: absolute;

  /* OPEN INSIDE CARD: drop-up */
  bottom: calc(100% + 8px);
  right: 0;

  z-index: 50;

  min-width: 200px;
  padding: 6px;
  margin: 0;
  list-style: none;

  background: #ffffff;
  border: 1px solid rgba(0,72,122,.25);
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(15,23,42,.18);

  /* Keep it inside the card */
  max-height: 180px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Popover arrow pointing DOWN to the button */
.chs-dropdown-menu::before{
  content:"";
  position:absolute;
  bottom: -7px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);

  box-shadow: -1px -1px 0 rgba(0,72,122,.12);
}

/* Links */
.chs-dropdown-menu a{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  text-decoration:none;
  font-weight:700;
  color:#0b2a44;
}

.chs-dropdown-menu a:hover,
.chs-dropdown-menu a:focus-visible{
  background: rgba(0,72,122,.08);
  outline:none;
}

.item--feature{
  overflow: hidden; /* keeps dropdown clipped to card edges */
  position: relative; /* good practice for contained overlays */
}

/* Dropdown list container: tighter like topic list */
.chs-dropdown-menu{
  padding: 6px 0; /* so dividers can span cleanly */
}

/* Each row */
.chs-dropdown-menu a{
  position: relative;
  display: block;

  text-decoration: none !important;
  text-underline-offset: 3px;

  padding: 10px 12px 10px 14px;
  border-radius: 0;
  font-weight: 650 !important;
  color: rgba(15,23,42,.88) !important;

  transition: background-color 140ms ease, color 140ms ease;
}

/* Divider between items */
.chs-dropdown-menu li:not(:last-child) a{
  border-bottom: 1px solid rgba(15,23,42,.10);
}

/* Left accent strip (same concept as topic-nav) */
.chs-dropdown-menu a::before{
  content:"";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background-color 140ms ease;
}

/* Hover/focus = subtle row highlight */
.chs-dropdown-menu a:hover,
.chs-dropdown-menu a:focus-visible{
  background: rgba(0,72,122,.06);
  color: var(--brand);
  outline: none;
}

/* Accent strip appears on hover/focus */
.chs-dropdown-menu a:hover::before,
.chs-dropdown-menu a:focus-visible::before{
  background: rgba(0,72,122,.45);
}

/* Optional: make the top/bottom corners match the menu radius */
.chs-dropdown-menu li:first-child a{
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.chs-dropdown-menu li:last-child a{
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce){
  .chs-dropdown-menu a{
    transition: none;
  }
}

.content ul li:not(.chs-dropdown-menu ul li) {
  margin-left: 0px !important;
}

/* Fade animation for the custom dropdown */
.chs-dropdown-menu{
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
  will-change: opacity, transform;
}

/* When open */
.links--dropdown.is-open .chs-dropdown-menu{
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .chs-dropdown-menu{
    transition: none;
    transform: none;
  }
}

/* Make card body a vertical flex layout */
.item--feature .item-body{
  display: flex;
  flex-direction: column;
}

/* Push dropdown container to bottom */
.item--feature .links--dropdown{
  border-top: 1px solid rgba(15,23,42,.08);
  margin-top: 7px;
  display: flex;
  justify-content: center;       /* center horizontally */
  padding-top: 14px;
}

/* Optional: keep button from stretching */
.item--feature .pill--dropdown{
  align-self: center;
}

/* Card layout: image on top, body fills remaining height */
.item--feature{
  display: flex;
  flex-direction: column;
}

/* Let the body grow so we have “space” to push the button down */
.item--feature .item-body{
  flex: 1; 
  display: flex;
  flex-direction: column;
  padding: 6px 14px; 
}

/* Push the dropdown area to the bottom + center it */
.item--feature .links--dropdown{
  margin-top: auto;
  display: flex;
  justify-content: center;  
  padding-top: 12px;
}

/* =========================================================
   doc-select-wrap / .doc-select block
   ========================================================= */
/* Wrapper sits right under the image (no blue background here anymore) */
.doc-select-wrap{
  position: relative;
  margin-top: -22px;            /* closer to image */
  padding: 10px 0px;

  display: flex;
  justify-content: center;
}

/* The SELECT becomes the blue dropdown control */
.doc-select{
  width: 100%;
  max-width: 328px;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #061c60;    /* solid blue dropdown */
  color: #ffffff;              /* white text */

  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.1;

  /* room for divider + caret */
  padding: 12px 54px 12px 14px;

  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;

  border: 1px solid rgba(255,255,255,.28);
  border-bottom: 1px solid rgba(255,255,255,.28); /* explicit default */

  box-shadow: 0 10px 18px rgba(0,0,0,.22);

  cursor: pointer;

  /* remove any default arrow images */
  background-image: none;
}

/* Divider between “view” area and arrow (moved by ~25%) */
.doc-select-wrap::before{
  content:"";
  position: absolute;
  right: 14%;                  /* moved by 25% */
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,.35);
  pointer-events: none;
}

/* Caret (DEFAULT/CLOSED) */
.doc-select-wrap::after{
  content:"";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);

  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid rgba(255,255,255,.95);

  transition: transform 180ms ease;
  pointer-events: none;
}

/* OPEN state (JS toggles .is-open on the wrapper) */
.doc-select-wrap.is-open .doc-select{
  border-bottom: 0 !important;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Rotate caret ONLY when open (JS-controlled) */
.doc-select-wrap.is-open::after{
  transform: translateY(-50%) rotate(180deg);
}

/* Focus styles (keep for accessibility, but DON'T use focus to represent open) */
.doc-select:focus{
  outline: none;
  border-color: rgba(255,255,255,.55);
  box-shadow:
    0 0 0 4px rgba(255,255,255,.18),
    0 12px 22px rgba(0,0,0,.28);
}

/* REMOVE this (it can “stick” because focus often remains after closing) */
/*
.doc-select-wrap:has(.doc-select:focus)::after{
  transform: translateY(-50%) rotate(180deg);
}
*/

/* Attempt to style dropdown options (browser/OS dependent) */
.doc-select option{
  background: #ffffff;     /* option list background */
  color: #061c60;          /* option text */
}

/* style the placeholder option differently */
.doc-select option[disabled]{
  background: #0a2a86;
  color: rgba(255,255,255,.85);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .doc-select-wrap::after{
    transition: none;
  }
}

/* =========================
   PrEP panel header (solid, full width)
   ========================= */

.panel--prep{
  padding: 0; /* allow header to span full width */
}

.panel-head--prep{
  width: 100%;
  margin: 0;

  padding: 22px 24px;
  background-color: #061c60; /* solid blue */

  border-bottom: 1px solid rgba(255,255,255,.18);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

/* Center content while header spans full width */
.panel-head__text{
  max-width: 760px;
  margin: 0 auto; /* centers text inside full-width header */
}

#videos-section .panel-head__text{
  margin: 0;
  max-width: none;
}

/* Eyebrow badge (PDF-style emphasis) */
.panel-eyebrow{
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;

  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;

  color: #061c60;
  background: rgba(255,255,255,.96);

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
}

/* Title */
.panel-head--prep h2{
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  color: #ffffff !important;
}

.panel-head--prep .abbr{
  font-weight: 600;
  color: rgba(255,255,255,.85);
}

/* Lead text */
.panel-head__lead{
  margin: 0;
  max-width: 680px;

  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255,255,255,.92) !important;
}

/* Mobile tightening */
@media (max-width: 760px){
  .panel-head--prep{
    padding: 16px;
  }

  .panel-head__text{
    max-width: 100%;
  }
}

/* =========================
   Back to Top Button
   ========================= */

.go-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 10px;
  border-radius: 999px;

  background: #061c60;
  color: #ffffff;

  font-weight: 800;

  cursor: pointer;
  user-select: none;

  box-shadow:
    0 10px 24px rgba(0,0,0,.22),
    0 0 0 1px rgba(255,255,255,.12);

  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;

  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.go-top:hover{
  background: #0a2a86;
}

/* Icon size */
.go-top .fa{
  font-size: 0.95rem;
}

/* Label */
.go-top-text{
  white-space: nowrap;
}

/* Visible state */
.go-top.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Keyboard focus */
.go-top:focus-visible{
  outline: 3px solid rgba(255,255,255,.55);
  outline-offset: 3px;
}

/* Mobile: icon-only */
@media (max-width: 520px){
  .go-top-text{ display: none; }
  .go-top{
    padding: 12px;
  }
}

/* =========================
   Contact card (separate)
   ========================= */

.side-card--contact{
  margin-top: 14px;

  border: 1px solid rgba(6,28,96,.28);
  box-shadow:
    0 10px 26px rgba(0,0,0,.10),
    0 12px 28px rgba(0,72,122,.12);

  background:
    linear-gradient(180deg, rgba(0,72,122,.08), rgba(255,255,255,1) 46%);
}

/* Contact header */
.side-title--contact{
  background: linear-gradient(90deg, rgba(0,72,122,.95), rgba(0,72,122,.75));
}

/* Ensure the icon dot only appears when you include .side-title__icon */
.side-title__icon{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;

  font-weight: 950;
  font-size: 13px;
  line-height: 1;

  background: rgba(255,255,255,.92);
  color: rgba(6,28,96,.95);

  box-shadow:
    0 4px 10px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.7);
}

/* Org label */
.side-contact__org{
  margin-top: 6px;
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1.25;
  color: rgba(15,23,42,.92);
}

/* Divider */
.side-contact__divider{
  height: 1px;
  margin: 10px 0 12px;
  background: linear-gradient(to right, transparent, rgba(6,28,96,.35), transparent);
}

/* Details wrapper */
.side-contact__details{
  display: grid;
  gap: 2px;
}

/* Make phone the hero */
.side-contact__phone{
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: .01em;
  color: #061c60;
  text-decoration: none !important;

  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.side-contact__phone::before{
  content:"\f095"; /* fa-phone */
  font-family: "FontAwesome";
  font-weight: 900;
  font-size: 1rem;
  opacity: .95;
}

.side-contact__phone:hover,
.side-contact__phone:focus-visible{
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* Hours = secondary */
.side-contact__hours{
  font-size: 1rem;
  font-weight: 650;
  color: rgba(15,23,42,.78);
}

/* Email link */
.side-contact__email{
  font-size: 1rem;
  font-weight: 750;
  color: rgba(15,23,42,.86);
  text-decoration: none !important;

  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.side-contact__email::before{
  content:"\f0e0"; /* fa-envelope */
  font-family: "FontAwesome";
  font-weight: 900;
  font-size: 1rem;
  opacity: .9;
}

.side-contact__email:hover,
.side-contact__email:focus-visible{
  color: #061c60;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* Keep “8 a.m. – 8 p.m.” together on small widths */
.nowrap{ white-space: nowrap; }

/* Keyboard focus for the links */
.side-card--contact a:focus-visible{
  outline: 3px solid rgba(0,72,122,.45);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Strong CTA link for clinic locator */
.side-contact__url{
  width: 100%;
  justify-content: center;
  text-align: center;

  padding: 4px 6px;
  border-radius: 12px;
  line-height: 20px;

  background: linear-gradient(180deg, rgba(0,72,122,.12), rgba(0,72,122,.06));
  border: 1px solid rgba(0,72,122,.30);

  font-weight: 950;
  color: #061c60 !important;
  text-decoration: none !important;

  box-shadow:
    0 10px 22px rgba(0,72,122,.12),
    inset 0 1px 0 rgba(255,255,255,.75);

  transition: transform 120ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

/* Icon bubble + link icon */
.side-contact__url::before{
  font-weight: 900;

  width: 26px;
  height: 26px;
  border-radius: 10px;

  display: inline-grid;
  place-items: center;

  background: rgba(6,28,96,.10);
  border: 1px solid rgba(6,28,96,.18);
  opacity: 1;
}

/* Hover/focus feels clickable */
.side-contact__url:hover{
  background: linear-gradient(180deg, rgba(0,72,122,.16), rgba(0,72,122,.08));
  border-color: rgba(0,72,122,.42);
  box-shadow:
    0 14px 28px rgba(0,72,122,.18),
    inset 0 1px 0 rgba(255,255,255,.82);
  transform: translateY(-1px);
}

.side-contact__url:active{
  transform: translateY(0);
  box-shadow:
    0 8px 18px rgba(0,72,122,.14),
    inset 0 1px 0 rgba(255,255,255,.70);
}

.side-contact__url:focus-visible{
  outline: none;
  box-shadow: var(--ring), 0 14px 28px rgba(0,72,122,.18);
}

/* Keep “8 a.m. – 8 p.m.” together on small widths */
.nowrap{ white-space: nowrap; }

/* Keyboard focus for the links */
.side-card--contact a:focus-visible{
  outline: 3px solid rgba(0,72,122,.45);
  outline-offset: 3px;
  border-radius: 10px;
}

.side-contact__btn:active{
  transform: translateY(0);
  background: linear-gradient(180deg, #09236f, #061c60);
  box-shadow:
    0 10px 22px rgba(6,28,96,.30),
    inset 0 2px 4px rgba(0,0,0,.18);
}

/* remove arrow only for this specific dropdown */
.links--dropdown ul::before{
  content: none !important;
  width: 0px;
  height: 0px;
}

/* 1) Allow grid/flex children to shrink instead of forcing overflow */
.side-card,
.side-contact__details,
.side-contact__details > *{
  min-width: 0;
}

/* 2) Force long URLs/emails/strings to wrap instead of overflow */
.side-card--contact a,
.side-contact__email,
.side-contact__phone{
  max-width: 100%;
  overflow-wrap: anywhere;   /* modern */
  word-break: break-word;    /* fallback */
}

/* 3) If anything still leaks, clip it inside the card */
.side-card--contact{
  overflow: hidden; /* or overflow: clip; if you prefer */
}

/* Smooth reveal when jumping to a search result */
.item.search-reveal,
.video.search-reveal{
  opacity: 0;
  transform: translateY(10px);
}

.item.search-reveal.search-reveal--on,
.video.search-reveal.search-reveal--on{
  opacity: 1;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 260ms ease;
}

.globalNavGreyBlueDiv {
    background-color: #061C60;
    width: 1003px;
    height: 60px !important;
    padding-top: 2px;
    float: left;
    margin-top: -7px;
}

/* Remove only the bottom border while the select is focused (usually while open) */
.doc-select:focus{
  border-bottom: 0 !important;
  border-bottom-left-radius: 0;   /* optional: keeps edge clean when border is gone */
  border-bottom-right-radius: 0;  /* optional */
}