/* Civic Research — Research Tools page (dark data-dashboard theme) */

/* Hero */
.research-hero {
    background:
        radial-gradient(ellipse 60% 60% at 50% -20%, rgba(34, 211, 238, 0.1), transparent),
        var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 64px 0 48px;
    text-align: center;
}
.research-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}
.research-hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 660px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Layout */
.research-body { padding: 56px 0; }
.research-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: start;
}
.setup-col h2,
.coverage-detail h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

/* Terminal-style setup card */
.setup-panel {
    background: var(--surface-2);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 36px;
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
}
.tdot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.tdot.red { background: #f87171; }
.tdot.yellow { background: #facc15; }
.tdot.green { background: #4ade80; }
.terminal-title {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}
.terminal-body { padding: 22px 26px 24px; }
.setup-list {
    padding-left: 20px;
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.setup-list li { margin-bottom: 10px; }
.setup-list a { color: var(--cyan); }
.setup-list strong { color: var(--white); font-weight: 600; }

/* Connector URL + copy button */
.mcp-url-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.mcp-url-row code {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    background: #05070d;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--cyan-bright);
    overflow-x: auto;
    white-space: nowrap;
}
.btn-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0 20px;
    background: var(--cyan);
    color: #05070d;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-copy:hover { background: var(--cyan-bright); }
.copy-status {
    min-height: 1.3em;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 10px;
}
.setup-note {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}
.setup-note strong { color: var(--white); }

/* MCP explainer */
.mcp-explainer { margin-bottom: 36px; }
.mcp-explainer p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 62ch;
}
.mcp-explainer abbr { text-decoration: none; border-bottom: 1px dotted var(--muted); }

/* Example questions */
.try-title { margin-bottom: 14px; }
.examples-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.example-card {
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.45;
}
.example-card::before {
    content: '>';
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--cyan);
    margin-right: 8px;
}

/* Sidebar: index status + coverage */
.index-status {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
}
.index-status h2 {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-bottom: 14px;
}
.status-list div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
}
.status-list div:last-child { border-bottom: none; }
.status-list dt { font-size: 0.88rem; color: var(--text-secondary); }
.status-list dd {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--cyan-bright);
}
.status-list dd.fresh { color: var(--green); }

.coverage-detail {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
}
.coverage-list {
    list-style: none;
    padding: 0;
}
.coverage-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 8px 0 8px 20px;
    position: relative;
    border-bottom: 1px solid var(--border);
}
.coverage-list li:last-child { border-bottom: none; }
.coverage-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-weight: 700;
    font-size: 0.85rem;
}
.coverage-list strong { color: var(--text); font-weight: 600; }

/* FAQ */
.research-faq {
    padding: 56px 0;
    background: var(--bg-raise);
}

/* Back to reports */
.back-to-reports {
    padding: 64px 0;
    text-align: center;
}
.back-to-reports p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .research-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .research-hero { padding: 48px 0 36px; }
    .research-hero h1 { font-size: 1.7rem; }
    .research-body { padding: 44px 0; }
    .terminal-body { padding: 18px 16px; }
    .mcp-url-row code { font-size: 0.8rem; padding: 12px 12px; }
}
