/* Additions to the Cast page that the design files did not have. Hand written.
   (ns-cast.css is generated; do not put these there.) */
.ns a.cast-tab { display: inline-flex; align-items: center; text-decoration: none; }
.ns .profile-nick { margin: -6px 0 14px; font: 500 13px var(--heading); letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
.ns .profile-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; margin: 22px 0 0; padding: 0; }
.ns .profile-stats div { padding: 9px 0; border-top: 1px solid var(--line); }
.ns .profile-stats dt { font: 11px var(--heading); letter-spacing: 1.6px; text-transform: uppercase; color: #8f8496; }
.ns .profile-stats dd { margin: 3px 0 0; font-size: 14px; color: var(--white); overflow-wrap: anywhere; }
.ns .profile-stats:empty { display: none; }
.ns .cast-dialog-detail { min-width: 0; }
.ns .cast-dialog-detail h2 { overflow-wrap: normal; word-break: normal; hyphens: none; }
.ns .profile-actions { margin-top: 30px; }

/* The hero used to be a fixed height with its overflow hidden, so on a shorter screen the button was cut off
   and slid under the pink bar. It now has the same minimum height but grows to hold everything in it. */
.ns .cast-hero { height: auto; min-height: max(630px, min(790px, 87svh)); }
.ns .cast-hero-inner { height: auto; min-height: inherit; }

/* THE PROFILE POPUP'S PICTURE. It used to stack two images: a dimmed backdrop, and the portrait on top at 91% of the panel's height. A
   portrait that is a full photo (most are) did not fill the panel, so the backdrop showed as a dark band above it and slivers beside it,
   and the panel was forced to 650px tall. Now the portrait fills the whole panel (cropped from the top, where the face is), the backdrop
   image is no longer used, and a soft stage glow sits behind it for any picture with transparent edges. A very tall full-length picture
   (class is-tall, set in ns-cast.js) is kept whole at the bottom instead of being cropped. */
.ns .cast-dialog-art { background: radial-gradient(ellipse at 50% 72%, #4b1b3f 0%, #1a0c1c 48%, #100912 78%); }
.ns .profile-backdrop { display: none; }
.ns .profile-portrait { left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.ns .profile-portrait.is-tall { left: 2.5%; width: 95%; height: 91%; object-fit: contain; object-position: center bottom; }
@media (min-width: 821px) { .ns .cast-dialog-art { min-height: 540px; } }
