/* ============================================================
   AlkenFund.Web2 — fund-site additions on top of site.css
   site.css is kept in sync with AlkenAM.web; put alken-fund
   specific classes here.
   ============================================================ */

/* The page itself must never scroll horizontally; anything wider than the viewport is a bug
   (wide tables get their own .table-scroll containers). clip = hidden without becoming a
   scroll container. */
html, body {
    overflow-x: clip;
}

/* ---------- Global smoothness ---------- */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Every interactive element eases its state changes; more specific rules still override. */
a, button, select, input[type="search"], input[type="text"] {
    transition: color .18s var(--ease-out), background-color .18s var(--ease-out),
                border-color .18s var(--ease-out), box-shadow .18s var(--ease-out),
                opacity .18s var(--ease-out);
}

::selection {
    background: color-mix(in oklab, var(--alken) 18%, transparent);
}

/* ---------- Typography: no monospace UI labels ----------
   site.css uses a monospace face for eyebrows, chips, pills, table heads and dates. The fund
   site keeps the small-caps rhythm (letter-spacing/uppercase) but sets it in the sans face. */
:root {
    --mono: var(--sans);
}

/* ---------- Section headings: title + short brand rule (V1 / alken-am.com style) ----------
   No running numbers, no dash before them and no full-width rules above/below the title. */
.section-num {
    justify-content: flex-start;
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 26px;
}

.section-num::before,
.section-num::after,
.section-num__n {
    display: none;
}

.section-num__title {
    position: relative;
    padding-bottom: 12px;
    font-weight: 500;
}

.section-num__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 2px;
    background: var(--alken);
}

/* ---------- Feature lists: arrow bullets instead of the left bar ---------- */
.feature-list {
    gap: 12px;
}

.feature-list li {
    position: relative;
    border-left: 0;
    padding-left: 26px;
    font-size: 14px;
    line-height: 1.55;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5em;
    width: 16px;
    height: 12px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14' fill='none' stroke='%23740232' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M1 7h17M12 1.5 18 7l-6 5.5'/></svg>") no-repeat center / contain;
}

/* ---------- Selects: pill with an SVG chevron instead of the native arrow ---------- */
.fund-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    border-radius: 999px;
    background-color: var(--paper);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23740232' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1.5l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    cursor: pointer;
}

.fund-select:hover {
    border-color: var(--ink-3);
}

/* ---------- Footer ---------- */
/* One-row light footer; layout and type live in editorial.css (.fund-footer__*). */
.fund-footer__linkedin {
    display: inline-flex;
    line-height: 0;
}

/* ---------- Top announcement bar (culture / country / investor) ---------- */
.topbar {
    background: var(--ink);
    color: var(--bone);
    font: 400 11px/1.4 var(--mono);
    letter-spacing: .04em;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 34px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.topbar__text {
    opacity: .85;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar .mud-button-root,
.topbar .mud-button {
    color: var(--bone);
    font: 500 11px/1 var(--mono);
    letter-spacing: .04em;
    text-transform: none;
}

@media (max-width: 560px) {
    .topbar__text {
        display: none;
    }
}

/* ---------- Nav dropdowns (About Us / Strategies) ---------- */
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

/* Light editorial panel: hairline border, soft shadow, no heavy accent bar or tint pills. */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: -18px;
    min-width: 224px;
    padding: 8px 0;
    background: var(--paper);
    border: 1px solid var(--rule);
    box-shadow: 0 12px 32px rgba(26, 26, 26, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), visibility .18s;
    z-index: 140;
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown__link {
    display: block;
    padding: 8px 18px;
    font: 400 12.5px/1.4 var(--sans);
    color: var(--ink-2);
    white-space: nowrap;
    border-left: 2px solid transparent;
    transition: color .16s var(--ease-out), border-color .16s var(--ease-out);
}

.nav-dropdown__link:hover,
.nav-dropdown__link.active {
    background: transparent;
    color: var(--alken);
    border-left-color: var(--alken);
}

.nav-dropdown__link.active {
    font-weight: 500;
}

/* Dropdown entries never carry the top-nav underline animation. */
.nav-dropdown__link::after {
    content: none;
}

/* site.css's generic `.nav a` rules give EVERY nav anchor a rounded pill, a tint hover
   background and their own active underline - and at (0,2,1) they out-specify the plain
   .nav-dropdown__link rules above. Neutralize them at matching specificity: Web2's nav is
   flat, with the thin animated underline on top-level links only. */
.nav a.nav-link,
.nav a.nav-dropdown__link {
    border-radius: 0;
}

.nav a.nav-link:hover {
    background: transparent;
}

/* Underline hugs the label (inset by the link padding) so neighbouring items never touch;
   same geometry for the hover sweep and the active state. */
.nav {
    gap: 8px;
}

.nav a.nav-link::after {
    left: 14px;
    bottom: 6px;
    height: 1px;
}

.nav a.nav-link:hover::after,
.nav a.nav-link.active::after {
    right: 14px;
}

.nav a.nav-link--cta {
    margin-left: 16px;
}

.nav a.nav-dropdown__link {
    padding: 8px 18px;
    font-size: 12.5px;
    font-weight: 400;
}

.nav a.nav-dropdown__link:hover,
.nav a.nav-dropdown__link.active {
    background: transparent;
    color: var(--alken);
}

.nav a.nav-dropdown__link.active {
    font-weight: 500;
}

.nav a.nav-dropdown__link::after,
.nav a.nav-dropdown__link.active::after {
    content: none;
}

@media (max-width: 760px) {
    .nav-item {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: 0;
        border-left: 2px solid var(--rule);
        box-shadow: none;
        padding: 0 0 4px 10px;
        margin-left: 8px;
        background: transparent;
    }
}

/* ---------- Disclaimer prose (legal, privacy, cookies, investor rights, regulatory) ---------- */
.legal-prose {
    max-width: 78ch;
}

/* site.css caps .body at 64ch (13px ~ 540px), which left half of these text-only pages
   empty; the article's own 78ch measure governs instead. */
.legal-prose .body {
    max-width: none;
    font-size: 14px;
}

/* ---------- Footer additions ---------- */
.footer-flag {
    margin-bottom: 48px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid color-mix(in srgb, var(--bone) 16%, transparent);
    font: 400 11px/1.5 var(--mono);
    color: color-mix(in srgb, var(--bone) 55%, transparent);
}


.footer-flag__note {
    font: 400 12px/1.6 var(--sans);
    color: color-mix(in srgb, var(--bone) 70%, transparent);
    max-width: 52ch;
    margin-top: 8px;
}

.footer-col__title {
    font: 500 11px/1 var(--mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--signal);
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    font: 400 12px/1.4 var(--sans);
    color: color-mix(in srgb, var(--bone) 78%, transparent);
    padding: 4px 0;
    transition: color .2s var(--ease-out);
}

.footer-col a:hover {
    color: var(--bone);
}

/* ---------- Data tables (performance, NAVs, documents) ---------- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font: 400 12px/1.5 var(--sans);
    background: var(--paper);
    border: 1px solid var(--rule);
}

/* Scroll container for wide tables (many columns + nowrap cells): overflow stays INSIDE this
   wrapper instead of stretching the page into a horizontal scrollbar. */
.table-scroll {
    overflow-x: auto;
}

.data-table th {
    font: 500 11px/1.3 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-3);
    text-align: left;
    white-space: nowrap;
    padding: 10px 14px;
    border-bottom: 1px solid var(--rule);
    background: var(--hair-2);
}

.data-table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--hair-2);
    color: var(--ink-2);
    /* Table data never wraps to a second line. */
    white-space: nowrap;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table td.num,
.data-table th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.data-table__pos {
    color: #1E6B3C;
}

.data-table__neg {
    color: var(--alken-darken);
}

.table-scroll {
    overflow-x: auto;
}

.data-table .mono {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .02em;
}

.fund-link {
    color: var(--alken);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--ease-out);
}

.fund-link:hover {
    border-bottom-color: var(--alken);
}

/* ---------- Sortable table header buttons ---------- */
.sort-button {
    font: 500 11px/1.3 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-3);
    cursor: pointer;
    padding: 0;
    background: none;
    border: 0;
}

.sort-button.is-active {
    color: var(--alken);
}

.sort-button.is-active::after {
    content: " \2191";
}

.sort-button.is-active.is-desc::after {
    content: " \2193";
}

/* ---------- Tab strip (editorial tabs) ---------- */
.tab-strip {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 20px;
}

.tab-strip__tab {
    font: 500 12px/1 var(--sans);
    letter-spacing: .04em;
    color: var(--ink-3);
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 12px 16px;
    cursor: pointer;
    transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
    white-space: nowrap;
}

.tab-strip__tab:hover {
    color: var(--ink);
}

.tab-strip__tab.is-active {
    color: var(--alken);
    border-bottom-color: var(--alken);
}

/* ---------- Table loading / empty state ---------- */
.table-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 140px;
    font: 400 12px/1.4 var(--sans);
    color: var(--ink-3);
    border: 1px dashed var(--rule);
    background: var(--paper);
}

.table-state__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--rule);
    border-top-color: var(--alken);
    border-radius: 50%;
    animation: fund-spin .8s linear infinite;
}

@keyframes fund-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- SRI / SRRI compact scale ---------- */
.srri {
    display: inline-flex;
    gap: 2px;
}

.srri__box {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: 500 10px/1 var(--mono);
    color: var(--ink-4);
    background: var(--hair-2);
    border-radius: 2px;
}

.srri__box.is-active {
    background: var(--alken);
    color: #fff;
}

/* ---------- Native select (editorial dropdown) ---------- */
.fund-select {
    font: 400 12px/1.2 var(--sans);
    padding: 8px 36px 8px 14px;
    border: 1px solid var(--rule);
    /* shape + chevron: see the "Selects" block above (no background/radius shorthand here) */
    color: var(--ink-2);
    width: 100%;
    max-width: 420px;
}

.fund-select:focus {
    outline: 2px solid var(--alken-tint);
    border-color: var(--alken);
}

/* ---------- Stat tiles (fund hero / KPI rows) ---------- */
.stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border: 1px solid var(--rule);
    background: var(--paper);
}

.stat {
    flex: 1 1 140px;
    min-width: 130px;
    padding: 18px 22px 16px;
    border-right: 1px solid var(--hair-2);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat:last-child {
    border-right: 0;
}

.stat__value {
    font-family: var(--display);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 500;
    line-height: 1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.stat__value--pos {
    color: #1E6B3C;
}

.stat__value--neg {
    color: var(--alken-darken);
}

.stat__label {
    font: 500 10px/1.3 var(--mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-4);
}

.stat__ccy {
    font: 400 11px/1 var(--mono);
    letter-spacing: .04em;
    color: var(--ink-4);
    margin-left: 4px;
}

@media (max-width: 680px) {
    .stat {
        flex-basis: 45%;
        border-bottom: 1px solid var(--hair-2);
    }
}

/* ---------- Misc ---------- */
.perf-note {
    font: 400 11px/1.5 var(--mono);
    color: var(--ink-4);
    margin-top: 12px;
}

.page-hero--compact {
    padding-bottom: 8px;
}

/* ---------- SEO headings (visually hidden, readable by crawlers/screen readers) ---------- */
.seo-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    font-size: 1rem;
    color: #000;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    display: block;
}

/* ============================================================
   POLISH LAYER - loaded after site.css; later rules win.
   Owns the V2 look: brand, heroes, section headers, cards, type.
   ============================================================ */

/* ---------- Brand: cropped star + text wordmark ---------- */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand__star {
    width: 38px;
    height: 38px;
    object-fit: cover;
    object-position: left;
    display: block;
}

.brand__word {
    font: 500 22px/1 var(--display);
    letter-spacing: .05em;
    color: var(--ink);
    white-space: nowrap;
}

.brand__word em {
    font-style: normal;
    color: var(--alken);
}

/* ---------- Readability: type scale up from site.css ---------- */
.body {
    font-size: 14px;
    line-height: 1.7;
    max-width: 68ch;
}

.lede {
    font-size: 17px;
    line-height: 1.65;
    max-width: 58ch;
    color: var(--ink-2);
}

/* ---------- Section headers: number + title grouped left, rule fills right ---------- */
.section-num {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 30px;
}

.section-num::before {
    content: "";
    align-self: center;
    width: 26px;
    height: 2px;
    background: var(--alken);
    flex: 0 0 auto;
}

.section-num__n {
    font: 500 12px/1 var(--mono);
    letter-spacing: .16em;
    color: var(--alken);
    min-width: 0;
    flex: 0 0 auto;
}

.section-num__title {
    font: 500 clamp(24px, 2.4vw, 32px)/1.15 var(--display);
    letter-spacing: -0.01em;
    color: var(--ink);
    text-align: left;
    flex: 0 0 auto;
}

.section-num::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--rule);
    align-self: center;
}

.ink-bg .section-num__title {
    color: var(--bone);
}

.ink-bg .section-num::after {
    background: color-mix(in srgb, var(--bone) 18%, transparent);
}

/* ---------- Page hero: composed, with fact rail + ghost star ---------- */
.page-hero {
    position: relative;
    /* Compact heroes: the title should sit close under the header and hand over to content
       quickly (site-wide preference for dense pages). */
    padding-top: clamp(24px, 3vw, 44px);
    padding-bottom: clamp(18px, 2.2vw, 32px);
}

/* (Removed) The faint star-logo watermark that used to sit top-right of every page hero
   (.page-hero::before) rendered as blotchy pentagon shapes on the beige background. */

.page-hero .h-display {
    letter-spacing: -0.02em;
    /* Titles must not wrap to two lines: no width cap, and a slightly smaller fluid size than the
       base .h-display so even long fund names ("Alken Fund - European Opportunities") fit the shell
       on one line. Wrapping only happens when the viewport genuinely can't fit the text. */
    max-width: none;
    font-size: clamp(30px, 4vw, 54px);
    text-wrap: balance;
}

.hero-facts {
    position: absolute;
    top: clamp(56px, 7vw, 104px);
    right: var(--gut);
    display: grid;
    min-width: 210px;
    z-index: 1;
}

.hero-fact {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 28px;
    padding: 10px 0;
    border-bottom: 1px solid var(--rule);
}

.hero-fact:first-child {
    border-top: 1px solid var(--rule);
}

.hero-fact__label {
    font: 400 10px/1 var(--mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-4);
}

.hero-fact__value {
    font: 500 15px/1 var(--display);
    color: var(--ink);
}

@media (max-width: 1100px) {
    .hero-facts {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 220px));
        column-gap: 40px;
        margin-top: 28px;
        min-width: 0;
    }
}

/* ---------- Cards: one elevation system ---------- */
.entity-card,
.insight-card,
.card {
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(26, 26, 26, .04);
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}

.entity-card:hover,
.insight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(116, 2, 50, .10);
}

.entity-card__logo {
    height: 56px;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.entity-card__logo img {
    max-height: 56px;
    max-width: 60%;
    object-fit: contain;
    object-position: left;
}

/* ---------- Controls: comfortable touch targets ---------- */
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tab-strip__tab {
    padding: 14px 18px;
    min-height: 44px;
}

.fund-select {
    min-height: 42px;
    padding: 10px 36px 10px 14px;
    font-size: 13px;
}

/* polish fixes */
.section-num__n::before {
    content: none;
}

.brand__word em {
    margin-left: 6px;
}

/* ============================================================
   POLISH ROUND 2 - feedback pass
   ============================================================ */

/* Topbar: no more dark band - blends with the header */
.topbar {
    background: var(--paper);
    color: var(--ink-3);
    border-bottom: 1px solid var(--hair-2);
    font: 400 10px/1.4 var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.topbar__inner {
    min-height: 30px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.topbar__text {
    opacity: 1;
    color: var(--ink-4);
}

.topbar .mud-button-root,
.topbar .mud-button {
    color: var(--ink-2);
    font: 500 11px/1 var(--sans);
    letter-spacing: .02em;
    text-transform: none;
}

.topbar .mud-button-root:hover {
    color: var(--alken);
    background: transparent;
}

/* Nav CTA: proper burgundy pill instead of the stray underline chip */
.nav-link--cta {
    background: var(--alken);
    color: #fff !important;
    border-radius: 999px;
    padding: 10px 20px !important;
    transition: background .2s var(--ease-out);
}

.nav-link--cta::after {
    content: none !important;
}

.nav-link--cta:hover {
    background: var(--alken-hover);
    color: #fff;
}

.nav-link--cta.active {
    background: var(--alken-darken);
}

/* Buttons: crisper, consistent weights */
.btn {
    font: 600 13px/1 var(--sans);
    letter-spacing: .01em;
    padding: 0 22px;
}

.btn--ghost {
    border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
    color: var(--ink);
    background: transparent;
}

.btn--ghost:hover {
    border-color: var(--alken);
    color: var(--alken);
    background: var(--alken-tint);
}

.ink-bg .btn--ghost {
    border-color: color-mix(in srgb, var(--bone) 35%, transparent);
    color: var(--bone);
}

.ink-bg .btn--ghost:hover {
    border-color: var(--signal);
    color: var(--signal);
    background: transparent;
}

/* Long-form copy stays left-aligned: justified 13px text in narrow card columns produced
   stretched word gaps and mid-word hyphenation ("manage-ment") that read as broken type. */

.lede {
    max-width: 64ch;
}
