/* ===== Premium layout for key pages ===== */
body.page .entry-content{
  max-width: 860px;
  margin: 24px auto 0;
  background: #ffffff;
  border: 1px solid #e8edf5;
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
}

/* Usuń duplikat H1 w treści (zostaje tytuł strony motywu) */
body.page .entry-content > h1:first-child{ display:none; }

body.page .wp-block-post-title{
  max-width: 860px;
  margin: 0 auto 10px;
  font-weight: 800;
  letter-spacing: -.02em;
}

body.page .entry-content h2{
  margin-top: 26px;
  margin-bottom: 10px;
  font-weight: 750;
  font-size: 34px;
  line-height: 1.2;
}
body.page .entry-content h3{
  margin-top: 18px;
  margin-bottom: 6px;
  font-weight: 700;
}
body.page .entry-content p{ line-height: 1.65; margin: 0 0 10px; }
body.page .entry-content ul,
body.page .entry-content ol{ margin: 0 0 14px 20px; }
body.page .entry-content li{ margin: 4px 0; }

/* Sekcje jako delikatne boxy */
body.page .entry-content h2 + ul,
body.page .entry-content h2 + ol,
body.page .entry-content h2 + p{
  background: #f8fbff;
  border: 1px solid #e3edf9;
  border-radius: 14px;
  padding: 14px 16px;
}

/* ===== Premium button ===== */
.pk-btn-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 24px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.28);
  background: linear-gradient(135deg,#76df3a 0%,#2fb532 52%,#1e8d3a 100%);
  color:#fff !important;
  font-weight:800;
  font-size:16px;
  line-height:1;
  text-decoration:none !important;
  box-shadow: 0 12px 26px rgba(47,181,50,.30), inset 0 1px 0 rgba(255,255,255,.35);
  transition: all .2s ease;
  margin: 10px 0 14px;
}
.pk-btn-cta:hover{
  color:#fff !important;
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 16px 32px rgba(47,181,50,.38), inset 0 1px 0 rgba(255,255,255,.45);
}
.pk-btn-cta:active{ transform: translateY(0); }

/* Secondary outlined button */
.pk-btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 20px;
  border-radius:999px;
  border:1.5px solid #d3deee;
  background:#fff;
  color:#0f172a !important;
  font-weight:700;
  text-decoration:none !important;
  margin: 10px 0 14px;
}
.pk-btn-outline:hover{
  border-color:#b7c7e0;
  background:#f8fbff;
}

/* Moje konto: szybkie akcje jako przyciski, nie lista */
body.page .entry-content ul li a{
  display:inline-flex;
  align-items:center;
  padding:10px 14px;
  margin:4px 0;
  border-radius:12px;
  border:1px solid #e2e8f0;
  background:#fff;
  text-decoration:none !important;
}
body.page .entry-content ul li a:hover{
  background:#f8fbff;
  border-color:#cfdcf2;
}

/* Mobile */
@media (max-width: 782px){
  body.page .entry-content,
  body.page .wp-block-post-title{
    max-width: 100%;
  }
  body.page .entry-content{
    padding: 18px 16px;
    border-radius: 14px;
  }
  body.page .entry-content h2{ font-size: 28px; }
}

/* ==== FORCE: Moje konto 2 kolumny obok siebie ==== */
.pk-auth-grid{
  display:grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  gap:20px !important;
  align-items:stretch !important;
}
.pk-auth-grid > .pk-auth-card{
  min-height:100%;
}

/* tylko na małych ekranach jedna kolumna */
@media (max-width: 900px){
  .pk-auth-grid{
    grid-template-columns: 1fr !important;
  }
}

/* ==== Equal height + aligned buttons in account cards ==== */
.pk-auth-grid{
  align-items:stretch !important;
}
.pk-auth-card{
  display:flex !important;
  flex-direction:column !important;
  min-height: 360px !important;
}
.pk-auth-card p{
  margin-bottom:10px;
}

/* opis ma stałą wysokość, żeby oba słupki startowały równo */
.pk-auth-card p:first-of-type{
  min-height: 86px;
}

/* kontener na przyciski (wyłapujemy ostatnie dwa paragrafy) */
.pk-auth-card p:nth-last-child(2),
.pk-auth-card p:last-child{
  margin: 8px 0 0 0 !important;
}

/* drugi przycisk dociskamy do dołu */
.pk-auth-card p:last-child{
  margin-top:auto !important;
}

/* oba przyciski identyczna szerokość i wysokość */
.pk-auth-card .pk-btn-cta,
.pk-auth-card .pk-btn-outline{
  width:100% !important;
  min-height:52px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  box-sizing:border-box !important;
}

/* FINAL: równe karty i przyciski */
.pk-auth-grid{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:20px !important;
}
.pk-auth-card{
  display:grid !important;
  grid-template-rows:auto 1fr auto !important;
  min-height:360px !important;
  background:#f8fbff;
  border:1px solid #dce8f7;
  border-radius:16px;
  padding:20px 18px;
}
.pk-auth-card h2{ margin:0 0 12px 0 !important; }
.pk-auth-desc{
  margin:0 !important;
  background:#f2f6fb;
  border:1px solid #e6edf7;
  border-radius:12px;
  padding:14px 12px;
}
.pk-auth-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:16px;
}
.pk-auth-actions .pk-btn-cta,
.pk-auth-actions .pk-btn-outline{
  width:100% !important;
  min-height:52px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-sizing:border-box;
  margin:0 !important;
}
@media (max-width:900px){
  .pk-auth-grid{ grid-template-columns:1fr !important; }
}
