/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Brand Colors:
   #081216 - Dark Navy (primary background)
   #0b1a20 - Navy (secondary background)
   #e5bb5f - Gold (accent)
   #d6d3c3 - Light Gray (text)
*/

body, html {
    height: 100%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #081216;
    color: #d6d3c3;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #081216;
    padding: 15px 20px;
    z-index: 1000;
    border-bottom: 1px solid #0b1a20;
}

header img {
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.main-container {
    display: flex;
    margin-top: 80px;
    height: calc(100vh - 80px);
}

/* SEO Content - Hidden visually but accessible to crawlers */
.seo-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Alternative: Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Sidebar */
.sidebar {
    width: 200px;
    background: #081216;
    padding: 20px 0;
    border-right: 1px solid #0b1a20;
    flex-shrink: 0;
    overflow-y: auto;
}

.sidebar ul {
    list-style: none;
}

.sidebar > ul > li {
    margin: 0;
}

/* Top level menu items (Credit, Equity, Capital, Podcast) */
.sidebar > ul > li > a {
    color: #888;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    padding: 12px 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.sidebar > ul > li > a:hover {
    color: #d6d3c3;
}

/* First level submenu (under Credit, Equity, Capital) */
.sidebar > ul > li > ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.sidebar > ul > li.show-submenu > ul {
    max-height: 800px;
}

/* Submenu toggle items (Market, Spreads, Strategy, Metaplanet) */
.sidebar > ul > li > ul > li > a {
    color: #aaa;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    padding: 8px 20px 8px 28px;
    transition: color 0.15s, background 0.15s;
}

.sidebar > ul > li > ul > li > a:hover {
    color: #d6d3c3;
    background: #0b1a20;
}

/* Direct chart links in first level (like "Key Cost Bases" under Capital) */
.sidebar > ul > li > ul > li > a.active {
    color: #e5bb5f;
    background: #0b1a20;
    border-left: 2px solid #e5bb5f;
    padding-left: 26px;
}

/* Second level nested submenu */
.submenu-nested {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.show-nested > .submenu-nested {
    max-height: 300px;
}

/* Nested submenu items (Market, Instruments, STRF, etc.) */
.submenu-nested li a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    display: block;
    padding: 6px 20px 6px 42px;
    transition: color 0.15s, background 0.15s;
}

.submenu-nested li a:hover {
    color: #d6d3c3;
    background: #0b1a20;
}

/* Active nested item with gold accent line */
.submenu-nested li a.active {
    color: #e5bb5f;
    background: #0b1a20;
    border-left: 2px solid #e5bb5f;
    padding-left: 40px;
}

/* Menu toggle indicators */
.menu-toggle::after {
    content: '+';
    float: right;
    margin-right: 10px;
    font-weight: 300;
}

.show-submenu > .menu-toggle::after {
    content: '−';
}

.submenu-toggle::after {
    content: '›';
    float: right;
    margin-right: 10px;
    transition: transform 0.2s;
}

.show-nested > .submenu-toggle::after {
    transform: rotate(90deg);
}

/* Content area */
.content {
    flex: 1;
    background: #fff;
    overflow: hidden;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
