/* ================================================================
   InvestidorDigital.BR — Global Stylesheet
   Layout: BeInCrypto-style three-column news portal
   ================================================================ */

/* --- Variables --- */
:root {
    --black:      #0a0a0a;
    --surface:    #ffffff;
    --bg:         #f6f7f8;
    --text:       #0f172a;
    --muted:      #64748b;
    --border:     #e2e8f0;
    --green:      #16a34a;
    --green-lt:   #dcfce7;
    --red:        #dc2626;
    --red-lt:     #fee2e2;
    --gold:       #d97706;
    --radius:     6px;
    --radius-md:  10px;
    --shadow-sm:  0 1px 3px rgba(0,0,0,.07);
    --shadow-md:  0 4px 16px rgba(0,0,0,.10);
    --font:       'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.16s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--surface);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; }


/* ================================================================
   HEADER (dark)
   ================================================================ */

.site-header {
    background: var(--black);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
    position: sticky;
    top: 0;
    z-index: 200;
}

.header-inner {
    display: flex;
    align-items: center;
    height: 62px;
    gap: 0;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 32px;
    flex-shrink: 0;
    text-decoration: none;
}

.logo__mark {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1;
}

.logo__mark span {
    display: inline-block;
    background: var(--green);
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    vertical-align: middle;
    margin-inline: 2px;
}

/* Navigation */
.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.site-nav__link {
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,.7);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color: #fff;
    background: rgba(255,255,255,.1);
}

/* Header right */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    background: var(--green);
    color: #fff;
}

.header-btn:hover { background: #15803d; }

.header-btn--ghost {
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.8);
}
.header-btn--ghost:hover { background: rgba(255,255,255,.18); color: #fff; }

.header-icon-btn {
    width: 36px; height: 36px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.8);
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.header-icon-btn:hover { background: rgba(255,255,255,.18); color: #fff; }


/* ================================================================
   TICKER BAR
   ================================================================ */

.ticker-bar {
    background: #111827;
    border-bottom: 1px solid rgba(255,255,255,.06);
    overflow: hidden;
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}
.ticker-inner::-webkit-scrollbar { display: none; }

.ticker-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-right: 1px solid rgba(255,255,255,.06);
    white-space: nowrap;
    flex-shrink: 0;
    transition: background var(--transition);
    cursor: pointer;
}
.ticker-item:first-child { padding-left: 0; }
.ticker-item:hover { background: rgba(255,255,255,.04); }

.ticker-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255,255,255,.1);
}

.ticker-name  { font-size: 0.78rem; font-weight: 700; color: #e2e8f0; }
.ticker-price { font-size: 0.78rem; color: #94a3b8; }
.ticker-up    { font-size: 0.72rem; font-weight: 600; color: #4ade80; }
.ticker-down  { font-size: 0.72rem; font-weight: 600; color: #f87171; }


/* ================================================================
   MAIN GRID — three columns
   ================================================================ */

.outer-wrapper {
    max-width: 1400px;
    margin-inline: auto;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    min-height: 80vh;
}

.main-grid {
    display: grid;
    grid-template-columns: 270px 1fr 300px;
    align-items: start;
}


/* ================================================================
   LEFT SIDEBAR — breaking news
   ================================================================ */

.sidebar-left {
    border-right: 1px solid var(--border);
    padding: 20px 16px;
    position: sticky;
    top: 62px;
    max-height: calc(100vh - 62px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.sidebar-left__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}

.live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--red);
    animation: pulse-dot 1.5s infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* News feed items */
.news-feed-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
}
.news-feed-item:last-child { border-bottom: none; }
.news-feed-item:hover .news-feed-item__title { color: var(--green); }

.news-feed-item__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.news-feed-item__cat {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.news-feed-item__dot { color: var(--border); font-size: 0.6rem; }

.news-feed-item__time {
    font-size: 0.68rem;
    color: var(--muted);
}

.news-feed-item__title {
    font-size: 0.845rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    transition: color var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ================================================================
   CENTER COLUMN
   ================================================================ */

.content-center {
    padding: 20px 24px;
    border-right: 1px solid var(--border);
    min-width: 0;
}

/* Category filter tabs */
.category-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--muted);
    transition: all var(--transition);
}

.tab-btn:hover  { border-color: var(--text); color: var(--text); }
.tab-btn.is-active {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

/* Featured article */
.featured-article {
    margin-bottom: 32px;
}

.featured-article__image {
    width: 100%;
    aspect-ratio: 16/7;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
    margin-bottom: 18px;
    background: var(--bg);
}

.featured-article__author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.author-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar-img {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg);
}

.author-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.verified-icon {
    width: 14px; height: 14px;
    color: var(--green);
    display: inline-block;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-article__title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 12px;
    transition: color var(--transition);
    cursor: pointer;
}
.featured-article__title:hover { color: var(--green); }

.featured-article__excerpt {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.65;
}

.featured-article__excerpt li {
    list-style: disc;
    margin-left: 18px;
    margin-bottom: 4px;
}

/* Article divider */
.section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 20px;
}

.section-divider__title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    white-space: nowrap;
}

.section-divider__line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Article list (below featured) */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.article-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.article-row:last-child { border-bottom: none; }
.article-row:hover .article-row__title { color: var(--green); }

.article-row__thumb {
    width: 110px;
    height: 72px;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--bg);
    flex-shrink: 0;
}

.article-row__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.article-row__title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    transition: color var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-row__excerpt {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ================================================================
   BADGES / TAGS
   ================================================================ */

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge--green  { background: var(--green-lt); color: #166534; }
.badge--red    { background: var(--red-lt);   color: #991b1b; }
.badge--gray   { background: var(--bg);       color: var(--muted); border: 1px solid var(--border); }
.badge--blue   { background: #dbeafe; color: #1d4ed8; }
.badge--purple { background: #ede9fe; color: #6d28d9; }
.badge--gold   { background: #fef3c7; color: #92400e; }
.badge--black  { background: var(--text); color: #fff; }

.time-stamp {
    font-size: 0.68rem;
    color: var(--muted);
}


/* ================================================================
   RIGHT SIDEBAR
   ================================================================ */

.sidebar-right {
    padding: 20px 16px;
    position: sticky;
    top: 62px;
    max-height: calc(100vh - 62px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

/* Video widget */
.video-widget {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

.video-widget__thumb-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
}

.video-widget__thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background: var(--bg);
}

.video-widget__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.3);
}

.play-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    display: flex; align-items: center; justify-content: center;
}

.play-btn svg { width: 16px; height: 16px; fill: var(--text); margin-left: 2px; }

.video-widget__author {
    font-size: 0.72rem;
    color: var(--muted);
    margin-bottom: 5px;
}

.video-widget__title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 8px;
}

.video-widget__link {
    font-size: 0.78rem;
    color: var(--green);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.video-widget__link:hover { text-decoration: underline; }

/* Popular section */
.sidebar-section__title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.popular-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.popular-item:last-child { border-bottom: none; }
.popular-item:hover .popular-item__title { color: var(--green); }

.popular-item__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.popular-item__title {
    font-size: 0.845rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    transition: color var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ================================================================
   ARTICLE PAGE LAYOUT
   ================================================================ */

.article-outer {
    max-width: 1400px;
    margin-inline: auto;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.article-page-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    align-items: start;
}

.article-page-main {
    padding: 32px 40px;
    border-right: 1px solid var(--border);
    min-width: 0;
}

.article-page-sidebar {
    padding: 24px 20px;
    position: sticky;
    top: 62px;
    max-height: calc(100vh - 62px);
    overflow-y: auto;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.breadcrumbs a { color: var(--green); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs__sep { color: var(--border); }

/* Article header */
.article-header { margin-bottom: 28px; }

.article-header__tags {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.article-headline {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
    color: var(--text);
}

.article-standfirst {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.7;
    border-left: 3px solid var(--green);
    padding-left: 16px;
    margin-bottom: 20px;
}

.article-byline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
    gap: 12px;
    flex-wrap: wrap;
}

.byline-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.byline-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg);
}

.byline-name { font-size: 0.85rem; font-weight: 700; }
.byline-role { font-size: 0.75rem; color: var(--muted); }

.byline-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--muted);
}

/* Article cover image */
.article-cover {
    width: 100%;
    aspect-ratio: 16/7;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
    margin-bottom: 32px;
    background: var(--bg);
}

/* Article body typography */
.article-body {
    font-size: 0.975rem;
    line-height: 1.8;
    color: #374151;
}

.article-body h2 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 36px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--green-lt);
}

.article-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 24px 0 10px;
}

.article-body p { margin-bottom: 16px; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: #15803d; }

.article-body ul, .article-body ol {
    list-style: revert;
    padding-left: 24px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Callout boxes */
.callout {
    border-left: 4px solid var(--green);
    background: var(--green-lt);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #166534;
}
.callout--red  { border-color: var(--red);  background: var(--red-lt);  color: #7f1d1d; }
.callout--gold { border-color: var(--gold); background: #fef3c7; color: #78350f; }

/* Data table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.data-table th {
    background: var(--bg);
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    border-bottom: 2px solid var(--border);
}
.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: #fafafa; }
.positive { color: #16a34a; font-weight: 600; }
.negative { color: var(--red); font-weight: 600; }
.neutral  { color: var(--muted); }


/* ================================================================
   ARTICLE PAGE SIDEBAR WIDGETS
   ================================================================ */

.widget {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.widget:last-child { border-bottom: none; margin-bottom: 0; }

.widget__title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* Author widget */
.author-widget { text-align: center; }
.author-widget__avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    background: var(--bg);
}
.author-widget__name { font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.author-widget__bio  { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

/* Related article widget */
.widget-article {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.widget-article:last-child { border-bottom: none; padding-bottom: 0; }
.widget-article:hover .widget-article__title { color: var(--green); }

.widget-article__thumb {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--bg);
}

.widget-article__title {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    transition: color var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 3px;
}
.widget-article__meta { font-size: 0.7rem; color: var(--muted); }

/* Newsletter widget */
.widget-nl-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    background: var(--bg);
    color: var(--text);
    outline: none;
    margin-bottom: 8px;
    transition: border-color var(--transition);
}
.widget-nl-input:focus { border-color: var(--green); background: var(--surface); }
.widget-nl-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }

/* Tags */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}
.tag:hover { background: var(--green-lt); border-color: var(--green); color: #166534; }


/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all var(--transition);
    line-height: 1;
}
.btn--primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.btn--primary:hover { background: #15803d; border-color: #15803d; }

.btn--outline {
    background: transparent;
    color: var(--green);
    border-color: var(--green);
}
.btn--outline:hover { background: var(--green-lt); }

.btn--dark {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}
.btn--dark:hover { background: #1e293b; }

.btn--block { width: 100%; }
.btn--sm    { padding: 6px 12px; font-size: 0.78rem; }
.btn--lg    { padding: 12px 24px; font-size: 0.95rem; }


/* ================================================================
   CONTENT PAGES (About, Contact, Privacy)
   ================================================================ */

.page-outer {
    max-width: 1400px;
    margin-inline: auto;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.page-hero {
    padding: 48px 40px 40px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.page-hero__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green);
    margin-bottom: 10px;
}

.page-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 12px;
}

.page-hero__desc {
    font-size: 1rem;
    color: var(--muted);
    max-width: 560px;
    line-height: 1.7;
}

.page-content {
    padding: 48px 40px 80px;
}

/* About & Privacy body */
.content-body { max-width: 700px; }

.content-body h2 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 36px 0 12px;
    color: var(--text);
}
.content-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 20px 0 8px;
    color: var(--text);
}
.content-body p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 14px;
}
.content-body ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.7;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    transition: box-shadow var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); }
.team-card__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; background: var(--bg); }
.team-card__name  { font-weight: 700; font-size: 0.9rem; margin-bottom: 3px; }
.team-card__role  { font-size: 0.78rem; color: var(--green); font-weight: 600; margin-bottom: 10px; }
.team-card__bio   { font-size: 0.78rem; color: var(--muted); line-height: 1.55; }

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.value-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}
.value-card__icon  { width: 32px; height: 32px; margin-bottom: 12px; }
.value-card__title { font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.value-card__desc  { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}
.form-group    { margin-bottom: 18px; }
.form-label    { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 5px; color: var(--text); }
.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color var(--transition), background var(--transition);
    font-family: var(--font);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--green);
    background: var(--surface);
}
.form-textarea { resize: vertical; min-height: 130px; }

.contact-info-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
}
.contact-info-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 18px; }

.contact-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-item__icon { width: 36px; height: 36px; border-radius: var(--radius); background: var(--green-lt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item__label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.contact-item__value { font-size: 0.85rem; font-weight: 600; }


/* ================================================================
   NEWSLETTER SECTION
   ================================================================ */

.newsletter-section {
    background: var(--black);
    color: #fff;
    padding: 48px 40px;
}

.newsletter-section__inner {
    max-width: 1400px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.newsletter-section__title { font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.newsletter-section__desc  { opacity: .75; font-size: 0.9rem; line-height: 1.6; }

.nl-form { display: flex; gap: 8px; min-width: 360px; }
.nl-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: var(--radius);
    border: none;
    font-size: 0.875rem;
    background: rgba(255,255,255,.12);
    color: #fff;
    outline: none;
    transition: background var(--transition);
}
.nl-input::placeholder { color: rgba(255,255,255,.45); }
.nl-input:focus { background: rgba(255,255,255,.2); }


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

.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 52px 0 0;
}

.footer-inner {
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer-brand__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand__name { font-weight: 700; color: #f1f5f9; font-size: 0.9rem; }
.footer-brand__desc { font-size: 0.85rem; line-height: 1.7; max-width: 280px; }

.footer-disclaimer {
    margin-top: 14px;
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.6;
    padding: 10px;
    background: rgba(255,255,255,.04);
    border-radius: var(--radius);
    border-left: 3px solid #334155;
}

.footer-col__title {
    color: #f1f5f9;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 14px;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.85rem; color: #94a3b8; transition: color var(--transition); }
.footer-links a:hover { color: #e2e8f0; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    font-size: 0.78rem;
    gap: 12px;
    flex-wrap: wrap;
}
.footer-bottom__links { display: flex; gap: 18px; }
.footer-bottom__links a { color: #475569; transition: color var(--transition); }
.footer-bottom__links a:hover { color: #94a3b8; }


/* ================================================================
   UTILITY
   ================================================================ */

.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--muted); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.flex   { display: flex; }
.align-center { align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }


/* ================================================================
   MOBILE NAV TOGGLE (checkbox hack — CSS only)
   ================================================================ */

.nav-toggle { display: none; }

.nav-toggle-btn {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.1);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    margin-right: 4px;
    flex-shrink: 0;
}
.nav-toggle-btn:hover { background: rgba(255,255,255,.18); }
.nav-toggle-btn svg { width: 18px; height: 18px; }
.nav-toggle-btn .icon-close { display: none; }
.nav-toggle:checked ~ .header-inner .nav-toggle-btn .icon-open  { display: none; }
.nav-toggle:checked ~ .header-inner .nav-toggle-btn .icon-close { display: block; }


/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1100px) {
    .main-grid           { grid-template-columns: 240px 1fr; }
    .sidebar-right       { display: none; }
    .article-page-grid   { grid-template-columns: 1fr; }
    .article-page-sidebar { position: static; max-height: none; }
    .footer-grid         { grid-template-columns: 1fr 1fr; gap: 24px; }
    .contact-grid        { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    /* Show hamburger, hide desktop nav until toggled */
    .nav-toggle-btn { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        background: var(--black);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 12px 12px;
        border-bottom: 1px solid rgba(255,255,255,.1);
        box-shadow: var(--shadow-md);
        max-height: calc(100vh - 62px);
        overflow-y: auto;
        z-index: 199;
    }
    .nav-toggle:checked ~ .header-inner .site-nav { display: flex; }
    .site-nav__link {
        padding: 12px 14px;
        font-size: 0.95rem;
        border-radius: var(--radius);
    }
    .site-header { position: sticky; }
    .header-inner { position: relative; }
}

@media (max-width: 768px) {
    .main-grid           { grid-template-columns: 1fr; }
    .sidebar-left        { display: none; }
    .newsletter-section__inner { grid-template-columns: 1fr; }
    .newsletter-section  { padding: 32px 20px; }
    .newsletter-section__title { font-size: 1.15rem; }
    .nl-form             { min-width: auto; flex-direction: column; }
    .nl-form .btn        { width: 100%; }
    .team-grid           { grid-template-columns: 1fr; }
    .values-grid         { grid-template-columns: 1fr; }
    .footer-grid         { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
    .site-footer         { padding-top: 36px; }
    .footer-inner        { padding-inline: 16px; }
    .footer-bottom       { flex-direction: column; align-items: flex-start; gap: 10px; }

    /* Header */
    .header-inner        { padding-inline: 14px; height: 58px; gap: 6px; }
    .logo                { margin-right: 0; }
    .logo__mark          { font-size: 1.05rem; }
    .header-right        { gap: 6px; }
    .header-btn          { padding: 6px 10px; font-size: 0.74rem; }
    .site-nav            { top: 58px; max-height: calc(100vh - 58px); }

    /* Ticker — tighter spacing */
    .ticker-inner        { padding-inline: 14px; }
    .ticker-item         { padding: 7px 12px; gap: 5px; }

    /* Center content */
    .content-center      { padding: 16px 14px; }
    .featured-article__title { font-size: 1.2rem; }
    .featured-article__image { aspect-ratio: 16/9; margin-bottom: 14px; }
    .featured-article    { margin-bottom: 24px; }
    .category-tabs       { gap: 5px; margin-bottom: 18px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 2px; }
    .category-tabs::-webkit-scrollbar { display: none; }
    .tab-btn             { padding: 5px 12px; font-size: 0.78rem; flex-shrink: 0; }

    /* Article rows — smaller thumb */
    .article-row         { grid-template-columns: 92px 1fr; gap: 10px; padding: 14px 0; }
    .article-row__thumb  { width: 92px; height: 64px; }
    .article-row__title  { font-size: 0.875rem; }
    .article-row__excerpt { font-size: 0.78rem; -webkit-line-clamp: 2; }

    /* Article pages */
    .article-page-main   { padding: 20px 14px; }
    .article-headline    { font-size: 1.5rem; }
    .article-standfirst  { font-size: 0.95rem; padding-left: 12px; }
    .article-cover       { aspect-ratio: 16/9; margin-bottom: 22px; }
    .article-body        { font-size: 0.95rem; }
    .article-body h2     { font-size: 1.2rem; margin-top: 28px; }
    .article-byline      { gap: 8px; padding: 12px 0; margin-bottom: 20px; }
    .byline-meta         { font-size: 0.72rem; gap: 8px; flex-wrap: wrap; }
    .data-table          { font-size: 0.78rem; display: block; overflow-x: auto; }
    .data-table th, .data-table td { padding: 8px 10px; white-space: nowrap; }

    /* Content pages */
    .page-content        { padding: 28px 16px 48px; }
    .page-hero           { padding: 28px 16px; }
}

@media (max-width: 560px) {
    .header-icon-btn     { display: none; }
    .header-btn          { padding: 6px 9px; font-size: 0.7rem; }
    .logo__mark          { font-size: 0.95rem; }
    .logo__mark span     { font-size: 0.65rem; padding: 1px 4px; }

    /* Tighter list rows on small phones */
    .article-row         { grid-template-columns: 78px 1fr; gap: 10px; }
    .article-row__thumb  { width: 78px; height: 58px; }
    .article-row__excerpt { display: none; }

    .featured-article__title { font-size: 1.1rem; }
    .featured-article__excerpt { font-size: 0.85rem; }

    .ticker-name, .ticker-price { font-size: 0.72rem; }
    .ticker-up, .ticker-down    { font-size: 0.68rem; }
    .ticker-item                { padding: 7px 10px; }

    .article-headline    { font-size: 1.3rem; }
    .callout             { padding: 12px 14px; font-size: 0.88rem; }
}
