/* ═══════════════════════════════════════════════════════
   CLASSIC MODE — Dark Academic
   Typography-forward, sidebar layout, scholarly aesthetic
   ═══════════════════════════════════════════════════════ */

/* ─── Palette ─── */
:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #1e1e34;
    --bg-surface: #22223a;
    --bg-surface-hover: #282844;
    --bg-sidebar: #16162a;

    --text-primary: #f0ece2;
    --text-secondary: #b8b2a6;
    --text-muted: #7a756c;
    --text-faint: #5a5550;

    --accent: #d4a574;
    --accent-dim: rgba(212, 165, 116, 0.15);
    --accent-hover: #e0b78a;

    --link: #c4996a;
    --link-hover: #e0b78a;

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --sidebar-width: 280px;
    --content-max: 780px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-surface) var(--bg-primary);
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.75;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Selection ─── */
::selection {
    background: var(--accent-dim);
    color: var(--text-primary);
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--bg-surface-hover);
}

/* ═══════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════ */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1.8rem;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    margin-bottom: 1.2rem;
}

.profile-photo {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 2px solid var(--border);
    transition: var(--transition);
}

.profile-photo:hover {
    border-color: var(--accent);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-name {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.sidebar-affiliation {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.2rem;
}

.sidebar-seeking {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: 0.6rem;
    padding: 0.3rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ─── Navigation ─── */

.sidebar-nav {
    margin: 1rem 0;
    flex: 1;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.15rem;
}

.sidebar-nav a {
    display: block;
    padding: 0.4rem 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--text-primary);
}

.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: -1.8rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: var(--accent);
    border-radius: 2px;
}

/* ─── Sidebar Links ─── */

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.2rem 0;
}

.sidebar-links a:hover {
    color: var(--accent);
}

.sidebar-links svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.6;
}

.sidebar-links a:hover svg {
    opacity: 1;
}

/* ─── CV Button ─── */

.cv-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    background: transparent;
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 1.2rem;
}

.cv-button:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
}

.cv-button svg {
    width: 14px;
    height: 14px;
}

/* ─── Mode Switch ─── */

.mode-switch {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.mode-switch a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--text-faint);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.mode-switch a:hover {
    color: var(--text-muted);
}

.mode-switch .arrow {
    transition: transform 0.2s ease;
}

.mode-switch a:hover .arrow {
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════ */

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.content-inner {
    max-width: var(--content-max);
    width: 100%;
    padding: 3rem 3rem 4rem;
}

.classic-status {
    margin-bottom: 1.2rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.82rem;
}

.classic-status[hidden] {
    display: none;
}

.classic-status-error {
    border-color: rgba(212, 165, 116, 0.35);
    background: rgba(212, 165, 116, 0.1);
    color: var(--text-primary);
}

.classic-hero {
    margin-bottom: 3rem;
    padding: 1.8rem 1.9rem;
    border: 1px solid rgba(212, 165, 116, 0.18);
    border-radius: 14px;
    background:
        radial-gradient(circle at top right, rgba(212, 165, 116, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.classic-kicker {
    margin-bottom: 0.75rem;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.classic-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    font-weight: 600;
    line-height: 0.98;
    color: var(--text-primary);
    letter-spacing: 0.01em;
    margin-bottom: 0.7rem;
}

.classic-hero-meta {
    margin-bottom: 0.9rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.classic-hero-summary {
    max-width: 42rem;
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.96rem;
}

.classic-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 165, 116, 0.3);
    background: rgba(212, 165, 116, 0.1);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.hero-link:hover {
    border-color: var(--accent);
    background: rgba(212, 165, 116, 0.16);
    color: var(--text-primary);
}

.hero-link-secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--text-secondary);
}

.hero-link-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.04);
}

.profile-placeholder {
    background:
        radial-gradient(circle at 35% 30%, rgba(212, 165, 116, 0.32), transparent 45%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
}

/* ─── Sections ─── */

section {
    margin-bottom: 3.5rem;
    animation: sectionIn 0.5s ease-out both;
}

@keyframes sectionIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 165, 116, 0.18);
}

/* ─── About ─── */

.about-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 165, 116, 0.3);
    transition: var(--transition);
}

.about-text a:hover {
    border-bottom-color: var(--accent);
}

/* ─── News ─── */

.news-list {
    list-style: none;
}

.news-item {
    display: flex;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    flex-shrink: 0;
    width: 90px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.news-text {
    color: var(--text-secondary);
}

.news-text a {
    color: var(--accent);
    text-decoration: none;
}

.news-text a:hover {
    border-bottom: 1px solid var(--accent);
}

/* ─── Research Interests ─── */

.research-statement {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.research-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-tag {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 20px;
    letter-spacing: 0.03em;
}

/* ─── Publications ─── */

.pub-list {
    list-style: none;
    counter-reset: pub-counter;
}

.pub-item {
    counter-increment: pub-counter;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 2rem;
}

.pub-item:last-child {
    border-bottom: none;
}

.pub-item::before {
    content: '[' counter(pub-counter) ']';
    position: absolute;
    left: 0;
    top: 1.2rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pub-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.pub-venue {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.pub-authors {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.15rem;
}

.pub-authors strong {
    color: var(--text-primary);
    font-weight: 600;
}

.pub-role {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.pub-tldr {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    padding-left: 0.6rem;
    border-left: 2px solid var(--accent);
    line-height: 1.5;
}

.pub-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.pub-link {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: var(--transition);
}

.pub-link:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

/* ─── Experience ─── */

.exp-list {
    list-style: none;
}

.exp-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.exp-item:last-child {
    border-bottom: none;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.exp-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.exp-period {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}

.exp-org {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.exp-location {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.exp-details {
    list-style: none;
    padding-left: 0;
}

.exp-details li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.2rem;
}

.exp-details li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text-faint);
}

/* ─── Education ─── */

.edu-list {
    list-style: none;
}

.edu-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
}

.edu-item:last-child {
    border-bottom: none;
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.edu-institution {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.edu-period {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}

.edu-degree {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.1rem;
}

.edu-grade {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
}

/* ─── Teaching & Service ─── */

.service-list {
    list-style: none;
}

.service-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
}

.service-item:last-child {
    border-bottom: none;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.service-role {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.service-period {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.service-org {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.service-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─── Projects ─── */

.project-list {
    list-style: none;
}

.project-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.project-item:last-child {
    border-bottom: none;
}

.project-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.project-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.project-title a:hover {
    color: var(--accent);
}

.project-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tech-tag {
    font-size: 0.68rem;
    font-weight: 500;
    padding: 0.2rem 0.55rem;
    background: var(--bg-surface);
    color: var(--text-muted);
    border-radius: 3px;
    letter-spacing: 0.02em;
}

/* ─── Honors & Awards ─── */

.honors-group {
    margin-bottom: 1.5rem;
}

.honors-group:last-child {
    margin-bottom: 0;
}

.honors-group-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}

.honors-list {
    list-style: none;
}

.honors-list li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.honors-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ─── Certifications ─── */

.cert-list {
    list-style: none;
}

.cert-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.cert-item:last-child {
    border-bottom: none;
}

.cert-name {
    color: var(--text-secondary);
}

.cert-date {
    color: var(--text-muted);
    font-size: 0.78rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

/* ─── Skills ─── */

.skills-compact {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.skills-compact .skill-category {
    margin-bottom: 0.5rem;
}

.skills-compact .skill-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.82rem;
}

/* ─── Blogs ─── */

.blog-list {
    list-style: none;
}

.blog-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.blog-item:last-child {
    border-bottom: none;
}

.blog-item a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.blog-item a:hover {
    color: var(--accent);
}

.blog-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.1rem;
}

/* ─── Cyber Arena (compact) ─── */

.arena-compact {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.arena-compact a {
    color: var(--accent);
    text-decoration: none;
}

.arena-compact a:hover {
    border-bottom: 1px solid var(--accent);
}

.arena-badges {
    display: flex;
    gap: 1rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}

.arena-badge {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.arena-badge strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ─── Scratchpad Card ─── */

.scratchpad-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.4rem 1.6rem;
    transition: var(--transition);
}

.scratchpad-card:hover {
    border-color: var(--border-hover);
}

.scratchpad-icon {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    display: block;
}

.scratchpad-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.scratchpad-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.scratchpad-link {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.scratchpad-link:hover {
    color: var(--accent-hover);
}

.scratchpad-items {
    display: grid;
    gap: 0.9rem;
    margin: 1rem 0 1.1rem;
}

.scratchpad-item {
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
}

.scratchpad-item:first-child {
    padding-top: 0;
    border-top: none;
}

.scratchpad-item-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.scratchpad-item-meta,
.scratchpad-tags,
.scratchpad-lesson {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.scratchpad-lesson {
    margin-top: 0.45rem;
    line-height: 1.6;
}

.scratchpad-tags {
    margin-top: 0.35rem;
}

/* ─── Contact ─── */

.contact-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.2rem;
}

.contact-links {
    list-style: none;
}

.contact-links li {
    padding: 0.3rem 0;
}

.contact-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}

.contact-links a:hover {
    color: var(--accent-hover);
}

.contact-email {
    font-weight: 500;
}

/* ─── Show More / Toggle ─── */

.show-more-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    padding: 0.4rem 0;
    letter-spacing: 0.02em;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.show-more-btn:hover {
    color: var(--accent-hover);
}

.show-more-btn .arrow {
    transition: transform 0.2s ease;
    font-size: 0.7rem;
}

.show-more-btn.expanded .arrow {
    transform: rotate(180deg);
}

.collapsible {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.collapsible.collapsed {
    max-height: 0;
    opacity: 0;
}

.collapsible.expanded {
    opacity: 1;
}

/* ─── Footer ─── */

.classic-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-faint);
    display: flex;
    justify-content: space-between;
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════════════════ */

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.6rem;
    cursor: pointer;
    color: var(--text-primary);
}

.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
}

@media (max-width: 860px) {
    .mobile-menu-btn {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 260px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

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

    .main-content {
        margin-left: 0;
    }

    .content-inner {
        padding: 4rem 1.5rem 3rem;
        max-width: 100%;
    }

    .classic-hero {
        padding: 1.5rem;
    }

    .exp-header,
    .edu-header,
    .service-header {
        flex-direction: column;
        gap: 0.15rem;
    }

    .cert-item {
        flex-direction: column;
        gap: 0.1rem;
    }

    .cert-date {
        margin-left: 0;
    }

    .classic-footer {
        flex-direction: column;
        gap: 0.3rem;
    }
}

@media (max-width: 480px) {
    .content-inner {
        padding: 3.5rem 1rem 2rem;
    }

    .classic-hero {
        padding: 1.3rem;
    }

    .classic-hero-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .pub-title {
        font-size: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════
   PRINT STYLESHEET — Clean paper output for faculty
   ═══════════════════════════════════════════════════════ */

@media print {
    /* Reset colors to paper-friendly */
    * {
        color: #1a1a1a !important;
        background: #fff !important;
        box-shadow: none !important;
        text-shadow: none !important;
        border-color: #ccc !important;
    }

    body {
        font-size: 11pt;
        line-height: 1.5;
        display: block;
    }

    /* Hide non-essential elements */
    .sidebar,
    .mobile-menu-btn,
    .sidebar-overlay,
    .mode-switch,
    .show-more-btn,
    .scratchpad-card {
        display: none !important;
    }

    .classic-status {
        display: none !important;
    }

    /* Expand main content to full page width */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .content-inner {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .classic-hero {
        border: none !important;
        padding: 0 0 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Show all hidden/collapsed items */
    [style*="display: none"] {
        display: block !important;
    }

    /* Typography for print */
    .section-title {
        font-size: 14pt !important;
        color: #1a1a1a !important;
        border-bottom: 1pt solid #999 !important;
        page-break-after: avoid;
    }

    .pub-title {
        font-style: italic !important;
    }

    /* Accent colors become dark for print */
    .pub-role,
    .exp-org,
    .service-org,
    .keyword-tag,
    .sidebar-seeking {
        color: #333 !important;
        font-weight: 600 !important;
    }

    .keyword-tag {
        border: 1pt solid #999 !important;
        padding: 2pt 6pt !important;
    }

    .pub-link {
        border: 1pt solid #999 !important;
    }

    /* Show URLs after external links */
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #666 !important;
        word-break: break-all;
    }

    /* Don't show URL for internal nav links */
    a[href^="#"]::after {
        content: none;
    }

    /* Prevent page breaks inside items */
    .pub-item,
    .exp-item,
    .edu-item,
    .service-item,
    .project-item,
    .cert-item {
        page-break-inside: avoid;
    }

    section {
        page-break-before: auto;
        page-break-inside: avoid;
    }

    /* Add a printed header */
    .content-inner::before {
        content: attr(data-print-header);
        display: block;
        font-size: 16pt;
        font-weight: 600;
        font-family: var(--font-serif);
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 2pt solid #1a1a1a;
    }

    /* Remove animations */
    section {
        animation: none !important;
        opacity: 1 !important;
    }
}
