/* PikyHost Site Kit: blog pages and the home "latest posts" strip, for every template.
   The template's own site.css is loaded first, so the page already has its background, text colour and fonts;
   here we only add layout, using currentColor for lines/muted text and --pk-brand (the template's brand colour). */
.pk-blog-body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; padding-bottom: 0 !important; }
.pk-bmain { flex: 1; outline: none; }
.pk-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; box-sizing: border-box; }
.pk-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--pk-brand); color: var(--pk-on-brand); font-weight: 700; text-decoration: none; }
.pk-skip:focus { top: 12px; }
.pk-blog-body :focus-visible { outline: 3px solid var(--pk-brand); outline-offset: 3px; }
.pk-h, .pk-bhead h1, .pk-phead h1, .pk-card-t, .pk-prose h2, .pk-prose h3, .pk-related h2, .pk-latest h2, .pk-brand span {
  font-family: var(--fd, var(--f-d, var(--f-head, inherit))); }

/* header */
.pk-bh { position: sticky; top: 0; z-index: 20; background: inherit; border-bottom: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.pk-bh-in { display: flex; align-items: center; gap: 14px; min-height: 68px; flex-wrap: wrap; padding-block: 8px; }
.pk-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 19px; margin-inline-end: auto; min-width: 0; }
.pk-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-brand .pk-b-mark, .pk-brand svg { width: 38px !important; height: 38px !important; flex: none; }
.pk-b-logo { height: 40px; width: auto; max-width: 160px; object-fit: contain; display: block; }
.pk-b-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--pk-brand); flex: none; }
.pk-bnav { display: flex; gap: 4px; }
.pk-bnav a, .pk-blang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: inherit; text-decoration: none; font-weight: 600; font-size: 15px; }
.pk-bnav a:hover, .pk-blang:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.pk-bnav a[aria-current="page"] { color: var(--pk-brand); }
.pk-blang { border: 1.5px solid color-mix(in srgb, currentColor 30%, transparent); }
@media (max-width: 560px) { .pk-brand { font-size: 17px; } .pk-bnav a, .pk-blang { padding: 0 10px; font-size: 14px; } .pk-bh-in { gap: 6px; } }

/* breadcrumbs + headings */
.pk-bwrap { padding-top: 22px; padding-bottom: 56px; }
.pk-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 14px; }
.pk-crumbs li { display: inline-flex; align-items: center; gap: 6px; margin: 0; opacity: .85; }
.pk-crumbs li + li::before { content: "›"; opacity: .6; }
html[dir="rtl"] .pk-crumbs li + li::before { content: "‹"; }
.pk-crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.pk-crumbs [aria-current] { max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-bhead { margin: 6px 0 26px; }
.pk-bhead h1, .pk-phead h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 46px); line-height: 1.2; letter-spacing: -.01em; color: inherit; }
.pk-bhead p { margin: 0; font-size: 18px; opacity: .8; max-width: 62ch; }

/* cards */
.pk-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pk-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid color-mix(in srgb, currentColor 13%, transparent);
  background: color-mix(in srgb, currentColor 3%, transparent); transition: transform .2s, box-shadow .2s; }
.pk-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -22px color-mix(in srgb, currentColor 60%, transparent); }
.pk-card-img { text-decoration: none; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: color-mix(in srgb, var(--pk-brand) 18%, transparent); }
.pk-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-noimg { display: grid; place-items: center; background: linear-gradient(135deg, var(--pk-brand), color-mix(in srgb, var(--pk-brand) 55%, #000)); }
.pk-noimg span { font-size: 64px; font-weight: 800; color: var(--pk-on-brand); opacity: .9; font-family: var(--fd, var(--f-d, var(--f-head, inherit))); }
.pk-card-b { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.pk-meta { margin: 0; font-size: 13.5px; opacity: .72; }
.pk-card-t { margin: 0; font-size: 21px; line-height: 1.35; }
.pk-card-t a { color: inherit; text-decoration: none; }
.pk-card-t a:hover { color: var(--pk-brand); }
.pk-card-x { margin: 0; opacity: .82; font-size: 15.5px; line-height: 1.7; }
.pk-more { margin-top: auto; padding-top: 4px; color: var(--pk-brand); font-weight: 700; text-decoration: none; font-size: 15px; align-self: flex-start; min-height: 32px; display: inline-flex; align-items: center; }
.pk-more::after { content: " →"; }
html[dir="rtl"] .pk-more::after { content: " ←"; }
.pk-more:hover { text-decoration: underline; }
.pk-empty { opacity: .75; }

/* post */
.pk-post { max-width: 760px; margin: 0 auto; }
.pk-phead { margin-bottom: 22px; }
.pk-lede { margin: 6px 0 0; font-size: 19px; line-height: 1.7; opacity: .85; }
.pk-cover { margin: 0 0 26px; border-radius: 20px; overflow: hidden; }
.pk-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pk-prose { font-size: 18px; line-height: 1.9; }
.pk-prose > * { margin: 0 0 18px; }
.pk-prose h2 { font-size: 26px; line-height: 1.35; margin: 34px 0 12px; color: inherit; }
.pk-prose h3 { font-size: 21px; line-height: 1.4; margin: 26px 0 10px; color: inherit; }
.pk-prose p { margin: 0 0 18px; }
.pk-prose ul, .pk-prose ol { padding-inline-start: 1.5em; margin: 0 0 18px; }
.pk-prose ul { list-style: disc; } .pk-prose ol { list-style: decimal; }
.pk-prose li { margin: 0 0 8px; padding: 0; display: list-item; }
.pk-prose li::marker { color: var(--pk-brand); font-weight: 700; }
.pk-prose a { color: var(--pk-brand); text-decoration: underline; text-underline-offset: 3px; }
.pk-prose strong { font-weight: 700; }
.pk-prose blockquote { margin: 0 0 18px; padding: 12px 18px; border-inline-start: 4px solid var(--pk-brand); background: color-mix(in srgb, var(--pk-brand) 8%, transparent); border-radius: 10px; }
.pk-prose blockquote p { margin: 0; }
.pk-prose figure { margin: 24px 0; }
.pk-prose figure img { display: block; width: 100%; height: auto; border-radius: 14px; }
.pk-prose figcaption { margin-top: 8px; font-size: 14px; opacity: .7; text-align: center; }
.pk-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 34px 0 10px; padding: 20px 22px; border-radius: 18px;
  background: color-mix(in srgb, var(--pk-brand) 10%, transparent); border: 1px solid color-mix(in srgb, var(--pk-brand) 30%, transparent); }
.pk-cta p { margin: 0; font-weight: 700; font-size: 18px; }
.pk-cta-b { display: flex; flex-wrap: wrap; gap: 10px; }
.pk-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--pk-brand); color: var(--pk-on-brand);
  font-weight: 700; text-decoration: none; border: 2px solid var(--pk-brand); }
.pk-btn:hover { filter: brightness(1.08); }
.pk-btn-ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 35%, transparent); }
.pk-related { margin-top: 48px; }
.pk-related h2 { font-size: 26px; margin: 0 0 18px; }
.pk-related .pk-card-t { font-size: 19px; }
.pk-backl { margin: 34px 0 0; text-align: center; }
.pk-backl a { color: var(--pk-brand); font-weight: 700; }

/* footer */
.pk-bf { padding: 8px 0 26px; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); text-align: center; font-size: 15px; }
.pk-bf .pk-social { padding-bottom: 14px; }
.pk-bf-name { margin: 6px 0 4px; display: grid; gap: 2px; }
.pk-bf-name span { opacity: .75; font-size: 14px; }
.pk-bf-copy { margin: 8px 0 0; opacity: .7; font-size: 13.5px; }

/* home page: latest posts strip (inserted by kit.js before the contact section) */
.pk-latest { padding: 56px 0; }
.pk-latest .pk-wrap { max-width: 1200px; }
.pk-latest-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.pk-latest h2 { margin: 0; font-size: clamp(26px, 4vw, 38px); line-height: 1.2; }
.pk-latest-all { color: var(--pk-brand); font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.pk-latest-all:hover { text-decoration: underline; }
.pk-latest .pk-card-t { font-size: 19px; }
@media (prefers-reduced-motion: reduce) { .pk-card { transition: none; } .pk-card:hover { transform: none; } }
@media (max-width: 420px) { .pk-bnav a:first-child { display: none; } }
.pk-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
