body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
        "Open Sans", "Helvetica Neue", sans-serif;
    max-width: 1200px; /* Increased max-width for wider table */
    margin: 0 auto;
    padding: 20px;
    background-color: #fdf6e3;
    /* Warm cream color */
    color: #4a3728;
    /* Dark coffee brown */
}

h1 {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
        "Open Sans", "Helvetica Neue", sans-serif;
    color: #8b4513;
    /* Saddle brown */
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

/* Base table styles */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fffaf0;
    box-shadow: 0 1px 3px rgba(74, 55, 40, 0.2);
    border-radius: 8px;
    overflow: hidden;
    table-layout: fixed;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #d2b48c;
    word-wrap: break-word;
    vertical-align: middle;
}

/* Research table specific widths */
#researchTable th:nth-child(1),
#researchTable td:nth-child(1) {
    width: 40%;
}

#researchTable th:nth-child(2),
#researchTable td:nth-child(2) {
    width: 45%;
}

#researchTable th:nth-child(3),
#researchTable td:nth-child(3) {
    width: 15%;
}

#blogTable th:nth-child(1),
#blogTable td:nth-child(1) {
    width: 85%;
    text-align: center;
}

#blogTable th:nth-child(2),
#blogTable td:nth-child(2) {
    width: 15%;
}

/* Coffee table column widths - updated for 5 columns */
#coffeeTable th:nth-child(1),
#coffeeTable td:nth-child(1) {
    width: 10%;
    text-align: center;
}

#coffeeTable th:nth-child(2),
#coffeeTable td:nth-child(2) {
    width: 10%;
    text-align: center;
}

#coffeeTable th:nth-child(3),
#coffeeTable td:nth-child(3) {
    width: 30%;
}

#coffeeTable th:nth-child(4),
#coffeeTable td:nth-child(4) {
    width: 30%;
}

#coffeeTable th:nth-child(5),
#coffeeTable td:nth-child(5) {
    width: 20%;
}
/* Logo specific styles */
#coffeeTable .logo {
    max-height: 35px;
    max-width: 70px;
    object-fit: contain;
    vertical-align: middle;
}

th {
    font-weight: 600;
    background-color: #6f4e37;
    /* Coffee brown */
    color: #fdf6e3;
    /* Warm cream */
}

tr:hover {
    background-color: #f5e6d3;
    /* Light coffee cream */
}

a {
    color: #8b4513;
    /* Saddle brown */
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #d2691e;
    /* Chocolate */
    text-decoration: underline;
}

.disclaimer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #6f4e37;
    /* Coffee brown */
    font-style: italic;
}

/* Bio Styles */
.bio-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.bio-content {
    line-height: 1.6;
    margin: 30px 0;
}

.bio-content p {
    margin-bottom: 20px;
}

.contact-links {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #d2b48c;
}

.contact-links ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.contact-links li {
    display: inline-block;
    margin-right: 20px;
}

/* Add navigation to coffee page */
body > h1 {
    margin-top: 40px;
}
.profile-image {
    text-align: center;
    margin: 30px 0;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.external-link {
    font-size: 0.8em;
    color: #6f4e37;
    margin-left: 8px;
}
.social-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-links i {
    font-size: 1.5rem;
    color: #333;
    transition: color 0.3s ease;
}

.social-links a:hover i {
    color: #007bff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Navigation */
.navigation {
    text-align: center;
    background-color: #6f4e37;
    padding: 1rem;
    margin-bottom: 40px;
}

.navigation a {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 4px;
    background-color: #6f4e37;
    color: #fdf6e3;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.navigation a:hover,
.navigation a.active {
    background-color: #8b4513;
}

/* Updated Navigation Styles */
.nav-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-brand {
    color: #fdf6e3;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    height: 40px;
    width: 40px;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: #fdf6e3;
    transition: all 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    background: #fdf6e3;
    transition: all 0.3s;
    left: 1px;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.nav-menu {
    display: flex;
    gap: 1rem;
}

.nav-menu a {
    color: #fdf6e3;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: #8b4513;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #6f4e37;
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        border-top: 1px solid rgba(253, 246, 227, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 0.75rem 1rem;
    }
}
/* Content styles */
.content {
    opacity: 0;
    transition: opacity 0.2s ease-in;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.content.loaded {
    opacity: 1;
}
/* Carry Trade Matrix Styles */
#root .tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#root .tabs button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #6f4e37;
    color: #fdf6e3;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

#root .tabs button:hover {
    background-color: #8b4513;
}

#root .tabs button.active {
    background-color: #8b4513;
    color: #fdf6e3;
}

#root .matrix-container {
    overflow-x: auto;
    margin: 20px 0;
}

/* Carry Trade Matrix Styles - override base table styles */
#root .carry-trade-matrix {
    background-color: #fffaf0 !important;
    box-shadow: 0 1px 3px rgba(74, 55, 40, 0.2) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
}

#root .carry-trade-matrix th,
#root .carry-trade-matrix td {
    padding: 15px !important;
    text-align: center !important;
    border-bottom: 1px solid #d2b48c !important;
    word-wrap: break-word !important;
    vertical-align: middle !important;
    background: none !important;
    color: inherit !important;
}

#root .carry-trade-matrix th {
    background-color: #6f4e37 !important;
    color: #fdf6e3 !important;
    font-weight: 600 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1 !important;
}

#root .carry-trade-matrix th:first-child {
    position: sticky !important;
    left: 0 !important;
    z-index: 2 !important;
    background-color: #6f4e37 !important;
}

#root .carry-trade-matrix tr:hover {
    background-color: #f5e6d3 !important;
}

#root .carry-trade-matrix td.positive {
    color: #2e7d32 !important;
    font-weight: 500 !important;
}

#root .carry-trade-matrix td.negative {
    color: #c62828 !important;
    font-weight: 500 !important;
}

@media (max-width: 768px) {
    .carry-trade-matrix {
        font-size: 12px;
    }

    .carry-trade-matrix th,
    .carry-trade-matrix td {
        padding: 8px;
    }

    .tabs button {
        padding: 8px 16px;
        font-size: 12px;
    }
}

.vertical-header {
    vertical-align: middle;
    text-align: center;
    height: 140px;
    min-width: 0;
    max-width: none;
    padding: 0;
}
