/* PakGold Global — the few additions the v2 shell needs for the international
   lockup and country chrome. Everything else is v2.css verbatim (owner: same design). */

/* International wordmark — replaces the Urdu logo on global pages only */
.gxg-brand { flex-direction: column; gap: 2px; text-decoration: none; }
.gxg-word {
    font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1;
    color: var(--v2-gold);
}
.gxg-word b { color: var(--v2-brand); font-weight: 800; }
.gxg-word-sm { font-size: 1.05rem; }
.gxg-cc { font-size: .68rem; font-weight: 700; color: var(--v2-mut); letter-spacing: .04em; }

/* collapsed-rail sidebar (v2 tablet mode) hides text spans; keep the wordmark visible */
@media (max-width: 1080px) {
    .v2-sidebar .gxg-cc { display: none; }
    .v2-sidebar:hover .gxg-cc { display: block; }
}

.gxg-ccpick { max-width: 150px; appearance: none; -webkit-appearance: none; }

.gxg-footer { display: block; }
.gxg-footer p { margin: 4px 0; }

/* .v2-card's display:flex would defeat the hidden attribute — cards toggled off
   from the gallery must actually disappear */
.v2-card[hidden], #gxCardGallery[hidden] { display: none !important; }

/* drag affordance parity with the main dashboard */
.v2-card[draggable="true"] { cursor: default; }
.v2-drag { cursor: grab; color: var(--v2-mut); user-select: none; font-size: 1rem; padding: 2px 6px; border-radius: 8px; }
.v2-drag:active { cursor: grabbing; }

/* portfolio table */
.gxg-pf-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.gxg-pf-table th { text-align: start; color: var(--v2-mut); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; padding: 4px 6px; }
.gxg-pf-table td { padding: 7px 6px; border-top: 1px dashed var(--v2-border); font-weight: 600; }
.gxg-pf-table td:last-child { text-align: end; }
.gxg-pf-del { background: none; border: 0; color: var(--v2-neg); cursor: pointer; font-size: .9rem; }
.gxg-pf-total { font-size: 1.35rem; font-weight: 800; color: var(--v2-gold); font-variant-numeric: tabular-nums; }

/* news headline cards */
.gxg-news-item { display: block; padding: 10px 2px; border-bottom: 1px dashed var(--v2-border); color: var(--v2-ink); text-decoration: none; }
.gxg-news-item:last-child { border-bottom: 0; }
.gxg-news-item:hover { color: var(--v2-brand); text-decoration: none; }
.gxg-news-title { font-weight: 600; font-size: .92rem; line-height: 1.4; }
.gxg-news-meta { font-size: .74rem; color: var(--v2-mut); margin-top: 2px; }

/* chart crosshair (hover/touch value readout) */
.gx-xline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--v2-gold); opacity: .6; pointer-events: none; }
.gx-xdot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--v2-gold-hi); border: 2px solid var(--v2-surface); pointer-events: none; box-shadow: 0 0 0 1px var(--v2-gold); }
.gx-xtip {
    position: absolute; top: 4px; pointer-events: none; white-space: nowrap;
    background: var(--v2-surface); border: 1px solid var(--v2-border); border-radius: 8px;
    padding: 4px 9px; font-size: .74rem; font-weight: 700; box-shadow: var(--v2-shadow);
    font-variant-numeric: tabular-nums;
}

/* econ rows */
.gxg-ec-row { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px dashed var(--v2-border); font-size: .88rem; }
.gxg-ec-row:last-child { border-bottom: 0; }
.gxg-ec-imp { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.gxg-ec-imp.i3 { background: var(--v2-neg); }
.gxg-ec-imp.i2 { background: #e08a00; }
.gxg-ec-imp.i1 { background: var(--v2-pos); }
.gxg-ec-time { color: var(--v2-mut); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.gxg-ec-ccy { font-weight: 800; flex: 0 0 auto; }
.gxg-ec-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gxg-ec-act { margin-inline-start: auto; font-weight: 700; flex: 0 0 auto; }

/* card width toggle: 2-box <-> 1-box; at 1-box the units side-table hides
   (owner: "1 box pe collapse ho to units wala data na nazar aye") */
.gx-width-toggle { width: 28px; height: 28px; font-size: .8rem; opacity: .55; }
.gx-width-toggle:hover { opacity: 1; }
@media (min-width: 761px) {
    .v2-card.gx-narrow { grid-column: span 3; }
    .v2-card.gx-narrow .v2-hero-side { display: none; }
    .v2-card.gx-narrow .v2-hero-body { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .gx-width-toggle { display: none; } /* phones are single-column anyway */
}
