body {
    background-color: #f8fafc;
}

.fintech-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.fintech-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.reading-time-break {
    display: block;
    margin-top: 2px;
}
.reading-time-dot {
    display: none;
}
@media (min-width: 640px) {
    .reading-time-break {
        display: inline;
        margin-top: 0;
    }
    .reading-time-dot {
        display: inline;
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }
}

.prose h2 { font-size: 1.875rem; font-weight: 700; color: #111827; margin-top: 2.5rem; margin-bottom: 1rem; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.5rem; font-weight: 600; color: #1f2937; margin-top: 2rem; margin-bottom: 1rem; scroll-margin-top: 100px; }
.prose p { margin-bottom: 1.5rem; line-height: 1.8; }
.prose a { color: #05445e; text-decoration: underline; font-weight: 500; }
.prose ul { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose img { border-radius: 0.75rem; margin: 2rem 0; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.prose blockquote { border-left: 4px solid #189ab4; padding-left: 1rem; font-style: italic; color: #4b5563; background: #f3f4f6; padding: 1rem; border-radius: 0 0.5rem 0.5rem 0; margin-bottom: 1.5rem; }

.table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 0;
    box-shadow: none;
}

.prose table thead tr th,
.prose table tbody tr:first-child td:has(strong) {
    background-color: #05445e;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: none;
    padding: 12px 16px;
    border: none;
    white-space: nowrap;
}
.prose table th,
.prose table td {
    padding: 11px 16px;
    border: 1px solid #e5e7eb;
    vertical-align: top;
    line-height: 1.6;
    color: #374151;
}
.prose table td:first-child {
    font-weight: 700;
    color: #0f172a;           
    background-color: #f8fafc;
    white-space: nowrap;
}
.prose table thead tr th:first-child,
.prose table tbody tr:first-child td:first-child:has(strong) {
    color: #ffffff !important;
    background-color: #05445e !important;
}
.prose table thead tr th a,
.prose table tbody tr:first-child td:has(strong) a {
    color: #ffffff;
}

.prose table tbody tr:nth-child(even) td {
    background-color: #f9fafb;
}
.prose table tbody tr:nth-child(odd) td {
    background-color: #ffffff;
}
.prose table tbody tr:nth-child(even) td:first-child,
.prose table tbody tr:nth-child(odd) td:first-child {
    background-color: #f1f5f9;
}
.prose table tbody tr:hover td {
    background-color: #eff6ff;
}
.prose table tbody tr:hover td:first-child {
    background-color: #dbeafe;
}
.prose table td strong {
    color: inherit;
}
.prose table a {
    color: #05445e;
    font-weight: 500;
}
.prose table a:hover {
    color: #189ab4;
}


.toc-accordion {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.toc-accordion-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    font-weight: 700;
    color: #111827;
    font-size: 0.95rem;
    transition: background 0.15s;
}
.toc-accordion-summary::-webkit-details-marker { display: none; }
.toc-accordion-summary:hover { background: #eff6ff; }
.toc-accordion-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #05445e;
}
.toc-accordion-icon { color: #05445e; }
.toc-chevron {
    transition: transform 0.2s ease;
    color: #6b7280;
    flex-shrink: 0;
}
details[open] .toc-chevron {
    transform: rotate(180deg);
}
.toc-accordion-body {
    border-top: 1.5px solid #e2e8f0;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
}
.toc-accordion-link {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 18px;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
    border-left: 3px solid transparent;
    line-height: 1.4;
}
.toc-accordion-link:hover {
    background: #eff6ff;
    color: #05445e;
    border-left-color: #189ab4;
}
