/* ============================================================================
   INVESTEC CORPORATE HUB — BRAND SKIN + SHELL
   ============================================================================
   Loaded via BrandConfiguration.custom_css_url = '/css/investec-hub.css' — only when the
   Investec Corporate Hub brand (product_name 'investec-hub') is active. Palette source: the
   Investec "Client intelligence platform" design set (Sep 2026) — near-black navigation
   #060A12, charcoal ink #292A2E / #30384A, warm canvas #F8F8F8, bronze accent #D9C39E,
   Inter for UI, Libre Caslon Text for the serif greeting.

   Two kinds of rule live here:
     1. Skin — token overrides (-rgb triplets and the hub-private tokens) that re-theme the
        brand-agnostic hub components in hub.css.
     2. Shell — the `ihub-*` classes used only by this brand's own chrome
        (Views/Brands/investec-hub/Shared/_Layout.cshtml) and its own Home composition.

   TOKEN RULE: override -rgb triplets, never the derived hex aliases. Brand primary/accent
   triplets come from the BrandConfiguration row, not from here.
   ============================================================================ */

/* Libre Caslon Text — OFL, self-hosted (latin subset). The design's serif display face. */
@font-face {
    font-family: "Libre Caslon Text";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/libre-caslon-text-400.woff2") format("woff2");
}
@font-face {
    font-family: "Libre Caslon Text";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/libre-caslon-text-400-italic.woff2") format("woff2");
}
@font-face {
    font-family: "Libre Caslon Text";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/libre-caslon-text-700.woff2") format("woff2");
}

:root {
    --hub-serif: "Libre Caslon Text", "Source Serif 4", Georgia, serif;
    --hub-ink-rgb: 41 42 46;              /* #292A2E — pills, panels, buttons */
    --ihub-nav-rgb: 6 10 18;              /* #060A12 — top navigation */
    --ihub-charcoal-rgb: 48 56 74;        /* #30384A — logo tile, secondary dark */
    --ihub-bronze-rgb: 217 195 158;       /* #D9C39E — restrained accent */

    /* Warm neutral canvas + charcoal type ramp from the design set. */
    --surface-secondary-rgb: 248 248 248; /* #F8F8F8 page canvas */
    --text-primary-rgb: 41 42 46;         /* #292A2E */
    --text-secondary-rgb: 80 82 88;       /* #505258 */
    --text-tertiary-rgb: 107 110 118;     /* #6B6E76 */
    --border-default-rgb: 229 231 235;
    --hub-radius: 12px;
}

/* ---- shell ------------------------------------------------------------------------------ */
.ihub-body { background: rgb(var(--surface-secondary-rgb)); color: rgb(var(--text-primary-rgb)); }
.ihub-nav {
    position: sticky; top: 0; z-index: 30;
    height: 80px; padding: 0 48px;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    background: rgb(var(--ihub-nav-rgb)); color: rgb(var(--text-inverse-rgb));
}
.ihub-nav-left, .ihub-nav-right { display: flex; align-items: center; gap: 40px; min-width: 0; }
.ihub-nav-right { gap: 20px; }
.ihub-logo-link { display: inline-flex; align-items: center; height: 28px; }
.ihub-logo { height: 28px; width: auto; filter: brightness(0) invert(1); }
.ihub-tabs { display: flex; align-items: center; gap: 32px; }
.ihub-tab {
    position: relative; padding: 6px 0;
    font-size: 0.875rem; font-weight: 500; color: rgb(var(--text-inverse-rgb) / 0.62); text-decoration: none;
    transition: color 0.15s ease;
}
.ihub-tab:hover { color: rgb(var(--text-inverse-rgb)); }
.ihub-tab.active { color: rgb(var(--text-inverse-rgb)); }
.ihub-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: rgb(var(--text-inverse-rgb)); }
.ihub-icon-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px;
    color: rgb(var(--text-inverse-rgb) / 0.75); background: transparent; border: 0; cursor: pointer;
}
.ihub-icon-btn:hover { color: rgb(var(--text-inverse-rgb)); background: rgb(var(--text-inverse-rgb) / 0.08); }
.ihub-icon-btn svg { width: 20px; height: 20px; }
.ihub-status {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
    border: 1px solid rgb(var(--ihub-bronze-rgb) / 0.5); font-size: 0.8125rem; font-weight: 500;
    color: rgb(var(--ihub-bronze-rgb)); background: transparent; cursor: pointer;
}
.ihub-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--ihub-bronze-rgb)); }
.ihub-divider { width: 1px; height: 32px; background: rgb(var(--text-inverse-rgb) / 0.15); }
.ihub-user { display: flex; align-items: center; gap: 12px; text-align: right; }
.ihub-user-name { font-size: 0.875rem; font-weight: 500; line-height: 1.2; color: rgb(var(--text-inverse-rgb)); }
.ihub-user-corp { font-size: 0.75rem; color: rgb(var(--text-inverse-rgb) / 0.6); line-height: 1.2; }
.ihub-avatar {
    width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: rgb(var(--ihub-charcoal-rgb)); color: rgb(var(--text-inverse-rgb)); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em;
}
.ihub-menu {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 260px;
    background: rgb(var(--surface-primary-rgb)); color: rgb(var(--text-primary-rgb));
    border: 1px solid rgb(var(--border-default-rgb)); border-radius: 10px; padding: 8px;
    box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.35); z-index: 40;
}
.ihub-menu-title { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--text-tertiary-rgb)); padding: 8px 10px 6px; }
.ihub-menu-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 8px 10px; border-radius: 6px; font-size: 0.875rem; color: rgb(var(--text-primary-rgb)); text-decoration: none;
}
.ihub-menu-item:hover { background: rgb(var(--surface-secondary-rgb)); }
.ihub-menu-item.active { font-weight: 600; }
.ihub-menu-item .hub-meta { font-variant-numeric: tabular-nums; }
.ihub-menu-sep { height: 1px; background: rgb(var(--border-default-rgb)); margin: 6px 4px; }
.ihub-footer { padding: 32px 48px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: rgb(var(--text-tertiary-rgb)); font-size: 0.75rem; border-top: 1px solid rgb(var(--border-default-rgb)); }
.ihub-footer-brand { display: inline-flex; align-items: center; gap: 10px; color: rgb(var(--text-secondary-rgb)); }
.ihub-footer-brand img { height: 18px; }
@media (max-width: 1024px) { .ihub-nav { padding: 0 24px; gap: 16px; } .ihub-nav-left { gap: 24px; } .ihub-tabs { gap: 20px; } .ihub-user-text, .ihub-divider { display: none; } }
@media (max-width: 640px) { .ihub-nav { height: 64px; } .ihub-tabs { display: none; } .ihub-footer { flex-direction: column; align-items: flex-start; } }

/* ---- Investec home composition ------------------------------------------------------------ */
.ihub-desk-card { min-width: 320px; display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.ihub-desk-mark {
    width: 44px; height: 44px; border-radius: 50%; flex: none;
    background: rgb(var(--ihub-charcoal-rgb)); display: inline-flex; align-items: center; justify-content: center;
}
.ihub-desk-mark img { height: 20px; filter: brightness(0) invert(1); }
.ihub-desk-text { flex: 1; min-width: 0; }
.ihub-desk-title { font-size: 0.9375rem; font-weight: 600; color: rgb(var(--text-primary-rgb)); margin: 0; }
.ihub-desk-sub { font-size: 0.75rem; color: rgb(var(--text-tertiary-rgb)); margin: 2px 0 0; }

/* The greeting and section titles in the serif face per the design; body stays Inter/Hanken. */
.ihub-body .hub-greeting { color: rgb(var(--text-primary-rgb)); }
.ihub-body .hub-banner-eyebrow, .ihub-body .hub-cta-text { color: rgb(var(--ihub-bronze-rgb)); }
.ihub-body .hub-btn--accent { background: rgb(var(--ihub-bronze-rgb)); color: rgb(var(--ihub-nav-rgb)); }
.ihub-body .hub-fab { border-color: rgb(var(--ihub-bronze-rgb) / 0.5); box-shadow: 0 10px 30px -10px rgb(var(--ihub-nav-rgb) / 0.7), 0 0 0 6px rgb(var(--ihub-bronze-rgb) / 0.14); background: rgb(var(--ihub-nav-rgb)); }
.ihub-body .hub-fab-icon { color: rgb(var(--ihub-bronze-rgb)); }
.ihub-body .hub-banner, .ihub-body .hub-cta { background: rgb(var(--ihub-nav-rgb)); }
.ihub-body .hub-reader blockquote { border-left-color: rgb(var(--ihub-bronze-rgb)); }
