@layer components {

.kn-vcard { background: var(--bg-card); border: 2px solid var(--border-strong); border-radius: 0; padding: 16px; }
.kn-vcard a:not(.kn-read-more) { text-decoration: none; }
.kn-vcard img { width: 100%; height: auto; border-radius: 0; display: block; }
.kn-read-more { display: inline-flex; align-items: center; margin-top: 12px; padding: 8px 14px; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-primary); background: transparent; border: 2px solid var(--border-strong); border-radius: 0; text-decoration: none; }
.kn-read-more:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.kn-vcard h5 { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.kn-vcard img.kn-card-icon { width: 20px; height: 20px; flex-shrink: 0; }
.kn-vcard .kn-phase-tags { margin-top: 8px; }
.kn-vcard p { font-weight: 500; font-size: 0.9375rem; line-height: 1.5; color: var(--text-secondary); }
.kn-vcard--related { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.kn-vcard--related .kn-vcard__main { flex: 1; min-width: 0; }
.kn-vcard--related .kn-vcard__main h5 { margin-bottom: 0; }
.kn-vcard__thumb { flex-shrink: 0; width: 128px; height: 84px; border-radius: 0; overflow: hidden; display: block; background: var(--bg-card2); border: 1px solid var(--border-strong); }
.kn-vcard__thumb img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0; }
.kn-vcard--post { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); gap: 16px; align-items: stretch; }
.kn-vcard--post h3, .kn-vcard--post h4 { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem); line-height: 1.3; margin-bottom: 8px; }
.kn-vcard__media { display: block; aspect-ratio: 16 / 9; border-radius: 0; overflow: hidden; background: var(--bg-card2); border: 1px solid var(--border-strong); }
.kn-vcard__media img { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0; display: block; }
.kn-vcard--post .kn-vcard__media { align-self: start; }
.kn-vcard__body { min-width: 0; display: flex; flex-direction: column; }
.kn-vcard__body:only-child { grid-column: 1 / -1; }
.kn-vcard__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.kn-vcard h3 a,
.kn-vcard h4 a,
.kn-vcard h5 a { color: var(--text-primary); }
.kn-vcard--case { display: flex; flex-direction: column; gap: 10px; padding: 12px; text-decoration: none; color: var(--text-primary); }
.kn-vcard--case:hover { border-color: var(--accent-ink); }
.kn-vcard--case .kn-vcard__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }

.kn-case-thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 0; overflow: hidden; background: var(--bg-card2); border: 1px solid var(--border-strong); }
.kn-case-thumb__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kn-case-thumb__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--hero-wire); }
.kn-case-thumb__skeleton { width: 52%; height: auto; }

.kn-case-niche { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.kn-case-title { font-size: 1.125rem; line-height: 1.3; color: var(--text-primary); }
.kn-vcard--case .kn-case-excerpt { font-size: 0.9375rem; font-weight: 400; line-height: 1.55; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kn-case-more { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--text-primary); }
.kn-case-more span { transition: transform 0.2s ease; }
.kn-vcard--case:hover .kn-case-more span,
a.kn-case-more:hover span { transform: translateX(4px); }

.kn-vcard img.kn-card-thumb { border-radius: 0; }

@media (max-width: 700px) {
  .kn-vcard--post { display: flex; flex-direction: column; gap: 12px; }
  .kn-vcard--post .kn-vcard__body,
  .kn-vcard--post .kn-vcard__head,
  .kn-vcard--post .kn-vcard__foot { display: contents; }
  .kn-vcard--post .kn-vcard__head h3, .kn-vcard--post .kn-vcard__head h4 { order: 1; margin-bottom: 0; }
  .kn-vcard--post .kn-post-meta { order: 2; margin: 0 !important; }
  .kn-vcard--post .kn-phase-tags { order: 3; margin-top: 0; }
  .kn-vcard--post .kn-vcard__media { order: 4; align-self: stretch; }
  .kn-vcard--post .kn-vcard__foot > p:not(.kn-post-meta) { order: 5; }
  .kn-vcard--post .kn-vcard__foot > p:has(.kn-read-more) { order: 6; }
  .kn-vcard--post .kn-read-more { margin-top: 0; }

  .kn-vcard--related { flex-direction: column; align-items: stretch; gap: 12px; }
  .kn-vcard--related .kn-vcard__main { order: 1; }
  .kn-vcard--related .kn-vcard__thumb { order: 2; width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

@media (max-width: 900px) {
  .kn-vcard p { font-size: 0.9375rem; }
}

.kn-blog__main .kn-blog-feat { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: var(--r-card); overflow: hidden; margin-bottom: 16px; }
.kn-blog-feat__media { display: block; aspect-ratio: 21 / 9; overflow: hidden; background: var(--bg-card2); }
.kn-blog-feat__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kn-blog-feat__media--empty { background: linear-gradient(135deg, var(--accent-light), var(--bg-card2)); min-height: 120px; }
.kn-blog-feat__body { padding: 16px; }
.kn-blog-feat__meta { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.kn-blog-feat__title { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem); line-height: 1.25; margin-bottom: 8px; }
.kn-blog-feat__title a { color: var(--text-primary); text-decoration: none; }
.kn-blog-feat__excerpt { font-weight: 500; font-size: 1rem; line-height: 1.5; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.is-js .kn-blog__main .kn-vcard--post,
.is-js .kn-blog__main .kn-blog-feat { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.21, 1); transition-delay: var(--pd, 0s); }
.is-js .kn-blog__main .is-inview { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .is-js .kn-blog__main .kn-vcard--post,
  .is-js .kn-blog__main .kn-blog-feat { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 700px) {
  .kn-blog-feat__media { aspect-ratio: 16 / 9; }
  .kn-blog-feat__body { padding: 16px; }
}

}
