/* --- Header nav: Contact call-to-action button (Task 6) --- */
.wp-block-navigation-item.x321-nav-button > a.wp-block-navigation-item__content {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base) !important;
  border-radius: 6px;
  padding: .4rem 1rem;
}
.wp-block-navigation-item.x321-nav-button > a.wp-block-navigation-item__content:hover {
  opacity: .85;
}

/* --- Pygments / pipeline code blocks ---
   Pipeline emits div.highlight > pre for Pygments output, but bridge-harvested
   course HTML also lands as bare <pre> in post content — style both. */
.entry-content .highlight, .wp-block-code, .x321-code,
.entry-content pre {
  background: #0B0F14; color: #E6EDF3; border-radius: 8px;
  padding: 1rem 1.25rem; overflow-x: auto; position: relative;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .9rem; line-height: 1.6;
}
.entry-content .highlight pre { margin: 0; background: transparent; color: inherit; }
.x321-copy-btn {
  position: absolute; top: .5rem; right: .5rem; font: 600 .7rem Inter, sans-serif;
  color: #8B949E; background: #161B22; border: 1px solid #30363D; border-radius: 5px;
  padding: .2rem .55rem; cursor: pointer;
}
.x321-copy-btn:hover { color: #E6EDF3; }

/* --- Klaro cookie banner: brand it (embed itself stays untouched) --- */
.klaro .cookie-notice, .klaro .cookie-modal .cm-modal {
  font-family: Inter, system-ui, sans-serif !important; border-radius: 10px !important;
}
.klaro .cm-btn, .klaro .cn-buttons button { border-radius: 6px !important; font-weight: 600 !important; }
.klaro .cm-btn-success, .klaro .cn-buttons .cm-btn-accept-all { background: #6366F1 !important; color: #fff !important; }
.klaro .cm-btn-danger, .klaro .cn-buttons .cn-decline { background: #F3F4F6 !important; color: #111827 !important; }
.klaro a, .klaro .cm-modal a { color: #6366F1 !important; }
.klaro h1, .klaro .title { color: #111827 !important; }

/* --- Tag pills (news/course tag lists) --- */
.wp-block-post-terms a {
  display: inline-block; background: #F3F4F6; color: #374151; border-radius: 999px;
  padding: .1rem .6rem; font-size: .8rem; text-decoration: none; margin: 0 .25rem .35rem 0;
}
.wp-block-post-terms a:hover { background: #E5E7EB; }

/* --- Hide author byline (auto-publisher account name adds no value) --- */
.wp-block-post-author, .wp-block-post-author-name { display: none !important; }

/* --- Single post/article typography: tighter than Ollie defaults --- */
body.single-post .entry-content {
  font-size: 1rem;
  line-height: 1.65;
}
body.single-post .entry-content > * + * { margin-block-start: 1rem; }
body.single-post .entry-content h2 { font-size: 1.45rem; margin-block-start: 2.2rem; }
body.single-post .entry-content h3 { font-size: 1.2rem; margin-block-start: 1.8rem; }
body.single-post .entry-content li { margin-block-start: .3rem; }
body.single-post h1.wp-block-post-title { font-size: 2rem; }

/* --- Course lesson layout (x321-lessons mu-plugin) --- */
.x321-kicker { color: #6366F1; font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.x321-lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 2rem; }
.x321-lesson-sidebar { position: sticky; top: 1rem; align-self: start; }
.x321-lesson-sidebar > div { border: 1px solid #E5E7EB; border-radius: 8px; padding: .9rem; margin-bottom: 1rem; font-size: .85rem; }
.x321-toc nav a { display: block; color: #4B5563; text-decoration: none; padding: .15rem 0; }
.x321-toc nav a.x321-toc-sub { padding-left: .8rem; }
.x321-track ol { margin: .4rem 0 0 1.1rem; padding: 0; }
.x321-track li.current { color: #6366F1; font-weight: 700; }
@media (max-width: 880px) { .x321-lesson-layout { grid-template-columns: minmax(0, 1fr); } .x321-lesson-sidebar { position: static; } }
