/* ===========================================================================
   Interview Prep — Enhanced UI/UX Styles
   =========================================================================== */

/* ===========================================================================
   Interview Prep — Premium Dark Theme v2
   =========================================================================== */

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
    --hero-gradient-start: var(--md-primary-fg-color, #7c3aed);
    --hero-gradient-end: var(--md-accent-fg-color, #2563eb);
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(255, 255, 255, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glow-color: rgba(139, 92, 246, 0.3);
    --code-bg: #1a1b2e;
}

[data-md-color-scheme="slate"] {
    --md-default-bg-color: #0d1117;
    --md-default-fg-color: #e6edf3;
    --md-default-fg-color--light: #8b949e;
    --md-default-fg-color--lighter: #484f58;
    --md-default-fg-color--lightest: #30363d;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-hover-border: rgba(255, 255, 255, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glow-color: rgba(139, 92, 246, 0.15);
}

/* ── Typography ────────────────────────────────────────── */
.md-typeset {
    font-size: 0.8rem;
    line-height: 1.75;
}

.md-typeset h1 {
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.75em;
    background: linear-gradient(135deg, #c084fc, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.md-typeset h2 {
    font-weight: 700;
    font-size: 1.5rem;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--md-primary-fg-color), transparent) 1;
    padding-bottom: 0.3em;
    margin-top: 2em;
    letter-spacing: -0.01em;
}

.md-typeset h3 {
    font-weight: 600;
    font-size: 1.15rem;
    margin-top: 1.5em;
    color: #c084fc;
}

.md-typeset h4 {
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1.2em;
}

/* ── Header / Nav ──────────────────────────────────────── */
.md-header {
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 10;
}

/* ── Hero Section ───────────────────────────────────────── */
.hero-section {
    position: relative;
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    margin: -1.5rem -1.5rem 2rem -1.5rem;
    background: linear-gradient(
        135deg,
        var(--hero-gradient-start) 0%,
        #4f46e5 30%,
        var(--hero-gradient-end) 70%,
        var(--hero-gradient-start) 100%
    );
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    border-radius: 0 0 2rem 2rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 40%, rgba(255,255,255,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 60%, rgba(255,255,255,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(139,92,246,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.6rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border: none !important;
    margin: 0 0 0.4rem 0 !important;
    letter-spacing: -0.03em;
    animation: fade-in-down 0.6s ease-out;
}

.hero-icon {
    display: inline-block;
    animation: bounce-soft 2s ease-in-out infinite;
}

@keyframes bounce-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0.4rem 0 1.5rem 0;
    line-height: 1.6;
    animation: fade-in-up 0.6s ease-out 0.1s both;
}

.hero-subtitle strong {
    color: #ffffff;
    font-weight: 700;
}

.hero-subtitle small {
    font-size: 0.82rem;
    opacity: 0.7;
    display: block;
    margin-top: 0.3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    animation: fade-in-up 0.6s ease-out 0.2s both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.65rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-width: 90px;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.hero-stat:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    animation: fade-in-up 0.6s ease-out 0.3s both;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.6rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
}

.hero-button-primary {
    background: #ffffff;
    color: var(--hero-gradient-start) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fade-in-down {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Skills Timeline ────────────────────────────────────── */
.skill-timeline {
    position: relative;
    padding: 1.5rem 0;
}

.skill-timeline::before {
    content: '';
    position: absolute;
    left: 2.5rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #22c55e, #3b82f6, #8b5cf6, #ef4444, #ec4899);
    border-radius: 3px;
    opacity: 0.5;
    box-shadow: 0 0 8px var(--glow-color);
}

.skill-level {
    margin-bottom: 2rem;
    position: relative;
}

.skill-level-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-left: 4.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--md-default-fg-color);}

.skill-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.skill-level-badge.beginner {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.1);
}

.skill-level-badge.intermediate {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.1);
}

.skill-level-badge.advanced {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.1);
}

.skill-level-badge.staff {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.1);
}

.skill-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.8rem;
    padding-left: 4.5rem;
}

.skill-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0.8rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: transparent;
    transition: background 0.3s;
}

.skill-card:hover {
    transform: translateY(-3px);
    border-color: var(--card-hover-border);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.skill-card:hover::before {
    background: var(--md-primary-fg-color);
}

.skill-card.highlight {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.06);
}

.skill-card-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.skill-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--md-default-fg-color);
}

.skill-card-desc {
    font-size: 0.72rem;
    color: var(--md-default-fg-color--light);
    line-height: 1.4;
}

.skill-card-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 0.1rem 0.5rem;
    background: linear-gradient(135deg, var(--md-primary-fg-color), var(--md-accent-fg-color));
    color: #ffffff;
    border-radius: 0.3rem;
    font-size: 0.6rem;
    font-weight: 600;
    margin-top: 0.2rem;
}

/* ── Module Grid ──────────────────────────────────────────── */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.module-card {
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.module-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--md-primary-fg-color), var(--md-accent-fg-color));
    opacity: 0;
    transition: opacity 0.3s;
}

.module-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-hover-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.module-card:hover::after {
    opacity: 1;
}

.module-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.module-card-icon {
    font-size: 1.8rem;
}

.module-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--md-default-fg-color);
}

.module-card-body {
    flex: 1;
    margin-bottom: 0.6rem;
}

.module-card-count {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--md-primary-fg-color);
    background: rgba(139, 92, 246, 0.1);
    padding: 0.1rem 0.5rem;
    border-radius: 0.3rem;
    margin-bottom: 0.4rem;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.module-card-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--md-default-fg-color--light);
    line-height: 1.5;
}

.module-card-footer {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.module-card-tag {
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.3rem;
    font-size: 0.6rem;
    color: var(--md-default-fg-color--light);
    font-weight: 500;
    transition: all 0.2s;
}

.module-card-tag:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #c084fc;
}

/* ── Usage Grid ──────────────────────────────────────────── */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.usage-card {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.8rem;
    transition: all 0.25s;
}

.usage-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--card-hover-border);
    transform: translateY(-2px);
}

.usage-card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.usage-card-content h4 {
    margin: 0 0 0.3rem 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--md-default-fg-color);
}

.usage-card-content p {
    margin: 0;
    font-size: 0.72rem;
    color: var(--md-default-fg-color--light);
    line-height: 1.5;
}

.usage-card-content kbd {
    padding: 0.1rem 0.4rem;
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.2rem;
    color: #c084fc;
}

/* ── Tech Stack ───────────────────────────────────────────── */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.8rem;
    text-align: center;
    transition: all 0.25s;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--card-hover-border);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tech-icon {
    font-size: 1.8rem;
}

.tech-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--md-default-fg-color);
}

.tech-desc {
    font-size: 0.68rem;
    color: var(--md-default-fg-color--light);
}

/* ── Code Blocks ──────────────────────────────────────────── */
.md-typeset pre > code {
    border-radius: 0.75rem;
    font-size: 0.72rem;
    line-height: 1.55;
}

.md-typeset pre {
    line-height: 1.4;
    border-radius: 0.75rem;
    background: var(--code-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Tables ───────────────────────────────────────────────── */
.md-typeset table:not([class]) {
    font-size: 0.72rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.md-typeset table:not([class]) th {
    background: linear-gradient(135deg, var(--md-primary-fg-color), var(--md-accent-fg-color));
    color: var(--md-primary-bg-color);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.md-typeset table:not([class]) tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* ── Admonitions ──────────────────────────────────────────── */
.md-typeset .admonition {
    font-size: 0.75rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.md-typeset .admonition.tip {
    border-color: #22c55e;
}

/* ── Navigation ───────────────────────────────────────────── */
.md-header__inner {
    padding: 0 1rem;
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR — Unified design with native scrolling
   ═══════════════════════════════════════════════════════════ */

/* ── 1. Hide site name header on DESKTOP only ── */
/* On desktop, the header already shows the site name, so we hide it from
   the sidebar to avoid redundancy. On mobile, it's shown as a clickable
   home button (styled in mobile.css). */
@media screen and (min-width: 76.25em) {
    .md-nav--primary > .md-nav__title:first-child {
        display: none !important;
    }
}

/* ── 2. Desktop-only: native scrolling, collapsible, layout refinements ── */
/* Material for MkDocs switches from off-canvas drawer to sticky sidebar at 76.25em */
@media screen and (min-width: 76.25em) {

/* Native scrolling: remove SimpleBar, use overflow-y:auto */
.md-sidebar--primary .md-sidebar__scrollwrap {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}

/* WebKit scrollbar styling */
.md-sidebar--primary .md-sidebar__scrollwrap::-webkit-scrollbar {
    width: 5px;
}

.md-sidebar--primary .md-sidebar__scrollwrap::-webkit-scrollbar-track {
    background: transparent;
}

.md-sidebar--primary .md-sidebar__scrollwrap::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 3px;
}

.md-sidebar--primary .md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

/* Collapsible behavior */
.md-nav--primary .md-nav__item--nested > .md-nav__toggle:not(:checked) ~ .md-nav {
    max-height: 0;
    overflow: hidden;
}

} /* end @media (min-width: 76.25em) — scrolling, collapsible only */

/* ── 4. Base nav link styling (applied uniformly) ── */
.md-nav--primary .md-nav__link {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--md-default-fg-color);
    padding: 0.3rem 0.6rem;
    border-radius: 0.35rem;
    transition: background 0.15s, color 0.15s;
    line-height: 1.45;
    text-decoration: none;
}

.md-nav--primary .md-nav__link:hover {
    color: #c084fc;
    background: rgba(255,255,255,0.04);
}

/* ── 5. Level-specific indentation via nested nav padding ── */
/* Each nesting level automatically adds the correct indentation */
.md-nav--primary .md-nav__list .md-nav__list {
    padding-left: 1rem;
}

/* Top-level items get slightly larger font */
.md-nav--primary > .md-nav__list > .md-nav__item > .md-nav__link {
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
}

/* Section titles (non-link headers) */
.md-nav--primary .md-nav__title {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--md-default-fg-color--light);
    padding: 0.45rem 0.8rem 0.2rem;
    opacity: 0.7;
}

/* ── 6. Consistent expand/collapse chevron for ALL nested items ──
   MkDocs Material renders two kinds of nested items:
   A) Section items (top-level groups) use a DIV.md-nav__container
      containing <a> link + <label> toggle with chevron inside.
   B) Plain nested items use a single <label class="md-nav__link">
      with the chevron span directly inside.
   We handle BOTH cases below. */

/* --- Case A: Section items via md-nav__container ---
   Structure: div.md-nav__container > a.md-nav__link + label.md-nav__link > span.md-nav__icon
   The chevron is inside the label, which is a sibling of the link. */
.md-nav--primary .md-nav__item--section.md-nav__item--nested .md-nav__container > label.md-nav__link .md-nav__icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    opacity: 0.4;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
}

/* Override theme's default label padding for section items */
.md-nav--primary .md-nav__item--section.md-nav__item--nested .md-nav__container > label.md-nav__link {
    padding: 0;
    min-width: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    cursor: pointer;
}

/* --- Case B: Plain nested items ---
   Structure: label.md-nav__link > span.md-ellipsis + span.md-nav__icon
   The chevron is inline with the link text. */
.md-nav--primary .md-nav__item--nested:not(.md-nav__item--section) > .md-nav__link .md-nav__icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    margin-right: 0.15rem;
    opacity: 0.3;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

/* Rotate chevron when expanded (works for both cases) */
.md-nav--primary .md-nav__item--nested .md-nav__toggle:checked ~ .md-nav__link .md-nav__icon svg {
    transform: rotate(90deg);
}

.md-nav--primary .md-nav__item--nested .md-nav__toggle:checked ~ .md-nav__link .md-nav__icon {
    opacity: 0.6;
}

.md-nav--primary .md-nav__item--nested .md-nav__link:hover .md-nav__icon {
    opacity: 0.8;
}

/* Chevron SVG rotation base */
.md-nav--primary .md-nav__item--nested .md-nav__icon svg {
    transition: transform 0.2s ease;
    fill: currentColor;
}

/* Ensure chevron labels in section items don't block link clicks */
.md-nav--primary .md-nav__container > label.md-nav__link {
    pointer-events: all !important;
}

/* ── 7. Active link styling with left accent border ── */
.md-sidebar--primary .md-nav__item--active > .md-nav__link {
    color: #c084fc;
    font-weight: 600;
    background: rgba(139,92,246,0.08);
    border-radius: 0.3rem;
    position: relative;
}

.md-sidebar--primary .md-nav__item--active > .md-nav__link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.15rem;
    bottom: 0.15rem;
    width: 3px;
    background: linear-gradient(to bottom, #c084fc, #818cf8);
    border-radius: 0 2px 2px 0;
    opacity: 0.8;
}

/* ── 8. Sidebar layout refinements (desktop only) ── */
@media screen and (min-width: 76.25em) {
.md-sidebar--primary {
    width: 20rem;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
}

.md-sidebar__scrollwrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.md-sidebar__inner {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.md-nav--primary {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.md-nav--primary .md-nav__list {
    flex: 1;
    min-height: 0;
    padding-bottom: 0.5rem;
}

/* Source (GitHub) at bottom of sidebar — prevent position:sticky from interfering with mobile drawer */
.md-nav__source {
    margin-top: auto;
    order: 999;
    padding: 0.65rem 0.6rem;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    bottom: 0;
}

} /* end @media screen and (min-width: 76.25em) */

/* ── Footer ───────────────────────────────────────────────── */
.md-footer-meta {
    background: linear-gradient(135deg, var(--hero-gradient-start), var(--hero-gradient-end));
}

.md-footer-nav {
    background: rgba(13, 17, 23, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Content Area ────────────────────────────────────────── */
.md-main__inner {
    margin-top: 0.5rem;
}

/* Full-width layout — remove wasted side space, keep breathing room */
:root {
    --md-grid-max-width: 100%;
}

.md-grid {
    max-width: 100% !important;
    padding: 0 1.5rem;
}

.md-sidebar--primary {
    margin-left: 0;
}

.md-content {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0 1rem;
}

/* ── Search ───────────────────────────────────────────────── */
.md-search-result__meta {
    font-weight: 600;
}

.md-search-result__article {
    border-radius: 0.5rem;
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 0.4rem;
    height: 0.4rem;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--md-default-fg-color--lighter);
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--md-default-fg-color--light);
}

/* ── Image styling ─────────────────────────────────────────── */
.md-typeset img {
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* ── Buttons ──────────────────────────────────────────────── */
.md-content__button {
    color: var(--md-default-fg-color--light);
}

/* ── 404 Page ──────────────────────────────────────────────── */
.error-page {
    text-align: center;
    padding: 5rem 2rem;
}

.error-page h1 {
    font-size: 7rem !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, var(--hero-gradient-start), #ec4899, var(--hero-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 !important;
    line-height: 1;
    animation: fade-in-down 0.6s ease-out;
}

.error-page p {
    font-size: 1.2rem;
    color: var(--md-default-fg-color--light);
    margin: 1.5rem 0 2.5rem;
}

.error-page .hero-button {
    display: inline-flex;
}

/* ── Tabbed content ─────────────────────────────────────────── */
.md-typeset .tabbed-set {
    border-radius: 0.75rem;
    overflow: hidden;
}

.md-typeset .tabbed-set .tabbed-labels {
    background: var(--code-bg);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem 1.5rem;
        margin: -1rem -1rem 1.5rem -1rem;
        border-radius: 0 0 1.5rem 1.5rem;
    }

    .hero-title {
        font-size: 1.8rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-stats {
        gap: 0.5rem;
    }

    .hero-stat {
        min-width: 70px;
        padding: 0.5rem 0.8rem;
    }

    .hero-stat-number {
        font-size: 1.2rem;
    }

    .hero-stat-label {
        font-size: 0.55rem;
    }

    .skill-cards {
        grid-template-columns: 1fr;
        padding-left: 3rem;
    }

    .skill-timeline::before {
        left: 1.5rem;
    }

    .skill-level-header {
        padding-left: 3.5rem;
        font-size: 0.8rem;
    }

    .module-grid {
        grid-template-columns: 1fr;
    }

    .usage-grid {
        grid-template-columns: 1fr;
    }

    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
    }

    .md-content {
        border: none;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .hero-stat {
        min-width: 60px;
        padding: 0.35rem 0.5rem;
    }

    .hero-stat-number {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-button {
        justify-content: center;
    }

    .tech-stack {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===========================================================================
   PREMIUM ADDITIONS — Grid Background, Glassmorphism, Feedback, etc.
   =========================================================================== */

/* ── Grid Background ───────────────────────────────────────── */
body {
    background-image:
        radial-gradient(circle at 20% 0%, rgba(91,140,255,0.08), transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(167,139,250,0.08), transparent 40%),
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
    background-position: 0 0, 0 0, -1px -1px, -1px -1px;
}

/* ── Premium Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #232b3c;
    border-radius: 8px;
    border: 2px solid var(--md-default-bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: #2d3648;
}

/* ── Typography (Inter override) ───────────────────────────── */
body, .md-typeset, .md-nav, .md-header__title, .md-tabs__link {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, ui-sans-serif, system-ui, sans-serif !important;
}

.md-typeset code, .md-typeset pre, .highlight, .md-nav__title, .md-tabs__link {
    font-family: 'JetBrains Mono', ui-monospace, 'Roboto Mono', monospace !important;
}

/* ── Enhanced Code Blocks ──────────────────────────────────── */
.md-typeset .highlight {
    border-radius: 0.75rem;
    position: relative;
}

.md-typeset .highlight code {
    padding-top: 0.8rem;
    padding-bottom: 1rem;
}

.md-typeset .highlighttable {
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 30px -12px rgba(0,0,0,0.5);
    margin: 1.4rem 0;
}

.md-typeset .highlighttable .linenos {
    background: rgba(0,0,0,0.2);
    border-right: 1px solid rgba(255,255,255,0.04);
    padding: 1rem 0.4rem 1rem 0.8rem;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.2);
    user-select: none;
}

.md-typeset .highlighttable .codehilite {
    background: #0b0e15 !important;
}

/* ── Enhanced Admonitions / Callouts ───────────────────────── */
.md-typeset .admonition {
    border-radius: 0.85rem;
    box-shadow: 0 8px 30px -12px rgba(0,0,0,0.4);
    padding: 0.8rem 1rem 0.8rem 2.6rem;
    font-size: 0.82rem;
    position: relative;
    border: none !important;
    background: rgba(255,255,255,0.03);
}

.md-typeset .admonition::before {
    display: none;
}

.md-typeset .admonition > .admonition-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0;
    margin-bottom: 0.4rem;
    background: none !important;
    border: none !important;
    line-height: 1.5;
}

.md-typeset .admonition > .admonition-title::before {
    display: none;
}

/* Tip admonition — emerald theme */
.md-typeset .admonition.tip {
    background: rgba(34,211,165,0.06);
    border-left: 3px solid #22d3a5 !important;
}
.md-typeset .admonition.tip > .admonition-title {
    color: #22d3a5;
}

/* Warning admonition — amber theme */
.md-typeset .admonition.warning {
    background: rgba(255,178,72,0.07);
    border-left: 3px solid #fbbf24 !important;
}
.md-typeset .admonition.warning > .admonition-title {
    color: #fbbf24;
}

/* Note admonition — blue theme */
.md-typeset .admonition.note {
    background: rgba(91,140,255,0.06);
    border-left: 3px solid #5b8cff !important;
}
.md-typeset .admonition.note > .admonition-title {
    color: #5b8cff;
}

/* Danger admonition — red theme */
.md-typeset .admonition.danger {
    background: rgba(239,68,68,0.07);
    border-left: 3px solid #ef4444 !important;
}
.md-typeset .admonition.danger > .admonition-title {
    color: #ef4444;
}

/* Info admonition — indigo theme */
.md-typeset .admonition.info {
    background: rgba(139,92,246,0.07);
    border-left: 3px solid #a78bfa !important;
}
.md-typeset .admonition.info > .admonition-title {
    color: #a78bfa;
}

/* Example admonition — violet theme */
.md-typeset .admonition.example {
    background: rgba(167,139,250,0.06);
    border-left: 3px solid #a78bfa !important;
}
.md-typeset .admonition.example > .admonition-title {
    color: #a78bfa;
}

/* ── Enhanced Blockquotes ──────────────────────────────────── */
.md-typeset blockquote {
    border-left: 3px solid var(--md-primary-fg-color, #7c3aed);
    background: rgba(255,255,255,0.02);
    padding: 0.8rem 1.1rem;
    border-radius: 0.4rem;
    margin: 1.3rem 0;
    color: var(--md-default-fg-color);
    font-style: italic;
}

.md-typeset blockquote p {
    margin: 0;
}

/* ── Right-hand TOC ────────────────────────────────────────
   Pages here run to 1,000+ lines; the in-page "On this page" rail is the
   fastest way to jump between questions, so keep it visible. */
.md-sidebar--secondary .md-nav__title {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--md-default-fg-color--light);
}
.md-sidebar--secondary .md-nav__link {
    font-size: 0.68rem;
    line-height: 1.35;
    padding: 0.15rem 0;
}
.md-sidebar--secondary .md-nav__link--active {
    color: var(--md-accent-fg-color);
    font-weight: 600;
}

/* ── Content fade-in animation ─────────────────────────────── */
.md-content__inner {
    animation: md-fade-in 0.4s ease both;
}

@keyframes md-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Glassmorphism header ──────────────────────────────────── */
.md-header {
    background: rgba(13, 17, 23, 0.75) !important;
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

/* ── Header Source (GitHub top-right) — Hidden ────────────── */
.md-header__source {
    display: none !important;
}

/* Source (GitHub) — moved into the desktop-only @media block above. */

.md-source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(37,99,235,0.12));
    border-radius: 0.5rem;
    border: 1px solid rgba(124,58,237,0.2);
    transition: all 0.25s;
    text-decoration: none !important;
}

.md-source:hover {
    background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(37,99,235,0.2));
    border-color: rgba(124,58,237,0.4);
    transform: translateY(-1px);
}

.md-source__icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.md-source__icon svg {
    width: 16px;
    height: 16px;
}

.md-source__repository {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    letter-spacing: 0.01em;
}

.md-source__facts {
    display: none;
}

/* ===========================================================================
   Interview Roadmap — Timeline Tables
   =========================================================================== */

.roadmap-section {
    background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(37,99,235,0.04));
    border: 1px solid rgba(139,92,246,0.12);
    border-radius: 0.85rem;
    padding: 1rem 1.3rem;
    margin: 1rem 0 1.5rem;
}

.roadmap-section p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--md-default-fg-color);
    line-height: 1.7;
}

.roadmap-timeline {
    position: relative;
    padding-left: 0;
}

/* Phase headings — h3 inside .roadmap-timeline */
.roadmap-timeline h3 {
    position: relative;
    padding: 0.6rem 1rem 0.6rem 1.2rem;
    margin: 2.2rem 0 1rem 0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    border-left: 4px solid var(--md-primary-fg-color);
    background: linear-gradient(90deg, rgba(139,92,246,0.08), transparent);
}

/* Phase heading colors */
.roadmap-timeline h3:nth-of-type(1) { border-left-color: #22c55e; background: linear-gradient(90deg, rgba(34,197,94,0.08), transparent); color: #4ade80; }
.roadmap-timeline h3:nth-of-type(2) { border-left-color: #3b82f6; background: linear-gradient(90deg, rgba(59,130,246,0.08), transparent); color: #60a5fa; }
.roadmap-timeline h3:nth-of-type(3) { border-left-color: #8b5cf6; background: linear-gradient(90deg, rgba(139,92,246,0.08), transparent); color: #a78bfa; }
.roadmap-timeline h3:nth-of-type(4) { border-left-color: #f59e0b; background: linear-gradient(90deg, rgba(245,158,11,0.08), transparent); color: #fbbf24; }
.roadmap-timeline h3:nth-of-type(5) { border-left-color: #ec4899; background: linear-gradient(90deg, rgba(236,72,153,0.08), transparent); color: #f472b6; }
.roadmap-timeline h3:nth-of-type(6) { border-left-color: #06b6d4; background: linear-gradient(90deg, rgba(6,182,212,0.08), transparent); color: #22d3ee; }

/* Tables inside the roadmap timeline */
.roadmap-timeline table:not([class]) {
    border-radius: 0.65rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 0.8rem 0 1.6rem;
    font-size: 0.72rem;
}

.roadmap-timeline table:not([class]) thead th {
    background: linear-gradient(135deg, var(--md-primary-fg-color), var(--md-accent-fg-color));
    color: var(--md-primary-bg-color);
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.6rem 0.8rem;
    border: none;
}

.roadmap-timeline table:not([class]) tbody td {
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: top;
}

.roadmap-timeline table:not([class]) tbody tr {
    transition: background 0.15s;
}

.roadmap-timeline table:not([class]) tbody tr:hover td {
    background: linear-gradient(90deg, rgba(139,92,246,0.04), transparent);
}

.roadmap-timeline table:not([class]) tbody tr:last-child td {
    border-bottom: none;
}

/* Column widths for roadmap tables */
.roadmap-timeline table:not([class]) th:first-child,
.roadmap-timeline table:not([class]) td:first-child {
    width: 2.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--md-default-fg-color--light);
}

.roadmap-timeline table:not([class]) td:first-child {
    font-size: 0.72rem;
    color: var(--md-default-fg-color);
    font-weight: 700;
}

.roadmap-timeline table:not([class]) th:last-child,
.roadmap-timeline table:not([class]) td:last-child {
    width: 35%;
    font-size: 0.7rem;
}

.roadmap-timeline table:not([class]) td:nth-child(2) {
    font-weight: 600;
    color: var(--md-default-fg-color);
    min-width: 140px;
}

.roadmap-timeline table:not([class]) td:nth-child(3) {
    color: var(--md-default-fg-color--light);
    font-size: 0.7rem;
    line-height: 1.5;
}

/* Blockquote inside roadmap */
.roadmap-timeline blockquote {
    margin: 0.8rem 0 1.6rem;
    padding: 0.7rem 1rem;
    border-left: 3px solid #f59e0b;
    background: rgba(245,158,11,0.06);
    border-radius: 0.4rem;
    font-size: 0.8rem;
    font-style: normal;
    color: #fbbf24;
}

.roadmap-timeline blockquote strong {
    color: #fcd34d;
}

/* Estimated Timeline table (outside roadmap-timeline) */
.md-typeset h3:has(+ table) + table:not([class]) thead th {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.md-typeset h3:has(+ table) + table:not([class]) tbody tr:last-child td {
    background: linear-gradient(90deg, rgba(139,92,246,0.06), transparent);
    font-weight: 700;
}

/* ── Feedback Widget ────────────────────────────────────────── */
.feedback-widget {
    padding: 0.75rem 1rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    text-align: center;
    margin-top: 2rem;
}

.feedback-widget-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--md-default-fg-color--light);
    margin-bottom: 0.5rem;
}

.feedback-widget-buttons {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
}

.feedback-widget-btn {
    flex: 1;
    max-width: 80px;
    padding: 0.35rem 0.6rem;
    border-radius: 0.45rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: var(--md-default-fg-color--light);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.2;
}

.feedback-widget-btn:hover {
    background: rgba(34,211,165,0.12);
    border-color: rgba(34,211,165,0.3);
    color: #22d3a5;
}

.feedback-widget-btn-no:hover {
    background: rgba(239,68,68,0.12);
    border-color: rgba(239,68,68,0.3);
    color: #ef4444;
}

.feedback-widget-thanks {
    display: none;
    font-size: 0.7rem;
    color: #22d3a5;
    font-weight: 500;
}

/* ── Enhanced Lists ────────────────────────────────────────── */
.md-typeset ul li {
    position: relative;
    padding-left: 1.4rem;
}

.md-typeset ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--md-primary-fg-color, #7c3aed), var(--md-accent-fg-color, #2563eb));
}

.md-typeset ul li li::before {
    width: 4px;
    height: 4px;
    top: 0.65rem;
    opacity: 0.5;
}

.md-typeset ul li li li::before {
    display: none;
}

/* ── Enhanced Table Hover ──────────────────────────────────── */
.md-typeset table:not([class]) tbody tr {
    transition: background 0.15s;
}

.md-typeset table:not([class]) tbody tr:hover td {
    background: rgba(139,92,246,0.04);
}

/* ── Image Glass Effect ─────────────────────────────────────── */
.md-typeset img {
    border: 1px solid rgba(255,255,255,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}

.md-typeset img:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}

/* ── Search Dialog Premium ──────────────────────────────────── */
.md-search__inner {
    border-radius: 0.75rem !important;
}

.md-search__form {
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

.md-search__output {
    border-radius: 0 0 0.75rem 0.75rem !important;
}

/* ── Better Code Copy Button ────────────────────────────────── */
.md-clipboard {
    transition: opacity 0.2s, transform 0.2s;
    opacity: 0.4;
}

.md-clipboard:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ── Tabbed Content ─────────────────────────────────────────── */
.md-typeset .tabbed-set {
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.md-typeset .tabbed-set .tabbed-labels {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.md-typeset .tabbed-set .tabbed-labels label {
    font-size: 0.75rem;
    font-weight: 500;
}

.md-typeset .tabbed-set .tabbed-labels label:hover {
    color: #c084fc;
}

/* ── Details / Collapsible ──────────────────────────────────── */
.md-typeset details {
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.md-typeset details summary {
    border-radius: 0.75rem;
    font-weight: 600;
}

/* ── Back-to-top button ─────────────────────────────────────── */
.md-top {
    border-radius: 0.5rem;
    backdrop-filter: blur(8px);
    background: rgba(13,17,23,0.85);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.25s;
}

.md-top:hover {
    background: rgba(124,58,237,0.2);
    border-color: rgba(124,58,237,0.3);
    transform: translateY(-2px);
}

/* ── Footer enhancement ─────────────────────────────────────── */
.md-footer-meta {
    border-top: 1px solid rgba(255,255,255,0.04);
    position: relative;
}

.md-footer-meta::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), transparent);
}

.md-footer-copyright {
    font-size: 0.72rem;
}

/* ═══════════════════════════════════════════════════════════
   UX pass: tabs, reading rail, headings
   ═══════════════════════════════════════════════════════════ */

/* ── Top tabs: quiet, same palette as the page, clear active state ── */
.md-tabs {
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.md-tabs__link {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, ui-sans-serif, system-ui, sans-serif !important;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    opacity: 1;
    color: var(--md-default-fg-color--light);
    margin-top: 0;
    padding: 0.85rem 0 0.7rem;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.md-tabs__item { margin-right: 0.35rem; padding: 0 0.6rem 0 0.3rem; }
.md-tabs__link:hover { color: var(--md-default-fg-color); }
.md-tabs__item--active .md-tabs__link {
    color: #c084fc;
    font-weight: 600;
    border-bottom-color: #c084fc;
}

/* ── Sidebar: the active tab already names the section, so drop the
      duplicate collapsible header and start with its children. ── */
@media screen and (min-width: 76.25em) {
    .md-nav--lifted > .md-nav__list > .md-nav__item--active > .md-nav__link,
    .md-nav--lifted > .md-nav__list > .md-nav__item--active > .md-nav__container {
        display: none;
    }
    .md-nav--lifted > .md-nav__list > .md-nav__item--active > .md-nav > .md-nav__list {
        padding-left: 0;
    }
    .md-nav--lifted > .md-nav__list > .md-nav__item--active > .md-nav > .md-nav__title { display: none; }
    .md-sidebar--primary { top: 6.1rem; height: calc(100vh - 6.1rem); }
}

/* ── Right rail: question-level only. h3 sub-entries ("Answer",
      "Animated Sequence Diagram", …) repeat under every question. ── */
.md-sidebar--secondary .md-nav__list .md-nav__list { display: none; }
.md-sidebar--secondary .md-nav__link { padding-right: 0.5rem; }

/* ── Headings: calmer H1, no permalink noise on it ── */
.md-typeset h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.015em; }
.md-typeset h1 .headerlink { display: none; }
.md-typeset h2 { margin-top: 2.2em; }

/* ── Breadcrumb ── */
.md-path { font-size: 0.7rem; opacity: 0.85; }

/* ── Reading comfort: readable measure, comfortable leading ── */
.md-typeset { font-size: 0.78rem; line-height: 1.7; }
.md-content__inner { max-width: 54rem; margin-left: auto; margin-right: auto; }
.md-typeset table:not([class]) { font-size: 0.72rem; }

/* ── Home page ── */
/* Hero sat under the sticky tab bar (its -1.5rem top margin predates tabs). */
.hero-section { margin-top: 0.5rem; }
/* Home is a landing page: no right rail, stats stay on one row. */
.md-main__inner:has(.hero-section) .md-sidebar--secondary { display: none; }
.hero-stats { flex-wrap: wrap; }
.hero-stat { min-width: 8.5rem; }

/* "Start here" grid: one card per interview round, each linking to a tab. */
.path-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 2rem;
}
.path-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--card-border);
    border-radius: 0.6rem;
    background: var(--card-bg);
    color: var(--md-default-fg-color) !important;
    text-decoration: none !important;
    transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.path-card:hover {
    border-color: #c084fc;
    background: rgba(192, 132, 252, 0.06);
    transform: translateY(-2px);
}
.path-card .path-round { font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--md-default-fg-color--light); }
.path-card .path-title { font-size: 0.85rem; font-weight: 700; }
.path-card .path-desc { font-size: 0.7rem; line-height: 1.5; color: var(--md-default-fg-color--light); }

/* Header always shows the site name. The page title it swaps in on scroll
   duplicates the H1 and breadcrumb, and reads "Overview" on section landings. */
.md-header__title--active .md-header__topic:first-child {
    opacity: 1; transform: none; pointer-events: auto;
}
.md-header__title--active .md-header__topic + .md-header__topic {
    opacity: 0; pointer-events: none;
}

/* H1: solid colour. The gradient text-fill made every emoji in a heading
   render as a flat coloured block instead of the glyph. */
.md-typeset h1 {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    color: #c4b5fd;
}

/* Sidebar scrollbar: only visible while hovering the sidebar. */
.md-sidebar--primary .md-sidebar__scrollwrap { scrollbar-color: transparent transparent; }
.md-sidebar--primary:hover .md-sidebar__scrollwrap { scrollbar-color: rgba(139, 92, 246, 0.35) transparent; }
.md-sidebar--primary .md-sidebar__scrollwrap::-webkit-scrollbar-thumb { background: transparent; }
.md-sidebar--primary:hover .md-sidebar__scrollwrap::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.35); }

/* Home: the Home tab has no sidebar pages, so the left column was empty and
   the content looked off-centre. Drop it and centre the landing content. */
@media screen and (min-width: 60em) {
    .md-main__inner:has(.hero-section) .md-sidebar--primary { display: none; }
    .md-main__inner:has(.hero-section) .md-content {
        max-width: 58rem;
        margin-left: auto;
        margin-right: auto;
        flex: 1 1 auto;
    }
    .md-main__inner:has(.hero-section) .md-content__inner { max-width: none; }
}
.md-main__inner:has(.hero-section) .hero-section { margin-top: 1.25rem; border-radius: 1.25rem; }
