/* ATAPIC Research hub + detail. Public-facing, enterprise/serious tone.
   Pairs with landing.css (nav, footer, dark-mode tokens). Uses the brand
   cyan via var(--primary). */

.research-hero-section {
    padding: 120px 0 48px;
    text-align: center;
    background:
        radial-gradient(1200px 400px at 50% -10%, rgba(0, 179, 201, 0.14), transparent 70%);
}
.research-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary, #00b3c9);
    border: 1px solid rgba(0, 179, 201, 0.35);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 18px;
}
.research-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}
.research-hero-sub {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary, #5b6b7b);
}

.research-list-section { padding: 16px 0 90px; }

/* Search + filter toolbar */
.research-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}
.research-search {
    position: relative;
    flex: 1 1 280px;
    min-width: 220px;
}
.research-search .material-icons {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-secondary, #8b97a5);
}
.research-search input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    border: 1px solid #d7dee7;
    border-radius: 10px;
    font-size: 0.98rem;
    background: #fff;
    color: inherit;
}
.research-search input:focus { outline: none; border-color: var(--primary, #00b3c9); }
.research-filter {
    padding: 11px 14px;
    border: 1px solid #d7dee7;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #fff;
    color: inherit;
    min-width: 150px;
}
.research-filter:focus { outline: none; border-color: var(--primary, #00b3c9); }
.research-count { font-size: 0.88rem; color: var(--text-secondary, #5b6b7b); margin-left: auto; }

.research-flags { display: inline-flex; gap: 8px; align-items: center; }

/* Grid */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 22px;
}
.research-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e6ebf1;
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.research-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.09);
    border-color: var(--primary, #00b3c9);
}
.research-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.research-title { font-size: 1.22rem; font-weight: 700; margin: 12px 0 6px; line-height: 1.3; }
.research-sub { color: var(--text-secondary, #5b6b7b); font-size: 0.96rem; margin: 0 0 10px; }

/* Featured = same card, just a subtle cyan emphasis (scales as the list grows) */
.research-card.is-featured {
    border-color: rgba(0, 179, 201, 0.45);
    background: linear-gradient(135deg, rgba(0, 179, 201, 0.05), transparent);
}

.research-type {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-dark, #0090a3);
    background: rgba(0, 179, 201, 0.12);
    border-radius: 999px;
    padding: 4px 10px;
}
.research-featured-flag, .research-pdf-flag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #b7791f;
}
.research-pdf-flag { color: #b91c1c; }

.research-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary, #5b6b7b);
    margin: 6px 0 12px;
}
.research-meta .dot { opacity: 0.5; }

.research-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.research-tag {
    font-size: 0.74rem;
    color: var(--text-secondary, #5b6b7b);
    background: rgba(0, 0, 0, 0.045);
    border-radius: 6px;
    padding: 3px 8px;
}
.research-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: var(--primary, #00b3c9);
}
.research-cta .material-icons { font-size: 18px; }

.research-empty {
    text-align: center;
    padding: 70px 20px;
    color: var(--text-secondary, #5b6b7b);
}
.research-empty i { font-size: 2.4rem; color: var(--primary, #00b3c9); margin-bottom: 14px; }
.research-empty h3 { font-weight: 700; margin-bottom: 8px; }

/* Detail */
.research-detail { padding: 110px 0 80px; }
.research-detail-container { max-width: 860px; }
.research-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-secondary, #5b6b7b);
    font-weight: 600;
    margin-bottom: 22px;
}
.research-back .material-icons { font-size: 18px; }
.research-detail-head { border-bottom: 1px solid #e6ebf1; padding-bottom: 24px; margin-bottom: 24px; }
.research-detail-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 8px; }
.research-detail-sub { font-size: 1.15rem; color: var(--text-secondary, #5b6b7b); margin: 0 0 14px; }
.research-detail-meta { font-size: 0.92rem; }

.research-pdf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.research-btn-primary {
    display: inline-flex; align-items: center;
    background: var(--primary, #00b3c9); color: #fff;
    font-weight: 700; text-decoration: none;
    padding: 11px 20px; border-radius: 10px;
    transition: background 0.15s ease;
}
.research-btn-primary:hover { background: var(--primary-dark, #0090a3); color: #fff; }
.research-btn-ghost {
    display: inline-flex; align-items: center;
    border: 1px solid #cfd8e3; color: inherit;
    font-weight: 700; text-decoration: none;
    padding: 11px 20px; border-radius: 10px;
    transition: border-color 0.15s ease;
}
.research-btn-ghost:hover { border-color: var(--primary, #00b3c9); color: inherit; }

.research-abstract { margin-bottom: 28px; }
.research-abstract h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary-dark, #0090a3); margin-bottom: 8px; }
.research-abstract p { font-size: 1.12rem; line-height: 1.7; }

.research-body { font-size: 1.05rem; line-height: 1.75; }
.research-body h2 { font-size: 1.5rem; font-weight: 700; margin: 30px 0 12px; }
.research-body h3 { font-size: 1.2rem; font-weight: 700; margin: 24px 0 10px; }
.research-body p { margin: 0 0 16px; }
.research-body ul, .research-body ol { margin: 0 0 16px 1.2rem; }
.research-body img { max-width: 100%; height: auto; border-radius: 10px; }
.research-body blockquote { border-left: 3px solid var(--primary, #00b3c9); padding-left: 16px; color: var(--text-secondary, #5b6b7b); margin: 0 0 16px; }

.research-pdf-embed { margin: 30px 0; }
.research-pdf-embed h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary-dark, #0090a3); margin-bottom: 10px; }
.research-pdf-embed iframe { width: 100%; height: 820px; border: 1px solid #e6ebf1; border-radius: 12px; }
.research-pdf-fallback { font-size: 0.9rem; color: var(--text-secondary, #5b6b7b); margin-top: 8px; }

.research-cta-section {
    margin-top: 48px;
    text-align: center;
    border: 1px solid rgba(0, 179, 201, 0.25);
    border-radius: 18px;
    padding: 40px 24px;
    background: linear-gradient(135deg, rgba(0, 179, 201, 0.06), transparent);
}
.research-cta-section h2 { font-weight: 800; margin-bottom: 8px; }
.research-cta-section p { color: var(--text-secondary, #5b6b7b); margin-bottom: 20px; }
.research-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (max-width: 575.98px) {
    .research-hero-section { padding: 96px 0 32px; }
    .research-card, .research-featured-card { padding: 20px; }
    .research-pdf-embed iframe { height: 520px; }
}

/* Dark mode (landing.css sets [data-theme="dark"] on <html>) */
[data-theme="dark"] .research-card { background: #131922; border-color: #243041; }
[data-theme="dark"] .research-card.is-featured { background: linear-gradient(135deg, rgba(0,179,201,0.10), rgba(0,179,201,0.02)); border-color: #244a52; }
[data-theme="dark"] .research-search input,
[data-theme="dark"] .research-filter { background: #131922; border-color: #2d3a4a; color: #e6edf3; }
[data-theme="dark"] .research-detail-head { border-color: #243041; }
[data-theme="dark"] .research-tag { background: rgba(255,255,255,0.07); }
[data-theme="dark"] .research-btn-ghost { border-color: #344155; }
[data-theme="dark"] .research-pdf-embed iframe { border-color: #243041; }
