
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
  /* Background layers */
  --bg:        #06080d;
  --panel:     #0d121b;
  --panel-2:   #11182a;

  /* Ink */
  --ink:       #e6ebf2;
  --body:      #aab4c2;
  --dim:       #6a7388;
  --faint:     #2a3142;

  /* Rules */
  --rule:      #1a2030;

  /* Signal */
  --accent:    #22d3ee;
  --accent-dim:#0e7490;
  --warm:      #f59e0b;

  /* Semantic — kept for legacy classes */
  --primary-color:   var(--ink);
  --secondary-color: var(--accent);
  --accent-color:    var(--accent);
  --text-color:      var(--body);
  --light-text:      var(--dim);
  --bg-color:        var(--bg);
  --bg-gradient-end: var(--bg);
  --card-bg:         var(--panel);
  --border-color:    var(--rule);
  --shadow:          0 8px 24px rgba(0,0,0,0.5);
  --shadow-sm:       0 2px 8px rgba(0,0,0,0.35);

  /* Code blocks */
  --code-bg:    var(--panel);
  --code-text:  var(--accent);
  --pre-bg:     var(--panel);

  /* Post layout */
  --post-bg:           var(--bg);
  --post-text:         var(--body);
  --post-heading:      var(--ink);
  --post-subheading:   var(--ink);
  --post-meta-text:    var(--dim);
  --post-meta-bg:      var(--panel);
  --post-border:       var(--rule);
  --post-footer-btn-bg: var(--panel);
  --post-footer-btn-text: var(--ink);
  --blockquote-bg:     var(--panel);
  --blockquote-border: var(--accent);
  --blockquote-text:   var(--body);

  /* Problem cards */
  --problem-card-bg:    var(--panel);
  --problem-title-color: var(--ink);
  --problem-sub-text:   var(--dim);

  /* Sidebar */
  --sidebar-bg: var(--panel);

  /* Footer */
  --footer-link:    var(--body);
  --footer-subtext: var(--dim);

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Menlo', monospace;
}


html,
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--body);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  padding: 0;
  box-shadow: none;
  width: 100%;
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; gap: 32px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}

.brand-mark { flex-shrink: 0; }

.brand-name {
  color: var(--ink); font-size: 15px; font-weight: 600;
  letter-spacing: -0.2px;
}

.site-nav {
  display: flex; gap: 26px;
  font-family: var(--font-sans);
  font-size: 13px;
}

.site-nav a {
  color: var(--body); text-decoration: none; font-weight: 500;
  transition: color 0.15s;
}

.site-nav a::after { display: none; }

.site-nav a:hover { color: var(--ink); }

.site-nav a.active { color: var(--accent); font-weight: 600; }

.header-meta { margin-left: auto; }

.search-chip {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--body);
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  border-radius: 0;
  width: 200px;
}

.search-chip::placeholder { color: var(--dim); }
.search-chip:focus { outline: none; border-color: var(--accent); }

/* Main Content */
.site-main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Global Search */
#global-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#global-results-container {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

#global-results-container:empty {
    display: none;
}

#global-results-container li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

#global-results-container li:last-child a {
    border-bottom: none;
}

#global-results-container li a:hover {
    background: var(--bg-color);
}

.site-main h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.site-main h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.site-main p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Posts and Projects */
.post,
.project {
    margin-bottom: 3rem;
}

.post-header,
.project-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.post-title,
.project-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.post-meta {
    color: var(--light-text);
    font-size: 0.95rem;
    font-weight: 500;
}

.project-description {
    color: var(--secondary-color);
    font-style: italic;
    margin-top: 0.75rem;
    font-size: 1.05rem;
}

.post-content,
.project-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.post-content h2,
.project-content h2,
.post-content h3,
.project-content h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.75rem 0;
    font-weight: 700;
}

.post-content p,
.project-content p {
    margin-bottom: 1.2rem;
    color: var(--text-color);
}

.post-content a,
.project-content a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 2px;
}

.post-content a:hover,
.project-content a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.post-content code,
.project-content code {
    background-color: var(--code-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 0.9rem;
    color: var(--code-text);
    font-weight: 500;
}

.post-content pre,
.project-content pre {
    background: var(--pre-bg);
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow);
}

.post-content pre code,
.project-content pre code {
    background-color: transparent;
    padding: 0;
    color: #e2e8f0;
}

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  color: var(--body);
  margin-top: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}

.footer-col--center { text-align: center; }

.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: var(--body); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--accent); }

.footer-socials { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.footer-social-link {
  color: var(--body); text-decoration: none;
  font-family: var(--font-mono); font-size: 12px;
  border: 1px solid var(--rule); padding: 6px 14px;
  transition: border-color 0.15s, color 0.15s;
}

.footer-social-link:hover { color: var(--accent); border-color: var(--accent); }

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
}

.footer-bottom p { margin: 0; }
.footer-built-with { margin: 0; }

/* Project Card Styles */
.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-left-color: var(--accent-color);
}

.project-card h3 {
    margin-bottom: 0.75rem;
}

.project-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.project-card h3 a:hover {
    color: var(--secondary-color);
}

.project-card p {
    color: var(--light-text);
    margin: 0;
}

/* Buttons */
a[role="button"],
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), #00b8d4);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

a[role="button"]:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--accent-color), #ff5a8d);
}

/* Modern cross-page link button */
.btn-crosslink {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1.08rem;
    font-weight: 600;
    background: linear-gradient(90deg, #00d4ff, #ff6b9d);
    color: white !important;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.08);
    text-decoration: none;
    border: none;
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-crosslink:hover {
    background: linear-gradient(90deg, #ff6b9d, #00d4ff);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.13);
    color: #fff !important;
}

/* List Styles */
.site-main ul,
.site-main ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.site-main li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.5rem;
    }

    .site-nav {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .post-title,
    .project-title {
        font-size: 1.75rem;
    }

    .site-main {
        padding: 1.5rem;
    }

    .site-main h1 {
        font-size: 2rem;
    }

    .projects-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .site-nav {
        gap: 0.75rem;
    }

    .site-title {
        font-size: 1.3rem;
    }

    .post-title,
    .project-title {
        font-size: 1.5rem;
    }

    .site-main {
        padding: 1rem;
    }

    .site-main h1 {
        font-size: 1.75rem;
    }

    .site-main h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 1024px) {
    #global-search-wrapper {
        width: 100%;
        order: 4;
        margin-top: 0.5rem;
    }

    #global-results-container {
        width: 100%;
        left: 0;
        right: auto;
    }
}

/* Icon for cards */
.card-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 0.5rem;
    fill: var(--secondary-color);
}


/* Diagram images: constrain width for readability */
.diagram-img {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 1.75rem auto;
}

/* Master Problem List Styles */
.site-main .problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.site-main .problem-card {
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--problem-card-bg);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}

.site-main .problem-number {
    position: absolute;
    top: -10px;
    left: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.site-main .problem-status {
    position: absolute;
    top: -10px;
    right: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-main .problem-status.solved {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.site-main .problem-status.unsolved {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
}

.site-main .problem-status.in-progress {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.site-main .problem-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.site-main .problem-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-main .problem-title {
    font-weight: 700;
    text-decoration: none !important;
    color: var(--problem-title-color) !important;
    transition: color 0.2s;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.site-main .problem-title:hover {
    color: #667eea !important;
}

.site-main .problem-btn {
    display: inline-block;
    padding: 6px 12px;
    background: #667eea;
    color: white !important;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s;
    border-bottom: none !important;
}

.site-main .problem-btn:hover {
    background: #5568d3;
    color: white;
    text-decoration: none;
}

/* Linked List Problems Page Styles */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.problem-card-easy {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    border-left: 4px solid #667eea;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    position: relative;
}

.problem-card-medium {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
    position: relative;
}

.problem-card-hard {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
    position: relative;
}

.site-main .problem-card-easy h3,
.site-main .problem-card-medium h3,
.site-main .problem-card-hard h3 {
    margin-top: 0;
    color: var(--problem-title-color);
}

.site-main .problem-card-easy p,
.site-main .problem-card-medium p,
.site-main .problem-card-hard p {
    color: var(--problem-sub-text);
    margin: 0.5rem 0;
}

.problem-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.problem-btn-link {
    display: inline-block;
    padding: 8px 14px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.85rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.problem-btn-link:hover {
    transform: translateY(-2px);
}

.btn-problem {
    background: #667eea;
}

.btn-problem:hover {
    background: #5568d3;
}

.btn-approach {
    background: #764ba2;
}

.btn-approach:hover {
    background: #6a3d94;
}

.btn-solution {
    background: #f59e0b;
}

.btn-solution:hover {
    background: #d97706;
}

/* ─── Liquid Problem Cards (pc-card) ─────────────────────────────── */
.pc-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    border-left: 4px solid #94a3b8;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pc-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.pc-card--easy   { border-left-color: #10b981; }
.pc-card--medium { border-left-color: #f59e0b; }
.pc-card--hard   { border-left-color: #ef4444; }

.pc-header {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.pc-num {
    font-size: 0.72rem;
    color: var(--light-text);
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 3px;
}

.pc-title {
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.92rem;
    flex: 1;
    line-height: 1.4;
}

.pc-title:hover { color: var(--secondary-color); }

.pc-status {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 20px;
    flex-shrink: 0;
}

.pc-status--solved { color: #059669; background: #d1fae5; }
.pc-status--todo   { color: #64748b; background: var(--bg-gradient-end); }

.pc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
}

.pc-diff {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    text-transform: capitalize;
}

.pc-diff--easy   { color: #059669; background: #dcfce7; }
.pc-diff--medium { color: #d97706; background: #fef3c7; }
.pc-diff--hard   { color: #dc2626; background: #fee2e2; }

.pc-topic {
    font-size: 0.68rem;
    color: var(--light-text);
    background: var(--bg-gradient-end);
    border: 1px solid var(--border-color);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    text-transform: capitalize;
}

.pc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.15rem;
}

.pc-btn {
    font-size: 0.76rem;
    padding: 0.22rem 0.55rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.15s;
}

.pc-btn:hover { opacity: 0.75; }

.pc-btn--problem  { background: rgba(99,102,241,0.1);  color: #6366f1; }
.pc-btn--approach { background: rgba(245,158,11,0.1);  color: #d97706; }
.pc-btn--solution { background: rgba(16,185,129,0.1);  color: #059669; }

.pc-no-notes {
    font-size: 0.76rem;
    color: var(--light-text);
    font-style: italic;
}

/* Grid for topic pages */
.pc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Topic page stats bar */
.topic-stats-bar {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 0.9rem 1.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.topic-stat-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

.topic-stat-lbl {
    font-size: 0.72rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Cross-navigation links */
.topic-crosslinks {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.5rem;
}

.topic-hub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.38rem 0.85rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    transition: border-color 0.2s, color 0.2s;
}

.topic-hub-link:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.topic-hub-link--primary {
    background: rgba(102,126,234,0.1);
    border-color: #667eea;
    color: #667eea;
}

.topic-hub-link--primary:hover {
    background: rgba(102,126,234,0.18);
    color: #5568d3;
    border-color: #5568d3;
}

/* Topic quick-chips on global Problems tab */
.topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.topic-chip:hover {
    background: rgba(102,126,234,0.1);
    border-color: #667eea;
    color: #667eea;
}

/* Topic page link banner (shown by problems.js) */
#topic-page-banner {
    display: none;
    padding: 0.6rem 1rem;
    background: rgba(102,126,234,0.08);
    border: 1px solid rgba(102,126,234,0.3);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    color: var(--text-color);
}

#topic-page-banner a {
    color: #667eea;
    font-weight: 700;
    text-decoration: none;
}

#topic-page-banner a:hover { text-decoration: underline; }

/* Learning Layout Sidebar */
.learning-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.learning-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 5rem;
}

/* Sidebar toggle button (mobile only) */
.sidebar-toggle {
    display: none;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 0 0 0.75rem 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 0.75rem;
    text-align: left;
    justify-content: space-between;
    align-items: center;
}

.sidebar-toggle-icon {
    font-size: 0.85rem;
    transition: transform 0.2s;
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: flex;
    }

    .sidebar-nav {
        display: none;
    }

    .sidebar-nav.open {
        display: block;
    }
}

.learning-sidebar h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.learning-sidebar nav a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.learning-sidebar nav a:hover,
.learning-sidebar nav a.active {
    color: var(--secondary-color);
    padding-left: 0.5rem;
    font-weight: 600;
    position: relative;
}

.learning-content {
    flex: 1;
    min-width: 0;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.breadcrumbs a {
    color: var(--secondary-color);
    text-decoration: none;
}

@media (max-width: 768px) {
    .learning-layout {
        flex-direction: column;
    }

    .learning-sidebar {
        width: 100%;
        position: static;
    }
}



.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.project-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(255, 107, 157, 0.12));
    color: var(--secondary-color);
    border: 1px solid rgba(0, 212, 255, 0.25);
    letter-spacing: 0.3px;
    white-space: nowrap;
}


/* ============================================================
   Scroll-to-top Button
   ============================================================ */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.35);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
    z-index: 500;
    pointer-events: none;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    box-shadow: 0 6px 22px rgba(255, 107, 157, 0.4);
    transform: translateY(-2px);
}

/* ============================================================
   Post Article Layout (c-post)
   ============================================================ */
.c-post { max-width: 760px; margin: 56px auto; padding: 0 32px; }
.c-post-header { margin-bottom: 32px; }
.c-post-h1 {
  font-size: 40px; line-height: 1.1; font-weight: 700;
  color: var(--ink); margin: 0 0 22px; letter-spacing: -1px;
}
.c-post-meta {
  padding: 14px 0; border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; gap: 18px; font-family: var(--font-mono);
  font-size: 12px; color: var(--dim);
}
.c-meta-sep { color: var(--faint); }
.c-post-body {
  color: var(--body); font-size: 16px; line-height: 1.8;
  margin-top: 32px;
}
.c-post-body h2 {
  font-size: 22px; color: var(--ink); font-weight: 600;
  margin: 36px 0 14px; letter-spacing: -0.3px;
}
.c-post-body h3 {
  font-size: 18px; color: var(--ink); font-weight: 600;
  margin: 28px 0 12px;
}
.c-post-body p { margin: 0 0 18px; }
.c-post-body a { color: var(--accent); text-decoration: none; border-bottom: 1px dashed var(--accent-dim); }
.c-post-body a:hover { border-bottom-style: solid; }
.c-post-body code {
  font-family: var(--font-mono); color: var(--accent);
  background: var(--panel); padding: 2px 6px; font-size: 14px;
}
.c-post-body pre {
  background: var(--panel); border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  padding: 18px 20px; font-size: 13px; line-height: 1.75;
  overflow-x: auto; margin: 22px 0;
}
.c-post-body pre code {
  background: transparent; color: var(--ink); padding: 0;
}
.c-post-body blockquote {
  border-left: 2px solid var(--accent);
  background: var(--panel);
  padding: 14px 18px;
  margin: 22px 0; color: var(--body);
}
.c-post-body ul, .c-post-body ol { padding-left: 24px; margin: 0 0 18px; }
.c-post-body li { margin: 6px 0; }
.c-post-body img { max-width: 100%; margin: 22px 0; }
.c-post-footer {
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--rule);
}

@media (max-width: 768px) {
  .c-post { padding: 0 20px; margin: 32px auto; }
  .c-post-h1 { font-size: 28px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Rouge Syntax Highlighting — dark-only palette
   ═══════════════════════════════════════════════════════════════════════════ */
.highlight, .highlight pre, pre.highlight {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: 0;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.65;
}
.highlight pre { margin: 0; padding: 0; border: none; box-shadow: none; background: transparent; }
.highlight code { background: transparent; padding: 0; color: var(--ink); font-size: inherit; }

/* Comments */
.highlight .c, .highlight .c1, .highlight .cm,
.highlight .cd, .highlight .cs { color: var(--dim); font-style: italic; }
/* Keywords */
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp,
.highlight .kr, .highlight .kt, .highlight .kc { color: var(--accent); }
/* Strings */
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb,
.highlight .sc, .highlight .sd, .highlight .se, .highlight .sh,
.highlight .si, .highlight .sx, .highlight .sr, .highlight .ss { color: #a3e635; }
/* Numbers */
.highlight .mi, .highlight .mf, .highlight .mh, .highlight .mo,
.highlight .mb, .highlight .il { color: var(--warm); }
/* Names / Built-ins / Functions */
.highlight .n, .highlight .nb, .highlight .nc,
.highlight .nf, .highlight .nn, .highlight .nv { color: var(--ink); }
/* Operators */
.highlight .o, .highlight .ow { color: var(--body); }
/* Error */
.highlight .err { color: #f87171; }
/* Line numbers */
.highlight .lineno { color: var(--dim); padding-right: 1rem; user-select: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   PRINT STYLESHEET
   Produces clean, readable print / PDF output for editorial pages and any
   page on the site. Ctrl+P or Save as PDF will use these rules.
   ═══════════════════════════════════════════════════════════════════════════ */
@media print {
    /* ── 1. Force white/black base ────────────────────────────────────────── */
    *,
    *::before,
    *::after {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* ── 2. Hide chrome (nav, footer, hero gradients) ──────────────────────── */
    nav,
    .site-nav,
    .navbar,
    .nav-links,
    .hamburger,
    footer,
    .site-footer,
    .scroll-to-top,
    #scroll-top,
    .editorial-return-btn,
    .editorial-footer,
    .search-container,
    #search-container,
    .hero-section,
    .roadmap-hero,
    .chapter-nav,
    .topic-chips,
    .topic-chip,
    #topic-page-banner,
    .filters-bar,
    #my-progress-bar,
    #pagination-controls,
    .my-check-wrap,
    .action-btns,
    .no-notes,
    .pg-btn,
    .back-btn,
    [class*="back-to"],
    [id*="back-to"] {
        display: none !important;
    }

    /* ── 3. Page layout ───────────────────────────────────────────────────── */
    html, body {
        font-size: 11pt;
        line-height: 1.55;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .editorial-article,
    .post,
    .modern-content,
    main,
    .main-content,
    [class*="container"],
    [class*="wrapper"] {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0.5cm 1cm !important;
        border-radius: 0 !important;
    }

    /* ── 4. Typography ────────────────────────────────────────────────────── */
    h1 { font-size: 20pt; margin-bottom: 0.3cm; page-break-after: avoid; }
    h2 { font-size: 15pt; margin-top: 0.6cm; page-break-after: avoid; }
    h3 { font-size: 13pt; margin-top: 0.4cm; page-break-after: avoid; }
    h4, h5, h6 { font-size: 11pt; page-break-after: avoid; }

    p, li { orphans: 3; widows: 3; }

    /* ── 5. Links — show URL after text ──────────────────────────────────── */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #555 !important;
        word-break: break-all;
    }
    /* Skip for anchors and icons-only links */
    a[href^="#"]::after,
    a[href^="javascript"]::after,
    .topic-tag::after,
    nav a::after { content: ""; }

    /* ── 6. Code blocks — monochrome, no overflow ────────────────────────── */
    pre, code {
        font-family: "Courier New", Courier, monospace;
        font-size: 9pt;
        border: 1px solid #ccc !important;
        background: #f8f8f8 !important;
        color: #000 !important;
        page-break-inside: avoid;
    }
    pre {
        padding: 0.4cm !important;
        white-space: pre-wrap !important;
        word-break: break-all !important;
        border-radius: 0 !important;
    }
    /* Kill all Rouge token colours */
    .highlight span,
    .highlight .c,  .highlight .c1, .highlight .cm,
    .highlight .k,  .highlight .kd, .highlight .kn,
    .highlight .n,  .highlight .nb, .highlight .nc,
    .highlight .nf, .highlight .o,  .highlight .s,
    .highlight .s1, .highlight .s2, .highlight .mi,
    .highlight .mf {
        color: #000 !important;
        background: transparent !important;
    }

    /* ── 7. Tables ────────────────────────────────────────────────────────── */
    table { border-collapse: collapse; width: 100%; page-break-inside: avoid; }
    th, td {
        border: 1px solid #888 !important;
        padding: 0.15cm 0.25cm;
        font-size: 9.5pt;
    }
    thead { background: #eee !important; }

    /* ── 8. Complexity / pattern boxes ───────────────────────────────────── */
    .complexity-row,
    .pattern-box,
    .roadmap-table,
    .complexity-badge,
    [class*="badge"],
    [class*="diff-"] {
        border: 1px solid #ccc !important;
        background: #f8f8f8 !important;
        color: #000 !important;
        border-radius: 0 !important;
    }

    /* ── 9. Page breaks ───────────────────────────────────────────────────── */
    .editorial-header { page-break-after: avoid; }
    .roadmap-chapter  { page-break-before: always; }
    .roadmap-chapter:first-of-type { page-break-before: avoid; }
    h2, h3 { page-break-after: avoid; }
    pre, blockquote, table, .pattern-box { page-break-inside: avoid; }

    /* ── 10. Status dots — keep emoji, skip URL expansion ────────────────── */
    .author-badge::after,
    .status-cell::after { content: ""; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Direction C — Signal / Packet — shared component CSS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────────────────────────── */
.c-hero {
  padding: 64px 32px 56px;
  border-bottom: 1px solid var(--rule);
  background-image:
    radial-gradient(circle at 18% 30%, var(--panel-2) 0%, transparent 50%),
    linear-gradient(var(--faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--faint) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}
.c-hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
  align-items: center; max-width: 1200px; margin: 0 auto;
}
.c-eyebrow {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  letter-spacing: 2px; margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
}
.c-dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}
.c-hero-title {
  font-size: 52px; line-height: 1.06; font-weight: 700;
  color: var(--ink); margin: 0; letter-spacing: -1.2px;
}
.c-hl {
  background: linear-gradient(180deg, transparent 65%, var(--accent-dim) 65%);
  padding: 0 6px;
}
.c-hero-title em { color: var(--accent); font-style: normal; }
.c-hero-lede {
  color: var(--body); font-size: 16px; line-height: 1.7;
  max-width: 500px; margin: 26px 0 0;
}
.c-hero-cta { display: flex; gap: 14px; margin-top: 30px; }
.c-btn-primary, .c-btn-ghost {
  font-size: 13px; font-weight: 600; padding: 11px 20px;
  text-decoration: none; transition: opacity 0.15s, border-color 0.15s, color 0.15s;
  display: inline-block;
}
.c-btn-primary { background: var(--accent); color: #06080d; }
.c-btn-primary:hover { opacity: 0.85; }
.c-btn-ghost { border: 1px solid var(--rule); color: var(--ink); }
.c-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Hero packet visualization */
.c-hero-viz {
  background: var(--panel); border: 1px solid var(--rule);
  padding: 22px;
}
.c-viz-head {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--dim);
  margin-bottom: 16px;
}
#packet-pipeline { width: 100%; height: 80px; display: block; }
.c-viz-stages {
  display: flex; justify-content: space-between; padding: 0 4%; margin-top: 8px;
}
.c-viz-stages > div { text-align: center; }
.c-stage-num {
  width: 32px; height: 32px; margin: 0 auto;
  border: 1.5px solid var(--accent); color: var(--accent);
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.c-stage-lbl {
  font-family: var(--font-mono); font-size: 9.5px; color: var(--body);
  margin-top: 6px; letter-spacing: 1px;
}
.c-viz-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rule);
}
.c-metric-k { font-family: var(--font-mono); font-size: 9.5px; color: var(--dim); letter-spacing: 1px; }
.c-metric-v { color: var(--ink); font-size: 18px; font-weight: 600; margin-top: 4px; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.c-section {
  padding: 48px 32px; max-width: 1200px; margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}
.c-section-head {
  display: flex; align-items: flex-end; margin-bottom: 28px;
}
.c-kicker {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  letter-spacing: 2px; margin-bottom: 8px;
}
.c-section-title {
  font-size: 28px; font-weight: 700; color: var(--ink);
  margin: 0; letter-spacing: -0.6px;
}
.c-section-action {
  margin-left: auto; font-size: 13px; color: var(--accent);
  text-decoration: none; font-weight: 500;
}
.c-section-action:hover { text-decoration: underline; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.c-card-grid { display: grid; gap: 14px; }
.c-cols-2 { grid-template-columns: repeat(2, 1fr); }
.c-cols-3 { grid-template-columns: repeat(3, 1fr); }
.c-cols-4 { grid-template-columns: repeat(4, 1fr); }
.c-cols-5 { grid-template-columns: repeat(5, 1fr); }
.c-card {
  background: var(--panel); border: 1px solid var(--rule);
  padding: 22px 20px; text-decoration: none; color: inherit;
  transition: border-color 0.15s;
  display: block;
}
.c-card:hover { border-color: var(--accent); }
.c-card-meta {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--dim);
  letter-spacing: 1.5px; display: flex; justify-content: space-between;
}
.c-card-title {
  color: var(--ink); font-size: 20px; font-weight: 600;
  margin: 18px 0 10px; letter-spacing: -0.3px;
}
.c-card-slash { color: var(--accent); }
.c-card-desc { color: var(--body); font-size: 13.5px; line-height: 1.6; margin: 0; }
.c-tag-row { margin-top: 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.c-tag {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--body);
  background: var(--panel-2); padding: 3px 8px;
}

/* Topic / learning cards */
.c-topic-card {
  background: var(--panel); border: 1px solid var(--rule);
  padding: 16px 14px; text-decoration: none; min-height: 120px;
  display: block; transition: border-color 0.15s;
}
.c-topic-card:hover { border-color: var(--accent); }
.c-topic-meta {
  font-family: var(--font-mono); font-size: 10px; color: var(--dim);
  letter-spacing: 1.5px; margin-bottom: 8px;
}
.c-topic-name { color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.25; }
.c-topic-note { color: var(--dim); font-size: 11.5px; margin-top: 6px; line-height: 1.5; }

/* Stack cards (about page) */
.c-stack-card {
  background: var(--panel); border: 1px solid var(--rule);
  padding: 18px;
}
.c-stack-card > div { color: var(--ink); font-size: 13px; padding: 3px 0; }
.c-stack-key {
  font-family: var(--font-mono); color: var(--accent); font-size: 11px;
  letter-spacing: 1.5px; margin-bottom: 10px;
}

/* ── Post list (home journal section) ────────────────────────────────────── */
.c-post-list { display: flex; flex-direction: column; }
.c-post-row {
  display: grid; grid-template-columns: 110px 1fr 110px 30px;
  gap: 24px; padding: 16px 0; align-items: center;
  border-top: 1px solid var(--rule); text-decoration: none; color: inherit;
}
.c-post-row:last-child { border-bottom: 1px solid var(--rule); }
.c-post-row:hover .c-post-title { color: var(--accent); }
.c-post-date { font-family: var(--font-mono); font-size: 11.5px; color: var(--dim); }
.c-post-title { color: var(--ink); font-size: 15px; font-weight: 500; transition: color 0.15s; }
.c-post-cat {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--accent);
  letter-spacing: 1px; text-transform: uppercase;
}
.c-post-arrow { color: var(--dim); text-align: right; }

/* ── About page ──────────────────────────────────────────────────────────── */
.c-about-hero {
  padding: 56px 32px; max-width: 1200px; margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}
.c-about-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
}
.c-about-title {
  font-size: 44px; line-height: 1.08; font-weight: 700;
  color: var(--ink); margin: 0; letter-spacing: -1.2px;
}
.c-about-title .c-accent { color: var(--accent); }
.c-about-lede {
  color: var(--body); font-size: 16px; line-height: 1.75;
  max-width: 540px; margin: 26px 0 0;
}
.c-whoami {
  background: var(--panel); border: 1px solid var(--rule); padding: 22px;
  height: fit-content;
}
.c-whoami-head {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--dim);
  letter-spacing: 1.5px; margin-bottom: 12px;
}
.c-whoami-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.c-whoami-table td {
  padding: 8px 0; border-bottom: 1px solid var(--rule);
}
.c-whoami-table td:first-child {
  color: var(--dim); font-family: var(--font-mono); font-size: 11px;
}
.c-whoami-table td:last-child { color: var(--ink); text-align: right; }

.c-timeline { border-top: 1px solid var(--rule); }
.c-timeline-row {
  display: grid; grid-template-columns: 180px 1fr 1.5fr;
  gap: 28px; padding: 18px 0; align-items: baseline;
  border-bottom: 1px solid var(--rule);
}
.c-timeline-when { font-family: var(--font-mono); color: var(--accent); font-size: 13px; }
.c-timeline-role { color: var(--ink); font-size: 15px; font-weight: 600; }
.c-timeline-note { color: var(--body); font-size: 14px; }

/* ─── Project cards & visualizers ──────────────────────────────────────── */
.c-proj-card { display: flex; flex-direction: column; }
.c-card-full { grid-column: 1 / -1; }
.c-proj-links {
  margin-top: auto; padding-top: 14px;
  display: flex; gap: 14px; align-items: center;
  border-top: 1px solid var(--rule);
}
.c-proj-link-case { font: 600 11.5px/1 var(--font-mono); color: var(--accent); text-decoration: none; }
.c-proj-link-case:hover { text-decoration: underline; }
.c-proj-link-gh { font: 500 11.5px/1 var(--font-mono); color: var(--body); text-decoration: none; margin-left: auto; }
.c-proj-link-gh:hover { color: var(--ink); }

.c-proj-viz {
  background: rgba(34,211,238,.03); border: 1px solid var(--rule);
  border-radius: 4px; padding: 12px 14px; margin-bottom: 14px; overflow: hidden;
}
.c-viz-pipeline { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.c-viz-node {
  font: 500 10px/1 var(--font-mono);
  background: var(--panel); border: 1px solid var(--rule);
  border-radius: 3px; padding: 5px 9px; color: var(--body); white-space: nowrap;
}
.c-viz-node--hi { border-color: rgba(34,211,238,.4); color: var(--accent); }
.c-viz-arrow { font-size: 11px; color: var(--accent); line-height: 1; }
.c-viz-label { font: 400 10px/1 var(--font-mono); color: var(--dim); margin-top: 8px; }
.c-viz-loop-note { font: 400 10px/1 var(--font-mono); color: var(--accent); opacity: .7; margin-top: 6px; text-align: center; }
.c-viz-kanban { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.c-viz-col-head { font: 600 9px/1 var(--font-mono); letter-spacing: .07em; color: var(--dim); margin-bottom: 5px; }
.c-viz-chip {
  font: 400 9.5px/1.3 var(--font-mono);
  background: var(--panel); border: 1px solid var(--rule);
  border-radius: 2px; padding: 4px 6px; margin-bottom: 4px; color: var(--ink); display: block;
}
.c-viz-chip--active { border-color: rgba(34,211,238,.4); color: var(--accent); }
.c-viz-chip--done { opacity: .4; text-decoration: line-through; }

.c-proj-header-links { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.c-feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.c-feat-card {
  background: var(--panel); border: 1px solid var(--rule);
  border-left: 3px solid var(--accent); border-radius: 4px; padding: 16px;
}
.c-feat-title { font: 600 13px/1.2 var(--font-sans); color: var(--ink); margin: 0 0 6px; }
.c-feat-desc { font: 400 12.5px/1.6 var(--font-sans); color: var(--body); margin: 0; }
.c-stack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 16px 0; }
.c-stack-key { font: 600 10px/1 var(--font-mono); color: var(--dim); margin-bottom: 4px; }
.c-stack-val { font: 500 13px/1 var(--font-sans); color: var(--ink); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .c-hero-grid { grid-template-columns: 1fr; }
  .c-hero-title { font-size: 40px; }
  .c-cols-2 { grid-template-columns: 1fr; }
  .c-cols-3 { grid-template-columns: 1fr; }
  .c-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .c-cols-5 { grid-template-columns: repeat(2, 1fr); }
  .c-card-full { grid-column: 1; }
  .c-feat-grid { grid-template-columns: 1fr; }
  .c-viz-kanban { grid-template-columns: 1fr; }
  .c-about-grid { grid-template-columns: 1fr; }
  .c-about-title { font-size: 34px; }
  .c-timeline-row { grid-template-columns: 1fr; gap: 4px; }
  .c-post-row { grid-template-columns: 1fr; gap: 4px; }
  .c-post-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}