/**
 * M11 Profile Overview styles (iy-po-*) — MODULE-SPECIFIC rules only.
 * Generic building blocks (tokens, card, buttons, chips, status, reveal, …)
 * live in assets/css/iy-components.css — see docs/design-system.md.
 * Ported from docs/plans/2026-07-06-profile-overview-ui.html.
 */


.iy-po-tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 0; /* no bottom margin: chips close flush with the actions column */
}

/* ============ Header: stat ============ */
.iy-po-headstat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 12px;
}
.iy-po-headstat-num {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--iy-po-gold);
  font-variant-numeric: tabular-nums;
}
.iy-po-headstat-lbl {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--iy-po-ink-soft);
}


/* ============ Overview: layout & cards ============ */
.iy-po {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.iy-po > * { min-width: 0; } /* let cards shrink so inner scrollers work */


/* ============ Journey card ============ */
.iy-po-journey-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 18px;
  margin-bottom: -32px; /* rail carries 96px inner headroom for tooltips */
  position: relative;
  z-index: 2; /* a wrapped pill stays above the rail instead of under it */
}
.iy-po-journey-head > div:first-child { flex: 1 1 320px; min-width: 0; } /* text shrinks before the pill wraps */
.iy-po-counter {
  font-size: clamp(44px, 6vw, 62px);
  font-weight: 800;
  line-height: 1;
  color: var(--iy-po-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.iy-po-counter-unit { font-size: 18px; font-weight: 600; color: var(--iy-po-ink-soft); letter-spacing: 0; margin-left: 10px; }
.iy-po-next-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  background: var(--iy-po-gold-soft);
  color: var(--iy-po-gold);
  border-radius: 12px;
  padding: 10px 22px;
  font-size: 14.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .6s ease .2s, transform .6s ease .2s;
}
.iy-po-next-pill.is-show { opacity: 1; transform: none; }
.iy-po-next-pill strong { font-variant-numeric: tabular-nums; }

/* tier rail */
.iy-po-rail-scroll { overflow-x: auto; padding: 8px 4px 4px; scrollbar-width: thin; }
.iy-po-rail { position: relative; min-width: 820px; padding: 96px 0 0; } /* headroom keeps hover tooltips inside the scroll clip */
.iy-po-rail-track {
  position: absolute;
  left: 36px;
  right: 36px;
  top: 128px;
  height: 6px;
  border-radius: 3px;
  background: var(--iy-po-line);
}
.iy-po-rail-fill {
  position: absolute;
  left: 36px;
  top: 128px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--iy-po-teal), var(--iy-po-gold) 78%, var(--iy-po-gold-bright));
  width: 0;
  transition: width 1.7s cubic-bezier(.3, .1, .25, 1);
}
.iy-po-tiers { display: flex; justify-content: space-between; position: relative; }
.iy-po-tier {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
  position: relative;
  cursor: default;
}
.iy-po-coin {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  background: var(--iy-po-card);
  display: grid;
  place-items: center;
  transition: transform .3s cubic-bezier(.34, 1.4, .5, 1), box-shadow .3s ease;
}
.iy-po-coin img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  filter: grayscale(1) opacity(.42);
  transition: filter .5s ease;
}
/* server marks the target states; JS re-plays them as an animation */
.iy-po-tier.is-reached.is-lit .iy-po-coin img,
.iy-po-rail.no-js .iy-po-tier.is-reached .iy-po-coin img { filter: none; }
.iy-po-tier.is-reached.is-lit .iy-po-coin { box-shadow: 0 4px 14px rgba(24, 47, 46, .18); }
.iy-po-tier:hover .iy-po-coin { transform: translateY(-4px); }
.iy-po-tier.is-current .iy-po-coin {
  box-shadow: 0 0 0 3px var(--iy-po-card), 0 0 0 6px var(--iy-po-gold-bright), 0 8px 22px rgba(167, 118, 55, .35);
}
.iy-po-tier.is-current .iy-po-coin::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--iy-po-gold-bright);
  opacity: 0;
  animation: iy-po-pulse 2.6s ease-out 2.2s infinite;
}
@keyframes iy-po-pulse {
  0% { transform: scale(.82); opacity: .7; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
.iy-po-tier-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--iy-po-ink-soft); max-width: 110px; }
.iy-po-tier.is-reached.is-lit .iy-po-tier-name { color: var(--iy-po-ink); }
.iy-po-tier.is-current .iy-po-tier-name { color: var(--iy-po-gold); }
.iy-po-tier-trc { font-size: 12px; color: var(--iy-po-ink-soft); font-variant-numeric: tabular-nums; opacity: .8; }
.iy-po-you {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--iy-po-gold);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 7px;
  padding: 3px 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .5s ease;
}
.iy-po-you.is-show { opacity: 1; }
.iy-po-tip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #22403E;
  color: #F4F7F6;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 3;
}
.iy-po-tip strong { display: block; font-size: 13px; }
.iy-po-tier:hover .iy-po-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.iy-po-tier.is-current .iy-po-tip { display: none; }

/* segment note */
.iy-po-segment-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  background: var(--iy-po-teal-soft);
  border-radius: 16px;
  padding: 16px 22px;
  font-size: 14.5px;
  color: var(--iy-po-ink);
}
.iy-po-segment-note b { font-variant-numeric: tabular-nums; }
.iy-po-segment-mini { flex: 0 0 120px; height: 8px; border-radius: 4px; background: var(--iy-po-line); overflow: hidden; }
.iy-po-segment-mini i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--iy-po-gold), var(--iy-po-gold-bright));
  transition: width 1.2s cubic-bezier(.3, .1, .25, 1) 1.5s;
}

.iy-po-coin-strip { display: flex; gap: 16px; margin: 24px 0 8px; flex-wrap: wrap; }
.iy-po-coin-strip img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  opacity: .92;
  box-shadow: 0 3px 10px rgba(24, 47, 46, .14);
  transition: transform .3s cubic-bezier(.34, 1.4, .5, 1);
}
.iy-po-coin-strip img:hover { transform: translateY(-4px) scale(1.06); }
.iy-po-teaser-copy { margin: 14px 0 22px; max-width: 56ch; color: var(--iy-po-ink-soft); font-size: 15px; }

/* ============ IY steps (vertical mobile, horizontal desktop) ============ */
.iy-po-steps { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.iy-po-step { display: flex; gap: 16px; position: relative; padding-bottom: 26px; }
.iy-po-step:last-child { padding-bottom: 0; }
.iy-po-step::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 2px;
  width: 2px;
  background: var(--iy-po-line);
}
.iy-po-step:last-child::before { display: none; }
.iy-po-step-dot {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  background: var(--iy-po-paper);
  color: var(--iy-po-ink-soft);
  border: 2px solid var(--iy-po-line);
}
.iy-po-step.is-done .iy-po-step-dot { background: var(--iy-po-teal); border-color: var(--iy-po-teal); color: #fff; }
.iy-po-step.is-current .iy-po-step-dot { background: var(--iy-po-gold); border-color: var(--iy-po-gold); color: #fff; box-shadow: 0 0 0 4px var(--iy-po-gold-soft); }
.iy-po-step-body { padding-top: 5px; }
.iy-po-step-name { display: block; font-weight: 600; font-size: 15.5px; color: var(--iy-po-ink); }
.iy-po-step.is-current .iy-po-step-name { color: var(--iy-po-gold); }
.iy-po-step-req { display: block; font-size: 13.5px; color: var(--iy-po-ink-soft); line-height: 1.5; }
@media (min-width: 841px) {
  .iy-po-steps { flex-direction: row; margin-top: 34px; }
  .iy-po-step { flex: 1 1 0; flex-direction: column; gap: 12px; padding: 0 20px 0 0; }
  .iy-po-step::before { left: 48px; right: 12px; top: 17px; bottom: auto; width: auto; height: 2px; }
  .iy-po-step-body { padding-top: 0; }
}
.iy-po-verified {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--iy-po-ink-soft);
}
.iy-po-verified svg { flex: 0 0 auto; color: var(--iy-po-gold); }

/* ============ Recognition / achievements ============ */
.iy-po-recog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.iy-po-earned-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--iy-po-gold-soft);
  color: var(--iy-po-gold);
  border-radius: 12px;
  padding: 8px 20px;
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.iy-po-ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.iy-po-ach-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  background: var(--iy-po-paper);
  border-radius: 16px;
  padding: 24px 14px 20px;
}
.iy-po-medal {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  font-size: 27px;
  color: #fff;
  background: radial-gradient(circle at 34% 28%, #DDB57B, var(--iy-po-gold) 72%);
  border: 3px solid rgba(255, 255, 255, .45);
  box-shadow: 0 6px 16px rgba(167, 118, 55, .35);
  transition: transform .35s cubic-bezier(.34, 1.4, .5, 1), box-shadow .35s ease;
}
/* Medallion with the team's own badge for that achievement or year (ticket 95,
   Mike's badge set 2026-11-09): hexagons, shields and rosettes on a transparent
   512 px square, so no gold ring and no circular crop. The badge carries its own
   metal and relief; only a soft drop shadow is added here. */
.iy-po-medal.has-image {
  width: 92px;
  height: 92px;
  margin-bottom: 6px;
  border-radius: 0;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.iy-po-medal.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(29, 43, 42, .22));
}
.iy-po-ach-tile.is-earned:hover .iy-po-medal { transform: scale(1.08) rotate(-4deg); box-shadow: 0 10px 24px rgba(167, 118, 55, .45); }
.iy-po-ach-tile.is-earned:hover .iy-po-medal.has-image { box-shadow: none; }
.iy-po-ach-tile.is-earned:hover .iy-po-medal.has-image img { filter: drop-shadow(0 10px 16px rgba(29, 43, 42, .28)); }
.iy-po-ach-name { font-weight: 600; font-size: 14.5px; line-height: 1.35; color: var(--iy-po-ink); }
.iy-po-ach-meta { font-size: 12.5px; color: var(--iy-po-ink-soft); }
.iy-po-ach-tile.is-earned .iy-po-ach-meta { color: var(--iy-po-gold); font-weight: 600; }
.iy-po-ach-tile.is-locked .iy-po-medal {
  background: var(--iy-po-card);
  color: var(--iy-po-ink-soft);
  border: 2px dashed var(--iy-po-line);
  box-shadow: none;
}
.iy-po-ach-tile.is-locked .iy-po-medal i { font-size: 22px; }
.iy-po-ach-tile.is-locked { opacity: .62; }
.iy-po-ach-empty { font-size: 14px; color: var(--iy-po-ink-soft); margin: 18px 0 0; }
.iy-po-license-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  background: var(--iy-po-teal-soft);
  border-radius: 16px;
  padding: 16px 20px;
}
.iy-po-license-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4C9A6B;
  box-shadow: 0 0 0 4px rgba(76, 154, 107, .18);
}
/* suspended account (team view only): red instead of green */
.iy-po-license-box--suspended { background: #FBEFED; }
.iy-po-license-box--suspended .iy-po-license-dot { background: #A63D2F; box-shadow: 0 0 0 4px rgba(166, 61, 47, .18); }
.iy-po-license-box--suspended .iy-po-license-sub { color: #A63D2F; font-weight: 600; }
.iy-po-license-name { display: block; font-weight: 600; font-size: 15px; color: var(--iy-po-ink); }
.iy-po-license-sub { display: block; font-size: 13px; color: var(--iy-po-ink-soft); }

/* ============ About ============ */
.iy-po-bio { margin: 14px 0 0; max-width: 64ch; color: var(--iy-po-ink); font-size: 15.5px;
  white-space: pre-line; /* keep the line breaks members type (edit page promises it) */
}

/* ============ Mobile ============ */
@media (max-width: 840px) {
  .iy-po-segment-note { flex-direction: column; align-items: flex-start; gap: 10px; }
  .iy-po-segment-mini { flex: none; width: 100%; }
  .iy-po-ach-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .iy-po-ach-tile { padding: 18px 10px 16px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
    .iy-po-next-pill,
  .iy-po-you,
  .iy-po-rail-fill,
  .iy-po-segment-mini i,
  .iy-po-coin img,
  .iy-po-medal,
  .iy-po-coin { transition: none !important; }
  .iy-po-tier.is-current .iy-po-coin::after { animation: none !important; }
}

/* ================================================================
   Hero — own template (buddypress/members/single/cover-image-header.php).
   Own markup, so no BuddyBoss overrides needed here.
   Desktop ≥1025px: avatar | identity | stat+follow. Below: centered column.
   ================================================================ */
.iy-hero {
  position: relative;
  /* No overflow:hidden: it clipped the "•••" dropdown (report / block).
     The backgrounds follow the radius anyway; ::before inherits it. */
  border-radius: 20px 20px 0 0; /* nav bar docks flush underneath */
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 60px 30px;
  color: #F4F7F6;
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(201, 153, 92, .28), transparent 60%),
    radial-gradient(700px 380px at 12% 120%, rgba(59, 96, 99, .55), transparent 65%),
    linear-gradient(155deg, #22403E, #182F2E 70%);
}
/* fine arc decoration, echoes the leaf mark */
.iy-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 86% 30%, transparent 118px, rgba(255, 255, 255, .05) 119px, rgba(255, 255, 255, .05) 120px, transparent 121px),
    radial-gradient(circle at 86% 30%, transparent 168px, rgba(255, 255, 255, .045) 169px, rgba(255, 255, 255, .045) 170px, transparent 171px),
    radial-gradient(circle at 86% 30%, transparent 218px, rgba(255, 255, 255, .04) 219px, rgba(255, 255, 255, .04) 220px, transparent 221px),
    radial-gradient(circle at 86% 30%, transparent 268px, rgba(255, 255, 255, .035) 269px, rgba(255, 255, 255, .035) 270px, transparent 271px);
}
.iy-hero > * { position: relative; z-index: 1; }
/* The "•••" dropdown opens over the sticky profile nav (z-index 20). */
.iy-hero > .iy-hero-side { z-index: 21; }

/* avatar */
.iy-hero-avatar {
  flex: 0 0 auto;
  position: relative;
}
.iy-hero-avatar img.avatar {
  display: block;
  width: 170px !important;
  height: 170px !important;
  max-width: none !important; /* BB caps img.avatar at 160px → oval */
  object-fit: cover;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(244, 247, 246, .65);
  box-shadow: 0 0 0 3px rgba(201, 153, 92, .22), 0 10px 28px rgba(0, 0, 0, .25);
}
.iy-hero-avatar-edit {
  position: absolute;
  bottom: 6px;
  right: 6px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(24, 47, 46, .85);
  color: #F4F7F6 !important;
  font-size: 15px;
}
.iy-hero-avatar-edit:hover { background: var(--iy-po-gold); }

/* identity */
.iy-hero-main {
  flex: 1 1 auto;
  min-width: 0;
}
.iy-hero-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--iy-po-gold-bright);
  margin-bottom: 2px;
}
.iy-hero-name {
  margin: 0 !important;
  font-size: clamp(30px, 3.2vw, 40px) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: -.01em;
  color: #F4F7F6 !important;
}
.iy-hero-meta {
  margin: 2px 0 0 !important;
  color: #B8CBC9;
  font-size: 15px;
}
.iy-hero-dot { margin: 0 8px; opacity: .55; }
.iy-hero .iy-po-tracks { margin: 12px 0 0; }

/* website + social networks (ticket 39): small icon row under the chips */
/* website + social icons in the About card (ticket 39) */
.iy-po-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.iy-po-links a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--iy-teal-soft, #EAF0EF);
  color: var(--iy-teal, #3B6063) !important;
  transition: background .2s ease, color .2s ease;
}
.iy-po-links a:hover {
  background: var(--iy-teal, #3B6063);
  color: #fff !important;
}
.iy-po-links i { font-size: 15px; line-height: 1; }

/* chips: translucent variant on the dark band */
.iy-hero .iy-po-chip {
  background: rgba(244, 247, 246, .10);
  border-color: rgba(244, 247, 246, .22);
  color: #F4F7F6;
  backdrop-filter: blur(4px);
}
.iy-hero .iy-po-chip small { color: #B8CBC9; }

/* right column: stat + follow, grouped bottom-right */
.iy-hero-side {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 12px;
}
.iy-hero .iy-po-headstat { align-items: flex-end; margin: 0; }
.iy-hero .iy-po-headstat-num { color: var(--iy-po-gold-bright); }
.iy-hero .iy-po-headstat-lbl { color: #B8CBC9; }

/* action buttons: gold follow pill, ghost everything else; no Message (feature removed) */
.iy-hero .member-header-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.iy-hero .member-header-actions .generic-button { margin: 0 !important; }
.iy-hero .member-header-actions .generic-button button,
.iy-hero .member-header-actions .generic-button a {
  border-radius: 100px !important;
  background: transparent !important;
  border: 1.5px solid rgba(244, 247, 246, .4) !important;
  color: #F4F7F6 !important;
  font-weight: 600;
}
.iy-hero .member-header-actions .generic-button button:hover,
.iy-hero .member-header-actions .generic-button a:hover {
  border-color: rgba(244, 247, 246, .8) !important;
}
.iy-hero .member-header-actions .follow-button button {
  background: var(--iy-po-gold) !important;
  border-color: var(--iy-po-gold) !important;
  color: #fff !important;
}
.iy-hero .member-header-actions .follow-button button:hover {
  background: var(--iy-po-gold-bright) !important;
  border-color: var(--iy-po-gold-bright) !important;
}
.iy-hero .member-header-actions .message-button,
.iy-hero .member-header-actions .send-message,
.iy-hero .member-header-actions #send-private-message {
  display: none !important;
}
.iy-hero .bb_more_options { align-self: flex-end; }

/* tablet + phone: single centered column */
@media (max-width: 1024px) {
  .iy-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 48px 24px;
  }
  .iy-hero-main { width: 100%; }
  .iy-hero .iy-po-tracks { justify-content: center; margin-bottom: 2px; }
  .iy-hero-side {
    align-self: auto;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }
  .iy-hero .iy-po-headstat { align-items: center; }
  .iy-hero .member-header-actions { align-items: center; }
}
@media (max-width: 640px) {
  .iy-hero-name { font-size: 26px !important; }
}

/* bb-icon sizing inside our components */
.iy-po-next-pill i { font-size: 15px; line-height: 1; }
.iy-po-owner-note i { font-size: 14px; opacity: .7; }
.iy-po-step-dot i { font-size: 14px; line-height: 1; }
.iy-po-verified i { font-size: 15px; color: var(--iy-po-gold); }
.iy-po-medal i { font-size: 27px; line-height: 1; }

/* ================================================================
   Profile nav — own template (parts/item-nav.php), docks flush under
   the hero. Active tab full opacity, the rest dimmed; hover eases up.
   ================================================================ */
.bp-user .iy-profile-nav {
  position: sticky;
  top: 86px; /* below the sticky site header */
  z-index: 20;
  background: var(--iy-po-card);
  border-radius: 0 0 20px 20px;
  box-shadow: var(--iy-po-shadow);
  padding: 10px 14px;
}
/* Hero + nav read as one card and carry the card shadow (ticket 38). The
   BuddyBoss theme resets nav shadows with
   `.buddypress-wrap.bp-dir-hori-nav:not(.bp-vertical-navs) nav`, which
   outranks the rule above, hence the id. The sticky nav (z-index 20) paints
   over the hero's shadow, so no seam shows between the two. */
.bp-user #buddypress .iy-profile-nav,
.bp-user .iy-hero { box-shadow: var(--iy-po-shadow); }
.bp-user .iy-profile-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bp-user .iy-profile-nav li { margin: 0; }
.bp-user .iy-profile-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--iy-po-ink);
  opacity: .5;
  transition: opacity .25s ease;
}
.bp-user .iy-profile-nav a:hover { opacity: .85; }
.bp-user .iy-profile-nav li.is-active a { opacity: 1; }
.iy-profile-nav-count {
  background: var(--iy-po-gold-soft);
  color: var(--iy-po-gold);
  border-radius: 9px;
  padding: 1px 8px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .bp-user .iy-profile-nav { border-radius: 0 0 16px 16px; padding: 8px 10px; }
  .bp-user .iy-profile-nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none; /* one swipeable row, like the journey rail */
  }
  .bp-user .iy-profile-nav ul::-webkit-scrollbar { display: none; }
  .bp-user .iy-profile-nav a { padding: 8px 12px; font-size: 14px; white-space: nowrap; }
}

/* ================================================================
   Profile shell — every tab's content area breathes like the overview
   (card look + the same gentle reveal, without touching BB internals).
   ================================================================ */
.bp-user #item-body {
  margin-top: 24px;
}
.bp-user #item-body.iy-shell-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .8, .3, 1);
}
.bp-user #item-body.iy-shell-reveal.is-in {
  opacity: 1;
  transform: none;
}


/* Follow + "..." menu in one row at the hero's bottom right (2026-09-16) */
.iy-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.iy-hero-actions .member-header-actions,
.iy-hero-actions .bb_more_options {
  margin: 0;
}

/* Journey card: the link to all levels sits at the far right of the action row (ticket 41). */
.iy-po-card-actions .iy-po-levels-link { margin-left: auto; }
@media (max-width: 640px) {
  .iy-po-card-actions .iy-po-levels-link { margin-left: 0; }
}

/* ================================================================
   Phones (mobile ticket #3, audience 40+): 44px tap targets, reading
   sizes, the active profile tab always in view, notifications usable.
   ================================================================ */
@media (max-width: 640px) {
  /* profile tabs: fade the edge that has more tabs behind it, so the row
     reads as swipeable (classes set by profile-overview.js) */
  .bp-user .iy-profile-nav ul.is-more-end {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  }
  .bp-user .iy-profile-nav ul.is-more-start {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px);
    mask-image: linear-gradient(90deg, transparent, #000 40px);
  }
  .bp-user .iy-profile-nav ul.is-more-start.is-more-end {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  }
  .bp-user .iy-profile-nav a { min-height: 44px; }

  /* hero: edit/follow buttons and the photo shortcut big enough to hit */
  .iy-hero .iy-btn--sm { min-height: 44px; padding-left: 20px; padding-right: 20px; }
  .iy-hero .member-header-actions .generic-button button,
  .iy-hero .member-header-actions .generic-button a { min-height: 44px; }
  .iy-hero-avatar-edit { width: 42px; height: 42px; bottom: 4px; right: 4px; font-size: 17px; }

  /* overview cards */
  .iy-po-links { gap: 10px; }
  .iy-po-links a { width: 44px; height: 44px; }
  .iy-po-links i { font-size: 18px; }
  .iy-po-card-actions .iy-btn--sm { min-height: 44px; }
  .iy-po-ach-meta { font-size: 13.5px; }
  .iy-po-license-sub { font-size: 14px; }
  /* a single tile (e.g. "No achievements yet") takes the full row */
  .iy-po-ach-grid > .iy-po-ach-tile:only-child { grid-column: 1 / -1; }

  /* Notifications (BuddyBoss list): the read/delete icons get their own
     row under the text with 44px targets; the text keeps the full width. */
  .bp-user.notifications #buddypress .notification-list > li .notification-content { flex: 1 1 0; min-width: 0; }
  .bp-user.notifications #buddypress .notification-list > li .actions {
    flex: 0 0 100%;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 2px;
    font-size: 0; /* hides the "|" text between the two icons */
  }
  .bp-user.notifications #buddypress .notification-list > li .actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .bp-user.notifications #buddypress .notification-list > li .actions a:hover { background: var(--iy-teal-soft, #EAF0EF); }
  .bp-user.notifications .notifications-header { row-gap: 12px; }
  .bp-user.notifications .notifications-header .subnav a { min-height: 40px; display: inline-flex; align-items: center; }
  .bp-user.notifications #buddypress select#notification-select,
  .bp-user.notifications #buddypress select#notifications-filter-by { height: 44px; font-size: 15px; }
  .bp-user.notifications #buddypress .bb-sort-by-date { font-size: 14px; }
  .bp-user.notifications #buddypress .notifications-order-actions a { display: inline-flex; align-items: center; min-width: 32px; height: 40px; }
}
