/**
 * Help Videos library. Scoped to .ccd-hv. Uses the existing CA Cloud Desk teal.
 */
.ccd-hv {
  --hv-primary: #25B7A7;
  --hv-deep: #1A9E8F;
  --hv-navy: #083530;
  --hv-text: #3D5250;
  --hv-muted: #616365;
  --hv-ice: #E8F8F6;
  color: var(--hv-text);
  background: linear-gradient(180deg, var(--hv-ice) 0%, #fff 220px);
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}

.ccd-hv-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.ccd-hv h1,
.ccd-hv h2,
.ccd-hv h3 {
  margin: 0;
  color: var(--hv-navy);
  letter-spacing: -0.015em;
}

.ccd-hv-hero {
  padding: 36px 0 8px;
}

.ccd-hv-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--hv-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ccd-hv h1 {
  max-width: 16em;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.2;
  font-weight: 700;
}

.ccd-hv-lead {
  max-width: 40rem;
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--hv-muted);
}

.ccd-hv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ccd-hv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px solid var(--hv-primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
}

.ccd-hv-btn--primary {
  background: var(--hv-primary);
  color: #fff !important;
}

.ccd-hv-btn--primary:hover,
.ccd-hv-btn--primary:focus-visible {
  background: var(--hv-deep);
  border-color: var(--hv-deep);
  color: #fff !important;
}

.ccd-hv-btn--ghost {
  background: #fff;
  color: var(--hv-navy) !important;
}

.ccd-hv-btn--ghost:hover,
.ccd-hv-btn--ghost:focus-visible {
  background: var(--hv-primary);
  color: #fff !important;
}

.ccd-hv-btn:focus-visible,
.ccd-hv-filters button:focus-visible,
.ccd-hv-card__media:focus-visible,
.ccd-hv-watch:focus-visible,
.ccd-hv-related a:focus-visible {
  outline: 2px solid var(--hv-deep);
  outline-offset: 3px;
}

.ccd-hv-library { padding: 28px 0 72px; }
.ccd-hv-helps,
.ccd-hv-flow,
.ccd-hv-related { padding: 0 0 72px; }
.ccd-hv-guide { padding: 0 0 20px; }
.ccd-hv-cta { padding: 0 0 72px; }

.ccd-hv-head { margin-bottom: 16px; max-width: 40rem; }
.ccd-hv-head h2,
.ccd-hv-helps h2,
.ccd-hv-flow h2,
.ccd-hv-related h2 {
  font-size: 1.45rem;
  line-height: 1.25;
}
.ccd-hv-head p {
  margin: 8px 0 0;
  color: var(--hv-muted);
  font-size: 15px;
  line-height: 1.55;
}

.ccd-hv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.ccd-hv-filters button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 183, 167, 0.35);
  background: #fff;
  color: var(--hv-navy);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ccd-hv-filters button.is-on,
.ccd-hv-filters button:hover {
  background: var(--hv-primary);
  border-color: var(--hv-primary);
  color: #fff;
}

.ccd-hv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.ccd-hv-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(37, 183, 167, 0.35);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(26, 158, 143, 0.1);
  overflow: hidden;
}

.ccd-hv-card[hidden] { display: none !important; }

.ccd-hv-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--hv-ice);
  line-height: 0;
}

.ccd-hv-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ccd-hv-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(8, 53, 48, 0.78);
  color: #fff;
  box-shadow: 0 6px 16px rgba(8, 53, 48, 0.25);
}

.ccd-hv-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  padding: 14px 16px 16px;
}

.ccd-hv-card h3 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
  min-height: 2.6em;
}

.ccd-hv-card p {
  margin: 0;
  color: var(--hv-muted);
  font-size: 14px;
  line-height: 1.5;
  min-height: 3em;
}

.ccd-hv-watch {
  margin-top: auto;
  color: var(--hv-deep) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

.ccd-hv-watch::after { content: " →"; }

.ccd-hv-watch:hover,
.ccd-hv-watch:focus-visible { color: var(--hv-navy) !important; }

.ccd-hv-helps h2,
.ccd-hv-flow h2,
.ccd-hv-related h2 { margin-bottom: 16px; }

.ccd-hv-helps__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ccd-hv-helps__grid article {
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(37, 183, 167, 0.22);
  box-shadow: 0 8px 20px rgba(26, 158, 143, 0.08);
}

.ccd-hv-ico {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: var(--hv-ice);
  color: var(--hv-deep);
}

.ccd-hv-ico svg { width: 18px; height: 18px; }

.ccd-hv-helps__grid h3 {
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.ccd-hv-helps__grid p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--hv-muted);
}

.ccd-hv-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}

.ccd-hv-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px 28px 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(37, 183, 167, 0.22);
}

.ccd-hv-steps li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hv-primary);
  font-weight: 700;
}

.ccd-hv-steps span {
  color: var(--hv-primary);
  font-size: 13px;
  font-weight: 700;
}

.ccd-hv-steps strong {
  color: var(--hv-navy);
  font-size: 14px;
  line-height: 1.3;
}

.ccd-hv-related ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ccd-hv-related a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(37, 183, 167, 0.35);
  color: var(--hv-navy) !important;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
}

.ccd-hv-related a:hover,
.ccd-hv-related a:focus-visible {
  background: var(--hv-primary);
  color: #fff !important;
}

.ccd-hv-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--hv-ice);
  border: 1px solid rgba(37, 183, 167, 0.25);
}

.ccd-hv-band h2 { font-size: 1.25rem; line-height: 1.3; }
.ccd-hv-band p { margin: 6px 0 0; color: var(--hv-muted); font-size: 15px; line-height: 1.5; max-width: 40rem; }
.ccd-hv-band .ccd-hv-actions { margin-top: 0; }
.ccd-hv-band--end { margin-top: 16px; }

@media (max-width: 1100px) {
  .ccd-hv-grid,
  .ccd-hv-helps__grid,
  .ccd-hv-related ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .ccd-hv-hero { padding: 28px 0 4px; }
  .ccd-hv-library { padding: 24px 0 48px; }
  .ccd-hv-helps,
  .ccd-hv-flow,
  .ccd-hv-related,
  .ccd-hv-cta { padding-bottom: 48px; }
  .ccd-hv-grid,
  .ccd-hv-helps__grid,
  .ccd-hv-steps,
  .ccd-hv-related ul { grid-template-columns: 1fr; }
  .ccd-hv-steps li { padding-right: 14px; }
  .ccd-hv-steps li:not(:last-child)::after { content: none; }
  .ccd-hv-band,
  .ccd-hv-band--end { flex-direction: column; align-items: flex-start; }
  .ccd-hv-card h3,
  .ccd-hv-card p { min-height: 0; }
}
