/* Isolated homepage invitation and contact groups. No shared header, footer or hero rules. */
#hp-content #tfpm-home-match,
#hp-content #tfpm-home-match * { box-sizing: border-box; min-width: 0; }
#hp-content #tfpm-home-match {
  margin: 0;
  padding: 24px 0 0;
  color: #f7fbff;
  background: #f5f3fa;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#hp-content #tfpm-home-match .tfpm-match-wrap { width: min(1480px, calc(100% - 64px)); margin: 0 auto; }
#hp-content #tfpm-home-match .tfpm-match-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas: "copy art" "action art";
  align-items: center;
  gap: 24px 40px;
  padding: clamp(28px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid #214258;
  border-radius: 24px;
  background: radial-gradient(ellipse at 88% 5%, #2339746b, transparent 62%), radial-gradient(ellipse at 60% 100%, #103e4c66, transparent 55%), #071d2e;
  box-shadow: 0 8px 24px #1428440a;
}
#hp-content #tfpm-home-match .tfpm-match-copy { grid-area: copy; align-self: end; }
#hp-content #tfpm-home-match #tfpm-match-title {
  margin: 0 0 12px !important;
  padding: 0;
  color: #fff !important;
  font-size: clamp(34px, 4.4vw, 64px) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -.045em !important;
  text-transform: none;
}
#hp-content #tfpm-home-match #tfpm-match-title > span { color: #22e2c9 !important; }
#hp-content #tfpm-home-match .tfpm-match-copy > p { margin: 0; color: #bed4e9; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.55; }
#hp-content #tfpm-home-match .tfpm-match-art { grid-area: art; position: relative; width: 100%; aspect-ratio: 2 / 1; isolation: isolate; }
#hp-content #tfpm-home-match .tfpm-match-art > img { display: block; width: 100%; max-width: none; height: auto; margin: 0; padding: 0; border: 0; }
#hp-content #tfpm-home-match .tfpm-match-motion { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
#hp-content #tfpm-home-match .tfpm-ball-live { display: none; }
#hp-content #tfpm-home-match .tfpm-ball-static { display: block; }
#hp-content #tfpm-home-match[data-motion-supported="1"] .tfpm-ball-live { display: block; }
#hp-content #tfpm-home-match[data-motion-supported="1"] .tfpm-ball-static { display: none; }
#hp-content #tfpm-home-match .tfpm-match-cta {
  grid-area: action;
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: start;
  gap: 18px;
  width: min(100%, 360px);
  min-height: 52px;
  margin: 0;
  padding: 14px 20px;
  border: 1px solid #20e2c3;
  border-radius: 13px;
  background: #20e2c3 !important;
  color: #071d2e !important;
  box-shadow: none;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}
#hp-content #tfpm-home-match .tfpm-match-cta:hover { background: #64efd7 !important; border-color: #64efd7; color: #071d2e !important; }
#hp-content #tfpm-home-match .tfpm-match-cta > svg { display: block; width: 22px; height: 22px; flex: 0 0 22px; }
#hp-content #tfpm-home-match .tfpm-motion-toggle {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 10px;
  margin: 0;
  border: 1px solid #9cbdd24d;
  border-radius: 50%;
  background: #0e2b42cc;
  color: #dcebf5;
  box-shadow: none;
  cursor: pointer;
}
#hp-content #tfpm-home-match .tfpm-motion-toggle > svg { width: 20px; height: 20px; display: block; }
#hp-content #tfpm-home-match .tfpm-motion-toggle .tfpm-play-icon,
#hp-content #tfpm-home-match .tfpm-motion-toggle[aria-pressed="true"] .tfpm-pause-icon { display: none; }
#hp-content #tfpm-home-match .tfpm-motion-toggle[aria-pressed="true"] .tfpm-play-icon { display: block; }
#hp-content #tfpm-home-match [hidden] { display: none !important; }
#hp-content #tfpm-home-match :is(a, button):focus-visible { outline: 3px solid #c4abff; outline-offset: 4px; }

/* Existing links stay usable while enhancement loads, with roles rather than personal names. */
#hp-content #cin-contact .tfp-help-phones .tfp-help-person-copy > strong { display: none !important; }
#hp-content #cin-contact .tfpm-phone-groups { display: grid; align-content: start; gap: 14px; }
#hp-content #cin-contact .tfpm-phone-group { margin: 0; padding: 15px 17px 4px; border: 1px solid #e9e1f5; border-radius: 17px; background: #f6f2fd; }
#hp-content #cin-contact .tfpm-phone-group.is-cooperation { border-color: #dceee8; background: #eff9f6; }
#hp-content #cin-contact .tfpm-phone-group > h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 11px !important; padding: 0; color: #172b41 !important; font-size: 17px !important; font-weight: 750; line-height: 1.35; letter-spacing: -.02em; }
#hp-content #cin-contact .tfpm-group-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; color: #7438dd; background: #ede5fc; }
#hp-content #cin-contact .is-cooperation .tfpm-group-icon { background: #dff3ed; color: #087a79; }
#hp-content #cin-contact .tfpm-group-icon > svg { width: 22px; height: 22px; }
#hp-content #cin-contact .tfpm-phone-list { display: grid; list-style: none; margin: 0; padding: 0; }
#hp-content #cin-contact .tfpm-phone-list > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0; padding: 11px 0; border: 0; border-top: 1px solid #ded6ed; }
#hp-content #cin-contact .is-cooperation .tfpm-phone-list > li { border-top-color: #d5e7e0; }
#hp-content #cin-contact .tfpm-phone-number { color: #172b41; font-size: clamp(14px, 3.9vw, 18px); font-weight: 750; line-height: 1.4; font-variant-numeric: tabular-nums; white-space: nowrap; }
#hp-content #cin-contact .tfpm-phone-call { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 12px; border: 1px solid #bd99f1; border-radius: 11px; background: #ffffff59; color: #6f32c8 !important; font-size: 14px; font-weight: 650; line-height: 1.3; text-decoration: none; white-space: nowrap; }
#hp-content #cin-contact .tfpm-phone-call > svg { width: 18px; height: 18px; }
#hp-content #cin-contact .tfpm-phone-call:hover { background: #eee3fc; border-color: #a370e7; }
#hp-content #cin-contact .tfpm-phone-call:focus-visible { outline: 3px solid #9865e4; outline-offset: 3px; }

@media (max-width: 860px) {
  #hp-content #tfpm-home-match .tfpm-match-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "art" "action"; gap: 18px; padding: 26px; }
  #hp-content #tfpm-home-match .tfpm-match-art { width: min(100%, 620px); margin: 0 auto; }
  #hp-content #tfpm-home-match .tfpm-match-cta { width: 100%; }
  #hp-content #cin-contact[data-tfpm-contact="4"] .tfp-help-card { gap: 22px; }
}
@media (max-width: 700px) {
  #hp-content #tfpm-home-match { padding-top: 20px; }
  #hp-content #tfpm-home-match .tfpm-match-wrap { width: calc(100% - 32px); }
  #hp-content #tfpm-home-match .tfpm-match-card { padding: 24px 20px 20px; border-radius: 20px; gap: 16px; }
  #hp-content #tfpm-home-match #tfpm-match-title { font-size: clamp(32px, 9.1vw, 45px) !important; margin-bottom: 10px !important; }
  #hp-content #tfpm-home-match .tfpm-match-copy > p { font-size: 15px; }
  #hp-content #tfpm-home-match .tfpm-match-art { width: calc(100% + 16px); max-width: none; margin-inline: -8px; }
  #hp-content #tfpm-home-match .tfpm-match-cta { min-height: 50px; padding: 12px 16px; font-size: 16px; }
  #hp-content #tfpm-home-match .tfpm-motion-toggle { top: -5px; right: -1px; }
  #hp-content #cin-contact .tfpm-phone-group { padding: 13px 13px 2px; border-radius: 15px; }
  #hp-content #cin-contact .tfpm-phone-group > h3 { font-size: 16px !important; gap: 10px; }
  #hp-content #cin-contact .tfpm-phone-call { gap: 6px; padding-inline: 10px; font-size: 13px; }
}
@media (max-width: 340px) {
  #hp-content #cin-contact .tfpm-phone-group { padding-inline: 10px; }
  #hp-content #cin-contact .tfpm-phone-list > li { gap: 6px; }
  #hp-content #cin-contact .tfpm-phone-call { padding-inline: 8px; font-size: 12px; }
  #hp-content #cin-contact .tfpm-phone-call > svg { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #hp-content #tfpm-home-match .tfpm-ball-live { display: none !important; }
  #hp-content #tfpm-home-match .tfpm-ball-static { display: block !important; }
  #hp-content #tfpm-home-match .tfpm-motion-toggle { display: none !important; }
}
