/*
Theme Name: Staff Profiles Website Theme
Theme URI: https://softqualabs.co.ke
Author: Saul N. Mupalia
Author URI: https://softqualabs.co.ke
Description: Open-source responsive WordPress theme for Staff Profiles Website. Features customizable institution colors, top utility bar, responsive mobile drawer, hero slider, searchable paginated staff directory, and tabbed staff profile pages with BibTeX publications.
Version: 2.0.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: staff-profiles-theme
*/

/* Variables & Base Reset */
:root {
    --sp-primary: #006400;
    --sp-primary-dark: #004d00;
    --sp-primary-light: #008000;
    --sp-accent: #980000;
    --sp-accent-hover: #7b0000;
    --sp-gold: #c5a059;
    --sp-text: #1e293b;
    --sp-muted: #64748b;
    --sp-border: #e2e8f0;
    --sp-bg-light: #f8fafc;
    --sp-white: #ffffff;
    --sp-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --sp-shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --sp-shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--sp-text);
    background-color: #f8fafc;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.sp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Global Buttons */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.sp-btn,
.sp-tab-step-btn,
.sp-p-tab-btn,
.sp-card-btn,
.sp-pub-scholar-btn,
.sp-pub-doi-btn,
.sp-pub-page-btn,
.sp-pub-num-btn,
.sp-search-submit-btn,
.sp-filter-submit-btn,
.sp-reset-btn,
.sp-banner-edit-btn,
.sp-tab-nav-btn {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
}

.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    white-space: nowrap !important;
    word-break: keep-all !important;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.sp-btn:active {
    transform: translateY(1px);
}

.sp-btn-red {
    background-color: var(--sp-accent) !important;
    color: var(--sp-white) !important;
}

.sp-btn-red:hover {
    background-color: var(--sp-accent-hover) !important;
    color: var(--sp-white) !important;
}

.sp-btn-green {
    background-color: var(--sp-primary) !important;
    color: var(--sp-white) !important;
}

.sp-btn-green:hover {
    background-color: var(--sp-primary-dark) !important;
    color: var(--sp-white) !important;
}

.sp-btn-secondary {
    background-color: #e2e8f0;
    color: #334155;
}

.sp-btn-secondary:hover {
    background-color: #cbd5e1;
}

.sp-owner-login-submit:disabled {
    cursor: wait;
}

.sp-owner-login-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-left-color: transparent;
    border-radius: 50%;
    animation: sp-owner-login-spin 0.7s linear infinite;
}

.sp-owner-login-spinner[hidden] {
    display: none;
}

@keyframes sp-owner-login-spin {
    to {
        transform: rotate(360deg);
    }
}


/* 1. Top Utility Bar: Background #980000, Text White */
.sp-topbar {
    background-color: var(--sp-accent);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    font-size: 13px;
    color: var(--sp-white);
    padding: 8px 0;
}

.sp-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sp-topbar-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sp-social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.16);
    color: #ffffff !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.sp-social-icon-btn:hover {
    background-color: #ffffff;
    color: var(--sp-accent, #980000) !important;
    transform: translateY(-1px);
}

.sp-social-icon-btn svg {
    width: 14px;
    height: 14px;
    display: block;
    fill: currentColor;
}

.sp-topbar-motto span {
    color: var(--sp-white);
    letter-spacing: 0.5px;
}

.sp-topbar-links {
    display: flex;
    gap: 16px;
}

.sp-topbar-links a {
    color: var(--sp-white);
    font-size: 12px;
    opacity: 0.92;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.sp-topbar-links a:hover {
    color: var(--sp-white);
    opacity: 1;
    text-decoration: underline;
}

/* 2. Header & Branding */
.sp-site-header {
    background-color: var(--sp-white);
    padding: 14px 0;
    border-bottom: 1px solid var(--sp-border);
}

.sp-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.sp-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.sp-brand-text h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--sp-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sp-brand-text .sp-tagline {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--sp-accent);
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* 3. Main Navigation (#006400 Dark Green) */
.sp-main-nav {
    background-color: var(--sp-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.sp-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sp-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.sp-menu-list li a {
    display: block;
    padding: 15px 20px;
    color: var(--sp-white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
}

.sp-menu-list li a:hover,
.sp-menu-list li.current-menu-item a {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--sp-white);
    border-bottom: 3px solid var(--sp-accent);
}

.sp-nav-cta {
    margin-left: auto;
}

/* ==========================================================================
   Mobile Menu Toggle & Mobile Navigation Elements
   ========================================================================== */
.sp-mobile-nav-label {
    display: none;
    align-items: center;
    gap: 8px;
    color: var(--sp-white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-mobile-nav-label i {
    font-size: 18px;
    color: var(--sp-gold);
}

.sp-menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--sp-white);
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sp-menu-toggle:hover,
.sp-menu-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--sp-gold);
    outline: none;
}

.sp-menu-toggle-bars {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 17px;
    height: 13px;
}

.sp-menu-toggle-bars span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--sp-white);
    border-radius: 2px;
}

/* ==========================================================================
   Mobile Sidebar Drawer (Right-Side Offcanvas)
   ========================================================================== */

/* Body scroll lock when drawer is active */
body.sp-drawer-locked {
    overflow: hidden !important;
    touch-action: none;
}

/* Backdrop */
.sp-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    overscroll-behavior: contain;
}

.sp-drawer-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

/* Right-Side Drawer Container */
.sp-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 360px);
    height: 100%;
    height: 100dvh;
    background: #ffffff;
    z-index: 99999;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.28);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s;
    overscroll-behavior: contain;
    outline: none;
}

.sp-mobile-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

/* Drawer Header */
.sp-drawer-header {
    background: linear-gradient(135deg, #006400 0%, #004d00 100%);
    color: #ffffff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--sp-gold);
    flex-shrink: 0;
}

.sp-drawer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-drawer-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    background: #ffffff;
    padding: 3px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.sp-drawer-brand-text {
    display: flex;
    flex-direction: column;
}

.sp-drawer-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    line-height: 1.2;
}

.sp-drawer-subtitle {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

.sp-drawer-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.sp-drawer-close-btn:hover,
.sp-drawer-close-btn:focus-visible {
    background: var(--sp-accent);
    border-color: var(--sp-accent);
    transform: rotate(90deg);
    outline: none;
}

/* Drawer Body */
.sp-drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 18px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Scrollbar styling for drawer */
.sp-drawer-body::-webkit-scrollbar {
    width: 5px;
}
.sp-drawer-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.sp-drawer-section {
    display: flex;
    flex-direction: column;
}

.sp-drawer-section-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    margin-bottom: 10px;
    padding-left: 4px;
}

/* Drawer Menu List */
.sp-drawer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sp-drawer-menu-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.18s ease;
    border-left: 3px solid transparent;
}

.sp-drawer-menu-list li a i {
    font-size: 18px;
    color: var(--sp-primary);
    width: 20px;
    text-align: center;
    transition: color 0.18s ease;
}

.sp-drawer-menu-list li a:hover {
    background-color: #f1f5f9;
    color: var(--sp-primary);
    border-left-color: var(--sp-primary);
}

.sp-drawer-menu-list li a.current {
    background-color: #f0fdf4;
    color: var(--sp-primary);
    font-weight: 700;
    border-left-color: var(--sp-primary);
}

.sp-drawer-menu-list li a.current i {
    color: var(--sp-primary);
}

/* Drawer CTA Button */
.sp-drawer-cta-wrap {
    margin: 4px 0;
}

.sp-drawer-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(152, 0, 0, 0.25);
}

/* Portals List */
.sp-drawer-portal-list li a {
    font-size: 14px;
    color: #475569;
    padding: 10px 14px;
}

.sp-drawer-portal-list li a i {
    color: #64748b;
}

.sp-drawer-login-item {
    color: var(--sp-primary) !important;
    font-weight: 700 !important;
}
.sp-drawer-login-item i {
    color: var(--sp-primary) !important;
}

.sp-drawer-logout-item {
    color: var(--sp-accent) !important;
    font-weight: 700 !important;
}
.sp-drawer-logout-item i {
    color: var(--sp-accent) !important;
}

/* Support Callout Card */
.sp-drawer-support-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--sp-primary);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.55;
    color: #475569;
}

.sp-drawer-support-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--sp-primary);
    font-size: 13px;
    margin-bottom: 6px;
}

.sp-drawer-support-header i {
    font-size: 16px;
}

.sp-drawer-support-card p {
    margin: 0;
}

/* Social Media Channels in Drawer */
.sp-drawer-social-icons {
    display: flex;
    gap: 10px;
}

.sp-drawer-social-icons .sp-social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
}

/* Content Wrap */
.sp-site-main {
    min-height: 550px;
}

/* Page Templates */
.sp-page-container {
    padding: 40px 0 60px;
}

.sp-page-card {
    background: var(--sp-white);
    border-radius: 8px;
    padding: 35px;
    box-shadow: var(--sp-shadow-sm);
    border: 1px solid var(--sp-border);
}

.sp-page-title {
    color: var(--sp-primary);
    font-size: 28px;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--sp-border);
}

/* 4. Standalone Login Page Styles */
.sp-login-page-wrap {
    padding: 60px 0 80px;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.sp-standalone-login-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--sp-white);
    border: 1px solid var(--sp-border);
    border-radius: 10px;
    padding: 40px 35px;
    box-shadow: var(--sp-shadow-md);
    text-align: center;
}

.sp-login-logo {
    height: 80px;
    width: auto;
    margin: 0 auto 16px;
    display: block;
}

.sp-login-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--sp-primary);
    margin: 0 0 6px;
}

.sp-login-subtitle {
    font-size: 14px;
    color: var(--sp-muted);
    margin: 0 0 25px;
    line-height: 1.5;
}

.sp-standalone-login-form {
    text-align: left;
}

.sp-standalone-login-form form {
    margin: 0;
}

.sp-standalone-login-form p {
    margin-bottom: 16px;
}

.sp-standalone-login-form label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--sp-text);
    margin-bottom: 6px;
}

.sp-standalone-login-form input[type="text"],
.sp-standalone-login-form input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sp-standalone-login-form input[type="text"]:focus,
.sp-standalone-login-form input[type="password"]:focus {
    border-color: var(--sp-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.15);
}

.sp-standalone-login-form .login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--sp-muted);
}

.sp-standalone-login-form .login-remember label {
    display: inline;
    font-weight: normal;
}

.sp-standalone-login-form input[type="submit"] {
    width: 100%;
    background-color: var(--sp-accent) !important;
    color: var(--sp-white) !important;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sp-standalone-login-form input[type="submit"]:hover {
    background-color: var(--sp-accent-hover) !important;
}

.sp-login-card-footer {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid var(--sp-border);
}

.sp-forgot-link {
    color: var(--sp-accent);
    font-size: 13px;
    font-weight: 600;
}

.sp-forgot-link:hover {
    text-decoration: underline;
}

/* 5. Footer (#006400 Dark Green Background) */
.sp-site-footer {
    background-color: var(--sp-primary);
    color: var(--sp-white);
    padding: 60px 0 0;
    margin-top: 60px;
}

.sp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.8fr;
    gap: 35px;
    margin-bottom: 40px;
}

.sp-footer-col h4 {
    color: var(--sp-white);
    font-size: 17px;
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 8px;
}

.sp-footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--sp-accent);
}

.sp-footer-col p {
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 12px;
}

.sp-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sp-footer-links li {
    margin-bottom: 10px;
}

.sp-footer-links li a {
    color: #e2e8f0;
    font-size: 14px;
    transition: color 0.15s ease, padding-left 0.15s ease;
    display: inline-block;
}

.sp-footer-links li a:hover {
    color: var(--sp-white);
    padding-left: 5px;
}

/* 6. Below Footer Copyright Bar: Background #980000, Text White */
.sp-copyright-bar {
    background-color: var(--sp-accent);
    padding: 18px 0;
    font-size: 13px;
    color: var(--sp-white);
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.sp-copyright-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--sp-white);
}

.sp-copyright-inner div {
    color: var(--sp-white);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .sp-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .sp-logo-img {
        height: 52px;
    }
    .sp-brand-text h1 {
        font-size: 19px;
    }
    .sp-nav-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 7px 16px;
    }
    .sp-mobile-nav-label {
        display: flex;
    }
    .sp-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }
    .sp-menu-list {
        display: none !important;
    }
    .sp-nav-cta {
        display: none !important;
    }
    .sp-footer-grid {
        grid-template-columns: 1fr;
    }
    .sp-topbar-inner {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    .sp-copyright-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   6B. HOMEPAGE HERO SLIDER & STAFF & FACULTY DIRECTORY
   ========================================================================== */

/* Hero Section */
.sp-front-page-wrap {
    width: 100%;
}

.sp-hero-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #0b1e10;
}

.sp-slider {
    position: relative;
    width: 100%;
    min-height: 480px;
    height: 60vh;
    max-height: 620px;
}

.sp-slider-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.sp-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.sp-slide.active {
    opacity: 1;
    visibility: visible;
}

.sp-slide-content {
    max-width: 800px;
    color: #ffffff;
    padding: 40px 20px;
}

.sp-slide-tag {
    display: inline-block;
    background-color: var(--sp-accent, #980000);
    color: #ffffff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.sp-slide-title {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.sp-slide-excerpt {
    font-size: 17px;
    color: #f1f5f9;
    margin: 0 0 24px;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.sp-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.sp-slider-nav:hover {
    background: var(--sp-accent, #980000);
}

.sp-slider-nav.sp-prev {
    left: 20px;
}

.sp-slider-nav.sp-next {
    right: 20px;
}

.sp-slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.sp-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    padding: 0;
}

.sp-dot.active {
    background: #ffffff;
    width: 32px;
    border-radius: 6px;
}

/* Static Fallback Hero */
.sp-static-hero {
    background-color: var(--sp-primary, #006400);
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
}

/* Staff & Faculty Directory Section */
.sp-directory-section {
    padding: 60px 0 90px;
    background-color: #f8fafc;
}

.sp-directory-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 24px;
    flex-wrap: wrap;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 24px;
}

.sp-directory-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--sp-primary, #006400);
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.sp-directory-subtitle {
    font-size: 15.5px;
    color: var(--sp-muted, #64748b);
    margin: 0;
    max-width: 620px;
    line-height: 1.5;
}

.sp-directory-search-box {
    min-width: 280px;
    max-width: 440px;
    flex: 1;
}

.sp-filter-input {
    width: 100%;
    padding: 13px 18px;
    font-size: 14.5px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff;
    color: var(--sp-dark, #1e293b);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.sp-filter-input:focus {
    outline: none;
    border-color: var(--sp-primary, #006400);
    box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.12);
}

.sp-search-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
}

.sp-search-input-group .sp-filter-input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    font-size: 14.5px;
    border: 1.5px solid #cbd5e1;
    border-right: none;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #ffffff;
    color: var(--sp-dark, #1e293b);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.sp-search-input-group .sp-filter-input:focus {
    outline: none;
    border-color: var(--sp-primary, #006400);
    box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.12);
    position: relative;
    z-index: 2;
}

.sp-search-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background-color: var(--sp-primary, #006400);
    color: #ffffff !important;
    border: 1.5px solid var(--sp-primary, #006400);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    padding: 0 20px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
    position: relative;
    z-index: 1;
}

.sp-search-submit-btn:hover {
    background-color: var(--sp-primary-dark, #004d00);
    border-color: var(--sp-primary-dark, #004d00);
    color: #ffffff !important;
}

.sp-search-submit-btn:active {
    transform: translateY(1px);
}

.sp-search-submit-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
}

.sp-search-active-pill-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 12px;
    background-color: #f1f5f9;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
}

.sp-search-active-label {
    color: #475569;
}

.sp-search-active-label strong {
    color: var(--sp-dark, #1e293b);
}

.sp-search-clear-link {
    color: var(--sp-accent, #980000);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.sp-search-clear-link:hover {
    color: var(--sp-accent-hover, #7a0000);
    text-decoration: underline;
}

.sp-btn-large {
    font-size: 16px !important;
    padding: 13px 34px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Grid Layout */
.sp-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 50px;
}

/* Staff Card - Centered text, no icons, clean institutional aesthetic */
.sp-staff-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    padding: 28px 20px 22px;
    box-sizing: border-box;
}

.sp-staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
    border-color: #cbd5e1;
}

/* Avatar / Headshot (Centered Square with border) */
.sp-card-avatar-wrap {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #006400, #0a4d0a);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 800;
}

/* Card Body - Centered Content */
.sp-card-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

.sp-card-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
    line-height: 1.35;
    text-align: center;
}

/* Position Pill - #980000 Dark Red badge (Centered) */
.sp-card-position-wrap {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.sp-card-position-pill {
    display: inline-block;
    background-color: var(--sp-accent, #980000);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: capitalize;
    max-width: 90%;
    text-align: center;
}

/* Department & Address (Centered) */
.sp-card-dept {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sp-primary, #006400);
    margin: 0 0 6px;
    line-height: 1.4;
    text-align: center;
}

.sp-card-address {
    font-size: 12.5px;
    color: #64748b;
    margin: 0 0 12px;
    line-height: 1.4;
    text-align: center;
}

/* Contact List (Centered, no bullet points) */
.sp-card-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.sp-card-contact-list li {
    font-size: 13px;
    color: #475569;
    text-align: center;
    max-width: 100%;
    word-break: break-word;
}

.sp-card-contact-list li a {
    color: var(--sp-accent, #980000);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.sp-card-contact-list li a:hover {
    color: #7f1d1d;
    text-decoration: underline;
}

/* Action Buttons (Centered) */
.sp-card-actions-wrap {
    margin-top: auto;
    width: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding-top: 6px;
}

.sp-card-btn {
    text-align: center;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 6px;
}

/* Pagination */
.sp-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.sp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    color: #334155;
    background-color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sp-pagination .page-numbers:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.sp-pagination .page-numbers.current {
    background-color: var(--sp-accent, #980000);
    border-color: var(--sp-accent, #980000);
    color: #ffffff;
}

/* ==========================================================================
   7. STAFF PROFILE HEADER BANNER & TABS (#006400 & #444444)
   ========================================================================== */

/* Profile Header Green Banner */
.sp-staff-banner {
    background-color: var(--sp-primary, #006400);
    color: var(--sp-white, #ffffff);
    padding: 35px 0 30px;
    border-bottom: 3px solid var(--sp-primary-dark, #004d00);
}

.sp-staff-banner-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.sp-banner-photo-col {
    flex-shrink: 0;
}

.sp-banner-headshot-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    display: block;
}

.sp-banner-headshot-placeholder {
    width: 140px;
    height: 140px;
    background-color: #004d00;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
}

.sp-banner-info-col {
    flex: 1;
    min-width: 280px;
}

.sp-banner-staff-name {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.sp-banner-position-wrap {
    margin-bottom: 8px;
}

.sp-banner-position-pill {
    display: inline-block;
    background-color: var(--sp-accent, #980000);
    color: #ffffff;
    padding: 4px 16px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.sp-banner-dept-line {
    font-size: 14px;
    color: #e2f5e2;
    margin: 0 0 4px;
    font-weight: 500;
    line-height: 1.4;
}

.sp-banner-address-line {
    font-size: 14px;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
}

.sp-banner-logo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.sp-banner-logo-wrap {
    width: 88px;
    height: 88px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sp-banner-crest {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.sp-banner-edit-btn {
    font-size: 12px !important;
    padding: 6px 14px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Horizontal Dark Charcoal Tabs Menu Bar (#444444) */
.sp-profile-tabs-bar {
    background-color: #444444;
    border-top: 1px solid #333333;
    border-bottom: 2px solid #222222;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.sp-profile-tabs-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.sp-p-tab-btn {
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 20px;
    cursor: pointer;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sp-p-tab-btn:hover {
    background-color: #333333;
    color: #ffffff;
}

.sp-p-tab-btn.active {
    background-color: #2b2b2b;
    color: #ffffff;
    border-top: 3px solid #008000;
    padding-top: 11px;
}

/* Tab Panes & Content Area */
.sp-profile-content-area {
    padding: 35px 20px 60px;
}

.sp-p-tab-pane {
    display: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sp-p-tab-pane.active {
    display: block;
}

.sp-section-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--sp-primary, #006400);
    margin: 0 0 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.sp-section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.sp-section-header-flex .sp-section-heading {
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
}

/* "Not Provided" Public Display Box */
.sp-not-provided-box {
    padding: 40px 20px;
    text-align: center;
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 6px;
    margin: 20px 0;
}

.sp-not-provided-box span.dashicons {
    font-size: 38px;
    width: 38px;
    height: 38px;
    color: #94a3b8;
    margin-bottom: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.sp-not-provided-box p {
    font-size: 16px;
    font-style: italic;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

/* Publications Clean Academic Reference List (Bordered List, No Cards) */
.sp-publications-clean-list {
    list-style: decimal outside;
    margin: 0 0 20px;
    padding: 0 0 0 28px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sp-pub-list-item {
    padding: 16px 20px 16px 8px;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.15s ease;
}

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

.sp-pub-list-item:hover {
    background-color: #f8fafc;
}

.sp-pub-citation-text {
    color: #1e293b;
    font-size: 15px;
    line-height: 1.65;
    word-break: break-word;
    overflow-wrap: break-word;
}

.sp-pub-citation-text strong {
    color: #0f172a;
    font-weight: 700;
}

.sp-pub-citation-text em {
    font-style: italic;
    color: #334155;
}

.sp-pub-links-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.sp-pub-scholar-btn,
.sp-pub-doi-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.sp-pub-scholar-btn {
    color: #1d4ed8;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
}

.sp-pub-scholar-btn:hover {
    color: #ffffff;
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    text-decoration: none;
}

.sp-pub-doi-btn {
    color: var(--sp-primary, #006400);
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.sp-pub-doi-btn:hover {
    color: #ffffff;
    background-color: var(--sp-primary, #006400);
    border-color: var(--sp-primary, #006400);
    text-decoration: none;
}

/* Publications Pagination Controls */
.sp-pubs-pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.sp-pubs-count-summary {
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
}

.sp-pubs-pagination-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sp-pub-page-btn,
.sp-pub-num-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sp-pub-page-btn:hover:not(:disabled),
.sp-pub-num-btn:hover:not(.active) {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.sp-pub-num-btn.active {
    background: var(--sp-primary, #006400);
    border-color: var(--sp-primary, #006400);
    color: #ffffff;
    cursor: default;
}

.sp-pub-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f8fafc;
}

.sp-pub-page-ellipsis {
    font-size: 14px;
    color: #94a3b8;
    padding: 0 4px;
}

/* Tab Next / Previous Step Footer */
.sp-tab-step-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
}

.sp-tab-step-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap !important;
    word-break: keep-all !important;
    hyphens: none !important;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 700;
    min-height: 42px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: none;
    letter-spacing: 0.2px;
    box-sizing: border-box;
    flex: 0 1 auto;
    max-width: 49%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-tab-step-prev {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.sp-tab-step-prev:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.sp-tab-step-next {
    background: var(--sp-primary, #006400);
    color: #ffffff;
    border: 1px solid var(--sp-primary-dark, #004d00);
    margin-left: auto;
}

.sp-tab-step-next:hover {
    background: #004d00;
    color: #ffffff;
    border-color: #003300;
}

.sp-step-arrow {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
}

.sp-step-text {
    display: inline-block;
    font-weight: 700;
    white-space: nowrap !important;
}

.sp-step-sub {
    display: inline-block;
    font-weight: 500;
    opacity: 0.92;
    white-space: nowrap !important;
}

/* Mobile Quick Section Selector */
.sp-mobile-tabs-dropdown-wrap {
    display: none;
    margin-bottom: 20px;
    background: #ffffff;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-left: 4px solid var(--sp-primary, #006400);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sp-mobile-tabs-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--sp-primary, #006400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sp-mobile-select-inner {
    position: relative;
}

.sp-mobile-tabs-select {
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1.5px solid #94a3b8;
    border-radius: 6px;
    cursor: pointer;
}

.sp-mobile-tabs-select:focus {
    outline: none;
    border-color: var(--sp-primary, #006400);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.15);
}

/* Other Relevant Links */
.sp-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.sp-ext-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sp-ext-link-card:hover {
    border-color: var(--sp-accent, #980000);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}


.sp-ext-link-card .dashicons {
    font-size: 26px;
    width: 26px;
    height: 26px;
    color: var(--sp-primary, #006400);
    flex-shrink: 0;
}

.sp-link-title {
    font-weight: 700;
    color: var(--sp-primary, #006400);
    display: block;
    font-size: 15px;
}

.sp-link-url {
    font-size: 12px;
    color: #64748b;
    display: block;
    word-break: break-all;
}

/* Front Page Staff Directory Cards */
.sp-card-position-wrap {
    margin-bottom: 6px;
}

.sp-card-position-pill {
    display: inline-block;
    background-color: var(--sp-accent, #980000);
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.sp-card-dept {
    font-size: 13px;
    color: var(--sp-primary, #006400);
    margin: 0 0 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sp-card-dept .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.sp-card-address {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sp-card-address .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
}

/* ==========================================================================
   8. STEP 1 FORM & STEP 2 TABBED EDITOR STYLES
   ========================================================================== */

/* Step Flow Indicator */
.sp-step-flow-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.sp-step-indicator-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
}

.sp-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 14px;
}

.sp-step-item.active {
    color: var(--sp-primary, #006400);
}

.sp-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.sp-step-item.active .sp-step-circle {
    background-color: var(--sp-primary, #006400);
    color: #ffffff;
}

.sp-step-line {
    width: 60px;
    height: 2px;
    background-color: #cbd5e1;
}

/* Forms Grid & Elements */
.sp-form-card {
    padding: 35px 40px;
}

.sp-form-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.sp-form-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--sp-primary, #006400);
    margin: 0 0 8px;
}

.sp-form-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.sp-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.sp-col-full {
    flex: 0 0 100%;
}

.sp-col-half {
    flex: 0 0 calc(50% - 9px);
}

.sp-form-group label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: var(--sp-text, #1e293b);
    margin-bottom: 6px;
}

.sp-req {
    color: var(--sp-accent, #980000);
}

.sp-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sp-input:focus {
    border-color: var(--sp-primary, #006400);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.15);
}

.sp-field-help {
    font-size: 12px;
    color: #64748b;
    display: block;
    margin-top: 4px;
}

/* Photo Upload Preview Box */
.sp-photo-upload-container {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 6px;
    padding: 16px;
}

.sp-photo-preview-box {
    width: 90px;
    height: 90px;
    border-radius: 4px;
    background: #e2e8f0;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.sp-photo-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-photo-preview-box .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #94a3b8;
}

.sp-photo-input-col {
    flex: 1;
}

/* Editor Portal Layout */
.sp-editor-portal-wrap {
    max-width: 1050px;
    margin: 0 auto;
}

.sp-editor-header-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.sp-editor-profile-summary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sp-editor-headshot-wrap {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--sp-primary, #006400);
}

.sp-editor-headshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-editor-headshot-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--sp-primary, #006400);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}

.sp-editor-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.sp-editor-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--sp-primary, #006400);
    margin: 0;
}

.sp-pill-position {
    background-color: var(--sp-accent, #980000);
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.sp-editor-dept,
.sp-editor-addr {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sp-editor-tabs-bar {
    background-color: #444444;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    overflow-x: auto;
}

.sp-tabs-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
}

.sp-tab-link {
    display: block;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 13px 18px;
    text-decoration: none;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: background-color 0.15s ease;
}

.sp-tab-link:hover {
    background-color: #333333;
    color: #ffffff;
}

.sp-tab-link.active {
    background-color: #222222;
    color: #ffffff;
    border-top: 3px solid #008000;
    padding-top: 10px;
}

.sp-editor-pane-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 35px 35px 45px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sp-tab-editor-header {
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.sp-tab-editor-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--sp-primary, #006400);
    margin: 0 0 6px;
}

.sp-tab-help-text {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Rich Textarea Toolbar & Interactive Formatter
   ========================================================================== */
.sp-editor-wrap {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sp-editor-toolbar {
    background: #f8fafc;
    border-bottom: 1px solid #cbd5e1;
    padding: 8px 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.sp-tool-group {
    display: inline-flex;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.sp-tool-group .sp-tool-btn {
    border: none;
    border-right: 1px solid #e2e8f0;
    border-radius: 0;
    margin: 0;
}

.sp-tool-group .sp-tool-btn:last-child {
    border-right: none;
}

.sp-tool-group-right {
    margin-left: auto;
}

.sp-tool-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1.2;
    transition: all 0.15s ease;
    user-select: none;
}

.sp-tool-btn:hover {
    background-color: #f1f5f9;
    color: var(--sp-primary, #006400);
}

.sp-tool-btn:active,
.sp-tool-btn.active {
    background-color: var(--sp-primary, #006400) !important;
    color: #ffffff !important;
}

.sp-tool-btn.active .dashicons {
    color: #ffffff !important;
}

.sp-tool-btn-table {
    color: #0f172a;
}

.sp-tool-btn-table:hover {
    color: var(--sp-primary, #006400);
    background-color: #f0fdf4;
}

.sp-tool-btn-preview {
    background-color: #f8fafc;
    color: #0369a1;
    border-color: #bae6fd;
}

.sp-tool-btn-preview:hover {
    background-color: #e0f2fe;
    color: #0284c7;
}

.sp-tool-btn-preview.active {
    background-color: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

.sp-rich-textarea {
    width: 100%;
    border: none;
    padding: 16px;
    font-family: inherit;
    font-size: 14.5px;
    line-height: 1.65;
    outline: none;
    box-sizing: border-box;
    display: block;
    resize: vertical;
    color: #1e293b;
    background-color: #ffffff;
}

.sp-rich-textarea:focus {
    background-color: #fafbfc;
}

.sp-editor-live-preview {
    padding: 20px 24px;
    min-height: 220px;
    background: #ffffff;
    border-top: 1px dashed #cbd5e1;
    box-sizing: border-box;
    overflow-y: auto;
}

/* ==========================================================================
   TinyMCE 5 (Classic Editor Plus) Styling
   ========================================================================== */
.tox.tox-tinymce {
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
}

.tox .tox-toolbar,
.tox .tox-toolbar__primary {
    background-color: #f8fafc !important;
    border-bottom: 1px solid #cbd5e1 !important;
}

.tox .tox-tbtn:hover {
    background-color: #f1f5f9 !important;
    color: var(--sp-primary, #006400) !important;
}

.tox .tox-tbtn--enabled,
.tox .tox-tbtn--active {
    background-color: #e2e8f0 !important;
    color: var(--sp-primary, #006400) !important;
}

.tox .tox-statusbar {
    background-color: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}

/* ==========================================================================
   CKEditor 5 Visual WYSIWYG Styling (Tables, Headings, Toolbar, Editable)
   ========================================================================== */
.ck.ck-editor {
    width: 100% !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.ck.ck-toolbar {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    border-radius: 6px 6px 0 0 !important;
    padding: 6px 8px !important;
}

.ck.ck-toolbar .ck-button {
    color: #334155 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

.ck.ck-toolbar .ck-button:hover {
    background: #f1f5f9 !important;
    color: var(--sp-primary, #006400) !important;
}

.ck.ck-toolbar .ck-button.ck-on {
    background: var(--sp-primary, #006400) !important;
    color: #ffffff !important;
}

.ck.ck-toolbar .ck-button.ck-on .ck-icon {
    color: #ffffff !important;
}

.ck-editor__editable_inline {
    min-height: 280px !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: #334155 !important;
    background: #ffffff !important;
    padding: 18px 22px !important;
    border: 1px solid #cbd5e1 !important;
    border-top: none !important;
    border-radius: 0 0 6px 6px !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}

.ck-editor__editable_inline:focus,
.ck.ck-editor__editable.ck-focused {
    border-color: var(--sp-primary, #006400) !important;
    box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.12) !important;
    outline: none !important;
}

/* Headings in CKEditor */
.ck-content h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--sp-primary, #006400) !important;
    margin: 20px 0 10px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 6px !important;
}

.ck-content h4 {
    font-size: 16.5px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 16px 0 8px !important;
}

/* Tables inside CKEditor */
.ck-content .table {
    margin: 16px 0 20px !important;
    width: 100% !important;
}

.ck-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 14px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}

.ck-content table th {
    background-color: var(--sp-primary, #006400) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 10px 14px !important;
    border: 1px solid #004d00 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    text-align: left !important;
}

.ck-content table td {
    padding: 10px 14px !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}

.ck-content table tr:nth-child(even) td {
    background-color: #f8fafc !important;
}

/* Links inside CKEditor */
.ck-content a {
    color: var(--sp-accent, #980000) !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

/* Lists inside CKEditor */
.ck-content ul {
    list-style-type: disc !important;
    padding-left: 28px !important;
    margin: 12px 0 18px !important;
}

.ck-content ol {
    list-style-type: decimal !important;
    padding-left: 28px !important;
    margin: 12px 0 18px !important;
}

.ck-content li {
    margin-bottom: 6px !important;
    line-height: 1.65 !important;
}

/* ==========================================================================
   Profile Entry Content Typography & Tabular Styles (.sp-entry-content)
   Applies to Bio, Qualification, Research Interests, Classes, Contacts, & Previews
   ========================================================================== */
.sp-entry-content {
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
    word-break: break-word;
}

.sp-entry-content > *:first-child {
    margin-top: 0 !important;
}

.sp-entry-content > *:last-child {
    margin-bottom: 0 !important;
}

.sp-entry-content p {
    margin: 0 0 16px 0;
    line-height: 1.75;
    color: #334155;
}

.sp-entry-content strong,
.sp-entry-content b {
    font-weight: 700 !important;
    color: #0f172a !important;
}

.sp-entry-content em,
.sp-entry-content i {
    font-style: italic !important;
}

.sp-entry-content u {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.sp-entry-content a {
    color: var(--sp-accent, #980000) !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    transition: color 0.15s ease;
}

.sp-entry-content a:hover {
    color: #6a0000 !important;
    text-decoration: underline !important;
}

.sp-entry-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--sp-primary, #006400);
    margin: 24px 0 12px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 6px;
    letter-spacing: -0.2px;
}

.sp-entry-content h4 {
    font-size: 16.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 18px 0 8px;
    letter-spacing: -0.1px;
}

.sp-entry-content ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
    padding-left: 28px !important;
    margin: 14px 0 20px !important;
}

.sp-entry-content ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
    padding-left: 28px !important;
    margin: 14px 0 20px !important;
}

.sp-entry-content li {
    margin-bottom: 8px !important;
    line-height: 1.65 !important;
    color: #334155 !important;
    padding-left: 4px !important;
}

.sp-entry-content ul li::marker,
.sp-entry-content ol li::marker {
    color: var(--sp-primary, #006400) !important;
    font-weight: 700 !important;
}

.sp-entry-content blockquote {
    border-left: 4px solid var(--sp-primary, #006400);
    margin: 18px 0;
    padding: 10px 18px;
    background: #f8fafc;
    font-style: italic;
    color: #475569;
    border-radius: 0 4px 4px 0;
}

/* Responsive Tables in Profiles */
.sp-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 18px 0 24px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sp-entry-content table,
table.sp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #ffffff;
    margin: 0;
    border: none;
}

.sp-entry-content table th,
table.sp-table th {
    background-color: var(--sp-primary, #006400) !important;
    color: #ffffff !important;
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    border: 1px solid #004d00;
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.sp-entry-content table td,
table.sp-table td {
    padding: 11px 16px;
    border: 1px solid #e2e8f0;
    color: #334155;
    line-height: 1.55;
    vertical-align: top;
}

.sp-entry-content table tr:nth-child(even),
table.sp-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.sp-entry-content table tr:hover,
table.sp-table tr:hover {
    background-color: #f1f5f9;
}

.sp-rich-textarea:focus {
    background-color: #fafbfc;
}

/* Publications Table in Editor */
.sp-pubs-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.sp-pubs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.sp-pubs-table th {
    background-color: #f8fafc;
    padding: 12px 14px;
    font-weight: 700;
    color: var(--sp-primary, #006400);
    border-bottom: 2px solid #e2e8f0;
}

.sp-pubs-table td {
    padding: 14px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.sp-pubs-table tr:last-child td {
    border-bottom: none;
}

.sp-apa-cell {
    line-height: 1.6;
}

.sp-del-link {
    color: var(--sp-accent, #980000);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sp-del-link:hover {
    text-decoration: underline;
}

.sp-count-badge {
    background-color: var(--sp-primary, #006400);
    color: #ffffff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

/* Dismissible Notice Alerts */
.sp-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.sp-alert .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sp-alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.sp-alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.sp-alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Administrator Profile Controls Box (Reset Step 2 & Delete) */
.sp-admin-control-box {
    margin-top: 30px;
    background: #ffffff;
    border: 2px solid #fed7aa;
    border-radius: 8px;
    padding: 24px 28px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.sp-admin-control-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.sp-admin-control-header .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #c2410c;
}

.sp-admin-control-header h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #9a3412;
}

.sp-admin-control-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 18px;
    line-height: 1.5;
}

.sp-admin-control-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.sp-btn-warning {
    background-color: #ea580c !important;
    color: #ffffff !important;
}

.sp-btn-warning:hover {
    background-color: #c2410c !important;
    color: #ffffff !important;
}

.sp-btn-danger {
    background-color: #dc2626 !important;
    color: #ffffff !important;
}

.sp-btn-danger:hover {
    background-color: #b91c1c !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Administrator Credentials Card & Access Governance
   ========================================================================== */
.sp-cred-flash-card {
    background: #ffffff;
    border: 2px solid #006400;
    border-radius: 10px;
    padding: 24px;
    margin: 20px 0 28px;
    box-shadow: 0 4px 18px rgba(0, 100, 0, 0.1);
    position: relative;
}

.sp-cred-flash-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.sp-cred-icon {
    font-size: 34px;
    width: 34px;
    height: 34px;
    color: #006400;
    flex-shrink: 0;
    margin-top: 2px;
}

.sp-cred-flash-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: #006400;
}

.sp-cred-flash-sub {
    margin: 0;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
}

.sp-cred-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 18px;
}

.sp-cred-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sp-cred-item-full {
    grid-column: 1 / -1;
}

.sp-cred-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

.sp-cred-val {
    font-size: 15px;
    color: #1e293b;
}

.sp-cred-code {
    background: #1e293b;
    color: #f8fafc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13.5px;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    max-width: 100%;
    overflow-x: auto;
    word-break: break-all;
}

.sp-cred-pw {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #facc15 !important;
    background: #0f172a !important;
    padding: 6px 14px;
}

.sp-cred-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sp-cred-copied-badge {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sp-cred-note {
    font-size: 12.5px;
    color: #64748b;
    margin-left: auto;
}

.sp-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-status-pill.sp-status-enabled {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.sp-status-pill.sp-status-disabled {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* Prevent Mobile Page Shrinking & Viewport Blowout */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.sp-profile-page {
    overflow-x: hidden;
    max-width: 100%;
}

.sp-entry-content {
    font-size: 15px;
    line-height: 1.65;
    word-break: break-word;
    overflow-wrap: break-word;
}

.sp-entry-content table {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
    border-collapse: collapse;
}

.sp-entry-content table th,
.sp-entry-content table td {
    min-width: 100px;
    padding: 10px 12px;
}

.sp-entry-content pre,
.sp-entry-content code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.sp-entry-content img {
    max-width: 100%;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sp-container {
        padding: 0 14px !important;
        max-width: 100% !important;
    }

    .sp-profile-content-area {
        padding: 16px 6px 40px !important;
    }

    .sp-p-tab-pane {
        padding: 20px 14px !important;
        border-radius: 6px !important;
    }

    .sp-mobile-tabs-dropdown-wrap {
        display: block !important;
    }

    .sp-profile-tabs-bar {
        position: sticky;
        top: 0;
        z-index: 90;
    }

    .sp-profile-tabs-list {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .sp-profile-tabs-list::-webkit-scrollbar {
        display: none !important;
    }

    .sp-p-tab-btn {
        padding: 12px 14px !important;
        font-size: 12px !important;
        min-height: 44px !important;
        touch-action: manipulation;
    }

    .sp-staff-banner {
        padding: 22px 0 18px !important;
    }

    .sp-staff-banner-inner {
        flex-direction: column !important;
        text-align: center !important;
        gap: 16px !important;
    }

    .sp-banner-headshot-img,
    .sp-banner-headshot-placeholder {
        width: 110px !important;
        height: 110px !important;
        margin: 0 auto;
    }

    .sp-banner-staff-name {
        font-size: 22px !important;
        line-height: 1.25 !important;
        margin-bottom: 6px !important;
    }

    .sp-banner-position-pill {
        font-size: 12px !important;
        padding: 3px 10px !important;
    }

    .sp-banner-dept-line {
        font-size: 13.5px !important;
    }

    .sp-banner-address-line {
        font-size: 12.5px !important;
    }

    .sp-banner-logo-col {
        margin-left: 0 !important;
    }

    .sp-col-half {
        flex: 0 0 100% !important;
    }

    .sp-form-card {
        padding: 25px 20px !important;
    }

    .sp-editor-header-card {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .sp-editor-profile-summary {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .sp-publications-clean-list {
        padding-left: 22px !important;
    }

    .sp-pub-list-item {
        padding: 14px 12px 14px 4px !important;
    }

    .sp-pub-citation-text {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }

    .sp-pub-links-bar {
        gap: 8px !important;
    }

    .sp-pub-scholar-btn,
    .sp-pub-doi-btn {
        font-size: 11.5px !important;
        padding: 4px 8px !important;
    }

    .sp-pubs-pagination-wrap {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center;
        gap: 10px !important;
        padding: 12px !important;
    }

    .sp-pubs-pagination-nav {
        justify-content: center !important;
    }

    .sp-tab-step-footer {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        margin-top: 24px !important;
        padding-top: 16px !important;
        width: 100% !important;
    }

    .sp-tab-step-btn {
        flex: 0 1 auto !important;
        max-width: 48% !important;
        padding: 9px 12px !important;
        font-size: 13px !important;
        min-height: 42px !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .sp-btn,
    .sp-card-btn {
        white-space: nowrap !important;
        word-break: keep-all !important;
        font-size: 13px !important;
        padding: 8px 14px !important;
    }
}

/* Extra small screens: keep Next/Prev labels short so they never break */
@media (max-width: 520px) {
    .sp-step-sub {
        display: none !important;
    }

    .sp-tab-step-btn {
        padding: 8px 10px !important;
        font-size: 12.5px !important;
        min-height: 40px !important;
        gap: 4px !important;
    }
}

