/* ===== Floating TOC (desktop) ===== */
.floating-toc,
#floatingTOC {
  position: fixed;
  top: 100px;
  right: 40px;
  width: 240px;
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  padding: 1em 1.25em;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-size: 14px;
  z-index: 999;
}
body.admin-bar .floating-toc,
body.admin-bar #floatingTOC { top: 132px; }

.floating-toc h4,
#floatingTOC h4 {
  margin: 0 0 .75em 0;
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.floating-toc ul,
#floatingTOC ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.floating-toc ul li,
#floatingTOC ul li { margin-bottom: .5em; }

.floating-toc ul li a,
#floatingTOC ul li a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
}

.floating-toc ul li a:hover,
#floatingTOC ul li a:hover {
  text-decoration: underline;
  color: #1a73e8;
}

/* ===== Floating TOC (mobile) ===== */
@media (max-width: 768px) {
  .floating-toc,
  #floatingTOC {
    position: sticky;
    top: 0;
    left: 0; right: 0;
    width: 100%;
    z-index: 999;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-bottom: 1px solid #eee;
  }
  body.admin-bar .floating-toc,
  body.admin-bar #floatingTOC { top: 46px; }

  .floating-toc h4,
  #floatingTOC h4 {
    padding: 1em;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    background: #f9f9f9;
  }

  .floating-toc ul,
  #floatingTOC ul {
    display: none;
    padding: .5em 1em;
    margin: 0;
    max-height: 60vh;
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid #eee;
  }
  .floating-toc.open ul,
  #floatingTOC.open ul { display: block; }

  .floating-toc ul li,
  #floatingTOC ul li {
    padding: .5em 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .floating-toc ul li a,
  #floatingTOC ul li a { font-size: 15px; }
}

/* ===== Post meta + lede (matches functions.php output) ===== */
.zen-meta-info {
  font-size: 14px;
  color: #666;
  margin-bottom: 1em;
  display: flex;
  flex-wrap: wrap;
  gap: .5em;
}
.zen-post-lede {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #555;
  margin: .5rem 0 1rem;
}
.zen-context-links { margin: .75rem 0 0; font-style: normal; }

/* ===== Safer list/headings styling (scoped to post content) ===== */
.entry-content ul { padding-left: 1.2em; margin-bottom: 1.2em; }
.entry-content ul li { margin-bottom: .6em; line-height: 1.5; }
.entry-content strong { font-weight: 600; color: #333; }
.entry-content ul li::marker { color: #0073aa; font-weight: bold; }

/* ===== Category archive intro ===== */
.archive .taxonomy-description {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #444;
}