
:root {
    --bg: #f6f7f9;
    --bic-blue: #0B2E5E;
    --bitcNavy: #1a2f6b;
    --bitcOrange: #f36f2a;
    --bitcSky: #49c2f5;
    --border: #e2e8f0;
    --card: #ffffff;
    --gold: #D4A72C;
    --headerOffset: 84px;
    --marketBarOffset: 0px;
    --muted: #475569;
    --navy-soft: #4A4F5A;
    --navy: #1a2f6b;
    --orange: #f36f2a;
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --radius: 24px;
    --radius2: 18px;
    --shadow-card: 0 6px 18px rgba(27, 35, 48, 0.08);
    --shadow-soft: 0 14px 30px rgba(27, 35, 48, 0.08);
    --shadow: 0 18px 45px rgba(15, 23, 42, .10);
    --shadow2: 0 8px 20px rgba(15, 23, 42, .08);
    --sky: #49c2f5;
    --stackGap: 8px;
    --text: #0f172a;
    --white: #FFFFFF;
    /* --border: #D9DFE7; - FROM NOMINEES PAGE */
    /*--border: #e2e8f0;*/
    /* BITC navy */
    /* BITC orange */
    /* BITC sky */
}

/* iOS zoom-on-focus fix */
@@media (max-width: 639px) {
    input,
    select,
    textarea {
        font-size: 16px;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 22px 18px 44px;
}

/* Header */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    /*background: rgba(246, 247, 249, .92);*/
    background: white;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

    .brand img {
        height: 42px;
        width: auto;
        object-fit: contain;
    }

.brand-title {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .brand-title .kicker {
        font-size: 11px;
        letter-spacing: .18em;
        text-transform: uppercase;
        color: var(--muted);
        font-weight: 800;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-title .title {
        font-size: 16px;
        font-weight: 950;
        letter-spacing: .02em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow2);
    text-decoration: none;
    cursor: pointer;
    user-select: none;
}

    .btn.primary {
        background: linear-gradient(90deg, var(--orange), var(--sky));
        color: #fff;
        border: none;
        box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
    }

    .btn:hover {
        filter: brightness(1.02);
    }

    .btn:active {
        transform: scale(.99);
    }

/* Hero */
.hero {
    margin-top: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-inner {
    padding: 22px 22px 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 34px);
    font-weight: 950;
    letter-spacing: .02em;
    color: var(--navy);
}

.hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
    max-width: 78ch;
}

/* Content layout */
.grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 16px;
    margin-top: 16px;
    align-items: start;
}

.navcard {
    position: sticky;
    top: 86px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius2);
    box-shadow: var(--shadow2);
    padding: 14px;
}

    .navcard .label {
        font-size: 11px;
        letter-spacing: .18em;
        text-transform: uppercase;
        color: var(--muted);
        font-weight: 900;
        margin-bottom: 10px;
    }

    .navcard a {
        display: block;
        padding: 10px 12px;
        border-radius: 14px;
        text-decoration: none;
        font-weight: 800;
        font-size: 13px;
        color: var(--text);
        border: 1px solid transparent;
    }

        .navcard a:hover {
            background: #f8fafc;
            border-color: var(--border);
        }

    .navcard .tiny {
        margin-top: 10px;
        font-size: 12px;
        color: var(--muted);
        line-height: 1.45;
    }

.doc {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius2);
    box-shadow: var(--shadow2);
    padding: 18px 18px 10px;
}

.section {
    padding: 12px 6px 16px;
    border-bottom: 1px solid var(--border);
}

    .section:last-child {
        border-bottom: none;
    }

    .section h2 {
        margin: 0 0 6px 0;
        font-size: 15px;
        font-weight: 950;
        letter-spacing: .10em;
        text-transform: uppercase;
        color: var(--navy);
    }

    .section p,
    .section li {
        font-size: 14px;
        line-height: 1.6;
        color: var(--text);
    }

    .section p {
        margin: 8px 0;
    }

    .section ul {
        margin: 8px 0 0 18px;
        padding: 0;
    }

        .section ul li {
            margin: 8px 0;
        }

.callout {
    background: rgba(73, 194, 245, .12);
    border: 1px solid rgba(73, 194, 245, .35);
    border-radius: 16px;
    padding: 12px 14px;
    margin: 10px 0;
    color: var(--text);
}

    .callout strong {
        color: var(--navy);
    }

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    margin-top: 6px;
}

/* Footer */
.footer {
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

/* Mobile */
@@media (max-width: 940px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .navcard {
        position: relative;
        top: auto;
    }
}

/* Print */
@@media print {

    .topbar,
    .navcard,
    .top-actions {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .hero,
    .doc {
        box-shadow: none;
    }

    .wrap {
        padding: 0;
    }

    a {
        text-decoration: none;
    }
}

/* Suggestions dropdown */
.bitc-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 9999;
    background: #fff;
    border: 1px solid rgb(226 232 240);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    max-height: 240px;
    overflow-y: auto;
}

    .bitc-suggest button {
        width: 100%;
        text-align: left;
        padding: 10px 12px;
        font-size: 14px;
        background: #fff;
        border: 0;
        border-bottom: 1px solid rgb(241 245 249);
    }

        .bitc-suggest button:hover,
        .bitc-suggest button:focus {
            background: rgb(248 250 252);
            outline: none;
        }

        .bitc-suggest button:last-child {
            border-bottom: 0;
        }

/* Stop bootstrap from bullying Tailwind focus rings */
.form-control:focus {
    box-shadow: none;
}

/* ===== Market card border fix (station logo footer) ===== */
.market-card {
    border: 1px solid rgb(226 232 240);
    border-radius: 1.5rem;
    overflow: hidden;
    /* border + radius wrap footer too */
    background: #fff;
}

    .market-card .station-footer {
        background: rgba(73, 194, 245, 0.15);
        height: 4rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-top: 1px solid rgb(226 232 240);
        /* divider line */
    }