.hero-inner-slim { display: grid; grid-template-columns: 1fr !important; grid-auto-flow: row; }

.hero-slim { padding: 12px 0 28px }
.breadcrumb { color: var(--muted); display:flex; gap:6px; align-items:center; margin-bottom: 6px }
.breadcrumb a { color: var(--muted); text-decoration:none }
.breadcrumb a:hover { color: #e9f1ff; text-decoration: underline }
.breadcrumb .sep { opacity:.4 }
.post-hero-title { margin: 8px 0 10px; font-size: clamp(28px,3.8vw,40px); line-height: 1.15 }
.post-meta {
  display:flex; flex-wrap:wrap; gap:10px; align-items:center; color:#cfe2ff; font-weight: 600;
}
.post-meta .cat { font-weight:900; color:#76ffea; border:1px solid rgba(0,214,200,.35); padding:2px 8px; border-radius:999px; background:rgba(0,214,200,.10) }
.post-meta .views { color:#d0e7ff; font-weight:800 }

.section-post { padding-top: 24px }
.post-article { max-width: 100%; margin: 0 auto; }

.post-article p,
.post-article ul,
.post-article ol { color:#dbe8ff; }
.post-article .lead { color:#e9f1ff; font-size:1.06rem }
.post-article ul, .post-article ol { padding-left: 20px }

.post-article h2, .post-article h3 { scroll-margin-top: 100px; }
.post-article h2 { margin: 16px 0 8px; font-size: 1.5rem }
.post-article h3 { margin: 14px 0 6px; font-size: 1.2rem }

.callout {
  border:1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border-radius: 14px; padding: 12px; margin: 12px 0;
  box-shadow: var(--shadow);
}
.callout .callout-title { display:flex; align-items:center; gap:8px; color:#eaf4ff }
.callout.note { border-color: rgba(83,109,254,.35) }
.callout.warn { border-color: rgba(255, 189, 122, .45) }

pre.codeblock {
  position: relative;
  border: 1px solid var(--line);
  background: #0c1220;
  border-radius: 14px;
  padding: 12px 12px 14px;
  overflow: auto;
  box-shadow: var(--shadow);
}
pre.codeblock code { color:#e6efff; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace }

.tags { display:flex; gap:8px; flex-wrap:wrap; margin-top: 16px }
.tag {
  text-decoration:none; color:#dffaf6; font-weight:800; border:1px dashed rgba(0,214,200,.35);
  background: rgba(0,214,200,.08); padding:6px 10px; border-radius: 999px;
}
.share-inline { margin-top: 16px; display:flex; gap:10px; flex-wrap:wrap }

.author-panel {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

/* Ribbon (top-right corner) */
.author-ribbon{
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0b1320;
  background: rgba(118,255,234,.95);
  border: 1px solid rgba(118,255,234,.45);
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  z-index: 2;
}

/* Row 1: avatar + name/role */
.author-top {
  display: flex;
  align-items: center;            /* align avatar to text block */
  gap: 14px;
  padding-right: 78px;            /* keep content away from ribbon */
}

.author-media { flex: 0 0 auto; }

/* Smaller avatar to match name+designation height */
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.12);
  display: block;
}

.author-avatar--fallback {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  color: #dbe8ff;
}

.author-info { min-width: 0; }
.author-name { margin: 0 0 2px; font-size: 1.06rem; line-height: 1.2; }
.author-role { margin: 0; color: var(--muted); font-weight: 800; font-size: .95rem; line-height: 1.25; }

/* Row 2: bio full width */
.author-bottom { margin-top: 10px; }
.author-bio { margin: 0; color: #dbe8ff; }

@media (max-width: 560px) {
  .author-top {
    align-items: flex-start;
    padding-right: 0;
  }

  .author-ribbon{
    top: 10px;
    right: 10px;
    font-size: .72rem;
    padding: 6px 10px;
  }
}

.sr-only{
  position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px);
  white-space:nowrap; border:0; padding:0; margin:-1px;
}
