/* =======================
   Modern Fintech Typography
======================= */
body {
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1c1c1c;
    background-color: #f9fafb;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #111;
    line-height: 1.3;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}

/* =======================
   Code & Syntax Highlighting
======================= */
code {
    background-color: #f1f3f5;
    padding: 0.3em 0.5em;
    border-radius: 6px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.95em;
}

pre code {
    padding: 1em;
    display: block;
    overflow-x: auto;
    border-radius: 8px;
    background-color: #f5f6f7;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.03);
}

/* =======================
   Tables
======================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    background-color: #fff;
}

table th {
    background-color: #f3f4f6;
    font-weight: 600;
    padding: 0.75em;
    text-align: left;
}

table td {
    padding: 0.75em;
    border-top: 1px solid #eee;
}

/* =======================
   Buttons
======================= */
button, .download-button {
    background-color: #3b82f6 !important; /* Blue fintech accent */
    color: #fff !important;
    border-radius: 8px;
    padding: 0.7em 1.2em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

button:hover, .download-button:hover {
    background-color: #2563eb !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.download-button .icon {
    margin-right: 8px;
}

/* =======================
   Sidebar & Layout
======================= */
.md-sidebar--secondary, .md-nav__title {
    display: none !important;
}

.md-main {
    max-width: 100% !important;
    padding: 2em 3em;
}

.md-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 2em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding-top: 1em !important;
    padding-bottom: 1em !important;
}

/* =======================
   Footnotes
======================= */
.footnote-ref, .footnote {
    background-color: #e6f4ff;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #111;
}

/* =======================
   Images
======================= */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* =======================
   Horizontal Line
======================= */
.line {
    border-top: 1px solid #e5e7eb;
    margin: 1em 0;
}

/* =======================
   Tabs
======================= */
.tab-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 1em;
    border-bottom: 1px solid #e5e7eb;
    gap: 0.5em;
}

.tabcontent {
    display: none;
    padding: 0.8em 1.2em;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 0.5em;
    overflow-x: auto;
    background-color: #fff;
}

.tablink {
    background-color: #f3f4f6;
    border-radius: 20px;
    padding: 0.6em 1.2em;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
    color: #1c1c1c;
}

.tablink:hover {
    background-color: #e5e7eb;
}

.tablink.active {
    background-color: #3b82f6;
    color: #fff;
}

/* =======================
   Miscellaneous
======================= */
.small-font {
    font-size: 0.95em;
    line-height: 1.4;
}
