@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;1,14..32,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700&display=swap');

/* ==========================================================================
   EdResearch Styles
   ========================================================================== */

:root {
    --edr-primary: hsl(222, 42%, 22%);
    --edr-primary-light: hsl(222, 38%, 38%);
    --edr-primary-hover: hsl(222, 48%, 28%);

    --edr-accent: hsl(172, 62%, 30%);
    --edr-accent-light: hsl(172, 55%, 94%);
    --edr-accent-hover: hsl(172, 68%, 22%);

    --edr-amber: hsl(34, 65%, 48%);
    --edr-amber-light: hsl(34, 70%, 95%);

    --edr-dark: hsl(224, 35%, 8%);
    --edr-text: hsl(224, 15%, 28%);
    --edr-text-muted: hsl(224, 10%, 48%);
    --edr-text-subtle: hsl(224, 8%, 62%);

    --edr-paper: transparent;
    --edr-paper-warm: hsl(38, 25%, 96%);
    --edr-surface: hsl(0, 0%, 100%);
    --edr-surface-hover: hsl(224, 25%, 98%);
    --edr-border: hsl(224, 15%, 87%);
    --edr-border-light: hsl(224, 15%, 93%);
    --edr-glass-border: hsla(224, 15%, 87%, 0.5);

    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --font-xs: 0.65rem;
    --font-sm: 0.78rem;
    --font-md: 0.9rem;
    --font-lg: 1.1rem;
    --font-xl: 1.3rem;
    --font-2xl: 1.6rem;

    --shadow-xs: 0 1px 2px rgba(8, 15, 35, 0.03);
    --shadow-sm: 0 2px 6px rgba(8, 15, 35, 0.04), 0 1px 3px rgba(8, 15, 35, 0.03);
    --shadow-md: 0 6px 20px rgba(8, 15, 35, 0.05), 0 2px 8px rgba(8, 15, 35, 0.04);
    --shadow-lg: 0 14px 36px rgba(8, 15, 35, 0.07), 0 4px 14px rgba(8, 15, 35, 0.04);
    --shadow-xl: 0 24px 52px rgba(8, 15, 35, 0.09);

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --pedagogy-bg: hsl(170, 75%, 95%);
    --pedagogy-color: hsl(170, 82%, 18%);
    --pedagogy-border: hsl(170, 55%, 85%);

    --psychology-bg: hsl(220, 75%, 96%);
    --psychology-color: hsl(220, 80%, 22%);
    --psychology-border: hsl(220, 55%, 88%);

    --edtech-bg: hsl(348, 72%, 96%);
    --edtech-color: hsl(348, 78%, 22%);
    --edtech-border: hsl(348, 55%, 88%);

    --policy-bg: hsl(195, 72%, 95%);
    --policy-color: hsl(195, 80%, 20%);
    --policy-border: hsl(195, 55%, 86%);

    --inclusive-bg: hsl(260, 72%, 96%);
    --inclusive-color: hsl(260, 75%, 24%);
    --inclusive-border: hsl(260, 55%, 88%);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

.edr-category-dashboard,
.edr-items-container,
.edr-detail-page {
    font-family: var(--font-body);
    color: var(--edr-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--edr-paper);
}

.edr-category-dashboard h1,
.edr-category-dashboard h2,
.edr-category-dashboard h3,
.edr-category-dashboard h4,
.edr-category-dashboard h5,
.edr-category-dashboard h6,
.edr-items-container h1,
.edr-items-container h2,
.edr-items-container h3,
.edr-items-container h4,
.edr-detail-page h1,
.edr-detail-page h2,
.edr-detail-page h3,
.edr-detail-page h4,
.edr-detail-page h5,
.edr-detail-page h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--edr-dark);
    letter-spacing: -0.01em;
}

.edr-category-dashboard p,
.edr-items-container p,
.edr-detail-page p {
    font-family: var(--font-body);
}

/* ==========================================================================
   Shared Utilities
   ========================================================================== */

.edr-transition {
    transition: all 0.35s var(--ease-out-expo);
}

.edr-transition-fast {
    transition: all 0.2s var(--ease-out-expo);
}

.edr-section-header {
    margin-bottom: 3rem;
}

.edr-section-header h1 {
    font-size: clamp(3rem, 6vw, 3.5rem);
    font-weight: 800 !important;
    line-height: 1.15;
    letter-spacing: -0.05em !important;
    margin-bottom: 0.5rem;
}

.edr-section-header .edr-lede {
    font-size: var(--font-lg);
    font-weight: 400;
    color: var(--edr-text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   1. Category Dashboard
   ========================================================================== */

.edr-category-dashboard {
    padding: 1rem 0 2.5rem 0 !important;
}

/* Hero Section */
.edr-hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.edr-dashboard-title {
    font-size: clamp(3rem, 6vw, 3.5rem);
    font-weight: 800 !important;
    line-height: 1.2;
    letter-spacing: -0.05em !important;
    color: var(--edr-dark);
    text-align: center;
    margin: 0 auto 1rem;
    max-width: 800px;
}

.edr-dashboard-lede {
    font-size: var(--font-lg);
    color: var(--edr-text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.65;
    text-align: center;
}

/* Search Bar Wrapper */
.edr-search-wrapper {
    margin: 2.5rem auto;
    max-width: 840px;
    /* Increased slightly to accommodate both search and explore button comfortably */
    padding: 0 1rem;
}

.edr-search-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.edr-search-row .edr-dashboard-search {
    flex: 1;
}

.edr-btn-explore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--edr-surface) !important;
    border: 1px solid var(--edr-border) !important;
    color: var(--edr-primary) !important;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--font-md);
    padding: 0 1.5rem !important;
    border-radius: 12px !important;
    height: 54px;
    white-space: nowrap;
    text-decoration: none !important;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease-out-expo) !important;
}

.edr-btn-explore:hover {
    background: var(--edr-accent-light) !important;
    border-color: var(--edr-accent) !important;
    color: var(--edr-accent) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .edr-search-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .edr-btn-explore {
        width: 100%;
    }
}

/* Dashboard Search - Inline flex */
.edr-dashboard-search {
    display: flex;
    align-items: stretch;
    background: var(--edr-surface);
    border: 1px solid var(--edr-border-light);
    border-radius: 14px;
    height: 54px;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s var(--ease-out-expo);
    overflow: hidden;
}

.edr-dashboard-search:focus-within {
    border-color: var(--edr-accent);
    box-shadow: var(--shadow-md), 0 0 0 4px hsla(172, 62%, 30%, 0.08);
}

.edr-dashboard-search .edr-search-icon {
    width: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--edr-text-subtle);
}

.edr-dashboard-search .edr-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: var(--font-body);
    font-size: var(--font-md);
    background: transparent !important;
    padding: 0 0.75rem;
    height: 100%;
}

.edr-dashboard-search .edr-search-input:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

.edr-dashboard-search .edr-search-input::placeholder {
    color: var(--edr-text-subtle);
}

.edr-dashboard-search .edr-btn-search {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--edr-accent) !important;
    border: none !important;
    color: #fff !important;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--font-md);
    padding: 0 2rem !important;
    margin: 0.4rem;
    border-radius: 10px !important;
    box-shadow: 0 8px 20px -6px hsla(172, 62%, 30%, 0.3);
    transition: all 0.3s var(--ease-out-expo) !important;
    letter-spacing: 0.01em;
    white-space: nowrap;
    height: auto;
    align-self: stretch;
}

.edr-dashboard-search .edr-btn-search:hover {
    background: var(--edr-accent-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -8px hsla(172, 62%, 30%, 0.35);
}

/* Dashboard Tabs */
.edr-dashboard-tabs-wrapper {
    margin-top: 2rem;
}

.edr-nav-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    border-bottom: 2px solid var(--edr-border-light);
    gap: 0.5rem !important;
    margin-bottom: 2rem !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.edr-nav-tabs .nav-item {
    margin: 0 !important;
    flex-shrink: 0;
}

.edr-nav-tabs .nav-link {
    display: inline-flex !important;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--font-lg);
    color: var(--edr-text-muted) !important;
    padding: 1rem 1.5rem !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    position: relative;
    transition: color 0.25s var(--ease-out-expo);
    letter-spacing: 0;
    white-space: nowrap;
    text-decoration: none !important;
    cursor: pointer;
}

.edr-nav-tabs .nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--edr-accent);
    border-radius: 4px 4px 0 0;
    transform: scaleX(0);
    transition: transform 0.35s var(--ease-out-expo);
}

.edr-nav-tabs .nav-link:hover {
    color: var(--edr-dark) !important;
}

.edr-nav-tabs .nav-link.active {
    color: var(--edr-dark) !important;
}

.edr-nav-tabs .nav-link.active::before {
    transform: scaleX(1);
}

/* Category Grid Cards */
.edr-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    min-width: 0;
}

.edr-cat-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
    min-width: 0;
}

.edr-cat-card {
    background: var(--edr-surface);
    border: 1px solid var(--edr-border-light);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    min-width: 0;
    transition: all 0.4s var(--ease-out-expo);
}

.edr-cat-card:hover {
    transform: translateY(-6px);
    border-color: var(--edr-accent);
    box-shadow: var(--shadow-lg);
}

.edr-cat-cover {
    width: 100%;
    height: 100px;
    background: var(--edr-paper-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.4s var(--ease-out-expo);
}

.edr-cat-card:hover .edr-cat-cover {
    background: var(--pedagogy-bg);
}

.edr-cat-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edr-cat-cover-icon {
    color: var(--edr-primary-light);
    transition: all 0.4s var(--ease-spring);
}

.edr-cat-card:hover .edr-cat-cover-icon {
    color: var(--pedagogy-color);
    transform: scale(1.1);
}

.edr-cat-body {
    padding: 1rem 1rem 1.25rem;
    text-align: center;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edr-cat-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-md);
    color: var(--edr-dark);
    line-height: 1.3;
    margin: 0;
}

/* Author List Grid */
.edr-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.edr-author-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--edr-text);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-sm);
    border-right: 1px solid var(--edr-border-light);
    transition: all 0.25s var(--ease-out-expo);
}

.edr-author-item:hover {
    color: var(--edr-accent);
}

/* Remove right border from last column items */
.edr-author-item:nth-child(4n) {
    border-right: none;
}

/* Publisher Grid */
.edr-pub-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.5rem;
}

/* Deprecated: keep old publisher box styles for now */
.edr-publisher-box {
    background: var(--edr-surface);
    border: 1px solid var(--edr-border-light);
    border-radius: 14px;
    padding: 1.25rem 0.75rem;
    box-shadow: var(--shadow-xs);
    min-height: 70px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    text-decoration: none;
    transition: all 0.35s var(--ease-out-expo);
}

.edr-publisher-box:hover {
    transform: translateY(-4px);
    border-color: var(--edr-accent);
    box-shadow: var(--shadow-md);
    background: var(--edr-surface-hover);
}

/* Author List */
.edr-author-item {
    display: block;
    padding: 0.75rem 1.25rem !important;
    border-radius: 12px;
    border: 1px solid transparent;
    color: var(--edr-text);
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
}

.edr-author-item:hover {
    background: var(--edr-accent-light);
    border-color: var(--edr-border);
    transform: translateX(4px);
    color: var(--edr-accent);
}

.edr-author-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--edr-text-subtle);
    display: inline-block;
    flex-shrink: 0;
    transition: all 0.3s var(--ease-out-expo);
}

.edr-author-item:hover .edr-author-dot {
    background: var(--edr-accent);
    transform: scale(1.5);
}

.edr-author-panel {
    padding: 1.5rem !important;
    border-radius: 18px;
    background: var(--edr-surface);
    border: 1px solid var(--edr-border-light);
    box-shadow: var(--shadow-xs);
}

/* Publisher Grid */
.edr-publisher-box {
    background: var(--edr-surface) !important;
    border: 1px solid var(--edr-border-light) !important;
    border-radius: 14px !important;
    padding: 1.25rem 1rem !important;
    box-shadow: var(--shadow-xs);
    min-height: 80px;
    min-width: 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s var(--ease-out-expo) !important;
}

.edr-publisher-box:hover {
    transform: translateY(-4px);
    border-color: var(--edr-accent) !important;
    box-shadow: var(--shadow-md);
    background: var(--edr-surface-hover) !important;
}

.edr-publisher-name {
    font-family: var(--font-heading);
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: normal;
    font-size: var(--font-sm);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--edr-text);
    transition: color 0.25s var(--ease-out-expo);
}

.edr-publisher-box:hover .edr-publisher-name {
    color: var(--edr-accent);
}

/* ==========================================================================
   2. Items List (Research Database)
   ========================================================================== */

.edr-items-container {
    padding: 2rem 0 !important;
}

/* Search & Filter Bar */
.edr-search-bar {
    margin-bottom: 2rem;
}

.edr-search-bar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
}

.edr-search-group {
    flex: 1 1 320px;
    display: flex;
    align-items: center;
    background: var(--edr-surface);
    border: 1px solid var(--edr-border-light);
    border-radius: 12px;
    height: 46px;
    box-shadow: var(--shadow-xs);
    transition: border-color 0.25s var(--ease-out-expo);
    overflow: hidden;
}

.edr-search-group:focus-within {
    border-color: var(--edr-border);
}

.edr-search-input {
    flex: 1 1 0;
    min-width: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: var(--font-body);
    font-size: var(--font-md);
    height: 100%;
    padding: 0 0.625rem !important;
    background: transparent !important;
    color: var(--edr-dark);
}

.edr-search-input:focus {
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
    background: transparent !important;
}

.edr-search-input::placeholder {
    color: var(--edr-text-subtle);
}

.edr-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 100%;
    color: var(--edr-text-subtle);
}

.edr-btn-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 100%;
    background: transparent;
    color: var(--edr-text-subtle);
    font-size: var(--font-2xl);
    font-weight: 300;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-left: 1px solid var(--edr-border-light);
    margin-left: 0;
    transition: color 0.2s var(--ease-out-expo);
}

.edr-btn-clear:hover {
    color: var(--edr-dark);
    background: var(--edr-surface-hover);
}

.edr-filter-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
    white-space: nowrap;
}

.edr-filter-label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--font-sm);
    color: var(--edr-text-muted);
    margin: 0;
    white-space: nowrap;
}

.edr-filter-dropdown {
    border: 1px solid var(--edr-border-light) !important;
    border-radius: 12px !important;
    background: var(--edr-surface) !important;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--font-md);
    color: var(--edr-text) !important;
    padding: 0 2rem 0 0.85rem !important;
    height: 46px;
    box-shadow: var(--shadow-xs);
    transition: border-color 0.25s var(--ease-out-expo);
    min-width: 160px;
}

.edr-filter-dropdown:focus {
    border-color: var(--edr-border) !important;
    box-shadow: var(--shadow-xs) !important;
    outline: none !important;
}

/* Table */
.edr-table-card {
    background: var(--edr-surface);
    border: 1px solid var(--edr-border-light);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.edr-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100%;
    margin: 0;
}

.edr-table thead th {
    background: var(--edr-paper-warm);
    border-bottom: 2px solid var(--edr-border) !important;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--font-xs);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--edr-text-muted) !important;
    padding: 1rem 1.25rem !important;
    white-space: nowrap;
}

.edr-table tbody td {
    border-bottom: 1px solid var(--edr-border-light) !important;
    padding: 1.25rem 1.25rem !important;
    vertical-align: middle;
    transition: background-color 0.2s var(--ease-out-expo);
}

.edr-table tbody tr:last-child td {
    border-bottom: none !important;
}

.edr-table tbody tr {
    transition: background-color 0.2s var(--ease-out-expo);
}

.edr-table tbody tr:hover td {
    background-color: var(--edr-surface-hover);
}

.edr-table-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-md);
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.edr-table-title a {
    color: var(--edr-dark);
    text-decoration: none;
    transition: color 0.2s var(--ease-out-expo);
}

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

.edr-table-meta {
    font-size: var(--font-sm);
    color: var(--edr-text-subtle);
}

.edr-table-cell-text {
    font-size: var(--font-sm);
    color: var(--edr-text-muted);
}

/* Category Badges */
.edr-category-badge-list,
.edr-detail-category-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.65rem;
    row-gap: 0.55rem;
}

.edr-category-badge-list {
    align-items: flex-start;
    row-gap: 0.45rem;
    margin-bottom: 0.15rem;
}

.edr-category-badge-list .edr-cat-badge {
    font-size: 0.58rem;
    padding: 0.28rem 0.7rem;
    line-height: 1.2;
}

.edr-category-badge-list .edr-cat-more {
    background: var(--edr-surface-hover) !important;
    border-color: var(--edr-border) !important;
    color: var(--edr-text-muted) !important;
    cursor: default;
}

.edr-cat-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--font-xs);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
    white-space: nowrap;
}

.edr-cat-badge:hover {
    transform: scale(1.04);
}

.edr-badge-pedagogy {
    background: var(--pedagogy-bg) !important;
    color: var(--pedagogy-color) !important;
    border-color: var(--pedagogy-border) !important;
}

.edr-badge-psychology {
    background: var(--psychology-bg) !important;
    color: var(--psychology-color) !important;
    border-color: var(--psychology-border) !important;
}

.edr-badge-edtech {
    background: var(--edtech-bg) !important;
    color: var(--edtech-color) !important;
    border-color: var(--edtech-border) !important;
}

.edr-badge-policy {
    background: var(--policy-bg) !important;
    color: var(--policy-color) !important;
    border-color: var(--policy-border) !important;
}

.edr-badge-inclusive {
    background: var(--inclusive-bg) !important;
    color: var(--inclusive-color) !important;
    border-color: var(--inclusive-border) !important;
}

.edr-badge-default {
    background: var(--edr-paper) !important;
    color: var(--edr-text-muted) !important;
    border-color: var(--edr-border) !important;
}

/* Action Link */
.edr-btn-details {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--edr-accent) !important;
    font-weight: 600;
    font-size: var(--font-sm);
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
}

.edr-btn-details svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.edr-btn-details:hover {
    color: var(--edr-accent-hover) !important;
}

.edr-btn-details:hover svg {
    transform: translateX(3px);
}

/* Empty State */
.edr-empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.edr-empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--edr-paper-warm);
    color: var(--edr-text-subtle);
    margin-bottom: 1.25rem;
    font-size: var(--font-2xl);
}

.edr-empty-state h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-xl);
    color: var(--edr-dark);
    margin-bottom: 0.5rem;
}

.edr-empty-state p {
    font-size: var(--font-md);
    color: var(--edr-text-muted);
    max-width: 400px;
    margin: 0 auto;
}

/* Pagination */
.edr-table-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.25rem;
}

.edr-table-count {
    font-family: var(--font-body);
    font-size: var(--font-sm);
    color: var(--edr-text-muted);
}

.edr-pagination-nav .pagination {
    gap: 0.25rem;
    margin: 0;
}

.edr-pagination-nav .page-link {
    border: 1px solid var(--edr-border-light) !important;
    background: var(--edr-surface) !important;
    color: var(--edr-text) !important;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--font-sm);
    padding: 0.5rem 0.85rem !important;
    border-radius: 10px !important;
    transition: all 0.25s var(--ease-out-expo) !important;
}

.edr-pagination-nav .page-link:hover {
    background: var(--edr-surface-hover) !important;
    border-color: var(--edr-border) !important;
    transform: translateY(-1px);
}

.edr-pagination-nav .page-item.active .page-link {
    background: var(--edr-accent) !important;
    border-color: var(--edr-accent) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px -2px hsla(172, 62%, 30%, 0.3) !important;
}

.edr-pagination-nav .page-item.disabled .page-link {
    color: var(--edr-text-subtle) !important;
    opacity: 0.5;
}

/* ==========================================================================
   3. Item Detail Page
   ========================================================================== */

.edr-detail-page {
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
}

/* Breadcrumb & Back Nav */
.edr-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.edr-cat-breadcrumb {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--font-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: var(--edr-accent);
    color: #fff;
    transition: all 0.25s var(--ease-out-expo);
}

.edr-cat-breadcrumb:hover {
    background: var(--edr-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px hsla(172, 62%, 30%, 0.25);
}

.edr-detail-category-list {
    margin: -0.35rem 0 1.4rem;
}

.edr-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--font-md);
    color: var(--edr-text-muted);
    text-decoration: none;
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--edr-border);
    border-radius: 10px;
    background: var(--edr-surface);
    transition: all 0.25s var(--ease-out-expo);
}

.edr-btn-back:hover {
    color: var(--edr-dark);
    border-color: var(--edr-text-subtle);
    background: var(--edr-surface-hover);
}

.edr-btn-back svg {
    transition: transform 0.25s var(--ease-out-expo);
}

.edr-btn-back:hover svg {
    transform: translateX(-2px);
}

/* Article Title */
.edr-article-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 3.5rem);
    font-weight: 800 !important;
    line-height: 1.2;
    letter-spacing: -0.05em !important;
    color: var(--edr-dark);
    margin-bottom: 1.25rem;
}

/* Metadata Strip */
.edr-metadata-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    background: var(--edr-surface);
    border: 1px solid var(--edr-border-light);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-xs);
    margin-bottom: 3rem;
}

.edr-metadata-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-md);
    color: var(--edr-text-muted);
}

.edr-metadata-item svg {
    color: var(--edr-accent);
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.edr-metadata-item strong {
    color: var(--edr-dark);
    font-weight: 600;
}

.edr-detail-actions {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0 0;
}

/* Executive Summary */
.edr-summary-card {
    background: var(--edr-surface);
    border: 1px solid var(--edr-border-light);
    border-left: 4px solid var(--edr-accent);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
}

.edr-summary-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-lg);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--edr-accent);
    margin-bottom: 0.875rem;
}

.edr-summary-card .edr-summary-text {
    font-family: var(--font-body);
    font-size: var(--font-md);
    color: var(--edr-text);
    line-height: 1.8;
}

.edr-summary-card .edr-summary-text p {
    margin-bottom: 1rem;
}

.edr-summary-card .edr-summary-text p:last-child {
    margin-bottom: 0;
}

/* Content Section */
.edr-content-section {
    margin-bottom: 3rem;
}

.edr-content-section h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-xl);
    color: var(--edr-dark);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--edr-border-light);
    margin-bottom: 1.5rem;
}

.edr-article-body {
    font-family: var(--font-body);
    font-size: var(--font-md);
    color: var(--edr-text);
    line-height: 1.8;
}

.edr-article-body p {
    margin-bottom: 1.25rem;
}

.edr-article-body h3,
.edr-article-body h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--edr-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.edr-article-body ul,
.edr-article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.edr-article-body li {
    margin-bottom: 0.5rem;
}

/* Trivium Cards */
.edr-trivium-grid {
    margin-bottom: 3rem;
}

.edr-trivium-card {
    background: var(--edr-surface) !important;
    border: 1px solid var(--edr-border-light) !important;
    border-radius: 18px !important;
    padding: 2rem !important;
    box-shadow: var(--shadow-xs);
    transition: all 0.4s var(--ease-out-expo) !important;
    height: 100%;
}

.edr-trivium-card:hover {
    transform: translateY(-6px);
    border-color: var(--edr-border) !important;
    box-shadow: var(--shadow-lg);
}

.edr-trivium-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--edr-paper-warm);
    margin-bottom: 1.25rem;
    transition: all 0.35s var(--ease-out-expo);
}

.edr-trivium-card:nth-child(1):hover .edr-trivium-icon {
    background: var(--pedagogy-bg);
    color: var(--pedagogy-color);
}

.edr-trivium-card:nth-child(2):hover .edr-trivium-icon {
    background: var(--psychology-bg);
    color: var(--psychology-color);
}

.edr-trivium-card:nth-child(3):hover .edr-trivium-icon {
    background: var(--edtech-bg);
    color: var(--edtech-color);
}

.edr-trivium-card h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-lg);
    color: var(--edr-dark);
    margin-bottom: 0.5rem;
}

.edr-trivium-card p {
    font-size: var(--font-md);
    color: var(--edr-text-muted);
    line-height: 1.55;
    margin: 0;
}

/* CPD Section */
.edr-cpd-section {
    background: var(--edr-paper-warm);
    border: 1px solid var(--edr-border-light);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.edr-cpd-section h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-xl);
    color: var(--edr-dark);
    margin-bottom: 1rem;
}

/* Co-Authors */
.edr-coauthors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.edr-coauthor-card {
    background: var(--edr-surface);
    border: 1px solid var(--edr-border-light);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    transition: all 0.3s var(--ease-out-expo);
    min-width: 260px;
    flex: 0 1 auto;
}

.edr-coauthor-card:hover {
    transform: translateY(-3px);
    border-color: var(--edr-border);
    box-shadow: var(--shadow-sm);
}

.edr-coauthor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--edr-paper-warm);
    color: var(--edr-text-muted);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--font-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 0.875rem;
}

.edr-coauthor-name {
    font-weight: 600;
    font-size: var(--font-md);
    color: var(--edr-dark);
    line-height: 1.3;
}

.edr-coauthor-role {
    font-size: var(--font-xs);
    color: var(--edr-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Research Links */
.edr-ref-list {
    background: var(--edr-surface);
    border: 1px solid var(--edr-border-light);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.edr-ref-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    color: var(--edr-text);
    text-decoration: none;
    border-bottom: 1px solid var(--edr-border-light);
    transition: all 0.25s var(--ease-out-expo);
}

.edr-ref-link:last-child {
    border-bottom: none;
}

.edr-ref-link:hover {
    background: var(--edr-accent-light);
    padding-left: 1.75rem;
    color: var(--edr-accent);
}

.edr-ref-link svg {
    flex-shrink: 0;
}

.edr-ref-link .d-flex svg {
    margin-right: 0.75rem;
    /* Space between icon and publication title */
}

/* ==========================================================================
   3b. Detail Sidebar
   ========================================================================== */

.edr-sidebar-sticky {
    position: sticky;
    top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.edr-sidebar-card {
    background: var(--edr-surface);
    border: 1px solid var(--edr-border-light);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--shadow-xs);
    white-space: normal !important;
}

.edr-sidebar-card h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-sm);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--edr-text-muted);
    margin-bottom: 1.25rem;
}

/* Access Plan */
.edr-access-card {
    background: linear-gradient(135deg, var(--edr-primary) 0%, hsl(222, 48%, 18%) 100%);
    color: #fff;
    border: none !important;
    padding: 2rem 1.5rem !important;
    border-radius: 18px !important;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.edr-access-card h5 {
    color: hsla(0, 0%, 100%, 0.65) !important;
    border-bottom-color: hsla(0, 0%, 100%, 0.1) !important;
}

.edr-access-label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--font-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: hsla(0, 0%, 100%, 0.55);
    margin-bottom: 0.5rem;
}

.edr-access-status {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: var(--font-2xl);
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

.edr-access-status.free {
    color: hsl(160, 70%, 65%);
}

.edr-access-status.paid {
    color: hsl(12, 75%, 68%);
}

.edr-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: #fff;
    color: var(--edr-primary);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--font-md);
    text-decoration: none;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s var(--ease-out-expo);
}

.edr-btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.35);
    background: hsl(0, 0%, 95%);
    color: var(--edr-primary);
}

.edr-btn-download:disabled,
.edr-btn-download.disabled {
    background: hsla(0, 0%, 100%, 0.3);
    color: hsla(0, 0%, 100%, 0.5);
    cursor: not-allowed;
    box-shadow: none;
}

/* Author Bio */
.edr-author-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--edr-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 1rem;
}

.edr-author-bio {
    font-size: var(--font-md);
    color: var(--edr-text-muted);
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.edr-btn-profile {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.65rem 1rem;
    border: 1px solid var(--edr-border);
    border-radius: 10px;
    background: var(--edr-surface);
    color: var(--edr-text);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--font-sm);
    text-decoration: none;
    transition: all 0.25s var(--ease-out-expo);
}

.edr-btn-profile:hover {
    border-color: var(--edr-accent);
    color: var(--edr-accent);
    background: var(--edr-accent-light);
}

/* Share Buttons */
.edr-share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--edr-paper);
    color: var(--edr-text-muted);
    border: 1px solid var(--edr-border-light);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    margin-right: 0.5rem;
}

.edr-share-btn:last-child {
    margin-right: 0;
}

.edr-share-btn:hover {
    background: var(--edr-accent);
    color: #fff;
    border-color: var(--edr-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px hsla(172, 62%, 30%, 0.3);
}

/* Related Research */
.edr-sidebar-flat-block {
    white-space: normal !important;
}

.edr-sidebar-flat-block h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-sm);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--edr-text-muted);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--edr-border-light);
    margin-bottom: 0.5rem;
}

.edr-related-item {
    display: block;
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid var(--edr-border-light);
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
}

.edr-related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.edr-related-item:hover {
    background: transparent;
}

.edr-related-cat {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--font-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--edr-accent);
    margin-bottom: 0.25rem;
    display: block;
}

.edr-related-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--font-md);
    color: var(--edr-dark);
    line-height: 1.35;
    margin-bottom: 0.2rem;
    transition: color 0.2s var(--ease-out-expo);
}

.edr-related-item:hover .edr-related-title {
    color: var(--edr-accent);
}

.edr-related-author {
    display: block;
    font-size: var(--font-xs);
    line-height: 1.25;
    color: var(--edr-text-subtle);
}

/* Keyword Tags */
.edr-tag {
    display: inline-block !important;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--font-xs);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    border: 1px solid var(--edr-border-light);
    background: var(--edr-paper);
    color: var(--edr-text-muted);
    text-decoration: none;
    transition: all 0.25s var(--ease-out-expo);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    max-width: 100% !important;
    word-break: break-word !important;
    white-space: normal !important;
}

.edr-tag:hover {
    background: var(--edr-accent-light);
    border-color: var(--edr-accent);
    color: var(--edr-accent);
}

/* Topic Links */
.edr-research-topics-list {
    font-family: var(--font-body);
    font-size: var(--font-md);
    color: var(--edr-text-muted);
    line-height: 1.6;
}

.edr-topic-link {
    color: var(--edr-accent) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.2s var(--ease-out-expo);
}

.edr-topic-link:hover {
    color: var(--edr-accent-hover) !important;
    text-decoration: underline !important;
}

/* Research Details List */
.edr-detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.edr-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-sm);
    border-bottom: 1px solid var(--edr-border-light);
    padding-bottom: 0.5rem;
}

.edr-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.edr-detail-label {
    color: var(--edr-text-muted);
    font-weight: 500;
}

.edr-detail-value {
    color: var(--edr-dark);
    font-weight: 600;
    text-align: right;
}

/* Sidebar Text */
.edr-sidebar-text {
    font-family: var(--font-body);
    font-size: var(--font-sm);
    color: var(--edr-text);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Sidebar Section Headers */
.edr-sidebar-section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-sm);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--edr-text-muted);
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Sidebar Section Divider */
.edr-sidebar-divider {
    border: 0;
    border-top: 1px solid var(--edr-border-light);
    margin: 1.5rem 0;
    opacity: 1;
}

/* Top Meta Links */
.edr-meta-link {
    color: inherit;
    text-decoration: none !important;
}

.edr-meta-link strong {
    color: var(--edr-dark);
    font-weight: 600;
    transition: color 0.2s var(--ease-out-expo);
}

.edr-meta-link:hover strong {
    color: var(--edr-accent);
}

/* Co-Author Card Links */
.edr-coauthor-card-link {
    text-decoration: none !important;
    color: inherit !important;
}

.edr-coauthor-card-link:hover .edr-coauthor-card {
    transform: translateY(-3px);
    border-color: var(--edr-accent) !important;
    box-shadow: var(--shadow-sm);
}

.edr-coauthor-card-link:hover .edr-coauthor-name {
    color: var(--edr-accent) !important;
}

/* Sidebar Links */
.edr-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.edr-sidebar-link {
    font-family: var(--font-body);
    font-size: var(--font-sm);
    color: var(--edr-accent) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.2s var(--ease-out-expo);
    display: inline-flex;
    align-items: center;
}

.edr-sidebar-link::before {
    content: "→";
    margin-right: 0.5rem;
    color: var(--edr-accent);
}

.edr-sidebar-link:hover {
    color: var(--edr-accent-hover) !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   4. Responsive Grid Fallbacks
   ========================================================================== */

.edr-category-dashboard .row,
.edr-items-container .row {
    display: flex !important;
    flex-wrap: wrap !important;
}

.edr-detail-page .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -0.75rem !important;
    margin-left: -0.75rem !important;
}

.edr-category-dashboard .col,
.edr-items-container .col {
    flex: 1 0 0% !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
}

.edr-detail-page .col,
.edr-detail-page [class*="col-"] {
    padding-right: 0.75rem !important;
    padding-left: 0.75rem !important;
}

@media (min-width: 992px) {
    .edr-detail-page .row {
        margin-right: -1.5rem !important;
        margin-left: -1.5rem !important;
    }

    .edr-detail-page .col,
    .edr-detail-page [class*="col-"] {
        padding-right: 1.5rem !important;
        padding-left: 1.5rem !important;
    }
}

@media (min-width: 576px) {
    .edr-category-dashboard .row-cols-sm-2>.col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

@media (min-width: 768px) {

    .edr-category-dashboard .row-cols-md-3>.col,
    .edr-category-dashboard .row-cols-md-4>.col {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }

    .edr-items-container .col-md-7 {
        flex: 0 0 58.333333% !important;
        max-width: 58.333333% !important;
    }

    .edr-items-container .col-md-5 {
        flex: 0 0 41.666667% !important;
        max-width: 41.666667% !important;
    }
}

@media (min-width: 992px) {
    .edr-category-dashboard .row-cols-lg-6>.col {
        flex: 0 0 16.666667% !important;
        max-width: 16.666667% !important;
    }

    .edr-items-container .col-lg-8 {
        flex: 0 0 66.666667% !important;
        max-width: 66.666667% !important;
    }

    .edr-items-container .col-lg-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }

    .edr-detail-page .col-lg-8 {
        flex: 0 0 66.666667% !important;
        max-width: 66.666667% !important;
    }

    .edr-detail-page .col-lg-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
}

@media (min-width: 1200px) {
    .edr-detail-page .col-xl-9 {
        flex: 0 0 75% !important;
        max-width: 75% !important;
    }

    .edr-detail-page .col-xl-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

/* Tab Fallbacks */
.tab-content>.tab-pane {
    display: none !important;
}

.tab-content>.active {
    display: block !important;
}

.fade {
    transition: opacity 0.15s linear !important;
}

.fade:not(.show) {
    opacity: 0 !important;
}

/* Tab Overrides */
.edr-category-dashboard .edr-nav-tabs .nav-link,
.edr-category-dashboard .edr-nav-tabs .nav-link:focus,
.edr-category-dashboard .edr-nav-tabs .nav-link:active,
.edr-category-dashboard .edr-nav-tabs .nav-link.active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    margin-bottom: 0 !important;
}

.edr-category-dashboard .edr-nav-tabs {
    border-bottom: 2px solid var(--edr-border-light) !important;
}

/* ==========================================================================
   5. Responsive Adjustments
   ========================================================================== */

@media (max-width: 767.98px) {
    .edr-section-header h1 {
        font-size: var(--font-2xl);
    }

    .edr-metadata-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .edr-detail-actions {
        justify-content: center;
        margin: 2rem 0 0;
    }

    .edr-nav-tabs .nav-link {
        font-size: var(--font-md);
        padding: 0.75rem 1rem !important;
    }

    .edr-summary-card {
        padding: 1.25rem;
    }

    .edr-summary-card .edr-summary-text {
        font-size: var(--font-md);
    }

    .edr-article-title {
        font-size: var(--font-2xl);
    }

    .edr-sidebar-sticky {
        position: static;
        margin-top: 2rem;
    }

    .edr-access-card {
        padding: 1.5rem 1.25rem !important;
    }

    .edr-cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .edr-list-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .edr-author-item:nth-child(4n) {
        border-right: 1px solid var(--edr-border-light);
    }

    .edr-author-item:nth-child(3n) {
        border-right: none;
    }

    .edr-pub-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .edr-dashboard-search {
        flex-wrap: wrap;
        gap: 0.4rem;
        height: auto;
        padding: 0.4rem;
    }

    .edr-dashboard-search .edr-search-icon {
        display: none;
    }

    .edr-dashboard-search .edr-search-input {
        flex: 1 1 100%;
        order: -1;
        padding: 0.6rem 0.85rem;
        height: 46px;
        font-size: 1rem;
    }

    .edr-dashboard-search .edr-btn-search {
        flex: 1 1 100%;
        justify-content: center;
        align-self: auto;
        margin: 0;
        padding: 0.7rem 1.5rem !important;
    }

    .edr-search-bar-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .edr-search-group {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }

    .edr-filter-block {
        width: 100%;
    }

    .edr-filter-dropdown {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }

    .edr-nav-tabs {
        flex-wrap: wrap !important;
        gap: 0.25rem !important;
        display: flex !important;
        border-bottom: 2px solid var(--edr-border-light) !important;
        padding-bottom: 0 !important;
    }

    .edr-nav-tabs .nav-item {
        flex-shrink: 0;
        display: block !important;
    }

    .edr-nav-tabs .nav-link {
        font-size: var(--font-xs);
        padding: 0.5rem 0.7rem !important;
        display: inline-flex !important;
        white-space: nowrap;
        border-bottom: 3px solid transparent !important;
        border-radius: 0 !important;
        margin-bottom: 0;
        color: var(--edr-text-muted) !important;
    }

    .edr-nav-tabs .nav-link.active {
        border-bottom-color: var(--edr-accent) !important;
        color: var(--edr-dark) !important;
        background: transparent !important;
    }

    .edr-nav-tabs .nav-link::before {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .edr-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        min-width: 0;
    }

    .edr-cat-cover {
        height: 64px;
    }

    .edr-cat-body {
        padding: 0.5rem 0.5rem 0.75rem;
    }

    .edr-cat-title {
        font-size: var(--font-xs);
    }

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

    .edr-author-item:nth-child(3n) {
        border-right: 1px solid var(--edr-border-light);
    }

    .edr-author-item:nth-child(2n) {
        border-right: none;
    }

    .edr-pub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .edr-publisher-box {
        padding: 1rem 0.65rem !important;
        min-height: 72px;
    }

    .edr-publisher-name {
        font-size: 0.7rem;
        line-height: 1.35;
    }

    .edr-dashboard-hero img {
        max-height: 180px;
    }

    .edr-table thead {
        display: none;
    }

    .edr-table tbody tr {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--edr-border-light);
    }

    .edr-table tbody td {
        display: block;
        padding: 0.35rem 0 !important;
        border-bottom: none !important;
        text-align: left !important;
    }

    .edr-table tbody td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        font-size: var(--font-xs);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--edr-text-muted);
        margin-bottom: 0.15rem;
    }

    .edr-pagination-nav .pagination {
        justify-content: center;
    }

    .edr-table-title {
        font-size: var(--font-md);
    }
}

/* ==========================================================================
   6. Print Styles
   ========================================================================== */

@media print {

    .edr-btn-search,
    .edr-dashboard-search,
    .edr-search-group,
    .edr-filter-dropdown,
    .edr-sidebar-sticky,
    .edr-nav-tabs .nav-link::before,
    .edr-pagination-nav,
    .edr-btn-download,
    .edr-share-btn,
    .edr-btn-profile,
    .edr-btn-back,
    .edr-btn-details {
        display: none !important;
    }

    .edr-detail-page,
    .edr-items-container,
    .edr-category-dashboard {
        background: #fff !important;
        padding: 0 !important;
    }

    .edr-article-title {
        font-size: var(--font-2xl);
    }
}