/* siteapp4 - APKsPeak-inspired app directory theme.
   Palette: deep navy header/footer, green accent, light body; full dark palette. */

:root {
  --pk-accent: #00bc09;
  --pk-accent-dark: #00a008;
  --pk-navy: #17202e;
  --pk-navy-2: #131a25;
  --pk-panel: #ffffff;
  --pk-card: #ffffff;
  --pk-page: #eef1f5;
  --pk-ink: #40454f;
  --pk-muted: #7b8290;
  --pk-line: #e5e8ee;
  --pk-shadow: 2px 2px 3px 0 rgba(35, 44, 58, 0.14);
  --pk-star: #e8c823;
  --pk-new: #d23232;
  --pk-update: #14a83a;
  --pk-hover: #3c4559;
}
html[data-theme="light"] {
  --pk-navy: #1e2836;
  --pk-navy-2: #18202c;
}

* { box-sizing: border-box; }
html { scrollbar-color: var(--pk-accent) transparent; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', 'Open Sans', Arial, sans-serif;
  font-size: 13px;
  color: var(--pk-ink);
  background: var(--pk-page);
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: var(--pk-accent); }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
.pk-svg { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }
.pk-menu-open .pk-svg { width: 22px; height: 22px; }
.pk-mode .pk-svg { width: 16px; height: 16px; }
.pk-catbar .pk-svg { width: 13px; height: 13px; }
.pk-search-submit .pk-svg { width: 16px; height: 16px; }
.pk-prev .pk-svg, .pk-next .pk-svg { width: 14px; height: 14px; }
.pk-backtotop .pk-svg { width: 16px; height: 16px; }
.pk-buttond .pk-svg { width: 15px; height: 15px; vertical-align: -2px; }
.pk-report .pk-svg { width: 13px; height: 13px; color: var(--pk-accent); }

.pk-container { width: 1100px; max-width: 100%; margin: 0 auto; padding: 0 10px; }

/* ---------- Header ---------- */
.pk-header {
  position: sticky; top: 0; z-index: 999;
  background: var(--pk-navy);
  border-bottom: 2px solid var(--pk-accent);
  height: 60px;
}
.pk-header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.pk-logo { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.pk-logo-mark {
  background: var(--pk-accent); color: #fff; border-radius: 4px;
  padding: 4px 8px; font-size: 15px; letter-spacing: 1px;
}
.pk-logo-text { font-size: 19px; letter-spacing: .4px; }
.pk-nav { display: flex; align-items: center; margin-left: auto; }
.pk-menu { display: flex; }
.pk-menu li { margin-right: 2px; }
.pk-menu a {
  color: #fff; display: block; line-height: 35px; padding: 0 16px;
  font-size: 13px; font-weight: 600; border-radius: 3px; transition: .2s;
}
.pk-menu a:hover, .pk-menu a.is-current { background: var(--pk-accent); color: #fff; }
.pk-menu-open { display: none; background: none; border: 0; color: #fff; font-size: 22px; width: 42px; height: 44px; }
.pk-mode {
  margin-left: 10px; background: rgba(255,255,255,.06); border: 2px solid var(--pk-accent);
  border-radius: 50%; color: #f5c518; width: 34px; height: 34px; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; transition: .2s;
}
.pk-mode .pk-mode-moon { display: none; }
html[data-theme="light"] .pk-mode .pk-mode-sun { display: none; }
html[data-theme="light"] .pk-mode .pk-mode-moon { display: inline-block; color: #ffb347; }

/* ---------- Subheader hero ---------- */
.pk-subheader {
  background:
    radial-gradient(1200px 300px at 50% -80px, rgba(0, 188, 9, .22), transparent 70%),
    var(--pk-navy);
  color: #fff; text-align: center; padding: 44px 10px 40px;
  border-bottom: 2px solid var(--pk-accent);
}
.pk-subcontainer { width: 730px; max-width: 100%; margin: 0 auto; }
.pk-subheader h1 { font-size: 40px; font-weight: 700; padding-bottom: 6px; }
.pk-h1-dot { color: var(--pk-accent); }
.pk-subheader h2 { font-size: 16px; font-weight: 400; opacity: .86; margin: 0 0 22px; }
.pk-searchbox { max-width: 480px; margin: 0 auto; }
.pk-searchbox form { display: flex; background: #fff; border-radius: 3px; overflow: hidden; }
.pk-searchbox input {
  flex: 1; border: 0; outline: 0; padding: 11px 14px; font-size: 14px; color: #333; background: #fff;
}
.pk-search-submit {
  min-width: 44px; border: 0; background: var(--pk-accent); color: #fff; font-size: 15px;
}
.pk-search-submit:hover { background: var(--pk-accent-dark); }
.pk-social { margin-top: 26px; }
.pk-social li { display: inline-block; margin: 0 4px; }
.pk-social a {
  color: #fff; background: rgba(255,255,255,.14); border-radius: 50%;
  width: 40px; height: 40px; line-height: 40px; display: inline-block; transition: .25s;
  font-style: normal; font-weight: 700; font-size: 15px;
}
.pk-social a:hover { background: var(--pk-accent); opacity: 1; }
.pk-social a i { font-style: normal; }

/* ---------- Categories bar ---------- */
.pk-sections { padding: 4px 0 24px; }
.pk-catbar ul { margin: 12px 0 20px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.pk-catbar ul::-webkit-scrollbar { display: none; }
.pk-catbar li { display: inline-block; margin: 0 5px 5px; }
.pk-catbar a {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--pk-panel); color: var(--pk-ink);
  padding: 6px 16px; border-radius: 3px; box-shadow: var(--pk-shadow);
  transition: .25s; font-weight: 600;
}
.pk-catbar a:hover, .pk-catbar a.is-active { background: var(--pk-hover); color: #fff; }
.pk-cat-ic { font-size: 12px; }

/* ---------- Section frame ---------- */
.pk-title-section {
  font-size: 21px; font-weight: 400; color: var(--pk-ink);
  padding-bottom: 10px; margin: 6px 10px 12px;
  border-bottom: 1px solid var(--pk-line);
  display: flex; align-items: center; gap: 12px;
}
.pk-count { font-size: 12px; color: var(--pk-muted); font-weight: 600; }
.pk-title-more { margin-left: auto; font-size: 12px; font-weight: 700; text-transform: uppercase; }

/* ---------- App cards: wide rows ---------- */
.pk-baps { display: flex; flex-wrap: wrap; }
.pk-bav { background: var(--pk-card); box-shadow: var(--pk-shadow); border-radius: 3px; padding: 10px; }
.pk-bav2 { width: calc(100% / 3 - 20px); margin: 10px; }
.pk-bav2 > a { display: flex; align-items: flex-start; gap: 10px; color: inherit; }
.pk-thumb { position: relative; flex: none; width: 64px; height: 64px; border-radius: 8px; overflow: visible; }
.pk-thumb img { width: 64px; height: 64px; border-radius: 8px; display: block; object-fit: contain; }
.pk-thumb-sq img { width: 64px; height: 64px; object-fit: contain; }
.pk-bav-c { min-width: 0; }
.pk-bav .pk-title {
  display: block; font-weight: 700; color: var(--pk-ink); line-height: 1.35; margin-bottom: 4px;
}
.pk-bav > a:hover .pk-title { color: var(--pk-accent); }
.pk-bav .pk-version { display: inline-block; font-size: 11px; color: var(--pk-muted); margin-right: 8px; }
.pk-bav .pk-app-date { font-size: 11px; color: var(--pk-muted); }
.pk-postmeta { margin-top: 6px; }
.pk-box-rating { overflow: hidden; }
.pk-rating {
  display: block; position: relative; height: 14px; width: 70px;
  background: #d5d8dd; border-radius: 2px; overflow: hidden;
}
.pk-stars {
  display: block; height: 100%;
  background: repeating-linear-gradient(90deg, transparent 0 1px, transparent 1px),
    linear-gradient(90deg, transparent 0 1px, transparent 1px), var(--pk-star);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='70' height='14'><text x='0' y='11' font-size='12'>★★★★★</text></svg>");
  background-color: var(--pk-star);
  -webkit-mask-image: none;
  color: transparent;
  overflow: hidden;
  white-space: nowrap;
}
.pk-rating { background-color: #d5d8dd; }
.pk-rating .pk-stars {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='70' height='14'><text x='0' y='11' fill='%23e8c823' font-size='12'>★★★★★</text></svg>");
  background-color: transparent;
  background-repeat: no-repeat;
}
.pk-rating-average { font-size: 11px; color: var(--pk-muted); margin-left: 6px; }
.pk-rating-average b { color: var(--pk-accent); font-size: 13px; }
.pk-rating-text { display: block; font-size: 11px; color: var(--pk-muted); margin-top: 3px; }

/* status ribbons */
.pk-status {
  position: absolute; top: -7px; left: -14px; z-index: 8;
  width: 84px; padding: 3px 0; text-align: center;
  font-size: 9px; text-transform: uppercase; color: #fff;
  transform: rotate(-45deg); transform-origin: right bottom;
  letter-spacing: .6px;
}
.pk-status-new { background: var(--pk-new); }
.pk-status-update { background: var(--pk-update); }

/* ---------- Carousel (top rated) ---------- */
.pk-carousel { position: relative; }
.pk-carousel-wrap { overflow: hidden; }
.pk-carousel-track { display: flex; transition: transform .3s ease; }
.pk-bav-item {
  flex: none; width: 200px; margin: 10px; text-align: center;
}
.pk-bav-item > a { display: block; color: inherit; }
.pk-bav-item .pk-thumb { margin: 0 auto; }
.pk-bav-item .pk-title { margin: 8px 0 4px; }
.pk-bav-item .pk-rating { margin: 4px auto 0; }
.pk-prev, .pk-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 9;
  background: var(--pk-panel); border: 1px solid var(--pk-line); border-radius: 50%;
  width: 34px; height: 34px; color: var(--pk-muted); font-size: 13px;
  box-shadow: var(--pk-shadow);
}
.pk-prev { left: -8px; }
.pk-next { right: -8px; }
.pk-prev:hover, .pk-next:hover { color: #fff; background: var(--pk-accent); border-color: var(--pk-accent); }

/* ---------- Detail page ---------- */
.pk-app-s { max-width: 100%; }
.pk-box {
  background: var(--pk-card); box-shadow: var(--pk-shadow);
  border-radius: 3px; padding: 16px; margin: 0 0 20px;
}
.pk-breadcrumbs { font-size: 12px; color: var(--pk-muted); margin-bottom: 4px; }
.pk-breadcrumbs a { color: var(--pk-muted); }
.pk-breadcrumbs a:hover { color: var(--pk-accent); }
.pk-app-head { display: flex; flex-wrap: wrap; gap: 20px; }
.pk-app-spe-top { flex: 1 1 460px; min-width: 0; }
.pk-main-title { font-size: 26px; color: var(--pk-ink); word-break: break-word; }
.pk-app-spe-top .pk-version { display: inline-block; margin-top: 8px; background: var(--pk-navy); color: #fff; border-radius: 3px; padding: 4px 10px; font-size: 12px; }
.pk-clear { clear: both; }
.pk-meta-cats { margin-top: 10px; }
.pk-post-cats li { display: inline-block; margin-right: 6px; }
.pk-post-cats a {
  display: inline-block; padding: 3px 12px; border-radius: 2px;
  background: rgba(0, 188, 9, .1); color: var(--pk-accent-dark); font-weight: 600; font-size: 12px;
}
.pk-descripcion { margin-top: 12px; color: var(--pk-muted); line-height: 1.6; }
.pk-app-icb { flex: none; width: 190px; text-align: center; }
.pk-app-image-wrap { position: relative; display: inline-block; margin-bottom: 14px; }
.pk-image-single {
  width: 150px; height: 150px; border-radius: 14px; background-size: cover; background-position: center;
  box-shadow: var(--pk-shadow);
}
.pk-app-icb .pk-status { left: -18px; }
.pk-buttond {
  display: inline-block; width: 100%; text-align: center;
  background: var(--pk-accent); color: #fff; font-weight: 700; text-transform: uppercase;
  padding: 11px 16px; border-radius: 3px; font-size: 13px; transition: .2s; border: 0;
}
.pk-buttond:hover { background: var(--pk-accent-dark); }
.pk-app-icb .pk-box-rating { margin-top: 12px; }
.pk-app-icb .pk-rating { margin: 0 auto; }
.pk-report { margin-top: 10px; font-size: 12px; color: var(--pk-muted); }
.pk-social-share { flex: 1 1 100%; border-top: 1px solid var(--pk-line); padding-top: 14px; }
.pk-share-list li { display: inline-block; margin: 0 6px 6px 0; }
.pk-share-list a {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--pk-page); border: 1px solid var(--pk-line); border-radius: 3px;
  color: var(--pk-ink); padding: 7px 14px; font-size: 12px; font-weight: 600; transition: .2s;
}
.pk-share-list a:hover { background: var(--pk-accent); border-color: var(--pk-accent); color: #fff; }
.pk-share-glyph {
  font-style: normal; width: 20px; height: 20px; line-height: 20px; text-align: center;
  background: var(--pk-accent); color: #fff; border-radius: 4px; font-size: 11px; font-weight: 700;
}

/* metadata table */
.pk-table { width: 100%; border-collapse: collapse; background: var(--pk-card); box-shadow: var(--pk-shadow); border-radius: 3px; overflow: hidden; margin-bottom: 20px; }
.pk-table td { padding: 11px 16px; border-bottom: 1px solid var(--pk-line); font-size: 13px; }
.pk-table tr:last-child td { border-bottom: 0; }
.pk-table tr:nth-child(odd) td { background: rgba(0, 188, 9, .03); }

/* boxed content */
.pk-box-title {
  font-size: 13px; text-transform: uppercase; letter-spacing: .8px;
  position: relative; padding-bottom: 10px; margin-bottom: 14px;
  border-bottom: 1px solid var(--pk-line); color: var(--pk-ink);
}
.pk-box-title::after {
  content: ''; position: absolute; left: 0; bottom: -3px; width: 46px; height: 5px;
  background: var(--pk-accent); border-radius: 1px;
}

/* TOC */
.pk-toc-list > li { margin: 6px 0; }
.pk-toc-list a { color: var(--pk-ink); font-weight: 600; }
.pk-toc-list a:hover { color: var(--pk-accent); }
.pk-toc-sub { margin: 4px 0 4px 22px; }
.pk-toc-sub a { font-weight: 400; font-size: 12px; color: var(--pk-muted); }
.pk-toc-sub a:hover { color: var(--pk-accent); }

/* article reader */
.pk-entry { line-height: 1.75; font-size: 13.5px; color: var(--pk-ink); }
.pk-entry h2 { font-size: 19px; margin: 26px 0 10px; color: var(--pk-ink); }
.pk-entry h3 { font-size: 15.5px; margin: 20px 0 8px; color: var(--pk-ink); }
.pk-entry p { margin: 0 0 12px; }
.pk-entry .pk-lead { font-weight: 600; }
.pk-entry ol, .pk-entry ul { margin: 0 0 14px 22px; }
.pk-entry ol { list-style: decimal; }
.pk-entry ul { list-style: disc; }
.pk-entry li { margin-bottom: 6px; }
.pk-faq {
  border: 1px solid var(--pk-line); border-radius: 3px;
  padding: 10px 14px; margin-bottom: 10px; background: var(--pk-page);
}
.pk-faq summary { cursor: pointer; font-weight: 700; color: var(--pk-ink); }
.pk-faq[open] summary { color: var(--pk-accent-dark); }

/* download box */
.pk-download { border: 1px dashed rgba(0, 188, 9, .5); }
.pk-dl-list { text-align: center; }
.pk-dapk { width: auto; min-width: 260px; }
.pk-install-info { margin-top: 16px; padding: 12px 14px; background: var(--pk-page); border-radius: 3px; line-height: 1.7; }
.pk-install-info p { margin: 0 0 4px; }

/* comments */
.pk-comment-form label { display: block; font-weight: 600; margin-bottom: 12px; }
.pk-comment-form input, .pk-comment-form textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 10px 12px; border: 1px solid var(--pk-line); border-radius: 3px;
  background: var(--pk-page); color: var(--pk-ink); font-family: inherit; font-size: 13px;
}
.pk-comment-form input:focus, .pk-comment-form textarea:focus { outline: 2px solid rgba(0, 188, 9, .4); }
.pk-comment-submit {
  background: var(--pk-accent); color: #fff; border: 0; border-radius: 3px;
  padding: 10px 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.pk-comment-submit:hover { background: var(--pk-accent-dark); }
.pk-success { color: var(--pk-accent-dark); font-weight: 700; margin-top: 10px; }

/* related tiles */
.pk-rlat .pk-bav1 { width: calc(100% / 5 - 20px); margin: 10px; text-align: center; }
.pk-bav1 > a { display: block; color: inherit; }
.pk-bav1 .pk-thumb-sq img { width: 64px; height: 64px; border-radius: 8px; object-fit: contain; }
.pk-bav1 .pk-title { margin: 8px 0 4px; }
.pk-bav1 .pk-version { display: block; font-size: 11px; color: var(--pk-muted); }
.pk-bav1 .pk-app-date { display: block; font-size: 11px; color: var(--pk-muted); margin-bottom: 2px; }
.pk-bav1 .pk-rating { margin: 4px auto 0; }

/* missing */
.pk-missing { text-align: center; padding: 40px 16px; }
.pk-missing .pk-box-title::after { left: 50%; transform: translateX(-50%); }
.pk-missing p { margin: 0 0 16px; color: var(--pk-muted); }
.pk-missing .pk-buttond { width: auto; display: inline-block; }

/* ---------- Footer ---------- */
.pk-footer {
  background: var(--pk-navy-2); color: #fff;
  border-top: 2px solid var(--pk-accent); margin-top: 10px;
}
.pk-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 10px; flex-wrap: wrap;
}
.pk-copy { font-size: 12px; opacity: .85; }
.pk-footer-menu { display: inline-flex; margin-left: 12px; flex-wrap: wrap; }
.pk-footer-menu li { margin-right: 4px; }
.pk-footer-menu a {
  color: #fff; opacity: .8; padding: 3px 10px; border-radius: 2px; font-size: 12px; transition: .2s;
}
.pk-footer-menu a:hover { opacity: 1; background: rgba(0, 188, 9, .25); }
.pk-footer-logo { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.pk-footer-logo .pk-logo-mark { font-size: 12px; padding: 3px 6px; }
.pk-footer-logo .pk-logo-text { font-size: 15px; }

/* ---------- Floating auth + back to top ---------- */
.pk-authbar {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 1200; display: flex; gap: 10px;
}
.pk-authbar a {
  padding: 10px 26px; border-radius: 24px; font-weight: 700; font-size: 13px;
  box-shadow: 0 4px 14px rgba(15, 22, 34, .35); transition: .2s;
}
.pk-login { background: var(--pk-navy); color: #fff; border: 1px solid var(--pk-accent); }
.pk-register { background: var(--pk-accent); color: #fff; }
.pk-authbar a:hover { transform: translateY(-2px); }
.pk-backtotop {
  position: fixed; right: 18px; bottom: 18px; z-index: 1100;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--pk-accent); color: #fff; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .25s;
}
.pk-backtotop.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Dark mode ---------- */
html[data-theme="light"] body { background: #f2f4f8; }
html:not([data-theme="light"]) body,
html:not([data-theme="light"]) .pk-sections { background: var(--pk-page); }
html:not([data-theme="light"]) body { --pk-page: #1d222d; --pk-panel: #282d3a; --pk-card: #282d3a; --pk-ink: #d8d2d2; --pk-muted: #9aa1ad; --pk-line: #343b48; --pk-shadow: 2px 2px 3px 0 rgba(10, 13, 18, .5); --pk-hover: #41495d; }
html:not([data-theme="light"]) .pk-menu a:hover,
html:not([data-theme="light"]) .pk-menu a.is-current { color: #fff; }
html:not([data-theme="light"]) .pk-catbar a { color: #fff; background: #282d3a; box-shadow: 2px 2px 3px 0 rgba(10,13,18,.5); }
html:not([data-theme="light"]) .pk-bav .pk-title,
html:not([data-theme="light"]) .pk-main-title,
html:not([data-theme="light"]) .pk-entry h2,
html:not([data-theme="light"]) .pk-entry h3,
html:not([data-theme="light"]) .pk-box-title { color: #fff; }
html:not([data-theme="light"]) .pk-entry { color: #d4d4d4; }
html:not([data-theme="light"]) .pk-rating { background-color: #7c7f84; }
html:not([data-theme="light"]) .pk-table td { border-bottom-color: #232834; }
html:not([data-theme="light"]) .pk-table tr:nth-child(odd) td { background: rgba(255,255,255,.05); }
html:not([data-theme="light"]) .pk-searchbox input { background: #fff; }
html:not([data-theme="light"]) .pk-faq { background: #1d222d; border-color: #343b48; }
html:not([data-theme="light"]) .pk-install-info { background: #303542; color: #d4d4d4; }
html:not([data-theme="light"]) .pk-share-list a { background: #1d222d; border-color: #343b48; color: #fff; }
html:not([data-theme="light"]) .pk-post-cats a { background: rgba(0,188,9,.14); color: #2edc3b; }
html:not([data-theme="light"]) .pk-login { background: #13161d; }
html:not([data-theme="light"]) .pk-subheader { background: radial-gradient(1200px 300px at 50% -80px, rgba(0,188,9,.18), transparent 70%), #13161d; }
html:not([data-theme="light"]) .pk-title-section { color: #fff; border-bottom-color: #343b48; }
html:not([data-theme="light"]) .pk-toc-list a { color: #fff; }
html:not([data-theme="light"]) .pk-prev, html:not([data-theme="light"]) .pk-next { background: #282d3a; border-color: #343b48; color: #9aa1ad; }

/* ---------- Responsive ---------- */
@media (max-width: 950px) {
  .pk-bav2 { width: calc(100% / 2 - 20px); }
  .pk-rlat .pk-bav1 { width: calc(100% / 3 - 20px); }
}
@media (max-width: 750px) {
  .pk-subheader h1 { font-size: 30px; }
  .pk-menu {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: var(--pk-navy); flex-direction: column; padding: 8px 10px 12px;
    border-bottom: 2px solid var(--pk-accent); z-index: 998;
  }
  .pk-menu.is-open { display: flex; }
  .pk-menu-open { display: block; }
  .pk-bav2 { width: calc(100% / 2 - 20px); }
  .pk-app-icb { width: 100%; }
  .pk-rlat .pk-bav1 { width: calc(100% / 2 - 20px); }
  .pk-main-title { font-size: 22px; }
}
@media (max-width: 480px) {
  .pk-logo-text { font-size: 16px; }
  .pk-bav2 { width: 100%; margin: 8px 0; }
  .pk-rlat .pk-bav1 { width: calc(100% / 2 - 14px); margin: 7px; }
  .pk-bav-item { width: 168px; }
  .pk-authbar a { padding: 9px 20px; font-size: 12px; }
  .pk-subheader h1 { font-size: 26px; }
  .pk-subheader h2 { font-size: 13px; }
}

/* ---------- v2 + i18n additions (language switcher, intro box, tag row,
   discovery row, detail grid, download flow, landing, home sidebar) ---------- */
.pk-sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* header download CTA -> first ordered catalog app (internal link only) */
.pk-headcta {
  display: inline-flex; align-items: center; gap: 7px; margin-left: 12px;
  background: var(--pk-accent); color: #fff; font-weight: 700; font-size: 12.5px;
  padding: 8px 14px; border-radius: 3px; text-transform: uppercase; transition: .2s;
  white-space: nowrap;
}
.pk-headcta:hover { background: var(--pk-accent-dark); color: #fff; }

/* language switcher: pill/capsule toggle, active segment carries the accent */
.pk-lang {
  display: inline-flex; align-items: center; margin-left: 12px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--pk-accent);
  border-radius: 999px; padding: 2px; gap: 2px;
}
.pk-lang-seg {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .3px;
  white-space: nowrap; transition: .2s;
}
.pk-lang-seg:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.pk-lang-seg.is-active { background: var(--pk-accent); color: #fff; }

/* home: desktop two-column frame (main column + sidebar), stacks on mobile */
.pk-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.pk-side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 14px; }
.pk-side .pk-box { margin: 0; }
.pk-side-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--pk-ink); margin-bottom: 12px; padding-bottom: 9px;
  border-bottom: 1px solid var(--pk-line);
}
.pk-side-title .pk-svg { color: var(--pk-accent); }
.pk-side-search input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--pk-line); border-radius: 3px;
  background: var(--pk-page); color: var(--pk-ink); font-family: inherit; font-size: 13px;
}
.pk-side-search input:focus { outline: 2px solid rgba(0, 188, 9, .4); }
.pk-side-social { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-side-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--pk-page); border: 1px solid var(--pk-line); color: var(--pk-ink);
  transition: .2s;
}
.pk-side-social a i { font-style: normal; font-weight: 700; font-size: 13px; }
.pk-side-social a:hover { background: var(--pk-accent); border-color: var(--pk-accent); color: #fff; }
.pk-rated-list li + li { border-top: 1px solid var(--pk-line); }
.pk-rated-list a {
  display: flex; align-items: center; gap: 10px; padding: 9px 2px; color: inherit;
}
.pk-rated-list img {
  width: 40px; height: 40px; max-width: 40px; max-height: 40px; border-radius: 8px;
  object-fit: contain; flex: none;
}
.pk-rated-list .pk-rated-info { min-width: 0; display: flex; flex-direction: column; }
.pk-rated-list b { font-size: 12.5px; color: var(--pk-ink); line-height: 1.35; }
.pk-rated-list small { font-size: 11px; color: var(--pk-muted); margin-top: 2px; }
.pk-rated-list a:hover b { color: var(--pk-accent); }

/* detail: description box + full category tag row */
.pk-intro-text { margin: 10px 0 0; color: var(--pk-ink); line-height: 1.7; font-size: 13.5px; }
.pk-tagrow { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-tag {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: var(--pk-page); border: 1px solid var(--pk-line); color: var(--pk-muted);
  font-size: 12px; font-weight: 700; transition: .2s;
}
.pk-tag:hover { color: var(--pk-accent); border-color: var(--pk-accent); }
.pk-tag.is-active { background: var(--pk-accent); border-color: var(--pk-accent); color: #fff; }
.pk-tag.is-active:hover { filter: brightness(1.08); color: #fff; }

/* social / discovery row: directly below the description box */
.pk-discover { border-left: 3px solid var(--pk-accent); }
.pk-discover-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-discover-list a {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pk-page); border: 1px solid var(--pk-line); border-radius: 3px;
  color: var(--pk-ink); padding: 7px 13px; font-size: 12px; font-weight: 600; transition: .2s;
}
.pk-discover-list a:hover { background: var(--pk-accent); border-color: var(--pk-accent); color: #fff; }
.pk-discover-list a:hover .pk-share-glyph { background: rgba(255, 255, 255, .22); }

/* detail: article body + right related rail (stacks below with a divider) */
.pk-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.pk-detail-main .pk-box { margin-bottom: 20px; }
.pk-detail-side { position: sticky; top: 76px; }
.pk-detail-side .pk-box { margin: 0; }
.pk-related-list li + li { border-top: 1px solid var(--pk-line); }
.pk-related-list a { display: flex; align-items: center; gap: 10px; padding: 9px 2px; color: inherit; }
.pk-related-list img {
  width: 40px; height: 40px; max-width: 40px; max-height: 40px; border-radius: 8px;
  object-fit: contain; flex: none;
}
.pk-related-list .pk-related-info { min-width: 0; display: flex; flex-direction: column; }
.pk-related-list b { font-size: 12.5px; color: var(--pk-ink); line-height: 1.35; }
.pk-related-list small { font-size: 11px; color: var(--pk-muted); margin-top: 2px; }
.pk-related-list a:hover b { color: var(--pk-accent); }

/* v2 download flow (shared _appkit markup, siteapp4 palette):
   the head button stays visually identical to the primary download button. */
.pk-app-icb .app-dl-btn {
  display: inline-block; width: 100%; text-align: center;
  background: var(--pk-accent); color: #fff; font-weight: 700; text-transform: uppercase;
  padding: 11px 16px; border-radius: 3px; font-size: 13px; transition: .2s; border: 0;
  font-family: inherit; cursor: pointer; box-shadow: var(--pk-shadow);
}
.pk-app-icb .app-dl-btn:hover { background: var(--pk-accent-dark); color: #fff; }
.app-dl-zone {
  margin: 0 0 20px; padding: 22px 16px; border: 1px dashed rgba(0, 188, 9, .5);
  border-radius: 3px; background: var(--pk-card); box-shadow: var(--pk-shadow);
}
.app-dl-progress { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--pk-muted); font-size: 13px; }
.app-dl-bar {
  display: block; width: min(320px, 100%); height: 8px; border-radius: 999px;
  background: var(--pk-page); border: 1px solid var(--pk-line); overflow: hidden; font-style: normal;
}
.app-dl-bar b { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--pk-accent); transition: width 3s linear; }
.app-dl-install { margin-top: 14px; padding: 12px 14px; background: var(--pk-page); border-radius: 3px; line-height: 1.7; font-size: 13px; }
.app-dl-install b { display: block; margin-bottom: 6px; }
.app-dl-install ol { margin: 0; padding-left: 20px; list-style: decimal; }
.app-dl-final {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  background: var(--pk-accent); color: #fff; font-weight: 700; text-transform: uppercase;
  padding: 12px 34px; border-radius: 3px; font-size: 13.5px; transition: .2s;
  box-shadow: var(--pk-shadow);
}
.app-dl-final:hover { background: var(--pk-accent-dark); color: #fff; }
.app-dl-final[hidden] { display: none; }
.app-dl-progress[hidden] { display: none; }

/* v2 landing page */
.pk-landing-head { display: flex; gap: 18px; align-items: flex-start; }
.pk-landing-icon {
  width: 96px; height: 96px; flex: none; border-radius: 14px;
  background-size: cover; background-position: center; box-shadow: var(--pk-shadow);
}
.pk-landing-title { min-width: 0; }
.pk-landing-title .pk-main-title { font-size: 24px; }
.pk-landing-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pk-landing-chip {
  display: inline-block; background: var(--pk-page); border: 1px solid var(--pk-line);
  color: var(--pk-muted); border-radius: 3px; padding: 4px 10px; font-size: 12px; font-weight: 600;
}
.pk-landing-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 6px;
}
.pk-landing-fact { background: var(--pk-page); border-radius: 3px; padding: 10px 12px; font-size: 12px; }
.pk-landing-fact b { display: block; color: var(--pk-muted); font-weight: 600; }
.pk-landing-fact span { color: var(--pk-ink); font-weight: 700; }
.pk-landing-desc { margin: 14px 0 0; color: var(--pk-ink); line-height: 1.75; font-size: 13.5px; }
.pk-landing-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.pk-landing-dl { width: auto; min-width: 220px; }
.pk-landing-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 24px; border-radius: 3px; font-weight: 700; font-size: 13px; transition: .2s;
}
.pk-landing-btn.is-login { background: var(--pk-page); border: 1px solid var(--pk-line); color: var(--pk-ink); }
.pk-landing-btn.is-login:hover { border-color: var(--pk-accent); color: var(--pk-accent); }
.pk-landing-btn.is-register { background: var(--pk-navy); color: #fff; }
.pk-landing-btn.is-register:hover { filter: brightness(1.25); color: #fff; }
.pk-landing-install { padding: 12px 14px; background: var(--pk-page); border-radius: 3px; line-height: 1.7; font-size: 13px; }
.pk-landing-install b { display: block; margin-bottom: 6px; }
.pk-landing-install ol { margin: 0; padding-left: 20px; list-style: decimal; }
.pk-landing-back {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  color: var(--pk-muted); font-size: 12.5px; font-weight: 600;
}
.pk-landing-back:hover { color: var(--pk-accent); }

/* footer: about blurb + directory links */
.pk-footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px;
  padding: 26px 10px 8px;
}
.pk-footer-about .pk-footer-blurb { margin: 12px 0 0; color: rgba(255, 255, 255, .82); font-size: 12.5px; line-height: 1.75; }
.pk-footer-about .pk-footer-note { margin: 10px 0 0; color: rgba(255, 255, 255, .6); font-size: 11.5px; }
.pk-footer-title { display: block; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; }
.pk-footer-links ul li { margin-bottom: 7px; }
.pk-footer-links ul a { color: rgba(255, 255, 255, .82); font-size: 12.5px; transition: .2s; }
.pk-footer-links ul a:hover { color: #fff; padding-left: 4px; }
.pk-footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 16px 10px 22px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 16px;
}
.pk-footer-contact { display: flex; align-items: center; gap: 14px; font-size: 12px; flex-wrap: wrap; }
.pk-footer-contact a { color: #fff; opacity: .85; }
.pk-footer-contact a:hover { opacity: 1; }
.pk-responsible { color: rgba(255, 255, 255, .6); }

/* dark mode: repaint the new surfaces from the same variables */
html:not([data-theme="light"]) .pk-side-search input { background: #1d222d; color: #d8d2d2; }
html:not([data-theme="light"]) .pk-tag { background: #1d222d; }
html:not([data-theme="light"]) .pk-discover-list a,
html:not([data-theme="light"]) .pk-landing-chip,
html:not([data-theme="light"]) .pk-landing-fact { background: #1d222d; }
html:not([data-theme="light"]) .pk-related-list b,
html:not([data-theme="light"]) .pk-rated-list b { color: #fff; }
html:not([data-theme="light"]) .pk-related-list li + li,
html:not([data-theme="light"]) .pk-rated-list li + li { border-top-color: #343b48; }
html:not([data-theme="light"]) .pk-landing-btn.is-login { background: #1d222d; color: #d8d2d2; }
html:not([data-theme="light"]) .pk-landing-btn.is-register { background: #13161d; }

/* responsive: stack the two-column frames below the article/catalog */
@media (max-width: 950px) {
  .pk-home-grid { grid-template-columns: 1fr; }
  .pk-side { position: static; }
  .pk-detail-grid { grid-template-columns: 1fr; }
  .pk-detail-side { position: static; border-top: 1px solid var(--pk-line); padding-top: 18px; }
  .pk-headcta { display: none; }
}
@media (max-width: 640px) {
  .pk-lang { margin-left: 8px; }
  .pk-lang-seg { padding: 4px 9px; font-size: 11px; }
  .pk-footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .pk-landing-head { flex-direction: column; }
  .pk-landing-facts { grid-template-columns: repeat(2, 1fr); }
  .pk-landing-actions { flex-direction: column; }
  .pk-landing-dl, .pk-landing-btn { width: 100%; }
}
