.pk-tool-page, .pk-guide-page, .pk-guides-page, .pk-info-page {
  --pk-ink: #1b3028;
  --pk-pine: #245a41;
  --pk-muted: #52645c;
  --pk-line: #dce4dc;
  padding-bottom: clamp(.5rem, 2vw, 1.8rem);
  color: var(--pk-ink);
}
.pk-crumb { margin: 1.65rem 0 2.65rem; }
.pk-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .6rem;
  margin: 0;
  padding: 0;
  color: var(--pk-muted);
  font-size: .875rem;
  list-style: none;
}
.pk-crumb li + li::before { content: "/"; margin-right: .6rem; color: #819289; }
.pk-crumb a { color: inherit; text-decoration: none; }
.pk-crumb a:hover { color: var(--pk-pine); text-decoration: underline; }
.pk-tool-page h1, .pk-guide-page h1, .pk-guides-page h1, .pk-info-page h1 {
  margin: 0;
  color: var(--pk-ink);
  font-size: clamp(2.35rem, 4.3vw, 3.65rem);
  line-height: 1.06;
  font-weight: 730;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
.pk-tool-page h2, .pk-guide-page h2, .pk-info-copy h2 {
  margin: 0 0 1.2rem;
  color: var(--pk-ink);
  font-size: clamp(1.38rem, 2.2vw, 1.8rem);
  font-weight: 690;
  letter-spacing: -.038em;
  line-height: 1.23;
}
.pk-tool-intro {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(.9rem, 2.5vw, 1.75rem);
  align-items: start;
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}
.pk-tool-icon {
  display: grid;
  width: clamp(3.15rem, 6vw, 4.55rem);
  height: clamp(3.15rem, 6vw, 4.55rem);
  place-items: center;
  border-radius: 24%;
}
.pk-writing { background: #eee8f7; color: #5e468f; }
.pk-seo { background: #fbecd6; color: #86521c; }
.pk-developer { background: #e2f0e4; color: #2c694e; }
.pk-converters { background: #e3edf9; color: #356188; }
.pk-images { background: #fae9df; color: #805033; }
.pk-pdf { background: #f7e7ec; color: #843d55; }
.pk-calculators { background: #e7eef9; color: #3c567d; }
.pk-codes { background: #eee7f6; color: #4f396c; }
.pk-tool-intro p, .pk-guide-header > p, .pk-index-intro p, .pk-info-copy header p {
  max-width: 66ch;
  margin: .8rem 0 0;
  color: var(--pk-muted);
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  line-height: 1.65;
}
.pk-tool-intro .pk-detail-save {
  position: static;
  width: 2.7rem;
  height: 2.7rem;
  margin-top: .2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--pk-line);
  border-radius: .72rem;
  background: white;
  color: var(--pk-pine);
  cursor: pointer;
}
.pk-tool-intro .pk-detail-save:hover, .pk-tool-intro .pk-detail-save[aria-pressed="true"] {
  background: #eaf2e7;
  border-color: #a7c2a8;
}
.pk-tool-intro .pk-detail-save[aria-pressed="true"] svg { fill: currentColor; }
.pk-walkthrough, .pk-support {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 6vw, 5rem);
  margin-top: clamp(2.8rem, 5.5vw, 4.6rem);
}
.pk-steps { padding: 0; margin: 0; list-style: none; counter-reset: steps; }
.pk-steps li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 1.65rem minmax(0, 1fr);
  gap: .85rem;
  align-items: start;
  margin-bottom: 1rem;
  color: #42564b;
  line-height: 1.6;
}
.pk-steps li::before {
  content: counter(steps);
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 50%;
  background: #eaf2e5;
  color: #355b3f;
  font-size: .875rem;
  font-weight: 700;
}
.pk-example { padding: 1.35rem 1.5rem; border: 1px solid #d8e2d4; border-radius: 1rem; background: #f3f7ef; }
.pk-example h2 { font-size: 1.2rem; margin-bottom: .8rem; }
.pk-example dl, .pk-example dd, .pk-example pre { margin: 0; }
.pk-example dt {
  margin: .85rem 0 .3rem;
  color: var(--pk-muted);
  font-size: .81rem;
  font-weight: 650;
}
.pk-example pre {
  color: #294133;
  font: .93rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.pk-support { padding-top: 2.5rem; border-top: 1px solid var(--pk-line); }
.pk-faq details { border-bottom: 1px solid var(--pk-line); }
.pk-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 630;
  cursor: pointer;
  list-style: none;
}
.pk-faq summary::-webkit-details-marker { display: none; }
.pk-faq summary::after { content: "+"; flex-shrink: 0; color: var(--pk-pine); font-size: 1.15rem; }
.pk-faq details[open] summary::after { content: "−"; }
.pk-faq details p { margin: -.25rem 1rem 1rem 0; color: #44574c; line-height: 1.65; }
.pk-asides { display: grid; align-content: start; gap: 1.8rem; }
.pk-reading h2, .pk-sources h2 { font-size: 1.18rem; margin-bottom: .65rem; }
.pk-reading-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .35rem .65rem;
  padding: .7rem 0;
  align-items: start;
  color: var(--pk-pine);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.45;
}
.pk-reading-link svg { margin-top: .15rem; }
.pk-reading-link small { grid-column: 2; color: var(--pk-muted); font-size: .85rem; font-weight: 400; }
.pk-reading-link:hover span, .pk-guide-card h2 a:hover { text-decoration: underline; text-underline-offset: .18em; }
.pk-sources ul { margin: 0; padding-left: 1.15rem; }
.pk-sources li { margin: .35rem 0; line-height: 1.55; }
.pk-sources a, .pk-info-copy a { color: var(--pk-pine); text-underline-offset: .19em; }
.pk-related { margin-top: clamp(3.25rem, 6vw, 5rem); }
.pk-guides-page { min-height: 70vh; }
.pk-index-intro { margin-bottom: clamp(2rem, 3vw, 3rem); }
.pk-guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.7rem); }
.pk-guide-card { position: relative; overflow: hidden; border: 1px solid var(--pk-line); border-radius: 1.05rem; background: white; }
.pk-guide-card:focus-within { outline: 3px solid var(--pk-pine); outline-offset: 3px; }
.pk-guide-card:hover { border-color: #a5bba8; }
.pk-guide-card-copy { padding: clamp(1.1rem, 2vw, 1.55rem); }
.pk-guide-card h2 { margin: .9rem 0 .65rem; font-size: clamp(1.32rem, 2.2vw, 1.62rem); line-height: 1.2; letter-spacing: -.035em; }
.pk-guide-card h2 a { color: inherit; text-decoration: none; }
.pk-guide-card h2 a::after { content: ""; position: absolute; inset: 0; }
.pk-guide-card p { margin: 0; color: var(--pk-muted); line-height: 1.55; }
.pk-byline { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; color: var(--pk-muted); font-size: .875rem; }
.pk-category { display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .62rem; border-radius: .42rem; font-size: .84rem; font-weight: 650; }
.pk-sample {
  height: 11rem;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #dbe3da;
  overflow: hidden;
  background-image: radial-gradient(#969f993f 1px, transparent 1px);
  background-size: 11px 11px;
}
.pk-sample-seo { background-color: #f7ecc6; }
.pk-sample-dev { background-color: #e2eddf; }
.pk-sample-writing { background-color: #ede8f5; }
.pk-result-paper, .pk-list-paper, .pk-sample-dev code {
  padding: .85rem 1.1rem;
  border-radius: .55rem;
  border: 1px solid #c3cbbf;
  box-shadow: 4px 5px 0 #304f3620;
  background: #fffffa;
  transform: rotate(-3deg);
}
.pk-result-paper { width: min(78%, 14.3rem); }
.pk-result-paper span { display: block; color: #586157; font-size: .78rem; }
.pk-result-paper strong { display: block; margin: .25rem 0 .55rem; color: #285292; font-size: 1.05rem; }
.pk-result-paper i { display: block; width: 90%; height: .29rem; margin-top: .32rem; border-radius: 1rem; background: #d6dfd4; }
.pk-result-paper i:last-child { width: 58%; }
.pk-sample-dev code { color: #dce7d8; background: #253d35; border-color: #20322b; font: .95rem/1.5 ui-monospace, Consolas, monospace; transform: rotate(2deg); }
.pk-sample-dev b { color: #f7d38d; font-weight: 500; }
.pk-sample-dev em { color: #b5d9b4; font-style: normal; }
.pk-list-paper { min-width: 10.3rem; color: #34513d; }
.pk-list-paper > * { display: block; padding: .12rem; font-size: .93rem; font-weight: 550; }
.pk-list-paper > *::before { content: "•"; margin-right: .65rem; color: #64916a; }
.pk-list-paper s { color: #748071; }
.pk-guide-header { max-width: 50rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.pk-guide-header h1 { margin-top: .9rem; }
.pk-article-grid { display: grid; align-items: start; grid-template-columns: minmax(0, 2.2fr) minmax(13rem, 1fr); gap: clamp(2rem, 7vw, 6rem); }
.pk-article-copy { max-width: 44rem; }
.pk-article-copy > section { scroll-margin-top: 2rem; }
.pk-article-copy > section + section, .pk-info-copy > section { margin-top: 2.4rem; }
.pk-article-copy p, .pk-info-copy section p { margin: .8rem 0; color: #3c5046; font-size: 1.035rem; line-height: 1.75; overflow-wrap: anywhere; }
.pk-article-rail { position: sticky; top: 2rem; padding: 1.25rem 1.45rem; border: 1px solid #d8e2d4; background: #f2f6ef; border-radius: .9rem; }
.pk-article-rail h2 { margin: 0 0 .7rem; font-size: 1.13rem; }
.pk-article-rail ol { margin: 0; padding-left: 1.1rem; color: var(--pk-muted); }
.pk-article-rail li { margin: .55rem 0; padding-left: .2rem; }
.pk-article-rail a { color: var(--pk-pine); line-height: 1.48; font-size: .94rem; text-decoration: none; }
.pk-article-rail a:hover { text-decoration: underline; }
.pk-info-copy { max-width: 45rem; }
.pk-info-copy header { padding-bottom: 1.5rem; border-bottom: 1px solid var(--pk-line); }
@media (max-width: 800px) {
  .pk-guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-walkthrough, .pk-support { gap: 1.6rem; }
  .pk-article-grid { grid-template-columns: minmax(0, 1fr); }
  .pk-article-rail { display: none; }
}
@media (max-width: 640px) {
  .pk-crumb { margin: 1.15rem 0 1.6rem; }
  .pk-crumb ol { line-height: 1.45; }
  .pk-tool-intro { grid-template-columns: 1fr auto; gap: .8rem; align-items: center; }
  .pk-tool-intro > div { grid-column: 1 / -1; grid-row: 2; }
  .pk-tool-intro .pk-detail-save { grid-column: 2; grid-row: 1; }
  .pk-tool-icon { width: 2.9rem; height: 2.9rem; }
  .pk-tool-icon svg { width: 1.55rem; height: 1.55rem; }
  .pk-walkthrough, .pk-support, .pk-guide-cards { grid-template-columns: minmax(0, 1fr); }
  .pk-support { padding-top: 1.8rem; }
  .pk-sample { height: 9.25rem; }
}
