.recent-articles-header {
  padding: 16px;
}

.profile {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.profile-image {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.post-entry.profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  height: auto;
  min-height: unset;
}

.profile-text {
  max-width: 100%;
  line-height: 1.5;
  text-align: left;
}

.post-entry {
  width: 110%;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.work {
  font-size: 15px;
  font-style: italic;
}

.hero-link {
  text-decoration: underline;
  color: inherit;
}

.hero-link:hover {
  text-decoration-thickness: 2px;
}

.hero-separator {
  opacity: 0.6;
}

li > ul {
  padding-left: 1.5rem;
}

.section-header {
  margin-top: 16px;
}

/* kf.html */

.kf-note {
  --kf-accent: #4a9eff;
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}
.kf-note[data-type="bug"]   { --kf-accent: #ff4a4a; }
.kf-note[data-type="patch"] { --kf-accent: #4aff91; }
.kf-note[data-type="warn"]  { --kf-accent: #ffaa4a; }
.kf-note[data-type="debug"] { --kf-accent: #9499a3; }
.kf-note[data-type="advice"] { --kf-accent: green; }

.kf-button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  list-style: none;
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  border-left: 3px solid var(--kf-accent);
  border-radius: 4px;
  padding: 10px 14px;
  background-color: color-mix(in srgb, currentColor 4%, transparent);
  transition: border-color 0.3s, background-color 0.3s;
}

.kf-button::-webkit-details-marker { display: none; }

.kf-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78em;
  opacity: 0.75;
}

.kf-chevron {
  color: var(--kf-accent);
  display: inline-block;
  transition: transform 0.2s;
}
.kf-note[open] .kf-chevron { transform: rotate(90deg); }

.kf-date::before { content: "["; }
.kf-date::after  { content: "]"; }

.kf-badge {
  margin-left: auto;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--kf-accent);
  border: 1px solid color-mix(in srgb, var(--kf-accent) 40%, transparent);
  border-radius: 3px;
  padding: 1px 6px;
}

.kf-anchor {
  color: var(--kf-accent);
  text-decoration: none;
}

.kf-title {
  font-weight: 700;
}

.kf-text {
  font-size: 0.9em;
  line-height: 1.6;
  padding: 10px 14px 4px;
}

.kf-note:target {
  --kf-accent: #ffaa4a;
}
.kf-note:target .kf-button {
  background-color: color-mix(in srgb, var(--kf-accent) 12%, transparent);
}

/* end {{ kf.html }} */

/* single.html */

.klog h4 {
  display:inline
}

.klog a {
  text-decoration: underline;
  font-style: italic
}

/* end {{ single.html }} */

/* {{ kcode.html }} */

.kcode-block {
  margin: 1.5em 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.kcode-meta {
  display: flex;
  gap: 0.75em;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.5em 1em;
  background: var(--entry);
  border-bottom: 1px solid var(--border);
  font-size: 1em;
  font-family: monospace;
}

.kcode-func {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9em;
}

.kcode-file {
  color: var(--secondary);
  font-size: 0.9em;
}

.kcode-version {
  margin-left: auto;
  color: var(--secondary);
  opacity: 0.8;
  font-size: 0.8em;
}

.kcode-pre {
  overflow-x: auto;
  font-family: monospace;
  font-size: 20px;
  line-height: 1.7;
}

.kcode-pre pre,
.kcode-pre code,
.kcode-pre .chroma {
  font-size: 1.05em !important;
  line-height: inherit !important;
}

.kcode-pre table {
  border-spacing: 0;
  width: 100%;
}

.kcode-pre td {
  padding: 0;
  vertical-align: top;
}

.kcode-pre .lntd:first-child {
  width: 1%;
  white-space: nowrap;
  user-select: none;
  color: var(--secondary);
  opacity: 0.55;
  text-align: right;
  padding-right: 1em;
  border-right: 1px solid var(--border);
}

.kcode-pre .lntd:first-child pre {
  padding: 0.75em 0;
  margin: 0;
}

.kcode-pre .lntd:last-child pre {
  padding: 0.75em 1em;
  margin: 0;
}

.kcode-line {
  display: block;
  scroll-margin-top: 4em;
  transition: background-color 0.15s ease;
}

.kcode-line:target,
.kcode-line.kcode-active {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
}

/* end {{ kcode.html }} */

/* {{ kline.html }} */

.kline {
  display: flex;
  gap: 0.75em;
  padding: 0.5em 0.75em;
  border-radius: var(--radius);
  transition: background-color 0.15s ease;
}

.kline + .kline {
  margin-top: 0.15em;
}

.kline.kline-active {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.kline-badge {
  flex-shrink: 0;
  height: fit-content;
  padding: 0.1em 0.5em;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--primary);
  font-family: monospace;
  font-size: 0.85em;
  text-decoration: none;
}

.kline-badge:hover { border-color: var(--primary); }

.kline-text {
  font-size: 1em;
  line-height: 1.55;
}

.kline-text code {
  font-size: 0.95em;
}

/* ---------- active-recall toggle ---------- */

.krecall {
  margin: 1em 0;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 0.6em 1em;
}

.krecall summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--secondary);
}

/* end {{ kline.html }} */

/* {{ codeblock.html }} */

.large-code {
  margin: 1.5em 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: monospace;
  font-size: 20px;
  line-height: 1.7;
  background: var(--code-bg, var(--entry));
}

.large-code pre,
.large-code code,
.large-code .chroma {
  font-size: 1em !important;
  line-height: inherit !important;
}

.large-code table {
  border-spacing: 0;
  width: 100%;
}

.large-code td {
  padding: 0;
  vertical-align: top;
}

.large-code .lntd:first-child {
  width: 1%;
  white-space: nowrap;
  user-select: none;
  color: var(--secondary);
  opacity: 0.55;
  text-align: right;
  padding-right: 1em;
  border-right: 1px solid var(--border);
}

.large-code .lntd:first-child pre {
  padding: 0.75em 0;
}

.large-code .lntd:last-child pre {
  padding: 0.75em 1em;
  margin: 0;
}

.large-code .lntd:last-child .line {
  display: block;
  padding: 0 0.25em;
}

.large-code .lntd:last-child .line:nth-child(odd) {
  background: color-mix(in srgb, var(--entry) 60%, var(--primary) 4%);
}

.large-code .lntd:last-child .line:nth-child(even) {
  background: transparent;
}

.large-code .line:target,
.large-code .line.lc-active {
  background: color-mix(in srgb, var(--primary) 18%, transparent) !important;
}

/* end {{ codeblock.html }} */
