/* Las Vegas campaign pages (teaser + community).
   Loaded by _Layout when a view sets ViewData["LasVegasChrome"] = true. Holds the brand
   fonts plus the alternate nav and footer; page-specific styles live in each page's CSS. */

/* Brand fonts. Files live in /css/fonts - not /fonts, which an IIS rewrite rule in
   web.config redirects to the /ts sub-app in production. */
@font-face {
    font-family: "The Future";
    src: url("fonts/the-future-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "The Future";
    src: url("fonts/the-future-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "The Future";
    src: url("fonts/the-future-medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Pitch Sans";
    src: url("fonts/pitch-sans-semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

.lv-chrome {
    --lv-mint: #e4f3ef;
    --lv-green: #1c4038;
    --lv-green-hover: #2a5a4f;
    --lv-sans: "The Future", Futura, "Century Gothic", sans-serif;
    --lv-mono: "Pitch Sans", "Courier New", monospace;
}


/* Mouse drag for card carousels (drag-carousel.js). is-scrollable is set while the row
   overflows, so the grab cursor only shows when there's somewhere to drag. */
@media (hover: hover) and (pointer: fine) {
    .lv-chrome [data-drag-carousel].is-scrollable {
        cursor: grab;
    }
}

.lv-chrome [data-drag-carousel].is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}


/* Hero, shared by both pages (.teaser-hero on the teaser and Shalestone):
   eyebrow line, monospace headline, intro paragraph on a mint panel */

.lv-chrome .teaser-hero {
    background: var(--lv-mint);
    padding: 3.5rem 1.5rem;
    text-align: center;
    color: var(--lv-green);
}

.lv-chrome .teaser-hero__eyebrow {
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: 2.25rem;
}

.lv-chrome .teaser-hero__title {
    font-family: var(--lv-mono);
    font-weight: 600;
    font-size: clamp(1.6rem, 1rem + 2.6vw, 2.75rem);
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 auto 2.75rem;
}

/* Below 1200px the headline wraps onto evenly balanced lines (or breaks at a
   <br class="d-md-none"> on mobile). From 1200px it stays on one line - wide enough for
   Shalestone's 30-character headline; nowrap any narrower would cut it off. */
.lv-chrome .teaser-hero__title {
    text-wrap: balance;
}

@media (min-width: 1200px) {
    .lv-chrome .teaser-hero__title {
        white-space: nowrap;
    }
}

.lv-chrome .teaser-hero__body {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.55;
    max-width: 30rem;
    margin: 0 auto;
}


/* Feature cards row, shared by both pages: horizontal swipe on small screens, 3 columns on
   large. Add data-drag-carousel for mouse drag (drag-carousel.js). */

.lv-chrome .teaser-cards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-right: -0.75rem; /* bleed into the container's gutter so the next card peeks in */
    padding-right: 0.75rem;
}

.lv-chrome .teaser-cards::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .lv-chrome .teaser-cards {
        grid-auto-columns: 45%;
    }
}

@media (min-width: 992px) {
    .lv-chrome .teaser-cards {
        grid-auto-flow: row;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
        margin-right: 0;
        padding-right: 0;
    }
}


/* Feature cards, shared by both pages (.teaser-card on the teaser and Shalestone) */

.lv-chrome .teaser-card {
    display: flex;
    flex-direction: column;
    background: var(--lv-green);
    color: var(--lv-mint);
    padding: 2rem 1.75rem;
    scroll-snap-align: start;
}

.lv-chrome .teaser-card__title {
    font-family: var(--lv-sans);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    color: var(--lv-mint);
}

.lv-chrome .teaser-card__body {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 3rem;
    color: var(--lv-mint);
}

/* No image below (Shalestone cards): no gap reserved for one */
.lv-chrome .teaser-card__body:last-child {
    margin-bottom: 0;
}

/* Image sits at the bottom of the card. When it's wrapped in <picture> (WebP + JPG
   fallback), the <picture> is the card's flex item, so it carries the margin. */
.lv-chrome .teaser-card picture {
    display: block;
    margin-top: auto;
}

.lv-chrome .teaser-card__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 6 / 5; /* matches the 800x667 exports */
    object-fit: cover;
    border-radius: 14px;
    margin-top: auto;
}

/* Optional icon above the title (Shalestone). The exported icons are black; the filter
   renders them white on the green cards. */
.lv-chrome .teaser-card__icon {
    display: block;
    align-self: flex-start; /* the card is a flex column; keep the icon left-aligned */
    width: auto;
    height: 2.5rem;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}


/* Nav: sentence-case links in the brand font, current page underlined */

.lv-chrome .navbar-nav .nav-link {
    font-family: var(--lv-sans);
    font-weight: 400;
    color: var(--lv-green);
    text-transform: none;
    letter-spacing: normal;
    text-decoration: none;
}

.lv-chrome .navbar-nav .nav-link:hover,
.lv-chrome .navbar-nav .nav-link:focus-visible,
.lv-chrome .navbar-nav .nav-link[aria-current="page"] {
    color: var(--lv-green);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.45em;
}

@media (min-width: 768px) {
    .lv-chrome nav .nav-item {
        padding-left: 2rem;
    }

    .lv-chrome .navbar-nav .nav-link {
        font-size: 1rem;
    }
}


/* Nav button (ViewData["NavCta"]) - replaces the links and mobile menu on pages that set it.
   Outline style: white fill, emerald text and border. Hover reverses it (emerald fill). */

.lv-chrome .nav-cta {
    display: inline-flex;
    align-items: center;
    height: 2.5rem;
    padding: 0 1.25rem;
    background: #fff;
    color: var(--lv-green);
    font-family: var(--lv-sans);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid var(--lv-green);
    border-radius: 14px;
    transition: background-color 0.15s, color 0.15s;
}

.lv-chrome .nav-cta:hover {
    background: var(--lv-green);
    color: #fff;
    text-decoration: none;
}

.lv-chrome .nav-cta:focus-visible {
    outline: 2px solid var(--lv-green);
    outline-offset: 2px;
}

/* Single nav link (a nav with one link skips the mobile menu) */
.lv-chrome .nav-single {
    flex-direction: row;
    margin: 0;
}

.lv-chrome .nav-single .nav-link {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .lv-chrome .nav-single .nav-link {
        font-size: 0.95rem;
        padding: 0.5rem 0;
    }
}

/* Phones: keep logo and button/link on one row - the logo shrinks to make room */
@media (max-width: 575.98px) {
    .lv-chrome .has-nav-cta .container {
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    .lv-chrome .has-nav-cta .navbar-brand {
        flex: 0 1 auto;
        min-width: 0;
        margin-right: 0;
    }

    .lv-chrome .has-nav-cta .navbar-brand svg {
        display: block;
        width: 100%;
        max-width: 197.551px;
        height: auto;
    }

    .lv-chrome .nav-cta {
        flex: 0 0 auto;
        height: 2.25rem;
        padding: 0 0.875rem;
        font-size: 0.85rem;
    }
}


/* Footer: legal links and a single disclaimer line, centered on white */

.lv-footer {
    padding: 1.5rem 1rem 2rem;
    background: #fff;
    color: var(--lv-green);
    font-family: var(--lv-sans);
    text-align: center;
}

.lv-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 2rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .lv-footer__links {
        column-gap: 3.5rem;
    }
}

.lv-footer li {
    line-height: 1.5;
}

.lv-footer a,
.lv-footer a:not([href]):not([class]) {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--lv-green);
    font-size: 12px; /* px, not rem: the site's root size switches between 14px and 16px */
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
}

/* Privacy choices icon scales with the link text */
.lv-footer__links img {
    width: 2em;
    height: auto;
}

.lv-footer a:hover,
.lv-footer a:not([href]):not([class]):hover {
    color: var(--lv-green-hover);
    text-decoration: underline;
}

.lv-footer a:focus-visible {
    outline: 2px solid var(--lv-green);
    outline-offset: 2px;
}

.lv-footer__disclaimer {
    max-width: 60rem;
    margin: 0 auto;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    color: var(--lv-green);
}

.lv-footer__disclaimer + .lv-footer__disclaimer {
    margin-top: 0.5rem;
}

.lv-footer__eho {
    display: inline-block;
    width: 1.35em;
    height: auto;
    margin-right: 0.35em;
    vertical-align: -0.2em;
}

/* Email link inside the disclaimer: inline, same size as the text, underlined */
.lv-footer .lv-footer__disclaimer a {
    display: inline;
    font-size: inherit;
    font-style: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
