/* Compete: styles for this tool's ad cards and summary cards only. Everything else is shared
   (../_core). Colours and fonts come from ../_core/brand/theme.css. */

/* ---- Ad slideshow: one card per format, one ad per slide */
.ad-show { display: grid; gap: 12px; padding-bottom: 12px; }
.ad-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none; border-radius: var(--radius-sm);
}
.ad-track::-webkit-scrollbar { display: none; }
.ad-track:focus-visible { outline: 3px solid var(--mf-focus); outline-offset: 3px; }
.ad-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; display: grid; gap: 10px; align-content: start; }
.ad-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ad-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--mf-surface); }
.ad-who { display: grid; min-width: 0; }
.ad-who strong { font-size: 16px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-who span { font-size: 13px; color: var(--mf-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-stage {
  height: 360px; display: grid; place-items: center; overflow: hidden;
  background: var(--mf-surface); border-radius: var(--radius-sm);
}
.ad-media { display: block; width: 100%; height: 100%; object-fit: contain; }
/* A video slide: its poster with a play button; the film plays in the modal player below. */
.ad-play {
  position: relative; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--mf-ink); border-radius: var(--radius-sm); overflow: hidden;
}
.ad-play .ad-media { position: absolute; inset: 0; }
.ad-play-icon {
  position: relative; width: 68px; height: 68px; border-radius: 50%; background: var(--mf-green);
  box-shadow: 0 6px 20px rgba(7, 14, 13, 0.35); transition: transform .15s ease, background .15s ease;
}
.ad-play-icon::after {
  content: ''; position: absolute; left: 27px; top: 21px;
  border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--mf-white);
}
.ad-play:hover .ad-play-icon { transform: scale(1.06); background: var(--mf-green-hover); }
.ad-play:focus-visible { outline: 3px solid var(--mf-focus); outline-offset: 3px; }

/* ---- Video player (modal) */
html.vp-open { overflow: hidden; }
.vp {
  width: min(920px, 100vw); max-width: 100vw; max-height: 100dvh; margin: auto; padding: 0;
  border: 0; background: transparent; color: var(--mf-white); overflow: visible;
}
.vp::backdrop { background: rgba(7, 14, 13, 0.94); }
.vp-box { display: grid; gap: 10px; padding: 12px; }
.vp-top { display: flex; align-items: center; gap: 12px; }
.vp-who { margin: 0; flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-count { font-size: 14px; color: rgba(255, 255, 255, 0.75); white-space: nowrap; }
.vp-close, .vp-arrow {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; padding: 0 0 3px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.08); color: var(--mf-white);
  font-size: 28px; line-height: 1; display: grid; place-items: center;
}
.vp-close:hover, .vp-arrow:hover:not(:disabled) { background: rgba(255, 255, 255, 0.2); }
.vp-arrow:disabled { opacity: 0.3; cursor: default; }
.vp-close:focus-visible, .vp-arrow:focus-visible { outline: 3px solid var(--mf-lime); outline-offset: 2px; }
.vp-stage { display: grid; place-items: center; background: var(--mf-ink); border-radius: var(--radius-sm); overflow: hidden; }
.vp-video { display: block; width: 100%; max-height: calc(100dvh - 210px); background: var(--mf-ink); }
.vp-gone { display: grid; gap: 8px; justify-items: center; padding: 40px 18px; text-align: center; }
.vp-gone p { margin: 0; color: rgba(255, 255, 255, 0.8); }
.vp-gone a { color: var(--mf-lime); font-weight: 700; }
.vp-why { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--mf-lime-tint); color: var(--mf-ink); font-size: 15.5px; line-height: 1.45; }
.vp-nav { display: flex; justify-content: center; gap: 14px; }
.ad-gone { display: grid; gap: 8px; justify-items: center; padding: 18px; text-align: center; }
.ad-gone p { margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--mf-muted); }
.ad-gone a { font-size: 14.5px; font-weight: 700; color: var(--mf-green); }
.ad-why { padding: 10px 12px; background: var(--mf-lime-tint); border-radius: var(--radius-sm); }
.ad-why p { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--mf-ink); }
.ad-why .ad-why-label {
  margin-bottom: 3px; font-family: var(--font-subtitle); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--mf-green-deep);
}
.ad-nav { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; }
.ad-arrow {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--mf-border); cursor: pointer;
  background: var(--mf-white); color: var(--mf-green); font-size: 24px; line-height: 1; padding: 0 0 3px;
  display: grid; place-items: center;
}
.ad-arrow:hover:not(:disabled) { border-color: var(--mf-green); background: var(--mf-green-tint); }
.ad-arrow:disabled { color: var(--mf-border); cursor: default; }
.ad-nav .ad-arrow:last-child { grid-column: 4; }
.ad-nav .ad-arrow:first-child { grid-column: 1; }
.ad-dots { display: flex; justify-content: center; gap: 7px; grid-column: 2; }
.ad-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--mf-border); cursor: pointer; }
.ad-dot[aria-current="true"] { background: var(--mf-green); width: 22px; border-radius: var(--radius-pill); }
.ad-count { grid-column: 3; font-size: 13.5px; font-weight: 700; color: var(--mf-muted); white-space: nowrap; }
@media (max-width: 480px) { .ad-stage { height: 300px; } }

/* ---- Hook cards: laid out like the concept cards in ../ad-concepts */
.hk-card { border-top: 4px solid var(--mf-green); }
.hk-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.hk-badge { font-family: var(--font-subtitle); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mf-green); }
.hk-used { font-size: 14px; color: var(--mf-muted); }
.hk-name { margin: 6px 0 8px; font-family: var(--font-title); font-weight: 900; font-size: 22px; line-height: 1.15; }
.hk-type { background: var(--mf-lime); color: var(--mf-ink); }
.hk-how { margin: 12px 0 0; font-size: 16px; line-height: 1.45; }
.hk-why { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--mf-lime-tint); font-size: 16px; line-height: 1.45; }
.hk-section { margin: 14px 0 8px; font-family: var(--font-subtitle); font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mf-muted); }
.hk-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hk-line { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--mf-border); border-radius: var(--radius-sm); }
.hk-num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--mf-green); color: var(--mf-white); font-family: var(--font-subtitle); font-size: 13px; font-weight: 700; }
.hk-text { font-size: 18px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.hk-by { margin-top: 4px; font-size: 14px; color: var(--mf-muted); }
.hk-actions { margin-top: 14px; display: flex; justify-content: flex-end; }

/* ---- Hooks, creative direction, strategy */
.cp-card { display: grid; gap: 10px; }
.cp-card p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.cp-card .card-title { font-size: 19px; }
.cp-note { color: var(--mf-muted); font-size: 14.5px !important; }
.cp-hooks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: cp; }
.cp-hooks li {
  counter-increment: cp; position: relative; padding-left: 38px; display: grid; gap: 4px;
}
.cp-hooks li::before {
  content: counter(cp); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 13.5px;
  background: var(--mf-green); color: var(--mf-white);
}
.cp-hook-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cp-hook-name strong { font-size: 16.5px; }
.cp-quote { color: var(--mf-muted); font-style: italic; }
.cp-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15.5px; line-height: 1.5; }
.cp-label {
  font-family: var(--font-subtitle); font-weight: 700; font-size: 12.5px !important; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--mf-green); margin-top: 4px !important;
}
.cp-lead { font-weight: 700; font-size: 16.5px !important; }
.cp-first { padding: 10px 12px; background: var(--mf-lime-tint); border-radius: var(--radius-sm); }
