/* Team Post Kit marketing, help, contact, and blog pages.
   Kept outside main.css so public-page layout changes do not have to be made in
   the same file as the builder and Schedule Designer workstations. */

.tpk-announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: calc(100% - 2.5rem);
  margin: 0.85rem auto 0;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(var(--primary-rgb), 0.4);
  border-radius: 12px;
  background:
    radial-gradient(120% 180% at 12% 50%, rgba(var(--primary-rgb), 0.32), transparent 60%),
    radial-gradient(120% 180% at 88% 50%, rgba(var(--tpk-accent-rgb), 0.22), transparent 60%),
    rgba(8, 11, 24, 0.85);
  box-shadow: 0 8px 26px -16px rgba(var(--primary-rgb), 0.8);
  color: #eef1ff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tpk-announce-footer {
  margin: 3rem auto 0;
}

.tpk-announce:hover {
  border-color: rgba(var(--primary-rgb), 0.7);
  box-shadow: 0 10px 30px -14px rgba(var(--primary-rgb), 0.95);
}

.tpk-announce-tag {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--primary), var(--tpk-accent));
  color: #06122a;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tpk-announce-text strong {
  color: #fff;
}

.tpk-announce-arrow {
  transition: transform 0.2s ease;
}

.tpk-announce:hover .tpk-announce-arrow {
  transform: translateX(3px);
}

.tpk-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  max-width: 1120px;
  padding-top: 0.75rem;
  text-align: left;
}

.tpk-hero-split .tpk-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tpk-hero-split h1,
.tpk-hero-split p {
  text-align: left;
}

.tpk-hero-split p {
  margin-left: 0;
}

.tpk-hero-split .tpk-hero-actions,
.tpk-hero-split .tpk-trust {
  justify-content: flex-start;
}

.tpk-hero-split .tpk-trust {
  margin-top: 1.5rem;
}

.tpk-hero-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.tpk-hero-card {
  position: absolute;
  width: 230px;
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), 0.4);
  border-radius: 20px;
  background: #0b0f1f;
  box-shadow:
    0 30px 70px -30px rgba(2, 4, 12, 0.95),
    0 0 50px -12px rgba(var(--primary-rgb), 0.55);
}

.tpk-hero-card img {
  display: block;
  width: 100%;
  height: auto;
}

.tpk-hero-card-front {
  z-index: 3;
  border-color: rgba(var(--tpk-accent-rgb), 0.55);
  box-shadow:
    0 36px 80px -30px rgba(2, 4, 12, 0.95),
    0 0 60px -10px rgba(var(--tpk-accent-rgb), 0.6);
  transform: rotate(-3deg);
}

.tpk-hero-card-mid {
  z-index: 2;
  opacity: 0.92;
  transform: translate(72px, -46px) rotate(5deg) scale(0.9);
}

.tpk-hero-card-back {
  z-index: 1;
  opacity: 0.78;
  transform: translate(-78px, 40px) rotate(-9deg) scale(0.82);
}

.tpk-platform-strip {
  max-width: 960px;
  margin: 0.5rem auto 0;
  padding: 1.75rem 1rem 0.5rem;
  text-align: center;
}

.tpk-platform-label {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tpk-platform-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpk-platform-logos li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease, filter 0.2s ease;
}

.tpk-platform-logos svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.tpk-platform-logos li:hover {
  color: var(--text);
  filter: drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.55));
}

.tpk-price-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.tpk-price-mini {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.5rem 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.22s ease;
}

.tpk-price-mini:hover {
  border-color: rgba(var(--primary-rgb), 0.6);
  box-shadow: 0 18px 44px -22px rgba(var(--primary-rgb), 0.7);
  transform: translateY(-3px);
}

.tpk-price-mini.is-highlight {
  border-color: rgba(var(--primary-rgb), 0.85);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(var(--primary-rgb), 0.18), transparent 70%),
    var(--surface);
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.4), 0 22px 55px -24px rgba(var(--primary-rgb), 0.75);
}

.tpk-price-mini-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--primary), var(--tpk-accent));
  color: #06122a;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.tpk-price-mini-name {
  font-size: 1rem;
  font-weight: 700;
}

.tpk-price-mini-amount {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.tpk-price-mini-amount small {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.tpk-price-mini-gens {
  color: var(--text);
  font-size: 0.9rem;
}

.tpk-price-mini-gens strong {
  color: var(--primary-light);
}

.tpk-price-mini-trial {
  color: var(--muted);
  font-size: 0.78rem;
}

.tpk-plan-card.is-highlight {
  box-shadow:
    0 0 0 1px rgba(var(--primary-rgb), 0.55),
    0 24px 60px -26px rgba(var(--primary-rgb), 0.8),
    0 0 50px -18px rgba(var(--tpk-accent-rgb), 0.45);
}

.tpk-help-article {
  max-width: 760px;
}

.tpk-help-head {
  margin-bottom: 2rem;
  text-align: center;
}

.tpk-help-head h1 {
  margin: 1rem 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
}

.tpk-help-lead {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.tpk-help-body h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

.tpk-help-body p {
  color: var(--text);
  line-height: 1.65;
}

.tpk-help-scoring {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.tpk-help-scoring li {
  position: relative;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tpk-help-scoring strong {
  color: var(--primary-light);
}

.tpk-help-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.tpk-contact-page {
  max-width: 720px;
}

.tpk-blog-index {
  max-width: 1040px;
  /* This section stands in for a hero on the blog index — drop the seam line
     and the empty gap the generic .tpk-section top padding leaves under the nav. */
  border-top: none;
  padding-top: 1.25rem;
}

.tpk-blog-hero {
  position: relative;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  padding: 1.5rem 1rem 0;
}
/* Soft glow so the headline sits on something instead of floating. */
.tpk-blog-hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto;
  height: 320px;
  background:
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(circle at 50% 20%, rgba(34, 211, 238, 0.12), transparent 55%);
  pointer-events: none;
  z-index: -1;
}
.tpk-blog-hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 0.85rem;
}
.tpk-blog-hero p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 520px;
}

.tpk-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tpk-blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.22s ease;
}

.tpk-blog-card:hover {
  border-color: rgba(var(--primary-rgb), 0.6);
  box-shadow: 0 22px 50px -26px rgba(var(--primary-rgb), 0.7);
  transform: translateY(-4px);
}

.tpk-blog-card-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0b0f1f;
}

.tpk-blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease;
}

.tpk-blog-card-media--focus-center img {
  object-position: center;
}

.tpk-blog-card-media--focus-bottom img {
  object-position: bottom;
}

.tpk-blog-card-media--wide img {
  object-fit: contain; /* multi-panel heroes must not crop their labels */
}

.tpk-blog-card:hover .tpk-blog-card-media img {
  transform: scale(1.05);
}

.tpk-blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem 1.1rem 1.1rem;
}

.tpk-blog-card-meta {
  display: flex;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.tpk-blog-card-body h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.tpk-blog-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.tpk-blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.tpk-blog-tag {
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 999px;
  background: var(--primary-surface);
  color: var(--primary-light);
  font-size: 0.7rem;
  font-weight: 600;
}

.tpk-blog-empty {
  color: var(--muted);
  text-align: center;
}

.tpk-post {
  max-width: 760px;
}

.tpk-post-head {
  margin-bottom: 1.5rem;
}

.tpk-post-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.tpk-post-back:hover {
  color: var(--text);
}

.tpk-post-head h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
}

.tpk-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.tpk-post-hero {
  overflow: hidden;
  margin: 0 auto 2rem; /* Centered */
  max-width: 320px; /* Significantly smaller */
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 50px -16px rgba(var(--primary-rgb), 0.5);
}

.tpk-post-hero--wide {
  max-width: 650px; /* landscape/multi-panel heroes need most of the column */
}

.tpk-post-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.tpk-post-body {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.75;
}

.tpk-post-body img.inset-left {
  float: left;
  margin: 0.25rem 1.5rem 0.75rem 0;
  max-width: 175px;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tpk-post-body img.inset-right {
  float: right;
  margin: 0.25rem 0 0.75rem 1.5rem;
  max-width: 175px;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tpk-post-body h2 {
  clear: both; /* Prevent floated images overlapping subsequent sections */
  margin: 2rem 0 0.75rem;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.tpk-post-body h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.15rem;
}

.tpk-post-body p {
  margin: 0 0 1.1rem;
}

.tpk-post-body ul,
.tpk-post-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}

.tpk-post-body li {
  margin-bottom: 0.5rem;
}

.tpk-post-body a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tpk-post-body a:hover {
  color: var(--tpk-accent);
}

.tpk-post-body strong {
  color: #fff;
}

.tpk-post-body hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.tpk-post-body::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 480px) {
  .tpk-post-body img.inset-left,
  .tpk-post-body img.inset-right {
    float: none;
    display: block;
    margin: 1rem auto;
    max-width: 180px;
  }
}

.tpk-post-cta {
  margin-top: 2.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 30% 0%, rgba(var(--primary-rgb), 0.22), transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(var(--tpk-accent-rgb), 0.16), transparent 55%),
    var(--panel);
  text-align: center;
}

.tpk-post-cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.tpk-post-cta p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

@media (min-width: 861px) {
  .tpk-price-mini-gens,
  .tpk-price-mini-trial {
    white-space: nowrap;
  }
}

@media (max-width: 860px) {
  .tpk-hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tpk-hero-split .tpk-hero-copy {
    align-items: center;
  }

  .tpk-hero-split h1,
  .tpk-hero-split p {
    text-align: center;
  }

  .tpk-hero-split .tpk-hero-actions,
  .tpk-hero-split .tpk-trust {
    justify-content: center;
  }

  .tpk-hero-showcase {
    order: -1;
    min-height: 320px;
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .tpk-hero-card {
    width: 190px;
  }

  .tpk-price-mini-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
}

@media (max-width: 520px) {
  .tpk-announce {
    width: calc(100% - 1.5rem);
    font-size: 0.78rem;
  }

  .tpk-announce-text {
    line-height: 1.25;
  }

  .tpk-platform-logos {
    gap: 1rem 1.5rem;
  }

  .tpk-platform-logos li span {
    display: none;
  }

  .tpk-platform-logos svg {
    width: 26px;
    height: 26px;
  }

  .tpk-hero-card {
    width: 160px;
  }

  .tpk-hero-showcase {
    min-height: 280px;
  }
}

/* =============================================================================
   Player of the Game campaign page
   ============================================================================= */
.tpk-pog-main {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 3rem) 0 clamp(2.5rem, 7vw, 5rem);
}

.tpk-pog-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tpk-pog-intro {
  max-width: 760px;
}

.tpk-pog-intro .tpk-pill {
  margin-bottom: 1.15rem;
}

.tpk-pog-intro h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.35rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.tpk-pog-title-line,
.tpk-pog-title-accent {
  display: block;
}

.tpk-pog-intro p {
  max-width: 660px;
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.65;
}

.tpk-pog-proof {
  width: min(100%, 390px);
  margin: 1.6rem auto 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.62);
  border-radius: 12px;
  background: #080d13;
  box-shadow:
    0 28px 70px -36px rgba(0, 0, 0, 0.95),
    0 0 44px -24px rgba(56, 189, 248, 0.7);
}

.tpk-pog-proof img {
  display: block;
  width: 100%;
  height: auto;
}

.tpk-pog-proof figcaption {
  padding: 0.7rem 0.85rem 0.75rem;
  border-top: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
}

.tpk-pog-primary-cta {
  width: min(100%, 320px);
  min-height: 50px;
  justify-content: center;
}

.tpk-pog-cta-note {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.tpk-pog-workflow {
  margin-top: clamp(2.5rem, 7vw, 4.75rem);
}

.tpk-pog-workflow .tpk-section-head {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.tpk-pog-eyebrow {
  display: block;
  margin: 0 0 0.55rem;
  color: #67e8f9;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tpk-pog-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.tpk-pog-step {
  min-width: 0;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(56, 189, 248, 0.075), transparent 58%),
    var(--surface);
}

.tpk-pog-step-icon {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(56, 189, 248, 0.62);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.11);
  color: #67e8f9;
}

.tpk-pog-step-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.tpk-pog-step-body {
  min-width: 0;
}

.tpk-pog-step-label {
  display: block;
  margin-bottom: 0.3rem;
  color: #67e8f9;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tpk-pog-step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.tpk-pog-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.tpk-pog-close {
  max-width: 760px;
  margin: clamp(2.5rem, 7vw, 4.25rem) auto 0;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 12px;
  background:
    radial-gradient(100% 130% at 50% 0%, rgba(56, 189, 248, 0.12), transparent 64%),
    var(--surface);
  text-align: center;
}

.tpk-pog-close h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 1.08;
  text-wrap: balance;
}

.tpk-pog-close > p:not(.tpk-pog-close-kicker) {
  max-width: 580px;
  margin: 0.9rem auto 1.35rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 720px) {
  .tpk-pog-main {
    padding: 1rem 1rem 3rem;
  }

  .tpk-pog-intro h1 {
    font-size: 2rem;
    line-height: 1.04;
    letter-spacing: -0.03em;
  }

  .tpk-pog-intro p {
    margin-top: 0.9rem;
    font-size: 1rem;
    line-height: 1.5;
  }

  .tpk-pog-proof {
    width: min(100%, 312px);
    margin: 1.2rem auto 1rem;
  }

  .tpk-pog-workflow {
    margin-top: 2.5rem;
  }

  .tpk-pog-workflow .tpk-section-head {
    margin-bottom: 1rem;
    text-align: left;
  }

  .tpk-pog-workflow .tpk-section-head h2 {
    font-size: 1.65rem;
  }

  .tpk-pog-workflow .tpk-section-head p {
    font-size: 0.92rem;
  }

  .tpk-pog-steps {
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
  }

  .tpk-pog-step {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    column-gap: 0.85rem;
    align-items: start;
    padding: 1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .tpk-pog-step + .tpk-pog-step {
    border-top: 1px solid var(--border);
  }

  .tpk-pog-step-icon {
    margin: 0;
  }

  .tpk-pog-step-body {
    grid-column: 2;
  }

  .tpk-pog-step h3 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
  }

  .tpk-pog-step p {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .tpk-pog-close {
    margin-top: 2.5rem;
    padding: 1.35rem 1rem;
  }

  .tpk-pog-close h2 {
    font-size: 1.6rem;
  }

  .tpk-pog-close > p:not(.tpk-pog-close-kicker) {
    margin: 0.65rem auto 1rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  .tpk-pog-primary-cta,
  .tpk-pog-close .btn-solid {
    width: min(100%, 320px);
  }
}

/* --- Public SEO layout/sport pages (templates/tpk/seo_layout_*.html) ------- */
.tpk-seo-main {
  width: min(1080px, 100% - 2.5rem);
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}
.tpk-seo-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 1.25rem;
}
.tpk-seo-breadcrumbs a { color: inherit; text-decoration: none; }
.tpk-seo-breadcrumbs a:hover { color: var(--primary-light); text-decoration: none; }
.tpk-seo-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-areas: "heading image" "copy image";
  column-gap: 2rem;
  row-gap: 0.75rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.tpk-seo-hero-heading { grid-area: heading; align-self: end; }
.tpk-seo-hero-heading h1 { margin: 0; }
.tpk-seo-hero-example { grid-area: image; }
.tpk-seo-hero-copy { grid-area: copy; }
.tpk-seo-intro { font-size: 1.05rem; line-height: 1.6; margin-bottom: 1rem; }
.tpk-seo-tier { margin-bottom: 1.25rem; opacity: 0.9; }
.tpk-seo-hero-example img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.tpk-seo-hero-example figcaption {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 0.5rem;
  text-align: center;
}
.tpk-seo-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.tpk-seo-body h2 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--primary-light);
  margin-bottom: 0.45rem;
}
.tpk-seo-body p { line-height: 1.6; opacity: 0.92; }
.tpk-seo-how-card { opacity: 0.95; }
/* Horizontal snap lane: version cards scroll sideways instead of wrapping
   into a mostly-empty final row when the count doesn't fill the grid. */
.tpk-seo-recipe-grid {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
}
.tpk-seo-recipe-grid > * {
  flex: 0 0 clamp(180px, 24vw, 230px);
  scroll-snap-align: start;
}
.tpk-seo-recipe-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.tpk-seo-recipe-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0.65rem 0 0.25rem;
}
.tpk-seo-recipe-card p {
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.62);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tpk-seo-faq { margin-bottom: 2.5rem; }
.tpk-seo-faq-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.6rem;
}
.tpk-seo-faq-item summary { cursor: pointer; }
.tpk-seo-faq-item summary h3 { display: inline; font-size: 1rem; }
.tpk-seo-faq-item p { margin-top: 0.6rem; line-height: 1.55; opacity: 0.9; }
.tpk-seo-links { margin-bottom: 2rem; }
.tpk-seo-links h2 {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--primary-light);
  margin-bottom: 0.65rem;
}
.tpk-seo-links ul {
  list-style: none;
  padding-inline-start: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
/* Chip links use a sky-cyan accent (distinct from the indigo --primary used
   on buttons/badges) so link chips read as navigation, not CTAs. Active state
   by default, quiets on hover per owner preference. */
.tpk-seo-links a {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1px solid #38bdf8;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.13);
  color: #7dd3fc;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease;
}
/* Hover escalates: shifts to the indigo brand color and doubles the border
   (via inset shadow, so the chip never reflows). */
.tpk-seo-links a:hover {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
  background: rgba(var(--primary-rgb), 0.16);
  color: var(--primary-light);
  text-decoration: none;
}
.tpk-seo-cta-band {
  text-align: center;
  padding: 2.25rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}
.tpk-seo-cta-band p { margin: 0.4rem 0 1.1rem; opacity: 0.85; }
.tpk-seo-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.tpk-seo-index-card {
  display: block;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 0.75rem;
}
.tpk-seo-index-card img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 4; object-fit: cover; }
.tpk-seo-index-card h2 {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0.6rem 0.75rem 0.25rem;
  line-height: 1.25;
}
.tpk-seo-index-card p {
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.62);
  margin: 0 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 480px) {
  .tpk-seo-index-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}
@media (max-width: 760px) {
  .tpk-seo-main { padding-top: 0.9rem; }
  .tpk-seo-breadcrumbs { margin-bottom: 0.75rem; font-size: 0.78rem; }
  .tpk-seo-hero {
    grid-template-columns: 1fr;
    grid-template-areas: "heading" "image" "copy";
    row-gap: 0.6rem;
    margin-bottom: 1.75rem;
  }
  .tpk-seo-hero-heading h1 { font-size: 1.5rem; line-height: 1.25; }
  .tpk-seo-hero-example { max-width: 300px; margin: 0 auto; }
  .tpk-seo-intro { font-size: 0.95rem; margin-bottom: 0.6rem; }
  .tpk-seo-tier { margin-bottom: 0.75rem; font-size: 0.85rem; }
  .tpk-seo-body { margin-bottom: 1.75rem; gap: 1.1rem; }
}
.tpk-seo-proof {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}
.tpk-seo-proof-copy p { line-height: 1.6; opacity: 0.92; margin-bottom: 0.9rem; }
.tpk-seo-proof-note { font-size: 0.88rem; opacity: 0.75; }
@media (max-width: 760px) {
  .tpk-seo-proof { grid-template-columns: 1fr; padding: 1.25rem; }
}

/* Shared before/after wipe (partials/before_after_compare.html). The reveal
   percentage lives in --tpk-reveal, driven by the range input / drag / idle
   sweep. The BEFORE layer (and its label) is clipped to the left of the
   divider, so each label can only appear over the image it names. */
.tpk-compare { width: min(380px, 100%); margin: 0 auto; --tpk-reveal: 50%; }
.tpk-compare-stage {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  aspect-ratio: 3 / 4;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.tpk-compare-layer {
  position: absolute;
  inset: 0;
}
.tpk-compare-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tpk-compare-layer.is-before {
  clip-path: inset(0 calc(100% - var(--tpk-reveal)) 0 0);
}
.tpk-compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--tpk-reveal);
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}
.tpk-compare-handle::after {
  content: "\2194";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10, 18, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
.tpk-compare-tag {
  position: absolute;
  top: 0.6rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(7, 12, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.tpk-compare-tag.is-before { left: 0.6rem; }
.tpk-compare-tag.is-after { right: 0.6rem; }
.tpk-compare-range { width: 100%; margin-top: 0.75rem; accent-color: #6366f1; }
.tpk-compare figcaption {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 0.5rem;
  text-align: center;
}
.tpk-compare-fallback { text-align: center; }
.tpk-compare-fallback img { width: min(380px, 100%); height: auto; border-radius: 14px; }
.tpk-seo-recipe-card { display: block; color: inherit; border-radius: 12px; text-decoration: none; }
.tpk-seo-recipe-card:hover img { transform: scale(1.02); }
.tpk-seo-recipe-card:hover h3 { color: var(--primary-light); }
.tpk-seo-recipe-card:hover img { box-shadow: 0 8px 28px rgba(var(--primary-rgb), 0.22); }
.tpk-seo-recipe-card img { transition: transform 0.15s ease; }

/* Inline links inside SEO prose: brand teal instead of default underlined blue. */
/* Inline prose links: weight + color carry the affordance, never a static
   underline (that's the dated look). Hover slides a thin accent rule in from
   the left instead. */
.tpk-seo-proof-copy a,
.tpk-seo-faq-item p a,
.tpk-compare figcaption a {
  position: relative;
  color: #7dd3fc;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.tpk-seo-proof-copy a::after,
.tpk-seo-faq-item p a::after,
.tpk-compare figcaption a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.tpk-seo-proof-copy a:hover,
.tpk-seo-faq-item p a:hover,
.tpk-compare figcaption a:hover { color: #bae6fd; }
.tpk-seo-proof-copy a:hover::after,
.tpk-seo-faq-item p a:hover::after,
.tpk-compare figcaption a:hover::after { transform: scaleX(1); }
/* Accent details: open FAQ card and the plan line pick up the brand color. */
.tpk-seo-faq-item[open] { border-color: rgba(var(--primary-rgb), 0.35); }
.tpk-seo-tier strong { color: var(--primary-light); }
.tpk-seo-index-card:hover { border-color: rgba(var(--primary-rgb), 0.45); }
.tpk-seo-index-card:hover h2 { color: var(--primary-light); }

/* Standalone arrow link: the modern alternative to an underlined inline link.
   Arrow nudges right on hover. */
.tpk-seo-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
  color: #7dd3fc;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.15s ease;
}
.tpk-seo-arrow-link span {
  transition: transform 0.18s ease;
}
.tpk-seo-arrow-link:hover { color: #bae6fd; text-decoration: none; }
.tpk-seo-arrow-link:hover span { transform: translateX(3px); }

/* --- Blog-derived sections: cadence (index), step-by-step + read-more ------ */
.tpk-seo-cadence { margin-bottom: 2.5rem; }
.tpk-seo-cadence-list {
  list-style: none;
  padding-inline-start: 0;
  counter-reset: cadence;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}
.tpk-seo-cadence-list li {
  counter-increment: cadence;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid #38bdf8;
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.tpk-seo-cadence-when {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7dd3fc;
  margin-bottom: 0.3rem;
}
.tpk-seo-cadence-list a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 650;
}
.tpk-seo-cadence-list li:hover { border-color: rgba(var(--primary-rgb), 0.5); }
.tpk-seo-cadence-list li:hover a { color: var(--primary-light); }

.tpk-seo-steps-section { margin-bottom: 2.5rem; }
.tpk-seo-steps-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.tpk-seo-steps-list {
  list-style: none;
  padding-inline-start: 0;
  counter-reset: gcstep;
  display: grid;
  gap: 1rem;
}
.tpk-seo-steps-list li {
  counter-increment: gcstep;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
}
.tpk-seo-steps-list li::before {
  content: counter(gcstep);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.16);
  border: 1px solid rgba(var(--primary-rgb), 0.5);
  color: var(--primary-light);
  font-weight: 800;
  font-size: 0.85rem;
}
/* The number badge is the li's ::before, so it claims column 1. Both the
   heading and body must be pinned to column 2 explicitly — otherwise the
   paragraph wraps onto the next row inside the 2rem badge column. */
.tpk-seo-steps-list h3,
.tpk-seo-steps-list p { grid-column: 2; }
.tpk-seo-steps-list h3 { font-size: 0.98rem; font-weight: 800; margin-bottom: 0.2rem; }
.tpk-seo-steps-list p { font-size: 0.9rem; line-height: 1.5; color: rgba(226, 232, 240, 0.72); }
.tpk-seo-steps-figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
@media (max-width: 760px) {
  .tpk-seo-steps-wrap { grid-template-columns: 1fr; }
  .tpk-seo-steps-figure { max-width: 380px; margin: 0 auto; }
}

.tpk-seo-readmore { margin-bottom: 2.5rem; }
.tpk-seo-readmore-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--primary-light);
  margin-bottom: 0.6rem;
}
.tpk-seo-readmore-card {
  display: block;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.06);
  padding: 1.1rem 1.25rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.tpk-seo-readmore-card:hover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.12);
  text-decoration: none;
}
.tpk-seo-readmore-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.3rem; }
.tpk-seo-readmore-card p { font-size: 0.88rem; color: rgba(226, 232, 240, 0.72); line-height: 1.5; }
.tpk-seo-readmore-meta {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: #7dd3fc;
}

/* Footer Instagram follow link. */
.tpk-footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0 0.6rem;
  /* Colour is inherited from the footer's own link styles (which win on
     specificity) and reads correctly there — don't restate it here. */
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
.tpk-footer-social:hover { color: var(--primary-light); text-decoration: none; }

@media (max-width: 760px) {
  .tpk-seo-body { gap: 0.75rem; }
  .tpk-seo-body article {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    padding: 0.9rem 1rem;
  }
  .tpk-seo-body p { font-size: 0.95rem; line-height: 1.5; }
  .tpk-seo-body h2 { margin-bottom: 0.3rem; }
  /* Keep the hero CTA comfortably inside the first screen. */
  .tpk-seo-hero-example img { max-width: 250px; }
  .tpk-seo-hero-example figcaption { font-size: 0.75rem; }
  .tpk-seo-intro { font-size: 0.98rem; line-height: 1.5; }
}

.tpk-seo-how-card { grid-column: 1 / -1; }
@media (min-width: 761px) {
  .tpk-seo-how-card {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
  }
  .tpk-seo-how-card p { max-width: 70ch; }
}

/* Instagram badge in the platform strip doubles as a follow link. */
.tpk-platform-logos .tpk-platform-link {
  display: inline-flex;
  align-items: center;
  gap: inherit;
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.tpk-platform-logos .tpk-platform-link:hover {
  color: #7dd3fc;
  opacity: 1;
  text-decoration: none;
}
