/* ==========================================================================
   Dr. Ihlas Sovbetov — Modern Academic Personal Website Stylesheet
   Lightweight, Mobile-Responsive, Day/Night Themeable, Zero External Frameworks
   ========================================================================== */

:root,
html[data-theme="light"] {
    --bg-body: #f4f6fa;
    --bg-surface: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-hover: #f1f5f9;
    --bg-header: rgba(255, 255, 255, 0.90);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --border-color: #e2e8f0;
    --border-strong: #cbd5e1;

    --accent-primary: #1d4ed8;
    --accent-primary-hover: #1e40af;
    --accent-soft: #eff6ff;
    --accent-border: #bfdbfe;

    --q1-bg: #ecfdf5;
    --q1-text: #047857;
    --q1-border: #a7f3d0;

    --q2-bg: #eff6ff;
    --q2-text: #1d4ed8;
    --q2-border: #bfdbfe;

    --cite-bg: #fffbeb;
    --cite-text: #b45309;
    --cite-border: #fde68a;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Source Serif 4', Georgia, Cambria, "Times New Roman", serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

html[data-theme="dark"] {
    --bg-body: #0b1120;
    --bg-surface: #111827;
    --bg-subtle: #1e293b;
    --bg-hover: #263349;
    --bg-header: rgba(17, 24, 39, 0.90);

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --border-color: #1f2937;
    --border-strong: #334155;

    --accent-primary: #60a5fa;
    --accent-primary-hover: #93c5fd;
    --accent-soft: rgba(59, 130, 246, 0.14);
    --accent-border: rgba(96, 165, 250, 0.32);

    --q1-bg: rgba(16, 185, 129, 0.14);
    --q1-text: #34d399;
    --q1-border: rgba(52, 211, 153, 0.32);

    --q2-bg: rgba(59, 130, 246, 0.14);
    --q2-text: #60a5fa;
    --q2-border: rgba(96, 165, 250, 0.32);

    --cite-bg: rgba(245, 158, 11, 0.14);
    --cite-text: #fbbf24;
    --cite-border: rgba(251, 191, 36, 0.35);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-body);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 15.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease, color 0.2s ease;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent-primary-hover);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   Sticky Top Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.brand-link:hover {
    color: var(--text-primary);
}

.brand-monogram {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--accent-primary);
    color: #ffffff;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

html[data-theme="dark"] .brand-monogram {
    background: #2563eb;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-text strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-text small {
    font-size: 12px;
    color: var(--text-muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

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

.nav-link-primary {
    color: var(--accent-primary);
    font-weight: 600;
}

.nav-pill {
    font-size: 11.5px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 99px;
    background: var(--accent-soft);
    color: var(--accent-primary);
    border: 1px solid var(--accent-border);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scholar-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 99px;
    background: var(--cite-bg);
    color: var(--cite-text);
    border: 1px solid var(--cite-border);
    font-size: 13px;
    font-weight: 500;
}

.scholar-header-badge:hover {
    color: var(--cite-text);
    opacity: 0.9;
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-subtle);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
}

html[data-theme="light"] .icon-moon {
    display: inline-block;
}
html[data-theme="light"] .icon-sun {
    display: none;
}
html[data-theme="dark"] .icon-sun {
    display: inline-block;
    color: #fbbf24;
}
html[data-theme="dark"] .icon-moon {
    display: none;
}

.mobile-menu-btn {
    display: none;
    padding: 7px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-subtle);
    color: var(--text-primary);
    cursor: pointer;
}

/* ==========================================================================
   Main Two-Column Academic Grid Layout
   ========================================================================== */
.page-layout {
    max-width: 1320px;
    margin: 28px auto 48px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* ==========================================================================
   Sticky Left Profile Sidebar
   ========================================================================== */
.profile-sidebar {
    position: sticky;
    top: 84px;
}

.sidebar-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
}

.profile-header {
    text-align: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.avatar-wrapper {
    position: relative;
    width: 116px;
    height: 116px;
    margin: 0 auto 14px;
}

.profile-avatar {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-subtle);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.verified-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-surface);
}

.profile-name {
    margin: 0 0 4px;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-role {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent-primary);
}

.profile-subrole {
    margin: 2px 0 8px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.profile-affiliation,
.profile-location {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Google Scholar Metrics Widget */
.scholar-metrics-box {
    margin-top: 18px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
}

.metrics-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.metrics-title {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.metrics-ext-link {
    font-size: 12px;
    font-weight: 600;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
}

.metric-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.metric-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 2px;
}

.metric-sub {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 1px;
}

/* Yearly Citations Bar Chart */
.yearly-chart-wrap {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}

.yearly-chart-bars {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 4px;
    align-items: end;
    height: 70px;
}

.chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.chart-val {
    font-size: 9.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
    line-height: 1;
}

.chart-bar-track {
    width: 100%;
    max-width: 18px;
    height: 40px;
    background: var(--border-color);
    border-radius: 3px 3px 0 0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.chart-bar-fill {
    width: 100%;
    background: var(--accent-primary);
    border-radius: 3px 3px 0 0;
    transition: height 0.3s ease;
}

.chart-col:hover .chart-bar-fill {
    background: var(--cite-text);
}

.chart-yr {
    font-size: 9.5px;
    color: var(--text-muted);
    margin-top: 3px;
    line-height: 1;
}

/* Academic Links */
.academic-links {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.acad-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    transition: background-color 0.15s ease;
}

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

.acad-icon {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.acad-icon-orcid {
    color: #16a34a;
}

.acad-icon-serif {
    font-family: var(--font-serif);
    font-size: 13px;
}

.acad-label {
    font-weight: 500;
    flex: 1;
}

.acad-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.sidebar-contact-cta {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.btn-sidebar-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--accent-primary);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    transition: opacity 0.15s ease;
}

html[data-theme="dark"] .btn-sidebar-primary {
    background: #2563eb;
}

.btn-sidebar-primary:hover {
    opacity: 0.92;
}

/* ==========================================================================
   Main Content Sections
   ========================================================================== */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.section-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.section-eyebrow {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.section-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.title-count {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 500;
    color: var(--text-muted);
}

.section-subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* Overview Section */
.collab-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 99px;
    background: var(--q1-bg);
    color: var(--q1-text);
    border: 1px solid var(--q1-border);
    font-size: 12.5px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

.bio-prose p {
    margin: 0 0 14px;
    color: var(--text-secondary);
}

.bio-prose strong {
    color: var(--text-primary);
}

.overview-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 22px 0;
}

.ov-stat {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
}

.ov-stat-num {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
}

.ov-stat-lbl {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

.subsection-heading {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.domain-tag {
    padding: 5px 12px;
    border-radius: 99px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ==========================================================================
   Publications Section (Main Focus)
   ========================================================================== */
.total-citations-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background: var(--cite-bg);
    color: var(--cite-text);
    border: 1px solid var(--cite-border);
    font-size: 13.5px;
    font-weight: 500;
}

.total-citations-pill:hover {
    color: var(--cite-text);
    opacity: 0.92;
}

.pub-controls {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 18px;
}

.pub-search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.search-input-wrap {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.pub-search-input {
    width: 100%;
    padding: 9px 12px 9px 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
}

.pub-search-input:focus,
.pub-sort-select:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: -1px;
}

.pub-sort-select {
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
}

.pub-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-pill {
    padding: 6px 12px;
    border-radius: 99px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-pill:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.filter-pill.active {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
}

html[data-theme="dark"] .filter-pill.active {
    background: #2563eb;
    border-color: #3b82f6;
}

.pub-results-status {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pub-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pub-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.pub-card.pulse-highlight {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-border);
}

.pub-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.pub-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pub-year-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 5px;
    background: var(--bg-subtle);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.pub-index-badge {
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 5px;
    letter-spacing: 0.02em;
}

.badge-q1 {
    background: var(--q1-bg);
    color: var(--q1-text);
    border: 1px solid var(--q1-border);
}

.badge-q2 {
    background: var(--q2-bg);
    color: var(--q2-text);
    border: 1px solid var(--q2-border);
}

.badge-index {
    background: var(--bg-subtle);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.scholar-cite-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 500;
}

.scholar-cite-badge.has-cites {
    background: var(--cite-bg);
    color: var(--cite-text);
    border: 1px solid var(--cite-border);
}

.scholar-cite-badge.new-pub {
    background: var(--bg-subtle);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.scholar-cite-badge:hover {
    opacity: 0.88;
}

.pub-title {
    margin: 0 0 6px;
    font-family: var(--font-serif);
    font-size: 17.5px;
    font-weight: 700;
    line-height: 1.38;
}

.pub-title a {
    color: var(--text-primary);
}

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

.pub-meta-line {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.pub-authors {
    font-weight: 500;
}

.meta-sep {
    margin: 0 6px;
    color: var(--text-muted);
}

.pub-journal {
    font-style: italic;
    color: var(--accent-primary);
    font-weight: 500;
}

/* Publication Action Buttons */
.pub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pub-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pub-btn:hover,
.pub-btn.active {
    background: var(--accent-soft);
    color: var(--accent-primary);
    border-color: var(--accent-border);
}

.pub-btn-pdf {
    color: var(--q1-text);
    border-color: var(--q1-border);
    background: var(--q1-bg);
}

/* Expandable Drawers */
.pub-drawer {
    margin-top: 14px;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    font-size: 14px;
}

.drawer-block + .drawer-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.drawer-heading {
    margin: 0 0 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.highlights-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-secondary);
}

.highlights-list li {
    margin-bottom: 4px;
}

.abstract-text {
    margin: 0;
    color: var(--text-secondary);
    text-align: justify;
}

.cite-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.copy-cite-btn {
    padding: 3px 9px;
    border-radius: 4px;
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}

.copy-cite-btn:hover {
    background: var(--accent-soft);
    color: var(--accent-primary);
}

.cite-box-apa {
    margin: 0;
    padding: 10px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 13px;
}

.cite-box-bib {
    margin: 0;
    padding: 10px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 12px;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* ==========================================================================
   Latest 10 Citations to My Work Section
   ========================================================================== */
.feed-meta-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.btn-outline-sm {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent-border);
    background: var(--accent-soft);
    color: var(--accent-primary);
    font-size: 13px;
    font-weight: 600;
}

.sync-stamp {
    font-size: 11.5px;
    color: var(--text-muted);
}

.latest-citations-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.citing-item {
    display: grid;
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    align-items: start;
}

.citing-rank-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.citing-rank {
    display: inline-block;
    width: fit-content;
    padding: 2px 8px;
    border-radius: 5px;
    background: var(--accent-soft);
    color: var(--accent-primary);
    border: 1px solid var(--accent-border);
    font-size: 12px;
    font-weight: 700;
}

.citing-date {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.citing-title {
    margin: 0 0 6px;
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.38;
}

.citing-title a {
    color: var(--text-primary);
}

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

.citing-meta {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.citing-journal {
    font-style: italic;
    font-weight: 500;
    color: var(--text-primary);
}

.citing-doi-link {
    font-weight: 600;
    font-size: 12.5px;
}

.cited-target-box {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 11px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    font-size: 12.5px;
}

.cited-target-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--text-muted);
}

.cited-target-link {
    font-weight: 600;
    color: var(--accent-primary);
}

/* ==========================================================================
   Working Papers & Research Pipeline
   ========================================================================== */
.wp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.wp-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.wp-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.wp-status-badge {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wp-title {
    margin: 0 0 8px;
    font-family: var(--font-serif);
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.35;
}

.wp-title a {
    color: var(--text-primary);
}

.wp-desc {
    margin: 0 0 14px;
    font-size: 13.5px;
    color: var(--text-secondary);
    flex: 1;
}

.wp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    font-size: 12.5px;
    color: var(--text-muted);
}

.wp-link {
    font-weight: 600;
}

/* ==========================================================================
   Academic CV Section
   ========================================================================== */
.cv-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.cv-columns-bottom {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.cv-block-title {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mt-lg {
    margin-top: 24px;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tl-item {
    position: relative;
    padding-left: 16px;
    border-left: 2px solid var(--border-strong);
}

.tl-period {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 2px;
}

.tl-role {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.tl-honor {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 4px;
    background: var(--q1-bg);
    color: var(--q1-text);
    border: 1px solid var(--q1-border);
    font-size: 11px;
    font-weight: 600;
}

.tl-inst {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 2px 0 6px;
}

.tl-desc {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-secondary);
}

.course-pill-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.course-pill-list li {
    padding: 5px 11px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.awards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.award-row {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    font-size: 13.5px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
}

.award-yr {
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 12.5px;
}

/* AEO FAQ Box */
.aeo-faq-box {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    padding: 12px 16px;
}

.faq-item summary {
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14.5px;
}

.faq-item p {
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 28px;
}

.contact-lead {
    margin: 0 0 18px;
    font-size: 14.5px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-detail-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 2px;
}

.contact-detail-item p {
    margin: 0;
    font-size: 13.5px;
}

.modern-contact-form {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.form-field {
    margin-bottom: 14px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: -1px;
}

.btn-submit-form {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--accent-primary);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

html[data-theme="dark"] .btn-submit-form {
    background: #2563eb;
}

.btn-submit-form:hover {
    opacity: 0.92;
}

.form-alert {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    font-size: 13.5px;
    font-weight: 500;
}

.alert-success {
    background: var(--q1-bg);
    color: var(--q1-text);
    border: 1px solid var(--q1-border);
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    padding: 22px 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   Mobile & Tablet Responsiveness
   ========================================================================== */
@media (max-width: 1060px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }

    .scholar-header-badge {
        display: none;
    }
}

@media (max-width: 820px) {
    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-color);
        padding: 12px 20px;
        flex-direction: column;
        align-items: stretch;
        box-shadow: var(--shadow-md);
    }

    .main-nav.nav-open {
        display: flex;
    }

    .overview-stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .wp-grid,
    .cv-columns,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .citing-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .citing-rank-col {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .feed-meta-box {
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .page-layout {
        padding: 0 14px;
        margin-top: 16px;
    }

    .section-card {
        padding: 18px 16px;
    }

    .pub-search-row {
        flex-direction: column;
    }

    .brand-text small {
        display: none;
    }
}
