:root {
    --blue: #1d6fe8;
    --blue-dark: #0f2f62;
    --purple: #7b4dff;
    --purple-soft: #eee8ff;
    --sky: #eaf4ff;
    --ink: #132033;
    --muted: #64748b;
    --white: #fff;
    --line: #dbe7f5;
    --shadow: 0 20px 60px rgba(20, 52, 95, .14);
    --radius: 26px;
    --max: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f7fbff 0%, #fff 35%, #f4f8ff 100%);
    line-height: 1.65;
    display: flex;
    flex-direction: column;
}

body.nav-open {
    overflow: hidden;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

img,
video {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(var(--max), calc(100% - 36px));
    margin-inline: auto;
}

/* ==========================================================================
   HEADER / NAVIGATION V2
   ========================================================================== */

.site-header,
.site-header-v2 {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(30, 86, 138, .10);
    box-shadow: 0 8px 30px rgba(24, 57, 88, .06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header-v2 .nav-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    position: relative;
}

/* Brand */

.site-header-v2 .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-shrink: 0;
    color: #173b5f;
    text-decoration: none;
}

.site-header-v2 .brand-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.site-header-v2 .brand-logo img {
    display: block;
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.site-header-v2 .brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.1;
}

.site-header-v2 .brand-copy strong {
    font-family: "Cinzel", serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .01em;
    color: #173b5f;
    white-space: nowrap;
}

.site-header-v2 .brand-copy small {
    margin-top: 5px;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #71859a;
    white-space: nowrap;
}

/* Main navigation */

.site-header-v2 .main-nav {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.site-header-v2 .nav-left,
.site-header-v2 .nav-right {
    display: flex;
    align-items: center;
}

.site-header-v2 .nav-left {
    gap: 3px;
}

.site-header-v2 .nav-right {
    gap: 8px;
    flex-shrink: 0;
}

.site-header-v2 .nav-main-link,
.site-header-v2 .nav-dropdown-toggle,
.site-header-v2 .nav-login,
.site-header-v2 .nav-logout {
    position: relative;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: #40566c;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        color .2s ease,
        background-color .2s ease,
        transform .2s ease;
}

.site-header-v2 .nav-main-link:hover,
.site-header-v2 .nav-dropdown-toggle:hover,
.site-header-v2 .nav-login:hover,
.site-header-v2 .nav-logout:hover {
    color: #1769aa;
    background: #f1f7fc;
}

.site-header-v2 .nav-main-link.active,
.site-header-v2 .nav-dropdown.active > .nav-dropdown-toggle {
    color: #1769aa;
    background: #edf6fd;
}

.site-header-v2 .nav-main-link.active::after,
.site-header-v2 .nav-dropdown.active > .nav-dropdown-toggle::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    height: 2px;
    border-radius: 999px;
    background: #2d82bd;
}

/* Dropdowns */

.site-header-v2 .nav-dropdown {
    position: relative;
}

.site-header-v2 .nav-dropdown-toggle i {
    font-size: 9px;
    transition: transform .2s ease;
}

.site-header-v2 .nav-dropdown.is-open > .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.site-header-v2 .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -8px);
    background: rgba(255, 255, 255, .99);
    border: 1px solid rgba(36, 93, 143, .12);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(19, 51, 78, .16);
    transition:
        opacity .18s ease,
        visibility .18s ease,
        transform .18s ease;
}

.site-header-v2 .nav-dropdown.is-open > .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

/* Standard dropdown */

.site-header-v2 .nav-dropdown-menu-standard {
    width: 350px;
    padding: 10px;
}

.site-header-v2 .nav-dropdown-heading {
    padding: 10px 12px 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(30, 86, 138, .08);
}

.site-header-v2 .nav-dropdown-heading strong {
    display: block;
    margin-top: 4px;
    font-family: "Cinzel", serif;
    font-size: 15px;
    color: #173b5f;
}

.site-header-v2 .nav-dropdown-eyebrow {
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #2b82bd;
}

.site-header-v2 .nav-dropdown-menu-standard > a,
.site-header-v2 .nav-mega-links > a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    color: #40566c;
    text-decoration: none;
    transition:
        background-color .18s ease,
        color .18s ease,
        transform .18s ease;
}

.site-header-v2 .nav-dropdown-menu-standard > a:hover,
.site-header-v2 .nav-mega-links > a:hover {
    color: #1769aa;
    background: #f0f7fc;
}

.site-header-v2 .nav-dropdown-menu-standard > a.active,
.site-header-v2 .nav-mega-links > a.active {
    color: #1769aa;
    background: #eaf5fc;
}

.site-header-v2 .nav-menu-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    color: #277db7;
    background: #eaf4fb;
}

.site-header-v2 .nav-menu-icon i {
    font-size: 14px;
}

.site-header-v2 .nav-dropdown-menu strong {
    display: block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    color: #294960;
}

.site-header-v2 .nav-dropdown-menu a:hover strong,
.site-header-v2 .nav-dropdown-menu a.active strong {
    color: #1769aa;
}

.site-header-v2 .nav-dropdown-menu small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.45;
    color: #7a8c9d;
}

/* Convention mega menu */

.site-header-v2 .nav-dropdown-convention .nav-dropdown-menu {
    left: auto;
    right: -190px;
    transform: translateY(-8px);
}

.site-header-v2 .nav-dropdown-convention.is-open > .nav-dropdown-menu {
    transform: translateY(0);
}

.site-header-v2 .nav-mega-menu {
    width: min(760px, calc(100vw - 40px));
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
}

.site-header-v2 .nav-mega-intro {
    padding: 22px;
    border-radius: 14px;
    background: linear-gradient(145deg, #173b5f 0%, #205f91 100%);
    color: #fff;
}

.site-header-v2 .nav-mega-intro .nav-dropdown-eyebrow {
    color: #b9ddf6;
}

.site-header-v2 .nav-mega-intro > strong {
    display: block;
    margin-top: 9px;
    font-family: "Cinzel", serif;
    font-size: 18px;
    line-height: 1.3;
    color: #fff;
}

.site-header-v2 .nav-mega-intro p {
    margin: 11px 0 18px;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .75);
}

.site-header-v2 .nav-mega-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color .18s ease;
}

.site-header-v2 .nav-mega-primary:hover {
    background: rgba(255, 255, 255, .20);
}

.site-header-v2 .nav-mega-primary i {
    font-size: 9px;
}

.site-header-v2 .nav-mega-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    align-content: start;
    padding: 4px;
}

/* Account controls */

.site-header-v2 .nav-cta,
.site-header-v2 .nav-dashboard {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 15px;
    border-radius: 11px;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

.site-header-v2 .nav-cta {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    box-shadow: 0 7px 18px rgba(28, 108, 164, .18);
}

.site-header-v2 .nav-cta:hover,
.site-header-v2 .nav-cta.active {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(28, 108, 164, .24);
}

.site-header-v2 .nav-dashboard {
    color: #fff;
    background: #1c668f;
}

.site-header-v2 .nav-dashboard:hover {
    color: #fff;
    background: #155576;
}

/* Hamburger */

.site-header-v2 button.nav-toggle {
    display: none;
    width: 43px;
    height: 43px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    flex: 0 0 auto;
    margin-left: auto;
    border: 1px solid rgba(30, 86, 138, .14);
    border-radius: 11px;
    background: #f4f9fc;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    z-index: 1100;
}

.site-header-v2 button.nav-toggle > span {
    display: block !important;
    width: 19px !important;
    height: 2px !important;
    min-width: 19px;
    min-height: 2px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px;
    background-color: #235d86 !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    inset: auto !important;
    transform-origin: center;
    transition:
        transform .22s ease,
        opacity .22s ease;
}

.site-header-v2 button.nav-toggle.is-open > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header-v2 button.nav-toggle.is-open > span:nth-child(2) {
    opacity: 0 !important;
}

.site-header-v2 button.nav-toggle.is-open > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 70px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(123, 77, 255, .16), transparent 34%),
        radial-gradient(circle at 80% 10%, rgba(29, 111, 232, .18), transparent 35%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 42px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--line);
    color: var(--blue-dark);
    font-weight: 800;
    font-size: .82rem;
    box-shadow: 0 10px 30px rgba(29, 111, 232, .08);
}

h1,
h2,
h3 {
    line-height: 1.1;
    margin: 0 0 16px;
}

h1 {
    font-family: Cinzel, serif;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    letter-spacing: -.04em;
    color: var(--blue-dark);
}

h2 {
    font-family: Cinzel, serif;
    font-size: clamp(2rem, 4vw, 3.3rem);
    color: var(--blue-dark);
}

h3 {
    font-size: 1.25rem;
    color: var(--blue-dark);
}

.lead {
    font-size: 1.17rem;
    color: #3d526e;
    max-width: 680px;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 900;
    border: 1px solid var(--line);
    background: white;
    color: black;
    box-shadow: 0 12px 28px rgba(20, 52, 95, .1);
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.btn.primary {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: white;
    border: 0;
}

.btn:hover {
    transform: translateY(-2px);
}

.hero-card {
    position: relative;
    border-radius: 36px;
    overflow: hidden;
    min-height: 460px;
    background: linear-gradient(135deg, #092046, #143d86);
    box-shadow: var(--shadow);
}

.hero-card video,
.hero-card img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    opacity: .72;
}

.hero-card-content {
    position: absolute;
    inset: auto 24px 24px 24px;
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, .18);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section {
    padding: 82px 0;
}

.section.soft {
    background: linear-gradient(180deg, #fff, #eef6ff);
}

.section-head {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-head.center {
    text-align: center;
    margin-inline: auto;
}

.grid {
    display: grid;
    gap: 22px;
}

.grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: rgba(255, 255, 255, .88);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 12px 36px rgba(20, 52, 95, .08);
}

.card.feature {
    min-height: 230px;
}

.icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--sky), var(--purple-soft));
    font-size: 1.45rem;
    margin-bottom: 16px;
}

.image-card {
    overflow: hidden;
    padding: 0;
}

.image-card img {
    height: 240px;
    width: 100%;
    object-fit: cover;
}

.image-card .pad {
    padding: 24px;
}

.split {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 36px;
    align-items: center;
}

.media-panel {
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #102f60;
}

.media-panel img,
.media-panel video {
    width: 100%;
    height: 420px;
    object-fit: cover;
    opacity: .9;
}

.list-check {
    padding: 0;
    margin: 22px 0 0;
    list-style: none;
}

.list-check li {
    margin: 10px 0;
    padding-left: 30px;
    position: relative;
}

.list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 900;
}

.page-hero {
    padding: 76px 0 44px;
    background: linear-gradient(135deg, #eef7ff, #f2edff);
}

.page-hero .lead {
    max-width: 760px;
}

.badge-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.badge {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--line);
    font-weight: 800;
    color: var(--blue-dark);
    font-size: .86rem;
}

.event-date {
    font-weight: 900;
    color: var(--purple);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.cta-panel {
    position: relative;
    overflow: hidden;
    border-radius: 36px;
    padding: 46px;
    background: linear-gradient(135deg, var(--blue-dark), #163c80 48%, var(--purple));
    color: white;
    box-shadow: var(--shadow);
}

.cta-panel h2,
.cta-panel h3 {
    color: white;
}

.cta-panel p {
    color: rgba(255, 255, 255, .84);
}

.cta-panel .btn {
    border: 0;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.contact-form {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 7px;
}

.field label {
    font-weight: 800;
    color: var(--blue-dark);
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
    font: inherit;
    background: white;
}

textarea {
    min-height: 130px;
}

/* ==========================================================================
   AUTH PAGES
   ========================================================================== */

.auth-page {
    min-height: 80vh;
    padding: 60px 20px;
    background: #f5f7fb;
}

.auth-card {
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .08);
}

.auth-card h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.auth-intro {
    color: #64748b;
    margin-bottom: 28px;
}

.register-form {
    margin-top: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 7px;
}

.form-group input,
.form-group select {
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
}

.form-group small {
    margin-top: 6px;
    color: #64748b;
}

.btn-primary {
    margin-top: 26px;
    width: 100%;
    border: none;
    padding: 15px 22px;
    border-radius: 14px;
    background: #0f172a;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #1e293b;
}

.btn-secondary {
    display: inline-block;
    padding: 13px 18px;
    border-radius: 14px;
    background: #e2e8f0;
    color: #0f172a;
    text-decoration: none;
    font-weight: 800;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.alert.success {
    background: #ecfdf5;
    color: #14532d;
    border: 1px solid #bbf7d0;
}

.alert.error {
    background: #fef2f2;
    color: #7f1d1d;
    border: 1px solid #fecaca;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.directory-actions {
    margin-top: 26px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: #0f2a4d;
    color: #fff;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr .9fr .8fr;
    gap: 30px;
    padding: 54px 0;
}

.footer-grid p {
    color: #afc2dc;
    margin-bottom: 0;
}

.footer-grid h3 {
    color: white;
    font-size: 1rem;
}

.site-footer a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.footer-grid a {
    display: block;
    margin: 8px 0;
}

.footer-brand {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px !important;
}

.footer-brand .brand-mark,
.footer-brand .brand-logo {
    box-shadow: none;
}

.brand-mark,
.footer-brand .brand-logo {
    width: 56px;
    height: 60px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    font-weight: 900;
}

.footer-brand .brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 16px 0;
    color: #b8cae0;
    font-size: 14px;
}

.footer-bottom-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
}

.footer-left {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-center {
    justify-self: center;
    text-align: center;
}

.footer-right,
.admin-footer-right {
    display: flex;
    align-items: center;
}

.footer-right {
    justify-self: end;
    gap: 18px;
    flex-wrap: wrap;
}

.back-to-top {
    display: inline-flex !important;
    align-items: center;
    font-weight: 800;
    margin: 0 !important;
}

.design52-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .95) !important;
    font-weight: 800;
    font-size: .88rem;
    line-height: 1;
    white-space: nowrap;
    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.design52-link:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff !important;
    transform: translateY(-1px);
}

.design52-logo {
    display: block;
    height: 20px;
    width: auto;
    max-width: 95px;
    object-fit: contain;
    flex: 0 0 auto;
}

.design52-text {
    font-weight: 800;
    font-size: .9rem;
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
    opacity: .85;
    transition: all .2s ease;
}

.design52-text:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Medium desktop */

@media (max-width: 1280px) {
    .site-header-v2 .nav-wrap {
        gap: 16px;
    }

    .site-header-v2 .main-nav {
        gap: 12px;
    }

    .site-header-v2 .nav-main-link,
    .site-header-v2 .nav-dropdown-toggle,
    .site-header-v2 .nav-login,
    .site-header-v2 .nav-logout {
        padding: 0 9px;
        font-size: 12px;
    }

    .site-header-v2 .brand-copy small {
        display: none;
    }
}

/* Tablet / mobile navigation */

@media (max-width: 1179px) {
    .site-header-v2 .nav-wrap {
        min-height: 70px;
    }

    .site-header-v2 button.nav-toggle {
        display: flex !important;
    }

    .site-header-v2 .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1050;
        display: none;
        width: 100%;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 14px 18px 24px;
        background: rgba(255, 255, 255, .995);
        border-top: 1px solid rgba(30, 86, 138, .08);
        border-bottom: 1px solid rgba(30, 86, 138, .12);
        box-shadow: 0 20px 35px rgba(25, 58, 88, .12);
    }

    .site-header-v2 .main-nav.is-open {
        display: block;
    }

    .site-header-v2 .nav-left,
    .site-header-v2 .nav-right {
        width: 100%;
        display: block;
    }

    .site-header-v2 .nav-left {
        margin-bottom: 15px;
    }

    .site-header-v2 .nav-main-link,
    .site-header-v2 .nav-dropdown-toggle {
        width: 100%;
        min-height: 50px;
        justify-content: space-between;
        padding: 0 14px;
        border-radius: 10px;
        font-size: 14px;
        text-align: left;
    }

    .site-header-v2 .nav-main-link.active::after,
    .site-header-v2 .nav-dropdown.active > .nav-dropdown-toggle::after {
        left: 5px;
        right: auto;
        top: 12px;
        bottom: 12px;
        width: 3px;
        height: auto;
    }

    .site-header-v2 .nav-dropdown {
        width: 100%;
    }

    .site-header-v2 .nav-dropdown-menu,
    .site-header-v2 .nav-dropdown-convention .nav-dropdown-menu {
        position: static;
        width: 100%;
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        margin: 3px 0 8px;
        border: 0;
        border-radius: 13px;
        background: #f6fafd;
        box-shadow: none;
    }

    .site-header-v2 .nav-dropdown.is-open > .nav-dropdown-menu,
    .site-header-v2 .nav-dropdown-convention.is-open > .nav-dropdown-menu {
        display: block;
        transform: none;
    }

    .site-header-v2 .nav-dropdown-heading {
        display: none;
    }

    .site-header-v2 .nav-dropdown-menu-standard {
        padding: 6px;
    }

    .site-header-v2 .nav-dropdown-menu-standard > a {
        padding: 10px 12px;
    }

    .site-header-v2 .nav-mega-menu {
        display: none;
        width: 100%;
        padding: 6px;
    }

    .site-header-v2 .nav-dropdown.is-open > .nav-mega-menu {
        display: block;
    }

    .site-header-v2 .nav-mega-intro {
        display: none;
    }

    .site-header-v2 .nav-mega-links {
        display: block;
        padding: 0;
    }

    .site-header-v2 .nav-mega-links > a {
        margin-bottom: 2px;
    }

    .site-header-v2 .nav-right {
        padding-top: 15px;
        border-top: 1px solid rgba(30, 86, 138, .10);
    }

    .site-header-v2 .nav-cta,
    .site-header-v2 .nav-dashboard {
        width: 100%;
        min-height: 46px;
    }

    .site-header-v2 .nav-login,
    .site-header-v2 .nav-logout {
        width: 100%;
        min-height: 44px;
        margin-top: 6px;
    }

    .hero-grid,
    .split,
    .grid.two {
        grid-template-columns: 1fr;
    }

    .grid.three {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding-top: 54px;
    }

    .hero-card,
    .hero-card video,
    .hero-card img {
        min-height: 340px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .auth-card {
        padding: 24px 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, var(--max));
    }

    .site-header-v2 .nav-wrap {
        min-height: 64px;
        gap: 10px;
    }

    .site-header-v2 .brand {
        gap: 9px;
        flex: 1 1 auto;
    }

    .site-header-v2 .brand-logo {
        width: 40px;
        height: 40px;
    }

    .site-header-v2 .brand-logo img {
        width: 40px;
        height: 40px;
    }

    .site-header-v2 .brand-copy strong {
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-header-v2 .brand-copy small {
        display: none;
    }

    .site-header-v2 button.nav-toggle {
        display: flex !important;
        width: 40px;
        height: 40px;
    }

    .site-header-v2 button.nav-toggle > span {
        width: 18px !important;
        min-width: 18px;
    }

    .site-header-v2 .main-nav {
        max-height: calc(100vh - 64px);
        padding: 10px 15px 22px;
    }

    .site-header-v2 .nav-menu-icon {
        width: 34px;
        height: 34px;
    }

    .site-header-v2 .nav-dropdown-menu strong {
        font-size: 12px;
    }

    .site-header-v2 .nav-dropdown-menu small {
        font-size: 10px;
    }

    .grid.three,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 58px 0;
    }

    .page-hero {
        padding: 54px 0 34px;
    }

    .card {
        padding: 22px;
    }

    .cta-panel {
        padding: 30px;
    }

    .media-panel img,
    .media-panel video {
        height: 280px;
    }

    .hero-card-content {
        position: relative;
        inset: auto;
        margin: 12px;
    }

    .hero-card {
        padding-top: 220px;
    }

    .hero-card img,
    .hero-card video {
        position: absolute;
        inset: 0;
        min-height: 100%;
        height: 100%;
    }

    .footer-grid {
        gap: 24px;
        padding: 40px 0;
    }

    .footer-bottom-inner {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 12px;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        justify-self: start;
        text-align: left;
    }

    .footer-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .design52-link {
        padding: 8px 11px;
        font-size: .84rem;
    }

    .design52-logo {
        height: 19px;
    }
}

@media (max-width: 420px) {
    .container {
        width: min(100% - 18px, var(--max));
    }

    .site-header-v2 .brand-copy strong {
        font-size: 13px;
        letter-spacing: 0;
    }

    .site-header-v2 .brand-logo {
        width: 38px;
        height: 38px;
    }

    .site-header-v2 .brand-logo img {
        width: 38px;
        height: 38px;
    }

    .site-header-v2 .nav-wrap {
        min-height: 62px;
    }

    .site-header-v2 button.nav-toggle {
        width: 38px;
        height: 38px;
    }

    .site-header-v2 button.nav-toggle > span {
        width: 17px !important;
        min-width: 17px;
    }

    .site-header-v2 .main-nav {
        max-height: calc(100vh - 62px);
        padding: 10px 12px 20px;
    }

    .site-header-v2 .nav-main-link,
    .site-header-v2 .nav-dropdown-toggle {
        min-height: 47px;
        padding: 0 12px;
        font-size: 13px;
    }

    .cta-panel {
        padding: 24px 20px;
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}