/* Shared styles for native disclosures, accessible code blocks, and regional hubs */
.matlab-code-area:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: -2px;
}

.copy-code-btn.is-copied {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

/* Native <details>/<summary> FAQ accordion */
.faq-native-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-native-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-native-item[open] {
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(0, 86, 179, 0.08);
}

.faq-native-summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 700;
    color: #0f172a;
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.faq-native-summary::-webkit-details-marker {
    display: none;
}

.faq-native-summary::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 600;
    color: #0056b3;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-native-item[open] .faq-native-summary {
    color: #0056b3;
    background: #f8faff;
    border-bottom: 1px solid #e2e8f0;
}

.faq-native-item[open] .faq-native-summary::after {
    content: "\2212";
}

.faq-native-body {
    padding: 16px 20px;
    color: #334155;
    font-size: 0.93rem;
    line-height: 1.7;
}

/* Regional Alignment & E-E-A-T Cards */
.regional-hub-strip {
    background: #f8faff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.regional-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.regional-hub-link {
    display: block;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: #0f172a;
    font-size: 0.85rem;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.regional-hub-link:hover {
    border-color: #0056b3;
    transform: translateY(-2px);
    color: #0056b3;
}

@media (max-width: 767.98px) {
    .regional-hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
