/*
Theme Name: Xavki Learning
Theme URI: https://xavki.blog/
Author: Xavki
Description: Lightweight learning-path theme for Xavki's DevOps tutorials, playlists, and articles.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xavki-learning
*/

:root {
  --bg: #0b1020;
  --bg-soft: #11182d;
  --bg-card: #151e35;
  --text: #edf3ff;
  --text-muted: #aebbd4;
  --ink: #172033;
  --paper: #f7f9fd;
  --paper-soft: #eef3fb;
  --blue: #4da3ff;
  --cyan: #5eead4;
  --orange: #ffb454;
  --red: #ff5b6e;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(6, 10, 23, 0.32);
  --radius: 24px;
  --radius-sm: 14px;
  --container: 1180px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: #075fb4;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: #003c7a;
}

img,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 999;
  padding: 0.75rem 1rem;
  color: var(--bg);
  background: var(--cyan);
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(94, 234, 212, 0.22), transparent 28rem),
    radial-gradient(circle at top right, rgba(77, 163, 255, 0.22), transparent 30rem),
    var(--bg);
}

.site-bar,
.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--text);
  text-decoration: none;
}

.brand strong {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.brand span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  padding: 0.58rem 0.82rem;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .current-menu-item > a {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border);
}

.hero {
  padding: clamp(3rem, 8vw, 6.8rem) 0 clamp(3rem, 7vw, 5.8rem);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(94, 234, 212, 0.22), transparent 28rem),
    radial-gradient(circle at top right, rgba(77, 163, 255, 0.22), transparent 30rem),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1,
.page-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.hero p {
  max-width: 43rem;
  margin: 1.35rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.78rem 1.05rem;
  color: #06101e;
  background: var(--cyan);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button:hover,
.button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  color: #06101e;
  background: #9af5e8;
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.14);
}

.terminal-card {
  padding: 1.2rem;
  color: #d8ffe9;
  background: rgba(3, 8, 20, 0.76);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.terminal-card span {
  color: var(--cyan);
}

.terminal-card pre {
  overflow: auto;
  margin: 0;
  white-space: pre-wrap;
}

.section {
  padding: clamp(2.8rem, 7vw, 5.4rem) 0;
}

.section.dark {
  color: var(--text);
  background: var(--bg-soft);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.section-head p {
  max-width: 36rem;
  margin: 0;
  color: #596781;
}

.dark .section-head p {
  color: var(--text-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.2rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dfe6f2;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 12px 35px rgba(20, 30, 55, 0.07);
}

.dark .card {
  color: var(--text);
  background: var(--bg-card);
  border-color: var(--border);
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  color: inherit;
  border-color: rgba(77, 163, 255, 0.6);
}

.card small,
.meta,
.post-meta {
  color: #687690;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.dark .card small,
.dark .meta {
  color: var(--cyan);
}

.card h3 {
  margin: 0.5rem 0;
  font-size: 1.3rem;
  line-height: 1.18;
}

.card p {
  margin: 0;
  color: #526079;
}

.dark .card p {
  color: var(--text-muted);
}

.profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.profile-avatar img {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.profile-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.profile-body h3 {
  margin: 0;
  font-size: 1.15rem;
}

.profile-title {
  color: var(--text-muted) !important;
  font-size: 0.9rem;
}

.profile-desc {
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
  margin-top: 0.15rem !important;
}

.profile-stats {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-top: 0.25rem;
  font-weight: 750;
  font-size: 0.95rem;
  color: var(--ink);
}

.dark .profile-stats {
  color: var(--text);
}

.profile-stats span {
  font-weight: 400;
  font-size: 0.82rem;
  color: #687690;
}

.profile-cta {
  align-self: start;
  margin-top: 0.35rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  min-height: auto;
}

.feature-card {
  grid-column: span 2;
  min-height: 20rem;
  padding: clamp(1.4rem, 4vw, 2rem);
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(77, 163, 255, 0.18), rgba(94, 234, 212, 0.08)),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.post-list {
  display: grid;
  gap: 0.8rem;
}

.post-row {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: #fff;
  border: 1px solid #dfe6f2;
  border-radius: var(--radius-sm);
}

.post-row time {
  color: #687690;
  font-weight: 800;
  font-size: 0.82rem;
}

.post-row h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.25;
}

.site-main {
  min-height: 50vh;
}

.page-hero {
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  color: var(--text);
  background: var(--bg);
}

.page-hero a {
  color: var(--blue);
}

.page-hero a:hover,
.page-hero a:focus-visible {
  color: #8bbbfa;
}

.page-hero .post-meta {
  color: var(--text-muted);
}

.content-wrap {
  width: min(860px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.2rem, 6vw, 4rem) 0;
}

.entry-content {
  font-size: 1.06rem;
}

.entry-content h2,
.entry-content h3 {
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.entry-content h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
}

.entry-content h3 {
  margin-top: 1.8rem;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}

.entry-content pre,
.entry-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.entry-content pre {
  overflow: auto;
  padding: 1rem;
  color: #d8ffe9;
  background: #07101f;
  border-radius: var(--radius-sm);
}

.entry-content blockquote {
  margin-inline: 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 4px solid var(--blue);
  color: #526079;
}

.cta-band {
  margin-top: 2.5rem;
  padding: 1.3rem;
  color: var(--text);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}

.site-footer {
  padding: 2.4rem 0;
  color: var(--text-muted);
  background: #070b16;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text);
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
  padding: 0.65rem 0.85rem;
  background: #fff;
  border: 1px solid #dfe6f2;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .site-bar,
  .section-head,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav ul {
    justify-content: flex-start;
  }

  .hero-grid,
  .grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .site-nav a {
    padding: 0.5rem 0.66rem;
    font-size: 0.92rem;
  }

  .post-row {
    grid-template-columns: 1fr;
  }
}

.channel-section {
  background:
    radial-gradient(circle at bottom right, rgba(77, 163, 255, 0.08), transparent 30rem),
    radial-gradient(circle at top left, rgba(94, 234, 212, 0.06), transparent 28rem),
    #fff;
}

.channel-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.linkedin-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  padding: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.linkedin-card:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.linkedin-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.linkedin-logo {
  flex-shrink: 0;
}

.linkedin-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #687690;
}

.linkedin-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 1rem 1rem;
}

.linkedin-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.6rem;
}

.linkedin-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #687690;
  line-height: 1.3;
}

.linkedin-title {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: rgba(0,0,0,0.55);
}

.linkedin-desc {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(0,0,0,0.6);
}

.linkedin-stats {
  margin-top: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: rgba(0,0,0,0.85);
}

.linkedin-stats span {
  font-weight: 400;
  font-size: 0.8rem;
  color: #687690;
}

.linkedin-cta {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: #0A66C2;
  border-radius: 999px;
  transition: background 0.2s;
}

.linkedin-card:hover .linkedin-cta {
  background: #004182;
}

@media (max-width: 960px) {
  .linkedin-body {
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    gap: 0.5rem 1rem;
    align-items: center;
  }
  .linkedin-avatar {
    margin-bottom: 0;
  }
  .linkedin-name,
  .linkedin-title {
    flex: 1 1 auto;
    min-width: 0;
  }
  .linkedin-desc {
    flex-basis: 100%;
  }
  .linkedin-stats {
    margin-top: 0;
  }
  .linkedin-cta {
    margin-top: 0;
    margin-left: auto;
  }
}

.video-card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(6, 10, 23, 0.12);
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.channel-info h2 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.channel-info > p {
  margin: 0.8rem 0 0;
  color: #526079;
  font-size: 1.1rem;
}

.channel-stats {
  display: flex;
  gap: 1.8rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.channel-stats li {
  display: flex;
  flex-direction: column;
}

.channel-stats strong {
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--bg);
}

.channel-stats span {
  color: #687690;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 960px) {
  .channel-grid {
    grid-template-columns: 1fr;
  }
}

.ctaText {
  color: #075fb4;
}

@media (prefers-reduced-motion: no-preference) {
  .card {
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  }
}

.roadmap-content h2 {
  margin-top: 2.5rem;
}

.roadmap-content h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.roadmap-content .wp-block-embed {
  margin: 1.5rem 0;
}

.roadmap-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 0;
}

/* ── Vidéos page ── */
.video-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.video-showcase figure {
  margin: 0;
}

.video-showcase figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.video-showcase figcaption strong {
  color: var(--text, var(--ink));
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.video-link-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid #dfe6f2;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

[data-theme="dark"] .video-link-card {
  background: var(--bg-card);
  border-color: var(--border);
}

.video-link-card:hover,
.video-link-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 10, 23, 0.12);
  color: inherit;
}

.video-link-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-link-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-link-body {
  padding: 0.8rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.video-link-body h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 600;
}

.video-link-body p {
  margin: 0;
  font-size: 0.8rem;
  color: #687690;
  line-height: 1.4;
}

[data-theme="dark"] .video-link-body p {
  color: var(--text-muted);
}

@media (max-width: 780px) {
  .recent-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .recent-grid {
    grid-template-columns: 1fr;
  }
  .video-showcase {
    grid-template-columns: 1fr;
  }
}

.step-separator {
  border: 0;
  height: 1px;
  background: var(--border, #2a3550);
  margin: 2.5rem 0;
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.playlist-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.playlist-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.playlist-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
}

.playlist-card .wp-block-embed {
  margin: 0 0 12px;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.playlist-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.playlist-card a {
  font-size: 0.85rem;
  font-weight: 500;
  align-self: flex-start;
  margin-top: auto;
}

.playlist-card-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  margin-bottom: 10px;
}

.playlist-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.playlist-card:hover .playlist-card-thumb img {
  transform: scale(1.03);
}

.playlist-card h3 a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text, var(--ink));
  margin-top: 0; 
  align-self: auto;
}

.playlist-card h3 a:hover {
  color: var(--blue);
}

.playlist-card-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.playlist-card-links a {
  font-size: 0.8rem;
  font-weight: 500;
}

.playlist-count {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
  text-transform: none;
  margin-left: 0.5rem;
}

.playlist-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 1rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}

.playlist-anchors a {
  font-size: 0.82rem;
  padding: 0.35rem 0.7rem;
  color: var(--text, var(--ink));
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s;
}

.playlist-anchors a:hover {
  background: rgba(255,255,255,0.14);
  color: var(--blue);
}

@media (max-width: 900px) {
  .playlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .playlist-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Theme toggle ── */
.header-tools {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  order: 2;
}

.theme-toggle,
.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.theme-toggle:hover,
.search-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.theme-icon-dark {
  display: none;
}

[data-theme="dark"] .theme-icon-dark {
  display: inline;
}

[data-theme="dark"] .theme-icon-light {
  display: none;
}

/* ── Search overlay ── */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(6, 10, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.search-overlay.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.search-overlay-inner {
  width: min(680px, calc(100% - 2rem));
  margin-top: 15vh;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.search-input {
  flex: 1;
  padding: 1rem 1.2rem;
  font-size: 1.2rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--blue);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-submit {
  padding: 0 1.5rem;
  color: #06101e;
  background: var(--cyan);
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}

.search-submit:hover {
  background: #9af5e8;
}

.search-close {
  padding: 0 1rem;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.search-close:hover {
  color: var(--text);
}

/* ── Light / Dark theme switching ── */
[data-theme="dark"] {
  --ink: var(--text);
  --paper: var(--bg);
  --paper-soft: var(--bg-soft);
}

[data-theme="dark"] .card {
  color: var(--text);
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="dark"] .post-row {
  color: var(--text);
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="dark"] .post-row h3 a {
  color: var(--text);
}

[data-theme="dark"] .post-row time {
  color: var(--text-muted);
}

[data-theme="dark"] .channel-section {
  background:
    radial-gradient(circle at bottom right, rgba(77, 163, 255, 0.12), transparent 30rem),
    radial-gradient(circle at top left, rgba(94, 234, 212, 0.10), transparent 28rem),
    var(--bg-soft);
}

[data-theme="dark"] .pagination a,
[data-theme="dark"] .pagination span,
[data-theme="dark"] .nav-links a,
[data-theme="dark"] .nav-links span {
  color: var(--text);
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="dark"] .linkedin-card {
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="dark"] .linkedin-name,
[data-theme="dark"] .linkedin-title,
[data-theme="dark"] .linkedin-desc,
[data-theme="dark"] .linkedin-stats {
  color: var(--text-muted);
}

[data-theme="dark"] .cta-band {
  background: var(--bg-card);
}

@media (max-width: 900px) {
  .header-tools {
    order: 0;
  }
  .site-bar {
    flex-wrap: wrap;
  }
}


/* ── YotuWP grid restyle (videos page) ── */

/* Hide PrintFriendly button cluttering the top */
.page-id-959 .pf-content .printfriendly { display: none !important; }

/* Page intro paragraph */
.page-id-959 .video-page-intro {
  max-width: 56rem;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted, #687690);
  line-height: 1.6;
}

/* Container: widen the videos page content */
.page-id-959 .content-wrap {
  width: min(1180px, calc(100% - 2rem));
}

/* Hide the always-visible giant player + playing title row */
.page-id-959 .yotu-wrapper-player,
.page-id-959 .yotu-playing-status,
.page-id-959 .yotu-playing { display: none !important; }

/* When a thumbnail is clicked, YotuWP shows the player via JS — let's allow that */
.page-id-959 .yotu-wrapper-player.yotu-show,
.page-id-959 .yotu-wrapper-player[style*="display: block"] {
  display: block !important;
  margin-bottom: 2rem;
  width: 100% !important;
  max-width: 1180px;
}

.page-id-959 .yotu-wrapper-player .yotu-player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-sm, 14px);
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 50px rgba(6, 10, 23, 0.18);
}

.page-id-959 .yotu-wrapper-player .yotu-player iframe {
  position: absolute !important;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* The grid itself */
.page-id-959 .yotu-videos {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-id-959 .yotu-videos ul {
  display: contents;
  margin: 0; padding: 0; list-style: none;
}
.page-id-959 .yotu-videos li {
  list-style: none;
  margin: 0;
}

/* Card: the <a> wrapping the thumb + title */
.page-id-959 .yotu-video {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #dfe6f2;
  border-radius: var(--radius-sm, 14px);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink, #172033);
  box-shadow: 0 6px 18px rgba(20, 30, 55, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.page-id-959 .yotu-video:hover,
.page-id-959 .yotu-video:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(77, 163, 255, 0.6);
  box-shadow: 0 16px 36px rgba(6, 10, 23, 0.14);
  color: var(--ink, #172033);
}

[data-theme="dark"] .page-id-959 .yotu-video {
  background: var(--bg-card, #151e35);
  border-color: var(--border, rgba(255,255,255,0.12));
  color: var(--text, #edf3ff);
}
[data-theme="dark"] .page-id-959 .yotu-video:hover,
[data-theme="dark"] .page-id-959 .yotu-video:focus-visible {
  color: var(--text, #edf3ff);
  border-color: rgba(94, 234, 212, 0.55);
}

/* Thumbnail */
.page-id-959 .yotu-video-thumb-wrp {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.page-id-959 .yotu-video-thumb-wrp > div { width: 100%; height: 100%; }
.page-id-959 .yotu-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 250ms ease;
}
.page-id-959 .yotu-video:hover .yotu-video-thumb {
  transform: scale(1.04);
}

/* Play badge overlay */
.page-id-959 .yotu-video-thumb-wrp::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center,
      rgba(0,0,0,0.45) 0,
      rgba(0,0,0,0.45) 28px,
      transparent 32px),
    linear-gradient(to top, rgba(0,0,0,0.35), transparent 50%);
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
}
.page-id-959 .yotu-video:hover .yotu-video-thumb-wrp::after {
  opacity: 1;
}
.page-id-959 .yotu-video-thumb-wrp::before {
  content: "▶";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  color: #fff;
  font-size: 18px;
  z-index: 2;
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.page-id-959 .yotu-video:hover .yotu-video-thumb-wrp::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Title */
.page-id-959 .yotu-video-title {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  font-size: 0.96rem;
  line-height: 1.35;
  font-weight: 600;
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Pagination / Load more button */
.page-id-959 .yotu-pagination,
.page-id-959 .yotu-loadmore-wrp {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.page-id-959 .yotu-pagination a,
.page-id-959 .yotu-pagination span,
.page-id-959 .yotu-loadmore,
.page-id-959 a.yotu-loadmore,
.page-id-959 .yotu-button-loadmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.78rem 1.5rem;
  color: #06101e !important;
  background: var(--cyan, #5eead4) !important;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease;
}
.page-id-959 .yotu-loadmore:hover,
.page-id-959 a.yotu-loadmore:hover,
.page-id-959 .yotu-button-loadmore:hover {
  background: #9af5e8 !important;
}

/* Responsive */
@media (max-width: 980px) {
  .page-id-959 .yotu-videos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .page-id-959 .yotu-videos { grid-template-columns: 1fr; }
  .page-id-959 .video-page-intro { font-size: 1rem; }
}


/* ── Playlists page redesign (2026-06-21) ── */

/* Xavki logo emoji in page-title */
.xavki-logo-emoji {
  display: inline-block;
  vertical-align: -0.12em;
  width: clamp(36px, 8vw, 64px);
  height: clamp(36px, 8vw, 64px);
  margin-right: 0.4rem;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(77, 163, 255, 0.28);
}

/* Widen the playlists page container */
.page-template-page-playlists .content-wrap {
  width: min(1240px, calc(100% - 2rem));
}

/* Anchor nav improvements */
.page-template-page-playlists .playlist-anchors {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0.85rem 1rem;
  margin-bottom: 2rem;
  background: var(--bg-soft, #11182d);
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-template-page-playlists .playlist-anchors a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.playlist-anchor-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan, #5eead4);
  background: rgba(94, 234, 212, 0.12);
  border-radius: 999px;
}

/* Section h2 */
.playlist-section h2 {
  margin: 3rem 0 1.25rem;
  scroll-margin-top: 5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.playlist-section:first-of-type h2 {
  margin-top: 1.5rem;
}

/* Grid: 4 cols desktop, 3 large tablet, 2 small tablet, 1 mobile */
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 1100px) {
  .playlist-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .playlist-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .playlist-grid { grid-template-columns: 1fr; }
}

/* Playlist card */
.playlist-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-card, #151e35);
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  border-radius: var(--radius-sm, 14px);
  overflow: hidden;
  padding: 0;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.playlist-card:hover,
.playlist-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(94, 234, 212, 0.55);
  box-shadow: 0 18px 38px rgba(6, 10, 23, 0.42);
}

/* Thumbnail with play badge */
.playlist-card-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.playlist-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.playlist-card:hover .playlist-card-thumb img {
  transform: scale(1.05);
}

.playlist-card-thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.4);
  background: linear-gradient(135deg, #1a2540, #11182d);
}

.playlist-card-play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 14px;
  color: #fff;
  background: rgba(0,0,0,0.78);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 2;
}

.playlist-card:hover .playlist-card-play {
  opacity: 1;
  transform: scale(1);
}

/* Card body */
.playlist-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.85rem 1rem 1rem;
  gap: 0.45rem;
}

.playlist-card-body h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.3;
  font-weight: 650;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.playlist-card-body h3 a {
  color: var(--text, var(--ink));
  text-decoration: none;
}

.playlist-card-body h3 a:hover {
  color: var(--cyan, #5eead4);
}

.playlist-card-meta {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted, #687690);
  letter-spacing: 0.02em;
}

/* Action links */
.playlist-card-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
}

.playlist-card-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  transition: background 160ms ease, color 160ms ease;
}

.playlist-card-link.primary {
  color: #06101e;
  background: var(--cyan, #5eead4);
}

.playlist-card-link.primary:hover {
  background: #9af5e8;
}

.playlist-card-link.secondary {
  color: var(--text, var(--ink));
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border, rgba(255,255,255,0.12));
}

.playlist-card-link.secondary:hover {
  background: rgba(94, 234, 212, 0.18);
  color: var(--cyan, #5eead4);
}

/* Light theme adjustments */
:not([data-theme="dark"]) .playlist-card {
  background: #fff;
  border-color: #dfe6f2;
  box-shadow: 0 6px 18px rgba(20, 30, 55, 0.06);
}

:not([data-theme="dark"]) .playlist-card-body h3 a {
  color: var(--ink, #172033);
}

:not([data-theme="dark"]) .playlist-card-meta {
  color: #687690;
}

:not([data-theme="dark"]) .playlist-card-link.secondary {
  color: var(--ink, #172033);
  background: #f3f5fa;
  border-color: #dfe6f2;
}

:not([data-theme="dark"]) .page-template-page-playlists .playlist-anchors {
  background: #f3f5fa;
  border-color: #dfe6f2;
}


\n
/* ── Practitioner v3 — engineer status page (2026-06-21) ── */
.prac-v3 {
  --p-bg: #0a0f1f;
  --p-bg-2: #0e1428;
  --p-card: #131a31;
  --p-card-2: #182142;
  --p-line: rgba(120, 145, 200, 0.16);
  --p-line-strong: rgba(120, 145, 200, 0.28);
  --p-ink: #e8edfb;
  --p-mute: #8a99bd;
  --p-dim: #6a7796;
  --p-cyan: #5eead4;
  --p-cyan-soft: rgba(94, 234, 212, 0.16);
  --p-blue: #4da3ff;
  --p-orange: #ffb454;
  --p-gitlab: #fc6d27;
  --p-yt: #ff0033;
  --p-li: #0a66c2;
  --p-mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  display: flex;
  flex-direction: column;
  gap: 0;
  color: var(--p-ink);
  font-family: inherit;
  margin: -3rem auto 0;
  max-width: 1280px;
}
@media (max-width: 900px) { .prac-v3 { margin-top: -2rem; } }

/* HERO ============================================================= */
.prac-hero {
  position: relative;
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem);
  background:
    radial-gradient(900px 320px at 80% -10%, rgba(77, 163, 255, 0.18), transparent 60%),
    radial-gradient(700px 280px at 0% 110%, rgba(94, 234, 212, 0.16), transparent 60%),
    linear-gradient(160deg, var(--p-bg-2), var(--p-bg));
  border: 1px solid var(--p-line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(4, 8, 20, 0.55);
}
.prac-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.6;
}

.prac-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 880px) { .prac-hero-inner { grid-template-columns: 1fr; } }

.prac-status-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.2rem;
  flex-wrap: wrap;
  font-family: var(--p-mono);
  font-size: 0.82rem;
}
.prac-status-line code {
  background: transparent;
  padding: 0;
  color: var(--p-mute);
  font-family: var(--p-mono);
}
.prac-prompt code { color: var(--p-cyan); }
.prac-cmd code { color: var(--p-ink); }

.prac-dot {
  width: 9px; height: 9px;
  background: #5eead4;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.7);
  animation: prac-pulse 2s infinite;
}
@keyframes prac-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(94, 234, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}

.prac-name {
  margin: 0 0 0.25rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: #fff;
  font-weight: 800;
}
.prac-handle {
  font-weight: 500;
  color: var(--p-mute);
  letter-spacing: -0.02em;
}
.prac-headline {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  color: var(--p-mute);
  font-weight: 500;
}
.prac-tagline {
  margin: 0 0 1.3rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--p-cyan);
  opacity: 0.85;
}

/* Pills */
.prac-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.prac-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--p-line-strong);
  border-radius: 999px;
  color: var(--p-ink);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
.prac-pill:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.1);
  color: var(--p-ink);
}
.prac-pill-ic { flex-shrink: 0; }
.prac-pill--gitlab:hover   { border-color: var(--p-gitlab); color: var(--p-gitlab); }
.prac-pill--youtube:hover  { border-color: var(--p-yt);     color: var(--p-yt); }
.prac-pill--linkedin:hover { border-color: var(--p-li);     color: var(--p-li); }
.prac-pill--cv:hover       { border-color: var(--p-cyan);   color: var(--p-cyan); }

/* ID card */
.prac-id-card {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem;
  background: rgba(13, 19, 41, 0.6);
  border: 1px solid var(--p-line);
  border-radius: 16px;
  backdrop-filter: blur(6px);
}
.prac-id-avatar {
  width: 64px; height: 64px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(77, 163, 255, 0.25);
  flex-shrink: 0;
}
.prac-id-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.prac-id-name { margin: 0; font-size: 1.05rem; font-weight: 800; color: #fff; }
.prac-id-role { margin: 0; font-size: 0.78rem; color: var(--p-mute); }
.prac-id-stats {
  margin: 0.4rem 0 0;
  display: flex; gap: 0.9rem;
  font-size: 0.78rem; color: var(--p-mute);
}
.prac-id-stats strong { color: var(--p-ink); font-weight: 700; }

/* Ticker - the "uptime" metric bar */
.prac-ticker {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 2rem 0 0;
  padding: 1.1rem 0;
  border-top: 1px solid var(--p-line);
  border-bottom: 1px solid var(--p-line);
  background: rgba(0,0,0,0.18);
  border-radius: 12px;
}
@media (max-width: 980px) { .prac-ticker { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .prac-ticker { grid-template-columns: repeat(2, 1fr); } }

.prac-ticker-cell {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0 1rem;
  border-right: 1px solid var(--p-line);
  min-width: 0;
}
.prac-ticker-cell:last-child { border-right: 0; }
@media (max-width: 980px) {
  .prac-ticker-cell:nth-child(3n) { border-right: 0; }
  .prac-ticker-cell { padding: 0.4rem 1rem; }
}
@media (max-width: 560px) {
  .prac-ticker-cell:nth-child(2n) { border-right: 0; }
}

.prac-ticker-label {
  font-family: var(--p-mono);
  font-size: 0.7rem;
  color: var(--p-dim);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.prac-ticker-val {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}
.prac-ticker-trend {
  font-family: var(--p-mono);
  font-size: 0.7rem;
  color: var(--p-cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prac-ticker-cell--meta .prac-ticker-trend a {
  color: var(--p-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(94, 234, 212, 0.4);
}

/* PANELS (heatmap + cards) ======================================== */
.prac-row {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 0;
}
.prac-row--heatmap { grid-template-columns: 2.1fr 1fr; }
.prac-row--lists   { grid-template-columns: 1fr 1fr; }
@media (max-width: 980px) {
  .prac-row--heatmap, .prac-row--lists { grid-template-columns: 1fr; }
}

.prac-panel {
  padding: 1.5rem 1.6rem;
  background: var(--p-card);
  border: 1px solid var(--p-line);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(4, 8, 20, 0.35);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.prac-panel-head {
  display: flex; flex-direction: column; gap: 0.15rem;
  margin: 0 0 1rem;
}
.prac-panel h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--p-ink);
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 0.5rem;
}
.prac-h2-ic { font-size: 1rem; }
.prac-panel-sub {
  margin: 0;
  font-size: 0.78rem;
  color: var(--p-mute);
  font-family: var(--p-mono);
}
.prac-panel-sub strong { color: var(--p-cyan); font-weight: 700; }

/* HEATMAP ========================================================== */
.prac-heatmap {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 4px;
  margin: 0 0 0.7rem;
  width: 100%;
}
.hm-col {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  gap: 4px;
  aspect-ratio: 1 / 7;
}
.hm-cell {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  background: rgba(94, 234, 212, 0.05);
  border: 1px solid rgba(94, 234, 212, 0.06);
  transition: transform 120ms ease;
  min-height: 10px;
}
.hm-cell:hover { transform: scale(1.5); z-index: 10; position: relative; }
.hm-l0 { background: rgba(94, 234, 212, 0.05); }
.hm-l1 { background: rgba(94, 234, 212, 0.25); border-color: rgba(94, 234, 212, 0.25); }
.hm-l2 { background: rgba(94, 234, 212, 0.5);  border-color: rgba(94, 234, 212, 0.5); }
.hm-l3 { background: rgba(94, 234, 212, 0.75); border-color: rgba(94, 234, 212, 0.75); }
.hm-l4 {
  background: #5eead4;
  border-color: #5eead4;
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.45);
}
.prac-heatmap-legend {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--p-mono);
  font-size: 0.7rem;
  color: var(--p-mute);
  margin-top: 0.6rem;
}
.prac-heatmap-legend .hm-cell {
  width: 12px; height: 12px;
  aspect-ratio: auto;
  flex-shrink: 0;
}

/* Side panel — "En ce moment" */
.prac-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin: 0 0 1rem;
}
.prac-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--p-mono);
  color: var(--p-cyan);
  background: var(--p-cyan-soft);
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: 999px;
}
.prac-panel-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--p-line);
}
.prac-panel-foot p {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  color: var(--p-mute);
}
.prac-foot-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--p-mono);
  font-size: 0.85rem;
  color: var(--p-ink);
  text-decoration: none;
  font-weight: 600;
}
.prac-foot-arrow { color: var(--p-cyan); }
.prac-foot-time {
  margin-left: 0.3rem;
  font-size: 0.7rem;
  color: var(--p-dim);
  font-weight: 500;
}
.prac-foot-link:hover .prac-foot-name { color: var(--p-cyan); }

/* STREAM ============================================================ */
.prac-stream {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 540px;
  overflow-y: auto;
}
.prac-stream::-webkit-scrollbar { width: 6px; }
.prac-stream::-webkit-scrollbar-thumb { background: var(--p-line-strong); border-radius: 4px; }

.prac-stream-item {
  display: grid;
  grid-template-columns: 3px 1fr;
  gap: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--p-line);
}
.prac-stream-item:last-child { border-bottom: 0; }
.prac-stream-bar {
  display: block;
  width: 3px;
  height: 100%;
  background: var(--p-line-strong);
  border-radius: 2px;
}
.prac-stream-item--commit .prac-stream-bar { background: var(--p-cyan); }
.prac-stream-item--video  .prac-stream-bar { background: var(--p-yt); }
.prac-stream-item--article .prac-stream-bar { background: #4da3ff; }

.prac-stream-body { min-width: 0; }
.prac-stream-title {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--p-ink);
  word-break: break-word;
}
.prac-stream-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.prac-stream-title a:hover {
  color: var(--p-cyan);
  border-bottom-color: var(--p-cyan);
}
.prac-stream-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--p-mute);
  font-family: var(--p-mono);
}
.prac-stream-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.prac-stream-time { margin-left: auto; flex-shrink: 0; color: var(--p-dim); }

.prac-tag-mini {
  display: inline-block;
  padding: 0.06rem 0.45rem;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  background: var(--p-cyan-soft);
  color: var(--p-cyan);
  font-family: var(--p-mono);
}
.prac-tag-mini--video { background: rgba(255, 0, 51, 0.15); color: #ff5b6e; }
.prac-tag-mini--article { background: rgba(77, 163, 255, 0.15); color: #4da3ff; }

/* REPOS ============================================================= */
.prac-repos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 540px;
  overflow-y: auto;
}
.prac-repos::-webkit-scrollbar { width: 6px; }
.prac-repos::-webkit-scrollbar-thumb { background: var(--p-line-strong); border-radius: 4px; }

.prac-repo-link {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--p-card-2);
  border: 1px solid var(--p-line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--p-ink);
  transition: border-color 140ms ease, transform 140ms ease;
}
.prac-repo-link:hover {
  border-color: var(--p-cyan);
  transform: translateY(-2px);
  color: var(--p-ink);
}
.prac-repo-name {
  font-family: var(--p-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--p-cyan);
  margin: 0 0 0.3rem;
}
.prac-repo-desc {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--p-mute);
}
.prac-repo-meta {
  margin: 0;
  display: flex;
  gap: 0.9rem;
  font-family: var(--p-mono);
  font-size: 0.72rem;
  color: var(--p-dim);
}
.prac-repo-meta time { margin-left: auto; color: var(--p-dim); }

/* LIGHT THEME ====================================================== */
:not([data-theme="dark"]) .prac-v3 {
  --p-bg: #f7f9fd;
  --p-bg-2: #eef3fb;
  --p-card: #fff;
  --p-card-2: #f7f9fd;
  --p-line: #dfe6f2;
  --p-line-strong: rgba(20, 30, 55, 0.16);
  --p-ink: #172033;
  --p-mute: #5d6b89;
  --p-dim: #8c98b3;
  --p-cyan: #16a085;
  --p-cyan-soft: rgba(22, 160, 133, 0.12);
}
:not([data-theme="dark"]) .prac-hero {
  background:
    radial-gradient(700px 280px at 80% -10%, rgba(77, 163, 255, 0.18), transparent 60%),
    radial-gradient(600px 240px at 0% 110%, rgba(22, 160, 133, 0.15), transparent 60%),
    linear-gradient(160deg, #1a2540, #0b1020);
  border-color: rgba(120, 145, 200, 0.2);
}
:not([data-theme="dark"]) .prac-hero .prac-name,
:not([data-theme="dark"]) .prac-hero .prac-id-name,
:not([data-theme="dark"]) .prac-hero .prac-ticker-val { color: #fff; }
:not([data-theme="dark"]) .prac-hero .prac-headline,
:not([data-theme="dark"]) .prac-hero .prac-id-role,
:not([data-theme="dark"]) .prac-hero .prac-ticker-label,
:not([data-theme="dark"]) .prac-hero .prac-status-line code,
:not([data-theme="dark"]) .prac-hero .prac-id-stats { color: #aebbd4; }
:not([data-theme="dark"]) .prac-hero .prac-id-stats strong,
:not([data-theme="dark"]) .prac-hero .prac-ticker-cell--meta .prac-ticker-trend a { color: #fff; }
:not([data-theme="dark"]) .prac-hero .prac-pill {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: #edf3ff;
}
:not([data-theme="dark"]) .prac-hero .prac-id-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}

/* Hide old printfriendly cruft on practitioner page */
.page-id-2216 .pf-content .printfriendly,
.page-id-2216 .pf-button { display: none !important; }

/* Old hero — collapse to nothing, our hero handles everything */
.page-id-2216 .page-hero { display: none; }

/* Old practitioner classes from v1/v2 → kill them so they don't leak */
.page-id-2216 .practitioner-meta,
.page-id-2216 .practitioner-stats,
.page-id-2216 .practitioner-heatmap-wrap,
.page-id-2216 .practitioner-grid,
.page-id-2216 .stat-card,
.page-id-2216 .practitioner > *:not(.prac-v3) { display: none !important; }


/* ── Brand live indicator (links to /practitioner/) ── */
.brand-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.6rem;
  padding: 0.25rem 0.65rem 0.25rem 0.55rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan, #5eead4);
  background: rgba(94, 234, 212, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 999px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.brand-live:hover,
.brand-live:focus-visible {
  background: rgba(94, 234, 212, 0.18);
  border-color: rgba(94, 234, 212, 0.55);
  color: var(--cyan, #5eead4);
  transform: translateY(-1px);
}
.brand-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #5eead4;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.7);
  animation: brand-live-pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes brand-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(94, 234, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}
.brand-live-label { line-height: 1; }

/* Split layout for formations + articles */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.split-right .section-head {
  margin-bottom: 1.5rem;
}
.split-left .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 860px) {
  .split-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-live { margin-left: 0.4rem; padding: 0.2rem 0.55rem; font-size: 0.66rem; }
  .brand-live-label { display: none; }
}
