/* === Siisti Enlighter-tyyli <pre><code> -lohkoille (ilman korostusta) === */
/* Kohdistus: entry-content/post-content. Ei muokata Enlighterin generoimia lohkoja. */
.entry-content pre,
.post-content pre {
  background: #f7f6fb;
  border: 1px solid #eef0f5;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0 1.5rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  tab-size: 4;
}

.entry-content pre,
.entry-content pre code,
.post-content pre,
.post-content pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas,
               "Liberation Mono", "DejaVu Sans Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #30303a;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}

.entry-content pre code,
.post-content pre code {
  display: block;
  padding: 0;
  white-space: pre;
  user-select: text;
}

/* Kopioi-nappi */
.cbc-copy-btn{
  position: absolute;
  top: 8px;
  right: 10px;
  padding: 4px 10px;
  font: 12px/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  border: 1px solid #d9dbe6;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  cursor: pointer;
  opacity: .85;
  transition: opacity .15s ease, transform .06s ease;
}
.cbc-copy-btn:hover{ opacity: 1; }
.cbc-copy-btn:active{ transform: translateY(1px); }

/* Piilota nappi tulosteessa */
@media print {
  .cbc-copy-btn { display: none !important; }
}

/* Mobiilissa hieman tiiviimpi */
@media (max-width: 600px) {
  .entry-content pre, .post-content pre { padding: .85rem 1rem; }
  .entry-content pre, .entry-content pre code,
  .post-content pre, .post-content pre code { font-size: 0.92rem; }
}

/* Tumma tila */
@media (prefers-color-scheme: dark) {
  .entry-content pre, .post-content pre {
    background: #1e1f25;
    border-color: #2a2c35;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  }
  .entry-content pre, .entry-content pre code,
  .post-content pre, .post-content pre code {
    color: #e1e1e7; text-shadow: none;
  }
  .cbc-copy-btn{
    background: #2a2c35;
    color: #eaeaf0;
    border-color: #3a3d49;
  }
}
