/* A dedicated tool library, matching the homepage's black editorial style. */
.pk-home #resources { background: #000; }
.pk-home .pk-repo-head { align-items: end; gap: 30px; margin-bottom: 28px; }
.pk-home .pk-repo-head h2 { margin: 0; font-size: clamp(30px, 3vw, 42px); line-height: 1.25; font-weight: 500; letter-spacing: -.045em; }
.pk-home .pk-repo-head p { margin-top: 14px; color: #c4c4c4; font-size: 16px; line-height: 1.9; }
.pk-home .pk-repo-head > a { flex-shrink: 0; }
.pk-home .pk-repo-console { padding: 24px 0; border-top: 1px solid #484848; }
.pk-home .pk-repo-search-wrap { width: 100%; }
.pk-home .pk-repo-search-wrap svg { position: absolute; left: 19px; top: 50%; width: 21px; height: 21px; transform: translateY(-50%); fill: none; stroke: #bbb; stroke-width: 1.5; }
.pk-home .pk-repo-search-wrap input { height: 58px; border: 1px solid #444; border-radius: 4px; padding: 14px 18px 14px 53px; background: #000; color: #f1f1f1; font-size: 16px; }
.pk-home .pk-repo-search-wrap input::placeholder { color: #aaa; }
.pk-home .pk-repo-search-wrap input:focus { border-color: #aaa; box-shadow: none; }
.pk-home .pk-repo-toolbar { align-items: center; margin: 24px 0 0; padding-bottom: 0; border: 0; gap: 18px; }
.pk-home .pk-repo-filters { gap: 10px 24px; }
.pk-home .pk-repo-filter { padding: 9px 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: #aaa; background: #000; font-size: 16px; font-weight: 400; }
.pk-home .pk-repo-filter:hover { color: #fff; background: #000; }
.pk-home .pk-repo-filter.active { color: #fff; border-bottom-color: #ee3d36; background: #000; }
.pk-home .pk-repo-count { color: #aaa; opacity: 1; font-size: 16px; line-height: 1.7; }
.pk-home .pk-repo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; min-height: 0; }
.pk-home .pk-repo-card { display: flex; flex-direction: column; min-width: 0; min-height: 0; margin: 0; padding: 28px; border: 1px solid #383838; border-radius: 6px; background: #000; box-shadow: none; transition: border-color .2s, transform .2s; }
.pk-home .pk-repo-card:hover { border-color: #888; box-shadow: none; }
.pk-home .pk-repo-card-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.pk-home .pk-repo-icon { width: 50px; height: 50px; flex: 0 0 50px; display: grid; place-items: center; border: 1px solid #444; border-radius: 6px; background: #000; color: #ddd; }
.pk-repo-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.pk-home .pk-repo-type { color: #aaa; font-size: 16px; line-height: 1.7; }
.pk-home .pk-repo-card-content { min-width: 0; }
.pk-home .pk-repo-card .pk-repo-title { margin: 0; color: #f1f1f1; font-size: 25px; font-weight: 500; letter-spacing: -.035em; line-height: 1.35; }
.pk-home .pk-repo-desc { margin: 14px 0 20px; color: #c4c4c4; font-size: 16px; line-height: 1.9; opacity: 1; }
.pk-home .pk-repo-meta { margin: 0 0 24px; gap: 10px; }
.pk-home .pk-repo-meta span { padding: 0; border: 0; border-radius: 0; color: #aaa; opacity: 1; font-size: 16px; }
.pk-home .pk-repo-meta span + span::before { content: "/"; margin-right: 10px; color: #777; }
.pk-home .pk-repo-footer { display: block; margin-top: auto; padding-top: 22px; border-top: 1px solid #303030; }
.pk-home .pk-repo-action { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 15px; border: 1px solid #555; border-radius: 4px; background: #000; color: #eee; font-size: 16px; font-weight: 400; }
.pk-home .pk-repo-action:hover { color: #fff; border-color: #aaa; background: #111; }
.pk-home .pk-repo-action-note { margin: 10px 0 0; color: #aaa; font-size: 16px; line-height: 1.7; }
.pk-home .pk-repo-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: start; gap: 0 48px; padding: 32px; border-color: #555; border-left: 3px solid #ee3d36; }
.pk-home .featured .pk-repo-card-top { grid-column: 1 / -1; }
.pk-home .featured .pk-repo-title { font-size: 32px; }
.pk-home .featured .pk-repo-footer { align-self: center; margin: 0; border-top: 0; padding-top: 0; }
.pk-home .featured .pk-repo-action { border-color: #ee3d36; background: #ee3d36; color: #fff; }
.pk-home .featured .pk-repo-action:hover { background: #cf302b; border-color: #cf302b; }
.pk-home .pk-repo-badge { padding: 5px 11px; border: 1px solid #74413c; border-radius: 4px; color: #f2c5bf; background: #000; font-size: 16px; font-weight: 400; text-transform: none; letter-spacing: normal; }
.pk-home .pk-repo-loading, .pk-home .pk-repo-empty { grid-column: 1 / -1; padding: 48px 24px; border: 1px solid #444; border-radius: 5px; text-align: center; background: #000; color: #ccc; opacity: 1; }
.pk-home .pk-repo-empty h3 { margin: 0 0 14px; font-size: 26px; font-weight: 500; }
.pk-home .pk-repo-empty p { margin: 0; font-size: 16px; color: #bbb; line-height: 1.9; }
.pk-home .pk-repo-empty button { padding: 10px 18px; margin-top: 24px; border: 1px solid #777; border-radius: 4px; background: #000; color: #fff; font-size: 16px; }
@media (max-width: 991px) {
  .pk-home .pk-repo-card.featured { gap: 0 26px; grid-template-columns: minmax(0, 1fr) 220px; }
  .pk-home .pk-repo-card { padding: 24px; }
}
@media (max-width: 767px) {
  .pk-home .pk-repo-head { align-items: start; flex-direction: column; gap: 18px; }
  .pk-home .pk-repo-head h2 { font-size: 30px; }
  .pk-home .pk-repo-toolbar { align-items: start; flex-direction: column; }
  .pk-home .pk-repo-filters { gap: 8px 18px; }
  .pk-home .pk-repo-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pk-home .pk-repo-card.featured { display: flex; padding: 24px; }
  .pk-home .featured .pk-repo-title { font-size: 27px; }
  .pk-home .featured .pk-repo-footer { align-self: stretch; margin-top: auto; padding-top: 22px; border-top: 1px solid #303030; }
}
@media (prefers-reduced-motion: reduce) { .pk-home .pk-repo-card { transition: none; } }
