:root {
  --pk-ink: #0c1726;
  --pk-muted: #526579;
  --pk-line: #d8e4ef;
  --pk-panel: #ffffff;
  --pk-soft: #f4f8fb;
  --pk-blue: #176fd3;
  --pk-teal: #008b84;
  --pk-amber: #b87713;
  --pk-rose: #b94d61;
  --pk-violet: #6653b7;
  --pk-green: #1f7a57;
}

.page-prediction-keyword {
  background:
    linear-gradient(180deg, rgba(244, 248, 251, .96), rgba(250, 253, 251, 1) 42%, rgba(240, 246, 249, .96));
}

.pk-topbar .navlinks a {
  overflow-wrap: anywhere;
}

.pk-hero,
.pk-section {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
}

.pk-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100svh - 64px);
  padding: 64px 0 48px;
}

.pk-hero h1 {
  max-width: 780px;
  font-size: clamp(2.35rem, 4.8vw, 4.25rem);
}

.pk-hero .lead {
  max-width: 740px;
}

.pk-hero-visual {
  margin: 0;
  border: 1px solid rgba(23, 111, 211, .18);
  border-radius: 8px;
  background: var(--pk-panel);
  box-shadow: 0 28px 70px rgba(12, 23, 38, .13);
  overflow: hidden;
}

.pk-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1120 / 720;
  object-fit: cover;
}

.pk-hero-visual figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--pk-line);
  color: var(--pk-muted);
  font-size: .92rem;
  background: rgba(255, 255, 255, .92);
}

.pk-section {
  padding: 34px 0;
}

.pk-fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pk-fact-grid.compact {
  grid-template-columns: repeat(3, minmax(0, .9fr));
  justify-content: center;
}

.pk-fact,
.pk-three-col article,
.pk-step-lanes article,
.pk-draw-lanes article,
.pk-quiz-cards article,
.pk-formula-rail article,
.pk-fixture-list article,
.pk-number-compare article,
.pk-token-grid article,
.pk-scout-board article,
.pk-daily-map article,
.pk-audit-grid article,
.pk-can-cannot article,
.pk-faq article,
.pk-depth-cards article,
.pk-hub-card {
  border: 1px solid var(--pk-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 16px 36px rgba(12, 23, 38, .06);
}

.pk-fact {
  min-height: 178px;
  padding: 20px;
}

.pk-fact span,
.pk-token-grid span,
.pk-hub-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--pk-teal);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.pk-fact a,
.pk-source-list a,
.pk-hub-card a {
  font-weight: 760;
}

.pk-war-room {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: start;
}

.pk-step-lanes {
  display: grid;
  gap: 12px;
}

.pk-step-lanes article {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  min-height: 92px;
  padding: 18px;
}

.pk-step-lanes strong {
  color: #143456;
}

.pk-three-col {
  display: grid;
  grid-template-columns: .9fr 1.1fr .9fr;
  gap: 16px;
}

.pk-three-col article {
  padding: 24px;
}

.pk-prompt {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.12fr) auto;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(23, 111, 211, .2);
  border-radius: 8px;
  background: #071221;
  color: #e7f1fb;
}

.pk-prompt h2,
.pk-prompt .eyebrow,
.pk-prompt p {
  color: inherit;
}

.pk-prompt p {
  margin: 0;
}

.pk-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pk-faq article {
  padding: 20px;
}

.pk-source-strip {
  border-top: 1px solid var(--pk-line);
}

.pk-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pk-source-list a {
  display: inline-grid;
  min-height: 58px;
  min-width: 210px;
  padding: 10px 12px;
  border: 1px solid var(--pk-line);
  border-radius: 8px;
  background: #fff;
  color: var(--pk-ink);
}

.pk-source-list span {
  color: var(--pk-muted);
  font-size: .74rem;
  text-transform: uppercase;
}

.pk-depth {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr);
  gap: 24px;
  align-items: start;
  border-top: 1px solid var(--pk-line);
  border-bottom: 1px solid var(--pk-line);
}

.pk-depth-head {
  position: sticky;
  top: 88px;
}

.pk-depth-head h2 {
  max-width: 430px;
}

.pk-depth-copy {
  display: grid;
  gap: 16px;
  color: #344b64;
  font-size: 1.02rem;
  line-height: 1.82;
}

.pk-depth-copy p {
  margin: 0;
}

.pk-depth-cards {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pk-depth-cards article {
  padding: 20px;
}

.pk-depth-cards h3 {
  margin-bottom: 8px;
  color: #143456;
}

.pk-depth-table {
  grid-column: 2;
  display: grid;
  border: 1px solid var(--pk-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  overflow: hidden;
}

.pk-depth-table div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--pk-line);
}

.pk-depth-table div:last-child {
  border-bottom: 0;
}

.pk-depth-table strong {
  color: var(--pk-teal);
}

.pk-depth-table span {
  color: #3c5268;
}

.pk-depth-close {
  grid-column: 2;
  margin: 0;
  padding: 20px;
  border-left: 4px solid var(--pk-teal);
  border-radius: 0 8px 8px 0;
  background: rgba(0, 139, 132, .08);
  color: #263f55;
  line-height: 1.8;
}

.pk-practice {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(23, 111, 211, .14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(244, 250, 249, .96));
}

.pk-practice-head {
  align-self: start;
}

.pk-practice-head h3 {
  max-width: 430px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.18;
}

.pk-practice-head p {
  max-width: 520px;
  color: #405873;
  line-height: 1.75;
}

.pk-practice-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pk-practice-columns article {
  min-height: 246px;
  padding: 20px;
  border: 1px solid var(--pk-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
}

.pk-practice-columns h4 {
  margin: 0 0 10px;
  color: #143456;
  font-size: 1rem;
}

.pk-practice-columns p,
.pk-practice-copy p {
  color: #344b64;
  line-height: 1.78;
}

.pk-practice-copy {
  grid-column: 2;
  display: grid;
  gap: 14px;
}

.pk-practice-copy p {
  margin: 0;
}

.pk-draw-lanes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pk-draw-lanes article {
  min-height: 230px;
  padding: 20px;
}

.pk-draw-lanes span,
.pk-scout-board span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--pk-blue);
  color: #fff;
  font-weight: 900;
}

.pk-boundary-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(184, 119, 19, .22);
  border-radius: 8px;
  background: #fff8ed;
}

.pk-boundary-note p {
  max-width: 720px;
}

.pk-today-check {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 20px;
  align-items: stretch;
}

.pk-check-stack {
  display: grid;
  gap: 12px;
}

.pk-check-stack label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--pk-line);
  border-radius: 8px;
  background: #fff;
}

.pk-check-stack input {
  margin-top: 5px;
}

.pk-check-stack strong {
  display: block;
  color: #143456;
}

.pk-today-check aside {
  padding: 24px;
  border-radius: 8px;
  background: #17324d;
  color: #fff;
}

.pk-today-check aside h2,
.pk-today-check aside p {
  color: #fff;
}

.pk-quiz-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pk-quiz-cards article {
  min-height: 222px;
  padding: 20px;
}

.pk-quiz-cards span {
  color: var(--pk-rose);
  font-weight: 850;
  text-transform: uppercase;
  font-size: .78rem;
}

.pk-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--pk-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.pk-timeline div {
  min-height: 160px;
  padding: 22px;
}

.pk-timeline div + div {
  border-left: 1px solid var(--pk-line);
}

.pk-timeline strong {
  color: var(--pk-rose);
  font-size: 1.35rem;
}

.pk-formula-rail {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr 1fr;
  gap: 12px;
}

.pk-formula-rail article {
  min-height: 210px;
  padding: 20px;
}

.pk-risk-table {
  padding: 26px;
  border: 1px solid var(--pk-line);
  border-radius: 8px;
  background: #fff;
}

.pk-risk-table table {
  width: 100%;
  border-collapse: collapse;
}

.pk-risk-table th,
.pk-risk-table td {
  padding: 14px;
  border-bottom: 1px solid var(--pk-line);
  text-align: left;
  vertical-align: top;
}

.pk-risk-table tr:last-child th,
.pk-risk-table tr:last-child td {
  border-bottom: 0;
}

.pk-fixture-board {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 20px;
}

.pk-fixture-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pk-fixture-list article {
  min-height: 170px;
  padding: 18px;
}

.pk-fixture-board aside {
  padding: 24px;
  border: 1px solid var(--pk-line);
  border-radius: 8px;
  background: #f8fbff;
}

.pk-number-compare {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr 1.1fr;
  gap: 14px;
}

.pk-number-compare article {
  min-height: 218px;
  padding: 22px;
}

.pk-token-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.pk-token-grid article {
  min-height: 190px;
  padding: 18px;
}

.pk-risk-table.crypto {
  background: #f3faf9;
}

.pk-scout-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pk-scout-board article {
  min-height: 232px;
  padding: 20px;
}

.pk-daily-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pk-daily-map article {
  min-height: 168px;
  padding: 22px;
}

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

.pk-audit-grid article {
  min-height: 210px;
  padding: 20px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.pk-can-cannot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.pk-can-cannot article {
  min-height: 190px;
  padding: 24px;
}

.layout-powerball-next .pk-hero-visual,
.layout-powerball-today .pk-hero-visual,
.layout-powerball-evergreen .pk-hero-visual {
  border-color: rgba(217, 48, 37, .2);
}

.layout-baby-quiz .pk-hero-visual,
.layout-baby-quiz .pk-prompt {
  border-color: rgba(185, 77, 97, .22);
}

.layout-stock-calculator .pk-hero-visual,
.layout-crypto-calculator .pk-hero-visual {
  border-color: rgba(31, 122, 87, .22);
}

.layout-football-ai .pk-prompt,
.layout-football-tomorrow .pk-prompt,
.layout-soccer-tomorrow .pk-prompt {
  background: #143456;
}

.pk-hub-section {
  width: min(1120px, calc(100% - 56px));
}

.pk-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pk-hub-card {
  min-height: 260px;
  padding: 20px;
}

.pk-hub-card h3 {
  font-size: 1.08rem;
}

body.page-predictions .hero,
body.page-predictions .section {
  width: min(1120px, calc(100% - 56px));
}

body.page-predictions .artifact-card,
body.page-predictions .memo-card,
body.page-predictions .card {
  min-width: 0;
}

body.page-predictions .artifact-card picture,
body.page-predictions .artifact-card img {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 980px) {
  .pk-hero,
  .pk-war-room,
  .pk-today-check,
  .pk-fixture-board,
  .pk-prompt,
  .pk-depth {
    grid-template-columns: 1fr;
  }

  .pk-prompt,
  .pk-practice,
  .pk-depth-head {
    align-items: start;
    position: static;
  }

  .pk-draw-lanes,
  .pk-quiz-cards,
  .pk-formula-rail,
  .pk-number-compare,
  .pk-token-grid,
  .pk-scout-board,
  .pk-audit-grid,
  .pk-depth-cards,
  .pk-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pk-depth-cards,
  .pk-depth-table,
  .pk-depth-close,
  .pk-practice,
  .pk-practice-copy {
    grid-column: 1;
  }

  .pk-practice {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html:has(body.page-predictions),
  html:has(body.page-prediction-keyword),
  body.page-predictions,
  body.page-prediction-keyword {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  body.page-predictions *,
  body.page-prediction-keyword * {
    max-width: 100%;
  }

  body.page-predictions .topbar,
  body.page-prediction-keyword .topbar,
  body.page-predictions .navlinks,
  body.page-prediction-keyword .navlinks {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.page-predictions .topbar,
  body.page-prediction-keyword .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px;
  }

  body.page-predictions .pk-topbar .navlinks,
  body.page-prediction-keyword .pk-topbar .navlinks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
  }

  body.page-predictions .navlinks a,
  body.page-prediction-keyword .navlinks a {
    display: block;
    width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .pk-hero,
  .pk-section,
  .pk-hub-section {
    width: calc(100% - 36px);
    max-width: calc(100% - 36px);
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .pk-hero {
    min-height: auto;
    padding: 44px 0 26px;
  }

  .pk-hero > *,
  .pk-section > *,
  .pk-practice > * {
    min-width: 0;
  }

  .pk-hero h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .pk-hero .lead {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .pk-hero .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .pk-hero .hero-actions .button {
    width: 100%;
    min-width: 0;
    padding: 10px 14px;
    white-space: normal;
    text-align: center;
  }

  .pk-fact-grid,
  .pk-fact-grid.compact,
  .pk-three-col,
  .pk-draw-lanes,
  .pk-quiz-cards,
  .pk-timeline,
  .pk-formula-rail,
  .pk-fixture-list,
  .pk-number-compare,
  .pk-token-grid,
  .pk-scout-board,
  .pk-daily-map,
  .pk-audit-grid,
  .pk-can-cannot,
  .pk-faq-grid,
  .pk-depth-cards,
  .pk-practice-columns,
  .pk-hub-grid {
    grid-template-columns: 1fr;
  }

  .pk-timeline div + div {
    border-left: 0;
    border-top: 1px solid var(--pk-line);
  }

  .pk-step-lanes article,
  .pk-boundary-note,
  .pk-depth-table div {
    grid-template-columns: 1fr;
  }

  .pk-source-list a {
    width: 100%;
  }

  body.page-predictions .hero,
  body.page-prediction-keyword .hero,
  body.page-predictions .section,
  body.page-prediction-keyword .section {
    width: 100% !important;
    max-width: 100vw !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body.page-predictions .lead,
  body.page-prediction-keyword .lead,
  body.page-predictions h1,
  body.page-prediction-keyword h1,
  body.page-predictions h2,
  body.page-prediction-keyword h2,
  body.page-predictions h3,
  body.page-prediction-keyword h3 {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.page-predictions main,
  body.page-prediction-keyword main,
  body.page-predictions .split,
  body.page-prediction-keyword .split,
  body.page-predictions .grid,
  body.page-prediction-keyword .grid,
  body.page-predictions .editorial-strip,
  body.page-prediction-keyword .editorial-strip,
  body.page-predictions .artifact-card,
  body.page-prediction-keyword .artifact-card,
  body.page-predictions .memo-card,
  body.page-prediction-keyword .memo-card,
  body.page-predictions .card,
  body.page-prediction-keyword .card,
  body.page-predictions .table-wrap,
  body.page-prediction-keyword .table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.page-predictions .artifact-card picture,
  body.page-prediction-keyword .artifact-card picture,
  body.page-predictions .artifact-card img,
  body.page-prediction-keyword .artifact-card img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  body.page-predictions .tutorial-table,
  body.page-predictions .tutorial-table thead,
  body.page-predictions .tutorial-table tbody,
  body.page-predictions .tutorial-table tr,
  body.page-predictions .tutorial-table th,
  body.page-predictions .tutorial-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  body.page-predictions .tutorial-table {
    table-layout: fixed;
  }

  body.page-predictions .tutorial-table thead {
    display: none;
  }

  body.page-predictions .tutorial-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--pk-line);
  }

  body.page-predictions .tutorial-table td {
    border-bottom: 0;
    padding: 6px 12px;
  }

  body.page-predictions .tutorial-table td:first-child {
    color: #143456;
    font-weight: 800;
  }
}
