
/* =========================================
   TINAFOMO - COMPLETE WEBSITE STYLESHEET
   Version 6 - Compact Logo Header
   ========================================= */

:root {
    --navy: #122236;
    --red: #d4424a;
    --ink: #14243b;
    --muted: #657389;
    --line: #e1e7ee;
    --pale: #f5f8fb;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    background: #f8fafc;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 3px solid #1475d4;
    outline-offset: 2px;
}

/* =========================================
   HEADER AND LOGO
   ========================================= */

.site-header {
    background: #ffffff;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.header-main {
    max-width: 1540px;
    margin: auto;
    padding: 6px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 0;
}

.brand-logo {
    display: block;
    width: 200px;
    max-width: 100%;
    flex-shrink: 1;
    text-decoration: none;
}

.brand-logo img {
    display: block;
    width: 100%;
    height: auto;
}

/* Text branding fallback */

.brand {
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -1.5px;
    text-decoration: none;
    color: var(--navy);
}

.brand span,
.site-footer strong span {
    color: #f16b75;
}

.brand-caption {
    font-size: 10px;
    letter-spacing: 1.4px;
    color: #657389;
    font-weight: 700;
}

.header-clock {
    margin-left: auto;
    color: #41516a;
    font-size: 12px;
    white-space: nowrap;
}

/* =========================================
   TOP NAVIGATION
   ========================================= */

.top-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.top-nav-inner {
    max-width: 1540px;
    margin: auto;
    padding: 0 26px;
    display: flex;
    gap: 27px;
    overflow-x: auto;
}

.top-nav a {
    white-space: nowrap;
    padding: 14px 2px;
    font-size: 13px;
    text-decoration: none;
    color: #41516a;
    font-weight: 700;
    border-bottom: 3px solid transparent;
}

.top-nav a:hover,
.top-nav a.selected {
    border-bottom-color: #2683ee;
    color: #0d4f9c;
}

/* =========================================
   MAIN WEBSITE LAYOUT
   ========================================= */

.app-shell {
    max-width: 1540px;
    margin: auto;
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr);
    min-height: calc(100vh - 130px);
}

/* =========================================
   LEFT SIDEBAR
   ========================================= */

.side-menu {
    padding: 25px 14px;
    background: #f0f4f8;
    border-right: 1px solid var(--line);
}

.side-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #8b98a9;
    padding: 0 12px 10px;
}

.side-menu > a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px;
    border-radius: 7px;
    text-decoration: none;
    color: #465771;
    font-size: 13px;
}

.side-menu > a:hover,
.side-menu > a:first-of-type {
    background: #dceaff;
    color: #0b61c5;
}

.side-menu > a span {
    width: 20px;
    text-align: center;
    font-size: 17px;
}

.side-note {
    margin-top: 35px;
    padding: 16px 12px;
    border-top: 1px solid #d7e1eb;
    font-size: 12px;
}

.side-note p {
    margin: 7px 0;
}

.side-note small {
    color: var(--muted);
    line-height: 1.5;
}

/* =========================================
   DASHBOARD
   ========================================= */

.dashboard {
    padding: 25px 24px 48px;
    min-width: 0;
}

.page-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 1.3px;
    font-weight: 800;
    color: #b24a55;
}

.page-intro h1 {
    font-family: Georgia, serif;
    font-size: 43px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin: 4px 0;
}

.page-intro p {
    color: #5d6c80;
    margin: 0;
    font-size: 14px;
}

.search-preview {
    color: #7d899b;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 12px 18px;
    font-size: 12px;
    min-width: 220px;
}

.preview-banner {
    background: #fff5df;
    border-left: 4px solid #e9ad2b;
    padding: 10px 14px;
    margin: 18px 0;
    font-size: 12px;
    color: #73551c;
}

/* =========================================
   MARKET TICKER TILES
   ========================================= */

.market-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 18px;
}

.market-tile {
    background: #ffffff;
    text-decoration: none;
    padding: 13px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.market-tile span {
    font-size: 11px;
    font-weight: 700;
}

.market-tile strong {
    font-size: 18px;
}

.market-tile small {
    font-size: 11px;
    color: #1267ad;
}

.market-tile:hover {
    background: #f2f7fd;
}

/* =========================================
   FEATURED STORY
   ========================================= */

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(245px, 1fr);
    gap: 14px;
}

.feature-card,
.takeaways,
.data-panel,
.news-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.feature-photo {
    min-height: 310px;
    display: flex;
    align-items: end;
    background:
        linear-gradient(
            90deg,
            rgba(4, 15, 29, 0.94),
            rgba(4, 15, 29, 0.6),
            rgba(5, 22, 44, 0.18)
        ),
        radial-gradient(
            circle at 82% 32%,
            #277db1,
            #0c2745 47%,
            #08192a
        );
    position: relative;
}

.feature-photo::after {
    content: "WORLD  •  NEWS";
    position: absolute;
    right: 6%;
    top: 20%;
    font-size: clamp(24px, 4vw, 55px);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    transform: rotate(-8deg);
    pointer-events: none;
}

.feature-overlay {
    padding: 25px;
    color: #ffffff;
    max-width: 590px;
    z-index: 1;
}

.red-label {
    display: inline-block;
    background: #d53d4b;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 6px 9px;
    border-radius: 3px;
}

.feature-overlay h2 {
    font-family: Georgia, serif;
    font-size: clamp(26px, 3vw, 37px);
    line-height: 1.1;
    margin: 14px 0;
}

.feature-overlay p {
    font-size: 13px;
    line-height: 1.5;
    color: #e2e9f0;
    max-width: 490px;
}

.feature-overlay small {
    color: #becbd8;
}

/* =========================================
   KEY TAKEAWAYS
   ========================================= */

.takeaways {
    padding: 20px;
}

.takeaways h2 {
    font-size: 17px;
    margin: 0 0 10px;
}

.takeaways p,
.takeaways li {
    font-size: 13px;
    line-height: 1.6;
    color: #4d5c71;
}

.takeaways ul {
    padding-left: 20px;
}

.takeaways li {
    margin-bottom: 10px;
}

.takeaways small {
    font-size: 11px;
    color: #8995a5;
}

/* =========================================
   NEWS SECTION
   ========================================= */

.news-section {
    margin-top: 23px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 11px;
}

.section-title h2 {
    font-size: 22px;
    font-family: Georgia, serif;
    margin: 0;
}

.section-title span {
    font-size: 11px;
    color: #748196;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.news-visual {
    height: 102px;
    background: linear-gradient(140deg, #203e61, #5586a7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card:nth-child(2) .news-visual {
    background: linear-gradient(140deg, #293b5b, #9d6272);
}

.news-card:nth-child(3) .news-visual {
    background: linear-gradient(140deg, #294f59, #79a19b);
}

.news-card:nth-child(4) .news-visual {
    background: linear-gradient(140deg, #1e3856, #587bc5);
}

.news-card:nth-child(5) .news-visual {
    background: linear-gradient(140deg, #203a39, #648e76);
}

.news-visual span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    letter-spacing: 1.5px;
    font-weight: 800;
}

.news-card-body {
    padding: 12px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.category-tag {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.8px;
    color: var(--red);
}

.news-card h3 {
    font-size: 14px;
    line-height: 1.32;
    margin: 8px 0;
}

.news-card p {
    font-size: 12px;
    line-height: 1.5;
    color: #5c6c80;
    margin: 0 0 13px;
}

.news-meta {
    border-top: 1px solid var(--line);
    padding-top: 9px;
    margin-top: auto;
    color: #8490a0;
    font-size: 10px;
}

.news-card-body > a {
    font-size: 11px;
    color: #1267ad;
    margin-top: 8px;
}

/* =========================================
   LOWER DASHBOARD PANELS
   ========================================= */

.lower-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 20px;
}

.data-panel {
    padding: 18px;
}

.data-panel .section-title h2 {
    font-size: 18px;
}

/* =========================================
   WATCHLIST TABLE
   ========================================= */

.watch-head,
.watch-table > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 10px;
    font-size: 12px;
}

.watch-head {
    background: #f0f4f8;
    color: #748196;
    font-size: 11px;
}

.watch-table > a {
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.watch-table > a:hover,
.resource-links a:hover {
    background: #f2f7fc;
}

.watch-table > a span {
    color: #1267ad;
}

/* =========================================
   RESOURCE LINKS
   ========================================= */

.resource-links {
    display: flex;
    flex-direction: column;
}

.resource-links a {
    padding: 13px 8px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    font-size: 13px;
    color: #1267ad;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    background: var(--navy);
    color: #c5d0df;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 25px max(24px, calc((100vw - 1492px) / 2));
    font-size: 12px;
}

.site-footer strong {
    color: #ffffff;
    font-size: 19px;
}

.site-footer p {
    margin: 7px 0;
}

/* =========================================
   RESPONSIVE - MEDIUM SCREENS
   ========================================= */

@media (max-width: 1250px) {
    .news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .market-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================
   RESPONSIVE - TABLETS
   ========================================= */

@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .side-menu {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr 280px;
    }

    .dashboard {
        padding: 20px;
    }

    .news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================
   RESPONSIVE - MOBILE
   ========================================= */

@media (max-width: 700px) {
    .header-main {
        padding: 6px 14px;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .brand-logo {
        width: 145px;
    }

    .brand {
        font-size: 24px;
    }

    .brand-caption {
        display: none;
    }

    .header-clock {
        width: auto;
        margin-left: auto;
        font-size: 10px;
        white-space: normal;
        text-align: right;
    }

    .top-nav-inner {
        padding: 0 14px;
        gap: 20px;
    }

    .dashboard {
        padding: 18px 14px 30px;
    }

    .page-intro {
        display: block;
    }

    .page-intro h1 {
        font-size: 35px;
    }

    .page-intro p {
        font-size: 13px;
    }

    .search-preview {
        display: none;
    }

    .market-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .market-tile {
        padding: 10px;
    }

    .market-tile strong {
        font-size: 16px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .feature-photo {
        min-height: 290px;
    }

    .feature-overlay {
        padding: 18px;
    }

    .feature-overlay h2 {
        font-size: 28px;
    }

    .takeaways {
        padding: 16px;
    }

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lower-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 20px;
    }

    .site-footer {
        display: block;
        padding: 22px 14px;
    }
}

/* =========================================
   RESPONSIVE - SMALL PHONES
   ========================================= */

@media (max-width: 440px) {
    .market-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
    }

    .news-visual {
        height: 100%;
        min-height: 135px;
    }

    .news-visual span {
        font-size: 10px;
        text-align: center;
    }

    .news-card-body {
        padding: 12px;
    }

    .news-card h3 {
        font-size: 15px;
    }

    .news-card p {
        font-size: 12px;
    }

    .section-title span {
        display: none;
    }
}
