/*
Theme Name: PixelKit
Theme URI: https://mypixelkit.com
Author: PixelKit
Description: Purpose-built block theme for PixelKit - free in-browser image and PDF tools.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: pixelkit-theme
*/

:root {
  --pk-ink: #1a2b3c;
  --pk-ink-soft: #55677a;
  --pk-paper: #ffffff;
  --pk-paper-soft: #f4f6f8;
  --pk-line: #e3e8ee;
  --pk-brand: #e2574c;
  --pk-brand-dark: #c8443a;
  --pk-brand-soft: #fdece9;
  --pk-ok: #1f9d55;
  --pk-radius: 14px;
  --pk-shell: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--pk-paper-soft);
  color: var(--pk-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.pk-shell {
  max-width: var(--pk-shell);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.pk-header {
  background: var(--pk-paper);
  border-bottom: 1px solid var(--pk-line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.pk-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 62px;
}

.pk-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--pk-ink);
  flex: none;
}

.pk-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--pk-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.pk-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.pk-nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--pk-ink);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.pk-nav a:hover,
.pk-nav a[aria-current="page"] { color: var(--pk-brand); }

.pk-more { position: relative; }

.pk-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--pk-ink);
}

.pk-more-btn:hover { color: var(--pk-brand); }
.pk-more-btn svg { transition: transform 0.15s ease; }
.pk-more[data-open="true"] .pk-more-btn svg { transform: rotate(180deg); }

.pk-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  min-width: 210px;
  background: var(--pk-paper);
  border: 1px solid var(--pk-line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(26, 43, 60, 0.12);
  padding: 8px;
  display: none;
}

.pk-more[data-open="true"] .pk-more-menu { display: block; }

.pk-more-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--pk-ink);
}

.pk-more-menu a:hover { background: var(--pk-paper-soft); color: var(--pk-brand); }

.pk-burger {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--pk-ink);
}

/* ---------- Hero ---------- */

.pk-hero { text-align: center; padding: 64px 0 0; }

.pk-hero h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.pk-hero p {
  margin: 18px auto 0;
  max-width: 540px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--pk-ink-soft);
}

/* ---------- Section headings ---------- */

.pk-h2 {
  text-align: center;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 56px 0 22px;
}

/* ---------- Filter chips ---------- */

.pk-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}

.pk-chip {
  border: 1px solid var(--pk-line);
  background: var(--pk-paper);
  color: var(--pk-ink);
  border-radius: 10px;
  padding: 9px 19px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pk-chip:hover { border-color: #cfd8e3; }

.pk-chip[aria-pressed="true"] {
  background: var(--pk-brand);
  border-color: var(--pk-brand);
  color: #fff;
}

/* ---------- Tool grid ---------- */

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

.pk-tool {
  display: block;
  text-decoration: none;
  background: var(--pk-paper);
  border: 1px solid var(--pk-line);
  border-radius: var(--pk-radius);
  padding: 22px;
  color: var(--pk-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pk-tool:hover {
  border-color: #cdd7e3;
  box-shadow: 0 6px 20px rgba(26, 43, 60, 0.07);
  transform: translateY(-2px);
}

.pk-tool-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pk-i-optimize { background: #e6f6ec; color: #1f9d55; }
.pk-i-edit     { background: #e8f0fd; color: #2f6fd0; }
.pk-i-convert  { background: #fdf1e0; color: #d58320; }
.pk-i-pdf      { background: #f0eafc; color: #6f42c1; }

.pk-tool h3 {
  margin: 0 0 7px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.pk-tool p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--pk-ink-soft);
}

/* ---------- Why cards ---------- */

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

.pk-why-card {
  background: var(--pk-paper);
  border: 1px solid var(--pk-line);
  border-radius: var(--pk-radius);
  padding: 26px;
}

.pk-why-card svg { color: var(--pk-brand); margin-bottom: 16px; display: block; }

.pk-why-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.pk-why-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--pk-ink-soft);
}

/* ---------- Banner ---------- */

.pk-banner {
  background: var(--pk-brand-soft);
  border-radius: var(--pk-radius);
  padding: 44px 32px;
  text-align: center;
  margin: 48px 0 80px;
}

.pk-banner h2 {
  margin: 0 0 10px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pk-banner p {
  margin: 0;
  font-size: 16px;
  color: var(--pk-ink-soft);
}

/* ---------- Tool page ---------- */

.pk-page { padding: 0 0 80px; }

.pk-page-title {
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 56px 0 10px;
}

.pk-page-lede {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--pk-ink-soft);
}

.pk-page-body { max-width: 640px; margin: 0 auto; }
.pk-page-body .pixelkit-scope { max-width: 100%; }

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .pk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .pk-nav { display: none; }
  .pk-nav.pk-nav-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    left: 0;
    right: 0;
    top: 62px;
    background: var(--pk-paper);
    border-bottom: 1px solid var(--pk-line);
    padding: 12px 24px 18px;
  }
  .pk-nav.pk-nav-open a { padding: 9px 0; }
  .pk-nav.pk-nav-open .pk-more { width: 100%; }
  .pk-nav.pk-nav-open .pk-more-menu {
    position: static;
    border: none;
    box-shadow: none;
    padding: 0 0 0 4px;
    min-width: 0;
  }
  .pk-burger { display: inline-flex; }
  .pk-header-inner { position: relative; }
  .pk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-why { grid-template-columns: 1fr; }
  .pk-hero h1 { font-size: 34px; }
  .pk-page-title { font-size: 31px; }
}

@media (max-width: 520px) {
  .pk-grid { grid-template-columns: 1fr; }
  .pk-hero { padding-top: 44px; }
}


/* ---------- In-copy internal links ---------- */

.pk-page-lede a {
  color: var(--pk-brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(226, 87, 76, 0.35);
}

.pk-page-lede a:hover {
  border-bottom-color: var(--pk-brand);
}

/* ---------- Related tools ---------- */

.pk-related { margin-top: 72px; }

.pk-related h2 {
  text-align: center;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
}

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

/* ---------- All tools link list ---------- */

.pk-alltools { margin-top: 72px; }

.pk-alltools h2 {
  text-align: center;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}

.pk-alltools ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pk-alltools a {
  display: inline-block;
  text-decoration: none;
  background: var(--pk-paper);
  border: 1px solid var(--pk-line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 550;
  color: var(--pk-ink);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pk-alltools a:hover {
  border-color: var(--pk-brand);
  color: var(--pk-brand);
}

@media (max-width: 860px) {
  .pk-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .pk-related-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

.pk-footer {
  background: var(--pk-ink);
  color: rgba(255, 255, 255, 0.72);
  border-top: none;
  padding: 56px 0 28px;
  margin-top: 0;
  position: relative;
}

.pk-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pk-brand) 0%, #e9846a 45%, #6f42c1 100%);
}

.pk-footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.pk-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: #fff;
}

.pk-footer-tagline {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  max-width: 330px;
}

.pk-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.82);
}

.pk-footer-badge svg { color: var(--pk-brand); flex: none; }

.pk-footer h4 {
  margin: 4px 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.pk-footer ul { list-style: none; margin: 0; padding: 0; }
.pk-footer li { margin-bottom: 11px; }

.pk-footer li a {
  text-decoration: none;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.15s ease;
}

.pk-footer li a:hover { color: #fff; }

.pk-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 960px) {
  .pk-footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .pk-footer-brand { grid-column: 1 / -1; }
  .pk-footer-tagline { max-width: none; }
}

@media (max-width: 520px) {
  .pk-footer-top { grid-template-columns: 1fr; }
  .pk-footer-bottom { flex-direction: column; gap: 6px; }
}

/* ---------- How-to steps ---------- */

.pk-how { margin-top: 64px; }

.pk-how h2,
.pk-faq h2 {
  text-align: center;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}

.pk-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
}

.pk-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--pk-paper);
  border: 1px solid var(--pk-line);
  border-radius: var(--pk-radius);
  padding: 20px 22px;
  margin-bottom: 12px;
}

.pk-step-n {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pk-brand-soft);
  color: var(--pk-brand);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.pk-steps h3 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 700;
}

.pk-steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--pk-ink-soft);
}

/* ---------- FAQ ---------- */

.pk-faq { margin-top: 64px; }

.pk-faq-list {
  max-width: 640px;
  margin: 0 auto;
  background: var(--pk-paper);
  border: 1px solid var(--pk-line);
  border-radius: var(--pk-radius);
  overflow: hidden;
}

.pk-faq details { border-bottom: 1px solid var(--pk-line); }
.pk-faq details:last-child { border-bottom: none; }

.pk-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 48px 18px 22px;
  font-size: 16px;
  font-weight: 650;
  position: relative;
  transition: color 0.15s ease;
}

.pk-faq summary::-webkit-details-marker { display: none; }

.pk-faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--pk-ink-soft);
  border-bottom: 2px solid var(--pk-ink-soft);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.18s ease;
}

.pk-faq details[open] summary { color: var(--pk-brand); }
.pk-faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
  border-color: var(--pk-brand);
}

.pk-faq summary:hover { color: var(--pk-brand); }

.pk-faq details p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--pk-ink-soft);
}

.pk-faq details p a,
.pk-steps p a {
  color: var(--pk-brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(226, 87, 76, 0.35);
}

.pk-faq details p a:hover,
.pk-steps p a:hover { border-bottom-color: var(--pk-brand); }


/* ---------- Accessibility helper ---------- */

.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ---------- Prose: articles and company pages ---------- */

.pk-prose {
  background: var(--pk-paper);
  border: 1px solid var(--pk-line);
  border-radius: var(--pk-radius);
  padding: 40px 44px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--pk-ink);
}

.pk-page-body.pk-prose { max-width: 760px; }

.pk-prose > *:first-child { margin-top: 0; }
.pk-prose > *:last-child { margin-bottom: 0; }

.pk-prose h2 {
  font-size: 25px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 40px 0 12px;
}

.pk-prose h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  margin: 30px 0 10px;
}

.pk-prose p { margin: 0 0 18px; }
.pk-prose ul,
.pk-prose ol { margin: 0 0 20px; padding-left: 24px; }
.pk-prose li { margin-bottom: 8px; }
.pk-prose li > ul,
.pk-prose li > ol { margin: 8px 0 0; }
.pk-prose strong { font-weight: 700; }

.pk-prose a {
  color: var(--pk-brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(226, 87, 76, 0.35);
  overflow-wrap: anywhere;
}

.pk-prose a:hover { border-bottom-color: var(--pk-brand); }

.pk-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.pk-prose figure { margin: 28px 0; }
.pk-prose figcaption { font-size: 14px; color: var(--pk-ink-soft); text-align: center; margin-top: 8px; }

.pk-prose blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--pk-brand);
  color: var(--pk-ink-soft);
}

.pk-prose .wp-block-table { overflow-x: auto; }
.pk-prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; line-height: 1.55; }
.pk-prose th,
.pk-prose td { border: 1px solid var(--pk-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.pk-prose th { background: var(--pk-paper-soft); font-weight: 700; }

.pk-prose code {
  background: var(--pk-paper-soft);
  border: 1px solid var(--pk-line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
}

.pk-prose hr { border: 0; border-top: 1px solid var(--pk-line); margin: 36px 0; }

/* ---------- Articles ---------- */

.pk-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--pk-brand);
  text-decoration: none;
}

.pk-article-head { text-align: center; max-width: 760px; margin: 0 auto; }
.pk-article-head .pk-eyebrow { margin-top: 56px; }
.pk-article-head .pk-page-title { margin-top: 12px; }

.pk-post-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin: 0;
  font-size: 14px;
  color: var(--pk-ink-soft);
}

.pk-article-head .pk-post-meta { margin-bottom: 32px; }

.pk-article-hero { max-width: 960px; margin: 0 auto 32px; }
.pk-article-hero img { display: block; width: 100%; height: auto; border-radius: var(--pk-radius); }

.pk-article-body { max-width: 760px; margin: 0 auto; }

/* ---------- Article cards ---------- */

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

.pk-post-card {
  display: flex;
  flex-direction: column;
  background: var(--pk-paper);
  border: 1px solid var(--pk-line);
  border-radius: var(--pk-radius);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pk-post-card:hover {
  border-color: #cdd7e3;
  box-shadow: 0 6px 20px rgba(26, 43, 60, 0.07);
  transform: translateY(-2px);
}

.pk-post-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.pk-post-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 20px 22px 22px;
}

.pk-post-card h2,
.pk-post-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.pk-post-card h2 a,
.pk-post-card h3 a { color: var(--pk-ink); text-decoration: none; transition: color 0.15s ease; }
.pk-post-card h2 a:hover,
.pk-post-card h3 a:hover { color: var(--pk-brand); }

.pk-post-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--pk-ink-soft); }
.pk-post-card .pk-post-meta { justify-content: flex-start; margin-top: auto; padding-top: 6px; font-size: 13px; }

.pk-empty {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px;
  text-align: center;
  color: var(--pk-ink-soft);
  background: var(--pk-paper);
  border: 1px dashed #cfd8e3;
  border-radius: var(--pk-radius);
}

.pk-pagination { margin-top: 36px; }
.pk-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.pk-pagination .page-numbers {
  display: inline-block;
  min-width: 40px;
  padding: 8px 14px;
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--pk-line);
  background: var(--pk-paper);
  color: var(--pk-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.pk-pagination .page-numbers.current,
.pk-pagination a.page-numbers:hover { background: var(--pk-brand); border-color: var(--pk-brand); color: #fff; }

/* ---------- Footer company links ---------- */

.pk-footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.pk-footer-legal a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 0.15s ease;
}

.pk-footer-legal a:hover { color: #fff; }

/* ---------- Contact form ---------- */

.pk-contact { margin-top: 28px; }

.pk-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.pk-field { margin: 0 0 16px; }

.pk-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--pk-ink);
}

.pk-field label span { font-weight: 400; color: var(--pk-ink-soft); }

.pk-field input,
.pk-field textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pk-ink);
  background: var(--pk-paper);
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pk-field textarea { min-height: 150px; resize: vertical; }

.pk-field input:focus,
.pk-field textarea:focus { outline: none; border-color: var(--pk-brand); box-shadow: 0 0 0 3px var(--pk-brand-soft); }

.pk-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--pk-ink-soft);
}

.pk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--pk-brand);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pk-button:hover { background: var(--pk-brand-dark); }
.pk-button:focus-visible { outline: 3px solid rgba(226, 87, 76, 0.35); outline-offset: 2px; }

.pk-notice { margin: 0 0 20px; padding: 14px 16px; border-radius: 10px; font-size: 15px; line-height: 1.55; }
.pk-notice-ok { background: #e6f6ec; color: #17693b; border: 1px solid #bfe6cd; }
.pk-notice-error { background: var(--pk-brand-soft); color: #9c3129; border: 1px solid #f5c7c1; }

.pk-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Responsive: new blocks ---------- */

@media (max-width: 860px) {
  .pk-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-prose { padding: 32px 28px; }
}

@media (max-width: 520px) {
  .pk-post-grid { grid-template-columns: 1fr; }
  .pk-prose { padding: 24px 20px; font-size: 16px; }
  .pk-prose h2 { font-size: 22px; }
  .pk-form-row { grid-template-columns: 1fr; }
  .pk-article-head .pk-eyebrow { margin-top: 40px; }
}

.pk-page-title + .pk-page-body.pk-prose { margin-top: 28px; }

/* ---------- Breadcrumbs ---------- */

.pk-crumbs {
  margin: 28px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--pk-ink-soft);
  text-align: center;
}

.pk-crumbs p { margin: 0; }
.pk-crumbs a { color: var(--pk-ink-soft); text-decoration: none; transition: color 0.15s ease; }
.pk-crumbs a:hover { color: var(--pk-brand); }
.pk-crumbs .separator { margin: 0 6px; color: #9aa8b6; }
.pk-crumbs .last { color: var(--pk-ink); }

.pk-crumbs + .pk-page-title { margin-top: 16px; }

/* ---------- Table of contents ---------- */

.pk-toc {
  margin: 6px 0 32px;
  padding: 18px 22px;
  background: var(--pk-paper-soft);
  border: 1px solid var(--pk-line);
  border-radius: 12px;
}

.pk-prose .pk-toc-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--pk-ink-soft);
}

.pk-prose .pk-toc ol { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.55; }
.pk-prose .pk-toc li { margin-bottom: 5px; }
.pk-prose .pk-toc a { border-bottom: none; }
.pk-prose .pk-toc a:hover { text-decoration: underline; }

.pk-prose h2[id],
.pk-prose h3[id] { scroll-margin-top: 84px; }

/* ---------- In-article callouts and code ---------- */

.pk-prose .pk-callout {
  margin: 0 0 24px;
  padding: 16px 20px;
  background: var(--pk-paper-soft);
  border-left: 3px solid var(--pk-brand);
  border-radius: 0 10px 10px 0;
}

.pk-prose .pk-callout p { margin: 0 0 8px; }
.pk-prose .pk-callout p:last-child { margin-bottom: 0; }

.pk-prose pre {
  margin: 0 0 22px;
  padding: 16px 18px;
  overflow-x: auto;
  background: var(--pk-ink);
  color: #e7edf3;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.pk-prose pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }

/* ---------- Tool CTA under an article ---------- */

.pk-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 760px;
  margin: 28px auto 0;
  padding: 22px 24px;
  background: var(--pk-brand-soft);
  border: 1px solid #f5c7c1;
  border-radius: var(--pk-radius);
}

.pk-cta .pk-tool-icon { margin: 0; flex: none; }
.pk-cta > div { flex: 1; }
.pk-cta p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--pk-ink-soft); }
.pk-cta .pk-cta-title { margin-bottom: 2px; font-size: 16px; font-weight: 700; color: var(--pk-ink); }
.pk-cta .pk-button { flex: none; text-decoration: none; }

/* ---------- Silo list under an article ---------- */

.pk-series {
  max-width: 760px;
  margin: 20px auto 0;
  padding: 24px 28px;
  background: var(--pk-paper);
  border: 1px solid var(--pk-line);
  border-radius: var(--pk-radius);
}

.pk-series h2 { margin: 0 0 12px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.pk-series ol { margin: 0; padding-left: 20px; }
.pk-series li { margin-bottom: 8px; font-size: 15px; line-height: 1.5; }
.pk-series a { color: var(--pk-ink); font-weight: 600; text-decoration: none; transition: color 0.15s ease; }
.pk-series a:hover { color: var(--pk-brand); }
.pk-series [aria-current] { color: var(--pk-ink-soft); font-weight: 600; }

.pk-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--pk-brand-soft);
  color: var(--pk-brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.pk-more-link { margin: 18px 0 0; text-align: center; font-size: 15px; }
.pk-series .pk-more-link { margin-top: 12px; text-align: left; }
.pk-more-link a { color: var(--pk-brand); font-weight: 700; text-decoration: none; }
.pk-more-link a:hover { text-decoration: underline; }

/* ---------- Pillar block on a silo archive ---------- */

.pk-featured {
  display: block;
  max-width: 960px;
  margin: 0 auto 28px;
  padding: 28px 32px;
  background: var(--pk-ink);
  color: #fff;
  border-radius: var(--pk-radius);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pk-featured:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(26, 43, 60, 0.18); }
.pk-featured .pk-eyebrow { color: #f3a79f; }
.pk-featured h2 { margin: 8px 0; font-size: 26px; line-height: 1.25; font-weight: 800; letter-spacing: -0.015em; }
.pk-featured p { margin: 0 0 14px; max-width: 680px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.75); }
.pk-featured-cta { font-size: 14px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }

@media (max-width: 520px) {
  .pk-cta { flex-direction: column; align-items: flex-start; }
  .pk-series { padding: 20px; }
  .pk-featured { padding: 22px 20px; }
  .pk-featured h2 { font-size: 21px; }
}


/* ---------- Tool page body copy ---------- */

.pk-about { margin: 64px auto 0; max-width: 760px; }
.pk-about .pk-prose h2 { font-size: 23px; margin: 32px 0 12px; }
.pk-about .pk-prose h2:first-child { margin-top: 0; }
