/* =====================================================================
   Single Blog — reference layout pattern, CodeNdCoffee brand colors
   Brand: #0000ff, ink #0A2540 / #0d0d1c, Poppins
   ===================================================================== */

/* Parent .background-img uses overflow:hidden — breaks position:sticky */
body.single .background-img,
body.single-post .background-img {
  overflow: visible;
}

.single-blog-page.cc-post {
  --cc-brand: #0000ff;
  --cc-ink: #0a2540;
  --cc-head: #0d0d1c;
  --cc-text: #3f4658;
  --cc-muted: #6b7280;
  --cc-line: #e8eaf1;
  --cc-bg: #f6f7fb;
  --cc-radius: 12px;
  --cc-radius-lg: 20px;
  --cc-header-offset: 100px;

  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cc-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow: visible;
}
.cc-post * {
  font-family: inherit;
}
.cc-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 768px) {
  .cc-wrap {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

html {
  scroll-behavior: smooth;
}
.cc-post [id] {
  scroll-margin-top: 100px;
}

/* Progress */
.cc-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 9999;
  pointer-events: none;
}
.cc-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--cc-brand);
  transition: width 0.1s linear;
}

/* =====================================================================
   HERO — light split (text left, rounded image right)
   ===================================================================== */
.cc-hero {
  background: #fff;
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--cc-line);
}
@media (min-width: 768px) {
  .cc-hero {
    padding: 2.5rem 0 3.5rem;
  }
}
.cc-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .cc-hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.cc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cc-muted);
  margin-bottom: 1.25rem;
}
.cc-breadcrumb a {
  color: var(--cc-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.cc-breadcrumb a:hover {
  color: var(--cc-brand);
}
.cc-breadcrumb span {
  opacity: 0.45;
}
.cc-breadcrumb__current {
  color: var(--cc-soft, #94a3b8);
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cc-brand);
  text-decoration: none;
  margin-bottom: 1rem;
}
.cc-kicker:hover {
  text-decoration: underline;
}

.cc-hero__title {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--cc-head);
  margin: 0 0 1rem;
}
.cc-hero__dek {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--cc-muted);
  margin: 0 0 1.75rem;
  max-width: 52ch;
}

.cc-hero__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0;
}
.cc-hero__avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--cc-line);
  flex-shrink: 0;
}
.cc-hero__author-text {
  min-width: 0;
}
.cc-hero__author-line {
  margin: 0;
  line-height: 1.35;
  font-size: 0.95rem;
}
.cc-hero__by {
  font-weight: 400;
  color: var(--cc-muted);
  margin-right: 0.35rem;
}
.cc-hero__author-name {
  font-weight: 700;
  color: var(--cc-head);
}
.cc-hero__author-role {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--cc-muted);
  line-height: 1.4;
}

.cc-hero__divider {
  border: none;
  border-top: 1px solid var(--cc-line);
  margin: 1.15rem 0 1rem;
}

.cc-hero__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0;
}
.cc-hero__stats li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cc-muted);
  letter-spacing: 0.02em;
}
.cc-hero__stats li + li::before {
  content: "•";
  margin: 0 0.65rem;
  color: #cbd2e0;
  font-weight: 400;
}
.cc-hero__stats svg {
  width: 16px;
  height: 16px;
  color: var(--cc-brand);
  flex-shrink: 0;
}

/* Hero image — full graphic visible, one rounded box, light shadow only */
.cc-hero__visual {
  border-radius: var(--cc-radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.07);
  box-shadow: 0 4px 18px rgba(10, 37, 64, 0.08);
}
.cc-hero__visual-img,
.cc-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}
.cc-hero__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--cc-bg), #e8ecf4);
}

/* =====================================================================
   BODY GRID — sidebar left, article right
   ===================================================================== */
.cc-body {
  padding: 2.5rem 0 4rem;
}
.cc-body__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .cc-body__grid {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 3.5rem;
  }
}

/* Sidebar — sticks while main article scrolls */
.cc-sidebar {
  display: none;
}
@media (min-width: 1024px) {
  .cc-sidebar {
    display: block;
    position: sticky;
    top: var(--cc-header-offset);
    align-self: start;
    z-index: 5;
  }
}
.cc-sidebar__sticky {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.cc-sidebar__title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cc-muted);
  margin: 0 0 1rem;
  flex-shrink: 0;
}
.cc-sidebar__block--toc .cc-sidebar__title {
  margin-bottom: 0.75rem;
}

/* TOC — scrolls inside sidebar when many sections (sidebar itself stays fixed) */
.cc-toc {
  list-style: none;
  margin: 0;
  padding: 0 0.25rem 0 0;
  border-left: 2px solid var(--cc-line);
  max-height: min(36vh, 240px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--cc-line) transparent;
}
.cc-toc::-webkit-scrollbar {
  width: 5px;
}
.cc-toc::-webkit-scrollbar-thumb {
  background: var(--cc-line);
  border-radius: 999px;
}
.cc-toc li {
  margin: 0;
}
.cc-toc__link {
  position: relative;
  display: block;
  padding: 0.45rem 0 0.45rem 1.15rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--cc-muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.cc-toc__link::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cc-line);
  transition: background 0.2s, transform 0.2s;
}
.cc-toc__link:hover {
  color: var(--cc-head);
}
.cc-toc__link.is-active {
  color: var(--cc-brand);
  font-weight: 600;
  border-left-color: var(--cc-brand);
}
.cc-toc__link.is-active::before {
  background: var(--cc-brand);
  transform: translateY(-50%) scale(1.15);
}

.cc-sidebar__block--share,
.cc-sidebar__block.cc-newsletter {
  flex-shrink: 0;
}

/* Share — sidebar labeled buttons (demo: light pills, icon + label) */
.cc-share__heading {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 0.9rem;
}
.cc-share--sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.cc-share__btn--labeled {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #e8ecf2;
  border-radius: 12px;
  background: #fff;
  color: var(--cc-head);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cc-share__btn--labeled:hover {
  border-color: #d5dbe6;
  box-shadow: 0 6px 16px -10px rgba(10, 37, 64, 0.18);
  color: var(--cc-head);
}
.cc-share__btn--labeled .cc-share__text {
  color: var(--cc-head);
}
.cc-share__btn--labeled .cc-share__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  color: #fff;
}
.cc-share__btn--labeled .cc-share__icon svg {
  width: 15px;
  height: 15px;
}
.cc-share__btn--x .cc-share__icon {
  background: #111;
}
.cc-share__btn--linkedin .cc-share__icon {
  background: #0a66c2;
}
.cc-share__btn--facebook .cc-share__icon {
  background: #1877f2;
}
.cc-share__btn--whatsapp .cc-share__icon {
  background: #25d366;
}
.cc-share__btn--copy .cc-share__icon {
  background: #f3f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.cc-share__btn--copy .cc-share__icon svg {
  width: 16px;
  height: 16px;
}
.cc-share__btn.is-copied {
  background: #ecfdf5;
  border-color: #16a34a;
}
.cc-share__btn.is-copied .cc-share__text {
  color: #16a34a;
}

/* Newsletter sidebar card — demo dark panel + glow + white input */
.cc-newsletter {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: var(--cc-radius-lg);
  background: linear-gradient(155deg, var(--cc-ink) 0%, #0f1835 55%, #121830 100%);
  color: #fff;
  box-shadow: 0 18px 44px -20px rgba(10, 37, 64, 0.5);
}
.cc-newsletter::before {
  content: "";
  position: absolute;
  top: -28px;
  right: -28px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 255, 0.35) 0%, transparent 68%);
  pointer-events: none;
}
.cc-newsletter__icon {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}
.cc-newsletter__icon svg {
  width: 22px;
  height: 22px;
}
.cc-newsletter__title {
  position: relative;
  z-index: 1;
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
  line-height: 1.3;
}
.cc-newsletter__text {
  position: relative;
  z-index: 1;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1.15rem;
}
.cc-newsletter .cc-newsletter-form {
  position: relative;
  z-index: 1;
}
.cc-newsletter__fine {
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0.7rem 0 0;
}

/* Article column */
.cc-article-col {
  min-width: 0;
}

/* Mobile TOC */
.cc-mobile-toc {
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  background: var(--cc-bg);
  margin-bottom: 2rem;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .cc-mobile-toc {
    display: none;
  }
}
.cc-mobile-toc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cc-head);
  background: none;
  border: none;
  cursor: pointer;
}
.cc-mobile-toc__btn svg {
  transition: transform 0.3s;
}
.cc-mobile-toc.is-open .cc-mobile-toc__btn svg {
  transform: rotate(180deg);
}
.cc-mobile-toc__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.cc-mobile-toc__panel ol {
  list-style: none;
  margin: 0;
  padding: 0 1.15rem 1.15rem;
}
.cc-mobile-toc__panel a {
  display: block;
  padding: 0.45rem 0;
  color: var(--cc-text);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--cc-line);
}
.cc-mobile-toc__panel li:last-child a {
  border-bottom: none;
}
.cc-mobile-toc__panel a.is-active {
  color: var(--cc-brand);
  font-weight: 600;
}

/* Key takeaways box */
.cc-takeaways {
  margin-bottom: 2.5rem;
  padding: 1.75rem;
  background: var(--cc-bg);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius-lg);
}
.cc-takeaways__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cc-brand);
  margin: 0 0 1.25rem;
}
.cc-takeaways__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .cc-takeaways__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .cc-takeaways__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.cc-takeaways__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem;
  background: #fff;
  border-radius: var(--cc-radius);
  border: 1px solid var(--cc-line);
  text-decoration: none;
  color: var(--cc-head);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cc-takeaways__item:hover {
  border-color: var(--cc-brand);
  box-shadow: 0 8px 20px -12px rgba(0, 0, 255, 0.35);
}
.cc-takeaways__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cc-brand);
}
.cc-takeaways__icon svg {
  width: 22px;
  height: 22px;
}

/* End share — demo horizontal bar + filled brand circles */
.cc-end-share {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cc-line);
}
.cc-end-share__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
}
.cc-end-share__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cc-head);
  line-height: 1.3;
}
.cc-end-share__sub {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--cc-muted);
  line-height: 1.4;
}
.cc-share--bar,
.cc-share--icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.cc-share--bar .cc-share__btn,
.cc-share--icons .cc-share__btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
}
.cc-share--bar .cc-share__btn svg,
.cc-share--icons .cc-share__btn svg {
  width: 17px;
  height: 17px;
}
.cc-share--bar .cc-share__btn:hover,
.cc-share--icons .cc-share__btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}
.cc-share--bar .cc-share__btn--x,
.cc-share--icons .cc-share__btn--x { background: #000; }
.cc-share--bar .cc-share__btn--linkedin,
.cc-share--icons .cc-share__btn--linkedin { background: #0a66c2; }
.cc-share--bar .cc-share__btn--facebook,
.cc-share--icons .cc-share__btn--facebook { background: #1877f2; }
.cc-share--bar .cc-share__btn--whatsapp,
.cc-share--icons .cc-share__btn--whatsapp { background: #25d366; }
.cc-share--bar .cc-share__btn--copy,
.cc-share--icons .cc-share__btn--copy {
  background: #e8edf5;
  color: var(--cc-head);
  border: 1px solid #d5dbe6;
}
.cc-share--bar .cc-share__btn--copy:hover,
.cc-share--icons .cc-share__btn--copy:hover {
  background: var(--cc-brand);
  color: #fff;
  border-color: transparent;
}
@media (max-width: 520px) {
  .cc-end-share__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.cc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.cc-tags a {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--cc-bg);
  color: var(--cc-muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.cc-tags a:hover {
  background: var(--cc-brand);
  color: #fff;
}

/* Author card — demo light grey box + blue stats */
.cc-author {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
  margin-top: 2.5rem;
  padding: 2rem 2.25rem;
  background: #f4f6fa;
  border: 1px solid #e8ecf2;
  border-radius: var(--cc-radius-lg);
}
.cc-author__avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.1);
}
.cc-author__main {
  flex: 1;
  min-width: 200px;
}
.cc-author__eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cc-brand);
}
.cc-author__name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cc-head);
  margin: 0.3rem 0 0;
  line-height: 1.2;
}
.cc-author__role {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cc-muted);
  margin: 0.35rem 0 0;
}
.cc-author__bio {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--cc-text);
  margin: 0.75rem 0 0;
}
.cc-author__link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cc-brand);
  text-decoration: none;
  transition: opacity 0.2s;
}
.cc-author__link:hover {
  opacity: 0.85;
  text-decoration: underline;
}
.cc-author__stats {
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  margin-left: auto;
  padding-left: 2rem;
  border-left: 1px solid #d8dee8;
  min-width: 200px;
  align-self: center;
}
@media (max-width: 768px) {
  .cc-author {
    flex-direction: column;
    align-items: flex-start;
  }
  .cc-author__stats {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    padding-top: 1.25rem;
    border-left: none;
    border-top: 1px solid #d8dee8;
    align-self: stretch;
  }
}
.cc-author__stats strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--cc-brand);
  line-height: 1;
}
.cc-author__stats span {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cc-muted);
  margin-top: 0.4rem;
}

/* Related */
.cc-related {
  padding: 3rem 0 5rem;
  background: var(--cc-bg);
  border-top: 1px solid var(--cc-line);
}
.cc-related__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.cc-related__head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--cc-head);
  margin: 0;
}
.cc-related__head a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cc-brand);
  text-decoration: none;
  white-space: nowrap;
}
.cc-related__head a svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.cc-related__head a:hover svg {
  transform: translateX(3px);
}
.cc-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .cc-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .cc-related__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.cc-card {
  background: #fff;
  border-radius: var(--cc-radius-lg);
  border: 1px solid var(--cc-line);
  overflow: hidden;
  box-shadow: 0 4px 20px -8px rgba(10, 37, 64, 0.08);
  transition: box-shadow 0.25s, transform 0.25s;
}
.cc-card:hover {
  box-shadow: 0 16px 40px -16px rgba(10, 37, 64, 0.18);
  transform: translateY(-4px);
}
.cc-card__media {
  display: block;
  overflow: hidden;
  background: #f4f6fa;
  border-bottom: 1px solid var(--cc-line);
}
.cc-card__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.cc-card__placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #eef1f7, #e2e8f0);
}
.cc-card__body {
  padding: 1.35rem 1.35rem 1.5rem;
}
.cc-card__meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cc-card__cat {
  color: var(--cc-brand);
}
.cc-card__time {
  color: var(--cc-muted);
}
.cc-card__dot {
  color: #cbd2e0;
}
.cc-card__byline {
  margin: -0.35rem 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cc-muted);
}
.cc-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.65rem;
}
.cc-card__title a {
  color: var(--cc-head);
  text-decoration: none;
  transition: color 0.2s;
}
.cc-card__title a:hover {
  color: var(--cc-brand);
}
.cc-card__excerpt {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--cc-muted);
  margin: 0 0 1rem;
}
.cc-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cc-brand);
  text-decoration: none;
}
.cc-card__more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.cc-card__more:hover svg {
  transform: translateX(3px);
}

/* Back to top */
.cc-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--cc-brand);
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  z-index: 50;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 255, 0.65);
}
.cc-top svg {
  width: 20px;
  height: 20px;
}
.cc-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =====================================================================
   BLOG BODY — editor formatting (Tailwind preflight override)
   ===================================================================== */
.cc-post .blog-body {
  color: var(--cc-text);
  font-size: 1.0625rem;
  line-height: 1.85;
  word-break: break-word;
}
.cc-post .blog-body > p:first-of-type {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #475569;
  margin-bottom: 1.75rem;
}
.cc-post .blog-body p {
  margin: 0 0 1.5rem;
}
.cc-post .blog-body h1,
.cc-post .blog-body h2,
.cc-post .blog-body h3,
.cc-post .blog-body h4,
.cc-post .blog-body h5,
.cc-post .blog-body h6 {
  color: var(--cc-head);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 1rem;
  scroll-margin-top: 100px;
}
.cc-post .blog-body h2 { font-size: 1.75rem; }
.cc-post .blog-body h3 { font-size: 1.4rem; }
.cc-post .blog-body h4 { font-size: 1.2rem; }
@media (max-width: 640px) {
  .cc-post .blog-body h2 { font-size: 1.45rem; }
  .cc-post .blog-body h3 { font-size: 1.25rem; }
}
.cc-post .blog-body strong,
.cc-post .blog-body b {
  font-weight: 700;
  color: var(--cc-head);
}
.cc-post .blog-body em,
.cc-post .blog-body i { font-style: italic; }
.cc-post .blog-body a {
  color: var(--cc-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.cc-post .blog-body a:hover {
  color: #0000cc;
}
.cc-post .blog-body ul,
.cc-post .blog-body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}
.cc-post .blog-body ul { list-style: disc; }
.cc-post .blog-body ol { list-style: decimal; }
.cc-post .blog-body li {
  margin: 0.5rem 0;
  padding-left: 0.35rem;
}
.cc-post .blog-body li::marker {
  color: var(--cc-brand);
}
.cc-post .blog-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  border-left: 4px solid var(--cc-brand);
  background: var(--cc-bg);
  border-radius: 0 var(--cc-radius) var(--cc-radius) 0;
  font-style: italic;
  color: #334155;
  font-size: 1.1rem;
  line-height: 1.7;
}
.cc-post .blog-body blockquote p:last-child {
  margin-bottom: 0;
}
.cc-post .blog-body code {
  background: #f1f5f9;
  color: #be123c;
  padding: 0.15em 0.4em;
  border-radius: 5px;
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}
.cc-post .blog-body pre {
  background: #0d1117;
  color: #e6edf3;
  padding: 1.25rem 1.5rem;
  border-radius: var(--cc-radius);
  overflow-x: auto;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}
.cc-post .blog-body pre code {
  background: none;
  color: inherit;
  padding: 0;
}
.cc-post .blog-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--cc-radius);
  display: block;
  margin: 1.5rem auto;
}
.cc-post .blog-body figure {
  margin: 2rem 0;
}
.cc-post .blog-body figcaption,
.cc-post .blog-body .wp-caption-text {
  text-align: center;
  font-size: 0.85rem;
  color: var(--cc-muted);
  margin-top: 0.5rem;
  font-style: italic;
}
.cc-post .blog-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
}
.cc-post .blog-body th,
.cc-post .blog-body td {
  border: 1px solid var(--cc-line);
  padding: 0.7rem 1rem;
  text-align: left;
}
.cc-post .blog-body th {
  background: var(--cc-bg);
  font-weight: 700;
  color: var(--cc-head);
}
.cc-post .blog-body hr {
  border: none;
  border-top: 1px solid var(--cc-line);
  margin: 2.5rem 0;
}
.cc-post .blog-body .wp-block-button__link {
  display: inline-block;
  background: var(--cc-brand);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: var(--cc-radius);
  text-decoration: none;
  font-weight: 600;
}
.cc-post .blog-body .wp-embed-aspect-16-9 .wp-block-embed__wrapper {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--cc-radius);
  overflow: hidden;
  margin: 2rem 0;
}
.cc-post .blog-body .wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cc-post .blog-body .alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
  max-width: 50%;
}
.cc-post .blog-body .alignright {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
  max-width: 50%;
}
@media (max-width: 640px) {
  .cc-post .blog-body .alignleft,
  .cc-post .blog-body .alignright {
    float: none;
    margin: 1.5rem auto;
    max-width: 100%;
  }
}
.cc-post .blog-body .cc-section {
  margin-top: 2rem;
}
