.vtc-page {
    --bg:        #0d0d0e;
    --card:      #151516;
    --hover:     #1b1b1d;
    --line:      rgba(99,99,99,0.25);
    --line-soft: rgba(99,99,99,0.12);
    --ink:       #e0e0e0;
    --ink-dim:   rgba(224,224,224,0.8);
    --ink-faint: rgba(224,224,224,0.65);
    --accent:    #ff9900;
    --green:     #1cbb8c;
    --red:       #ff3b30;
    --twitch:    #9146ff;
    background: var(--bg);
    color: var(--ink);
}
.vtc-page .vtc-cover { position: relative; line-height: 0; }
.vtc-page .vtc-cover img { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.vtc-page .vtc-cover::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 130px;
    background: linear-gradient(180deg, transparent 0%, var(--bg) 92%);
    pointer-events: none;
}

.vh-wrap.vtc {
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 300px;
    gap: 1.25rem;
    margin-top: 0;
    position: relative;
    z-index: 2;
}
@media (max-width: 1200px) { .vh-wrap.vtc { grid-template-columns: 1fr; } }
@media (max-width: 700px)  { .vh-wrap.vtc { margin-top: 0; } }
.vh-wrap.vtc .vh-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }

.vh-wrap.vtc .vh-card { background: var(--card); border-radius: 0; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,0.35); }
.vh-wrap.vtc .vh-card-h {
    padding: 0.9rem 0.95rem 0.4rem;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px dashed var(--line-soft);
    margin: 0 0 0.5rem;
    gap: 0.5rem; min-height: 28px;
}
.vh-wrap.vtc .vh-card-title {
    font-size: 0.66rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-dim);
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.vh-wrap.vtc .vh-card-title::before { content: "▸"; color: var(--accent); }
.vh-wrap.vtc .vh-card-title .count {
    font-size: 0.62rem; padding: 1px 7px; border-radius: 0;
    background: rgba(255,153,0,0.12); color: var(--accent);
    border: 1px solid rgba(255,153,0,0.25);
    margin-left: 0.4rem; letter-spacing: 0.05em;
}
.vh-wrap.vtc .vh-card-foot {
    border-top: 1px dashed var(--line-soft);
    padding: 0.55rem 0.95rem 0.65rem; text-align: center;
}
.vh-wrap.vtc .vh-card-foot a {
    font-size: 0.7rem; font-weight: 600; color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.08em;
    text-decoration: none; cursor: pointer;
}
.vh-wrap.vtc .vh-card-foot a:hover { text-decoration: underline; }

/* Identity */
.vh-wrap.vtc .vc-id-body { padding: 0.4rem 1rem 1.1rem; text-align: center; }

/* ───────────── Company icon ─────────────

   The icon is whatever the company uploaded - a square logo, a wide wordmark, a
   tall crest, a static PNG or an animated GIF - and none of those may be
   stretched to fit. So the WRAPPER owns the shape and the image only fills it:
   `aspect-ratio` keeps the box square at any width, and `object-fit: cover`
   keeps the file's own proportions while filling that square.

   `min(160px, 100%)` rather than a fixed 112px: the left rail is a 300px grid
   column on desktop and a full-width row under 1200px, so the icon scales with
   the card instead of overflowing it on a narrow phone.

   This is the shared company-profile template, so every VTC gets it.

   Not set here: `object-position`. An animated upload carries the framing its
   owner dragged as an inline style (see animated_media_style()), and an inline
   style outranks this rule - which is what keeps their chosen framing. */
.vh-wrap.vtc .vc-id-body > [class^="avatar-span-"],
.vh-wrap.vtc .vc-id-body > [class*=" avatar-span-"] {
    display: block;
    width: min(160px, 100%);
    height: auto;              /* aspect-ratio drives the height */
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    border-radius: 50%;
    overflow: hidden;
}

.vh-wrap.vtc .vc-id-body > [class^="avatar-span-"] > img,
.vh-wrap.vtc .vc-id-body > [class*=" avatar-span-"] > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vh-wrap.vtc .vc-id-name { margin-top: 0.6rem; font-size: 1rem; }
.vh-wrap.vtc .vc-id-slogan {
    margin-top: 0.35rem; font-size: 0.74rem; color: var(--ink-faint); font-style: italic;
    line-height: 1.45;
}
.vh-wrap.vtc .vc-id-chips {
    margin-top: 0.7rem; display: flex; gap: 0.3rem; justify-content: center; flex-wrap: wrap;
}
.vh-wrap.vtc .vc-chip {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 3px 8px; border-radius: 0;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-dim); background: rgba(255,255,255,0.04);
    border: 1px solid var(--line-soft);
}
.vh-wrap.vtc .vc-chip i { font-size: 0.6rem; }
.vh-wrap.vtc .vc-chip.is-accent { color: var(--accent); background: rgba(255,153,0,0.1); border-color: rgba(255,153,0,0.25); }
.vh-wrap.vtc .vc-chip.is-green  { color: var(--green);  background: rgba(28,187,140,0.1); border-color: rgba(28,187,140,0.25); }
.vh-wrap.vtc .vc-chip.is-red    { color: var(--red);    background: rgba(255,59,48,0.08);  border-color: rgba(255,59,48,0.25); }

/* Fact list */
.vh-wrap.vtc .vc-list { padding: 0 0.95rem 0.6rem; }
.vh-wrap.vtc .vc-list-row {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.5rem 0; border-top: 1px dashed var(--line-soft);
    font-size: 0.76rem; color: var(--ink-dim);
}
.vh-wrap.vtc .vc-list-row:first-child { border-top: 0; }
.vh-wrap.vtc .vc-list-row i, .vh-wrap.vtc .vc-list-row svg {
    width: 16px; flex-shrink: 0; color: var(--ink-faint); font-size: 0.78rem;
}
.vh-wrap.vtc .vc-list-row .val {
    margin-left: auto; color: var(--ink); font-weight: 500; text-align: right;
}
.vh-wrap.vtc .vc-list-row a {
    color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vh-wrap.vtc .vc-list-row a:hover { color: var(--accent); }
.vh-wrap.vtc .vc-list-row .vc-owner {
    max-width: 60%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 0.78rem; line-height: 1.2;
}
/* Let the global .username-* / premium / gradient classes drive the color.
   The list-row a { color: var(--ink) } rule above would otherwise repaint
   the anchor text and kill gradient-clipped premium usernames. */
.vh-wrap.vtc .vc-list-row .vc-owner a,
.vh-wrap.vtc .vc-list-row .vc-owner a:hover { color: inherit; text-decoration: none; cursor: pointer; }
.vh-wrap.vtc .vc-list-row .vc-owner .username-span { vertical-align: baseline; }
.vh-wrap.vtc .vc-list-row .vc-owner .badge { display: none; }

/* Description */
.vh-wrap.vtc .vc-desc { padding: 0.55rem 1rem 1rem; font-size: 0.85rem; color: var(--ink); line-height: 1.65; }
.vh-wrap.vtc .vc-desc :is(p,ul,ol):last-child { margin-bottom: 0; }
.vh-wrap.vtc .vc-desc a { color: var(--accent); }

/* Recent freights */
.vh-wrap.vtc .vh-list { padding: 0.5rem 0.75rem 0.75rem; display: flex; flex-direction: column; gap: 0.3rem; }
.vh-wrap.vtc .vh-row {
    display: grid; align-items: center; gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg); border-radius: 0;
    border: 1px solid var(--line-soft);
    transition: border-color 0.15s, background 0.1s;
    font-size: 0.78rem; cursor: pointer;
    grid-template-columns: 50px minmax(80px, 1fr) minmax(0,2fr) 95px 70px;
}
.vh-wrap.vtc .vh-row:hover { border-color: var(--line); background: var(--hover); }
.vh-wrap.vtc .vh-row .col-game { display: flex; align-items: center; gap: 0.25rem; font-size: 0.72rem; color: var(--ink-dim); }
.vh-wrap.vtc .vh-row .col-member { color: rgba(224,224,224,0.85); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vh-wrap.vtc .vh-row .col-route { color: rgba(224,224,224,0.7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vh-wrap.vtc .vh-row .col-profit { font-size: 0.78rem; text-align: right; color: var(--ink); }
.vh-wrap.vtc .vh-row .col-distance { color: rgba(224,224,224,0.65); font-size: 0.72rem; text-align: right; }
.vh-wrap.vtc .vh-list-empty { padding: 1.4rem 1rem; text-align: center; color: var(--ink-faint); font-size: 0.85rem; }

/* Streams grid */
.vh-wrap.vtc .vc-streams { padding: 0.55rem 0.95rem 0.85rem; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.vh-wrap.vtc .vc-stream {
    background: var(--bg); border-radius: 0; overflow: hidden; cursor: pointer;
    border: 1px solid var(--line-soft);
    transition: border-color 0.15s, transform 0.15s;
}
.vh-wrap.vtc .vc-stream:hover { border-color: var(--twitch); transform: translateY(-1px); }
.vh-wrap.vtc .vc-stream-thumb { aspect-ratio: 16/9; background-size: cover; background-position: center; position: relative; }
.vh-wrap.vtc .vc-stream-live {
    position: absolute; top: 0.4rem; left: 0.4rem;
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 2px 6px; background: var(--red); color: #fff;
    font-size: 0.55rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; border-radius: 0;
}
.vh-wrap.vtc .vc-stream-live::before {
    content: ""; width: 4px; height: 4px; background: #fff; border-radius: 50%;
    animation: vtc-pulse 1.2s ease-in-out infinite;
}
.vh-wrap.vtc .vc-stream-game {
    position: absolute; top: 0.4rem; right: 0.4rem;
    padding: 2px 6px; font-size: 0.54rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase; border-radius: 0;
    background: rgba(0,0,0,0.65); color: var(--ink);
}
.vh-wrap.vtc .vc-stream-body { padding: 0.5rem 0.65rem 0.6rem; display: flex; flex-direction: column; gap: 0.25rem; }
.vh-wrap.vtc .vc-stream-user { font-size: 0.75rem; color: var(--ink); font-weight: 600; }
.vh-wrap.vtc .vc-stream-title { font-size: 0.7rem; color: var(--ink-faint); line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Level card */
.vh-wrap.vtc .vc-level { padding: 0.75rem 0.95rem 0.95rem; display: flex; flex-direction: column; gap: 0.55rem; }
.vh-wrap.vtc .vc-level-row {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 0.5rem;
}
.vh-wrap.vtc .vc-level-num {
    font-size: 1.5rem; font-weight: 700; color: var(--ink);
    line-height: 1; font-variant-numeric: tabular-nums;
}
.vh-wrap.vtc .vc-level-num small {
    font-size: 0.65rem; color: var(--ink-faint);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
    margin-right: 4px;
}
.vh-wrap.vtc .vc-level-next {
    font-size: 0.7rem; color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
}
.vh-wrap.vtc .vc-level-bar {
    height: 4px; background: rgba(255,255,255,0.04);
    border-radius: 0; overflow: hidden;
}
.vh-wrap.vtc .vc-level-bar > span {
    display: block; height: 100%; background: var(--accent);
    transition: width 0.2s;
}
.vh-wrap.vtc .vc-level-foot {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.7rem; color: var(--ink-faint);
}
.vh-wrap.vtc .vc-level-foot .pct {
    color: var(--accent); font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Activity sparkline */
.vh-wrap.vtc .vc-act { padding: 0.7rem 0.95rem 0.85rem; display: flex; flex-direction: column; gap: 0.5rem; }
.vh-wrap.vtc .vc-act-svg {
    width: 100%; height: 56px; display: block;
    background: var(--bg); border: 1px solid var(--line-soft);
    border-radius: 0;
}
.vh-wrap.vtc .vc-act-fill { fill: rgba(255,153,0,0.15); stroke: none; }
.vh-wrap.vtc .vc-act-line { fill: none; stroke: var(--accent); stroke-width: 0.7; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.vh-wrap.vtc .vc-act-dot  { fill: var(--accent); }
.vh-wrap.vtc .vc-act-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.1rem 0.05rem 0;
}
.vh-wrap.vtc .vc-act-stat { display: flex; flex-direction: column; gap: 1px; }
.vh-wrap.vtc .vc-act-stat.right { text-align: right; }
.vh-wrap.vtc .vc-act-stat .lbl {
    font-size: 0.58rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--ink-faint);
}
.vh-wrap.vtc .vc-act-stat .val {
    font-size: 0.95rem; font-weight: 700;
    color: var(--ink); font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.vh-wrap.vtc .vc-act-last {
    font-size: 0.7rem; color: var(--ink-faint);
    border-top: 1px dashed var(--line-soft);
    padding-top: 0.5rem;
}
.vh-wrap.vtc .vc-act-last strong { color: var(--ink); font-weight: 600; }
.vh-wrap.vtc .vc-act-last.is-quiet { color: var(--red); opacity: 0.7; }

/* Awards card */
.vh-wrap.vtc .vc-awards { padding: 0 0.7rem 0.6rem; display: flex; flex-direction: column; gap: 0.35rem; }
.vh-wrap.vtc .vc-awards .alert { font-size: 0.78rem; color: var(--ink-faint); text-align: center; padding: 1rem 0.5rem; }

@keyframes vtc-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.85); } }

/* ── Recruiting card ───────────────────────────────────
   First card in the left rail for a visitor who is not a member. On a public
   company page this is the reason the page exists, so it reads as an offer
   rather than another readout. */
.vc-recruit-body {
    padding: 0.9rem 1rem 1rem;
}
.vc-recruit-lead {
    font-size: 0.78rem;
    color: var(--ink-dim, rgba(224, 224, 224, 0.8));
    margin-bottom: 0.7rem;
}
.vc-recruit-reqs {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.vc-recruit-reqs li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.6rem;
    border-radius: 0;
    background: var(--bg, #0d0d0e);
    font-size: 0.8rem;
}
.vc-recruit-reqs i { color: var(--accent, #ff9900); font-size: 0.78rem; }
.vc-recruit-reqs .lbl { flex: 1; color: var(--ink-dim, rgba(224, 224, 224, 0.8)); }
.vc-recruit-reqs .val { font-weight: 600; color: var(--ink, #e0e0e0); }

.vc-recruit-cta {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 0;
    background: var(--accent, #ff9900);
    color: #161617;
    font-weight: 700;
    font-size: 0.88rem;
    text-align: center;
    text-decoration: none;
    transition: filter 0.15s ease;
}
.vc-recruit-cta:hover { filter: brightness(1.08); color: #161617; }

.vc-recruit-note {
    margin-top: 0.55rem;
    text-align: center;
    font-size: 0.72rem;
    color: var(--ink-faint, rgba(224, 224, 224, 0.65));
}
