/*
 * TEMPORARY: mimics the header and footer of the live joinxr.io marketing site (as of Dec 2026) for the signed-out
 * landing page (Views/Shared/_TemporaryMarketingSiteHeader.cshtml and _TemporaryMarketingSiteFooter.cshtml).
 *
 * joinxr.io is due to be restyled closer to this portal. When it is, delete this file, js/temporary-marketing-site-mimic.js
 * and the two partials, and rebuild the header and footer from the new site.
 *
 * Values are copied from the live site's Tailwind build: Barlow, the Tailwind slate palette, its "brand" blues, and a
 * 17px root font size, so its rem-based spacing and type are written out here in px (1 Tailwind spacing unit = 4.25px).
 * Everything is prefixed mkt- and scoped to the header and footer.
 */

:root {
    --mkt-slate-300: oklch(86.9% .022 252.894);
    --mkt-slate-400: oklch(70.4% .04 256.788);
    --mkt-slate-500: oklch(55.4% .046 257.417);
    --mkt-slate-700: oklch(37.2% .044 257.287);
    --mkt-slate-800: oklch(27.9% .041 260.031);
    --mkt-slate-800-60: #1d293d99;
    --mkt-slate-900: oklch(20.8% .042 265.755);
    --mkt-slate-950-95: #020618f2;
    --mkt-brand-600: #1798f0;
    --mkt-brand-700: #0d7ad0;

    --mkt-font: 'Barlow', ui-sans-serif, system-ui, sans-serif;
    --mkt-text-sm: 14.875px;        /* text-sm: .875rem */
    --mkt-text-sm-lh: 1.4286;
    --mkt-text-xs: 12.75px;         /* text-xs: .75rem */
    --mkt-text-xs-lh: 1.3333;
    --mkt-radius-lg: 8.5px;         /* rounded-lg: .5rem */
    --mkt-radius-xl: 12.75px;       /* rounded-xl: .75rem */
    --mkt-ease: cubic-bezier(.4, 0, .2, 1);
}

.mkt-header, .mkt-footer {
    font-family: var(--mkt-font);
    -webkit-font-smoothing: antialiased;
}
.mkt-header *, .mkt-footer * { box-sizing: border-box; }
.mkt-header a, .mkt-footer a { text-decoration: none; }

/* max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 */
.mkt-container {
    width: 100%;
    max-width: 1360px;
    margin-inline: auto;
    padding-inline: 17px;
}
@media (min-width: 640px) { .mkt-container { padding-inline: 25.5px; } }
@media (min-width: 1024px) { .mkt-container { padding-inline: 34px; } }

/* ── Header ───────────────────────────────────────────────────────────────── */
.mkt-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--mkt-slate-950-95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--mkt-slate-800);
}
.mkt-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.mkt-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mkt-logo img { display: block; height: 29.75px; width: auto; }
.mkt-env {
    padding: 2px 6px;
    border-radius: 4px;
    background: #c0392b;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mkt-nav { display: none; align-items: center; gap: 4.25px; }
.mkt-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4.25px;
    padding: 8.5px 12.75px;
    border: 0;
    border-radius: var(--mkt-radius-lg);
    background: transparent;
    color: var(--mkt-slate-300);
    font-family: inherit;
    font-size: var(--mkt-text-sm);
    line-height: var(--mkt-text-sm-lh);
    font-weight: 500;
    cursor: pointer;
    transition: color .15s var(--mkt-ease), background-color .15s var(--mkt-ease);
}
.mkt-nav-link:hover, .mkt-nav-link:focus-visible, .mkt-nav-link[aria-expanded="true"] { color: #fff; background: var(--mkt-slate-800-60); }
.mkt-chevron { display: block; width: 17px; height: 17px; color: var(--mkt-slate-400); transition: transform .2s var(--mkt-ease); }
.mkt-nav-link[aria-expanded="true"] .mkt-chevron { transform: rotate(180deg); }

.mkt-dropdown { position: relative; display: inline-flex; }
.mkt-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    min-width: 221px;
    margin-top: 8.5px;
    padding: 8.5px;
    display: flex;
    flex-direction: column;
    background: var(--mkt-slate-900);
    border: 1px solid var(--mkt-slate-700);
    border-radius: var(--mkt-radius-xl);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
}
.mkt-menu a {
    display: flex;
    align-items: center;
    gap: 8.5px;
    padding: 8.5px 12.75px;
    border-radius: var(--mkt-radius-lg);
    color: var(--mkt-slate-300);
    font-size: var(--mkt-text-sm);
    line-height: var(--mkt-text-sm-lh);
    transition: color .15s var(--mkt-ease), background-color .15s var(--mkt-ease);
}
.mkt-menu a:hover, .mkt-menu a:focus-visible { color: #fff; background: var(--mkt-slate-800); }

.mkt-header-actions { display: flex; align-items: center; gap: 12.75px; }
.mkt-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8.5px 17px;
    border-radius: var(--mkt-radius-lg);
    background: var(--mkt-brand-600);
    color: #fff;
    font-size: var(--mkt-text-sm);
    line-height: var(--mkt-text-sm-lh);
    font-weight: 500;
    transition: background-color .15s var(--mkt-ease);
}
.mkt-signin:hover, .mkt-signin:focus-visible { background: var(--mkt-brand-700); }
.mkt-header-actions .mkt-signin { display: none; }

.mkt-nav-toggle {
    display: inline-flex;
    padding: 8.5px;
    border: 0;
    border-radius: var(--mkt-radius-lg);
    background: transparent;
    color: var(--mkt-slate-400);
    cursor: pointer;
    transition: color .15s var(--mkt-ease), background-color .15s var(--mkt-ease);
}
.mkt-nav-toggle:hover, .mkt-nav-toggle:focus-visible { color: #fff; background: var(--mkt-slate-800); }
.mkt-nav-toggle svg { display: block; width: 21.25px; height: 21.25px; }
.mkt-nav-toggle .mkt-icon-close,
.mkt-nav-toggle[aria-expanded="true"] .mkt-icon-open { display: none; }
.mkt-nav-toggle[aria-expanded="true"] .mkt-icon-close { display: block; }

.mkt-nav-mobile { border-top: 1px solid var(--mkt-slate-800); }
.mkt-nav-mobile nav { display: flex; flex-direction: column; gap: 4.25px; padding: 12.75px 17px; }
.mkt-mobile-link {
    display: block;
    padding: 8.5px 12.75px;
    border-radius: var(--mkt-radius-lg);
    color: var(--mkt-slate-300);
    font-size: var(--mkt-text-sm);
    line-height: var(--mkt-text-sm-lh);
}
.mkt-mobile-link--strong { font-weight: 500; }
.mkt-mobile-link:hover, .mkt-mobile-link:focus-visible { background: var(--mkt-slate-800); }
.mkt-mobile-group { padding-top: 4.25px; }
.mkt-mobile-group p {
    margin: 0;
    padding: 4.25px 12.75px;
    color: var(--mkt-slate-500);
    font-size: var(--mkt-text-xs);
    line-height: var(--mkt-text-xs-lh);
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.mkt-mobile-signin { padding: 8.5px 0 4.25px; }
.mkt-mobile-signin .mkt-signin { display: flex; padding-block: 10.625px; }

@media (min-width: 768px) {
    .mkt-nav { display: flex; }
    .mkt-header-actions .mkt-signin { display: inline-flex; }
    .mkt-nav-toggle, .mkt-nav-mobile { display: none !important; }
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.mkt-footer {
    background: var(--mkt-slate-900);
    color: var(--mkt-slate-400);
}
.mkt-footer-inner { padding-block: 51px; }
.mkt-footer p, .mkt-footer h2, .mkt-footer ul { margin: 0; }
.mkt-footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}
.mkt-footer-brand, .mkt-footer-contact { grid-column: span 2; }
.mkt-footer-brand img { display: block; height: 29.75px; width: auto; }
.mkt-footer-tagline { margin-top: 17px !important; font-size: var(--mkt-text-sm); line-height: 1.625; }
.mkt-footer-small { margin-top: 12.75px !important; font-size: var(--mkt-text-xs); line-height: var(--mkt-text-xs-lh); }
.mkt-footer h2 {
    margin-bottom: 17px;
    color: #fff;
    font-size: var(--mkt-text-sm);
    line-height: var(--mkt-text-sm-lh);
    font-weight: 600;
}
.mkt-footer ul { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12.75px; }
.mkt-footer li a {
    display: inline-flex;
    align-items: center;
    gap: 4.25px;
    color: inherit;
    font-size: var(--mkt-text-sm);
    line-height: var(--mkt-text-sm-lh);
    transition: color .15s var(--mkt-ease);
}
.mkt-footer li a:hover, .mkt-footer li a:focus-visible { color: #fff; }
.mkt-external { display: block; width: 12.75px; height: 12.75px; color: var(--mkt-slate-500); }
.mkt-break { word-break: break-all; }
.mkt-footer address { font-style: normal; font-size: var(--mkt-text-sm); line-height: 1.625; }

.mkt-footer-bottom {
    margin-top: 51px;
    padding-top: 34px;
    border-top: 1px solid var(--mkt-slate-800);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 17px;
    font-size: var(--mkt-text-xs);
    line-height: var(--mkt-text-xs-lh);
}

@media (min-width: 640px) {
    .mkt-footer-bottom { flex-direction: row; }
}
@media (min-width: 768px) {
    .mkt-footer-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .mkt-footer-brand, .mkt-footer-contact { grid-column: span 1; }
}
@media (min-width: 1024px) {
    .mkt-footer-inner { padding-block: 68px; }
    .mkt-footer-grid { gap: 51px; }
}

@media (prefers-reduced-motion: reduce) {
    .mkt-chevron { transition: none; }
}
