@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,500&display=swap');

/* Public navigation only. Keep these styles separate from the shared application CSS. */
.tli-header {
    --header-blue: #28477f;
    --header-muted: #7183a3;
    position: relative;
    z-index: 50;
    width: 100%;
    padding: 0;
    background: linear-gradient(to bottom, #fff 72%, #fafbfc 100%);
    color: var(--header-blue);
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    line-height: 1.5;
}
.tli-header *, .tli-header *::before, .tli-header *::after { box-sizing: border-box; }
/* Show the full divider at rest; an active menu keeps only its own underline. */
.tli-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--header-blue); pointer-events: none; z-index: 1; }
.tli-header:has(.tli-header__item.is-active)::after,
.tli-header:has(.tli-header__trigger:focus-visible)::after { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
    .tli-header:has(.tli-header__trigger:hover)::after { opacity: 0; }
}
.tli-header [x-cloak] { display: none !important; }
.tli-header a { color: inherit; text-decoration: none; }
.tli-header button { font: inherit; color: inherit; border: 0; border-radius: 0; background: transparent; cursor: pointer; }
.tli-header a:focus-visible, .tli-header button:focus-visible { outline: 2px solid var(--header-blue); outline-offset: 4px; }
.tli-header__inner { display: flex; align-items: center; min-height: 108px; width: 87%; max-width: 1652px; margin: 0 auto; gap: 22px; }
.tli-header__logo { display: flex; flex: 0 0 96px; align-items: center; }
.tli-header__logo img { display: block; width: 76px; height: 76px; object-fit: contain; }
.tli-header__navigation { display: flex; flex: 1; align-self: stretch; min-width: 0; gap: clamp(8px, 2.5vw, 48px); list-style: none; margin: 0; padding: 0; }
.tli-header__item { display: flex; margin: 0; padding: 0; }
.tli-header .tli-header__trigger { display: flex; align-items: center; justify-content: flex-start; padding: 24px 20px; border-bottom: 2px solid transparent; color: var(--header-muted); text-align: left; white-space: nowrap; }
.tli-header__label { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; letter-spacing: .65px; text-transform: uppercase; }
.tli-header__label svg { width: 12px; height: 12px; flex-shrink: 0; }
.tli-header__item.is-active > .tli-header__trigger,
.tli-header .tli-header__trigger:focus-visible { background: transparent; color: var(--header-blue); border-bottom-color: var(--header-blue); }
@media (hover: hover) and (pointer: fine) {
    .tli-header .tli-header__trigger:hover { background: transparent; color: var(--header-blue); border-bottom-color: var(--header-blue); }
}
.tli-header__utilities { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.tli-header__phone { font-size: 16px; font-weight: 800; letter-spacing: .3px; white-space: nowrap; }
.tli-header__login { padding: 12px 0; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .65px; }
.tli-header__account { position: relative; }
.tli-header .tli-header__account-link { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 14px; font-weight: 400; text-transform: uppercase; white-space: nowrap; }
.tli-header__user-icon { width: 22px; height: 22px; flex-shrink: 0; }
.tli-header__logout { display: flex; align-items: center; justify-content: center; width: 30px; height: 40px; }
.tli-header__logout svg { width: 20px; height: 20px; }
.tli-header__account-panel { position: absolute; top: 100%; right: 0; z-index: 2; min-width: 180px; padding: 12px; background: #fff; border: 1px solid #e2e8f1; box-shadow: 0 8px 24px #28477f16; }
.tli-header__account-panel a { display: block; padding: 9px 12px; }
.tli-header__account-panel a:hover { background: #f4f6fa; }
.tli-header__social .social-icon { display: flex !important; flex-direction: row; align-items: center; gap: 10px; }
.tli-header__social .social-icon > div { display: flex; width: 40px; height: 40px; margin: 0; border: 1px solid var(--header-blue); border-radius: 50%; color: var(--header-blue); }
.tli-header__social a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; }
.tli-header__social svg { width: 15px; height: 15px; }
.tli-header__social a:hover { background: #f4f6fa; }
.tli-header__panel { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 0; box-shadow: 0 14px 20px #28477f08; max-height: calc(100dvh - 108px); overflow-y: auto; }
.tli-header__panel-inner { width: 87%; max-width: 1652px; margin: 0 auto; padding: 26px 0 28px; }
.tli-header__panel-heading { margin-bottom: 24px; }
.tli-header .tli-header__panel-heading h2 { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 32px; line-height: 1.4; font-style: normal; font-weight: 600; color: var(--header-blue); }
.tli-header__columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 24px; }
.tli-header__column { min-width: 0; padding: 0 30px; border-left: 1px solid #e3e9f2; }
.tli-header__column:nth-child(4n + 1) { padding-left: 0; border-left: 0; }
.tli-header .tli-header__branch-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 15px; font-family: 'Manrope', sans-serif; font-size: 16px; line-height: 1.5; font-style: normal; font-weight: 700; color: var(--header-blue); }
.tli-header .tli-header__branch-link, .tli-header .tli-header__branch-label { display: block; padding: 7px 0; font-size: 14px; line-height: 1.45; color: #3e4d6a; }
.tli-header__branch-link:hover, .tli-header__branch-heading a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tli-header .tli-header__category-toggle { padding: 0; font: inherit; text-align: left; }
.tli-header .tli-header__expand, .tli-header .tli-header__mobile-toggle { display: none; }
/* Compact, anchored dropdown for shallow menus such as About. */
.tli-header__item--compact { position: relative; }
.tli-header__panel--compact { right: auto; width: 250px; height: auto; border-radius: 0 0 18px 18px; border-inline: 1px solid #e3e9f2; border-bottom: 1px solid #e3e9f2; box-shadow: 0 12px 24px #28477f0a; }
.tli-header__panel--compact .tli-header__panel-inner { width: 100%; padding: 14px 25px; }
.tli-header__panel--compact .tli-header__columns { display: block; }
.tli-header__panel--compact .tli-header__column { padding: 0; border: 0; }
.tli-header__panel--compact .tli-header__branch-link, .tli-header__panel--compact .tli-header__branch-label { padding: 12px 0; font-size: 14px; line-height: 1.45; font-weight: 400; color: var(--header-muted); }
.tli-header__panel--compact .tli-header__branch-link:hover,
.tli-header__panel--compact .tli-header__branch-link:focus-visible { color: var(--header-blue); }
.tli-header__panel--compact .tli-header__children { padding-left: 14px; }
/* Category selector and two-column dynamic course lists. */
.tli-header__panel--academy { text-align: left; text-transform: none; letter-spacing: normal; }
/* The shared page typography adds heading padding and uppercase H2 text. */
.tli-header .tli-header__academy-heading h2 { padding: 0; text-transform: none; letter-spacing: normal; }
.tli-header__academy-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; }
.tli-header .tli-header__academy-heading p, .tli-header .tli-header__academy-summary p { margin: 0; padding: 0; color: #71809c; font-family: 'Playfair Display', Georgia, serif; font-size: 17px; font-style: italic; font-weight: 500; line-height: 1.5; letter-spacing: normal; text-transform: none; }
.tli-header .tli-header__academy-heading p { font-size: 18px; }
.tli-header__academy { display: grid; grid-template-columns: minmax(240px, 22.8%) minmax(0, 1fr); gap: 34px; min-height: 380px; align-items: stretch; }
.tli-header__academy-tabs { border-right: 1px solid #e3e9f2; padding-right: 30px; }
.tli-header .tli-header__academy-tabs h3 { margin: 0 0 6px; padding: 0; font: 700 16px/1.5 'Manrope', sans-serif; color: var(--header-blue); text-transform: none; letter-spacing: normal; }
.tli-header .tli-header__academy-tabs button { display: block; width: calc(100% + 16px); margin-left: -16px; padding: 10px 14px; border-left: 2px solid transparent; border-radius: 0 10px 10px 0; text-align: left; font-size: 15px; line-height: 21px; font-weight: 400; color: #3e4d6a; }
.tli-header .tli-header__academy-tabs button[aria-selected="true"] { border-left-color: var(--header-blue); background: #eff3fa; color: var(--header-blue); font-weight: 700; }
.tli-header__academy-details, .tli-header__academy-content { min-width: 0; }
.tli-header__academy-content:focus-visible { outline: 2px solid var(--header-blue); outline-offset: 4px; }
.tli-header__academy-summary { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 24px; min-height: 42px; }
.tli-header__academy-summary-copy { display: flex; flex: 1; min-width: 0; align-items: baseline; flex-wrap: wrap; gap: 6px 20px; padding-top: 6px; }
.tli-header .tli-header__academy-summary h3 { margin: 0; padding: 0; font: 700 17px/1.5 'Manrope', sans-serif; color: var(--header-blue); text-transform: none; letter-spacing: normal; }
.tli-header .tli-header__academy-summary p { white-space: nowrap; }
.tli-header .tli-header__academy-visit { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; min-width: 161px; min-height: 42px; margin-left: auto; padding: 10px 25px; border: 1px solid var(--header-blue); border-radius: 28px; font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; }
.tli-header .tli-header__academy-visit:hover { background: #eff3fa; }
.tli-header__academy-courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; align-items: start; }
.tli-header .tli-header__academy-course > .tli-header__branch-link, .tli-header .tli-header__academy-course > .tli-header__branch-label { margin: 0; padding: 0; font: 400 15px/21px 'Manrope', sans-serif; letter-spacing: normal; text-transform: none; }
.tli-header .tli-header__academy-course-meta { margin: 4px 0 0; padding: 0; color: var(--header-muted); font: 400 13px/1.5 'Manrope', sans-serif; letter-spacing: normal; text-transform: none; }
/* Enterprise groups use the same menu records in wider, open columns. */
.tli-header__panel--enterprise .tli-header__columns { grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 44px; }
.tli-header .tli-header__enterprise-intro h2 { margin: 0; color: var(--header-blue); font-family: 'Playfair Display', Georgia, serif; font-size: 32px; line-height: 1.4; font-style: normal; font-weight: 600; }
.tli-header__panel--enterprise .tli-header__column { padding: 0; border: 0; }
.tli-header__panel--enterprise .tli-header__branch-heading { text-transform: uppercase; font-size: 13px; letter-spacing: .6px; }
.tli-header__panel--enterprise .tli-header__children > .tli-header__branch-link { position: relative; padding-left: 28px; }
.tli-header__panel--enterprise .tli-header__children > .tli-header__branch-link::before { content: '✓'; position: absolute; left: 0; color: var(--header-blue); }
/* Long or numerous configured labels may wrap rather than overlap account controls. */
.tli-header--dense .tli-header__navigation { flex-wrap: wrap; gap: 0; }
.tli-header--dense .tli-header__trigger { padding: 20px 12px; }
.tli-header--dense .tli-header__label { font-size: 14px; letter-spacing: .3px; }
@media (min-width: 1280px) {
    .tli-header .tli-header__category-toggle { pointer-events: none; }
    /* Bound the desktop mega-menu like the reference; long CMS lists remain scrollable. */
    .tli-header__panel--columns { height: min(400px, calc(100dvh - 108px)); overscroll-behavior-y: contain; }
    .tli-header__panel--academy { height: auto; }
    .tli-header__panel--academy .tli-header__panel-inner { width: calc(100% - 48px); padding-top: 30px; padding-bottom: 30px; }
    .tli-header__panel--columns .tli-header__columns { min-height: 270px; }
}
@media (min-width: 1280px) and (max-width: 1599px) {
    .tli-header__inner { width: calc(100% - 48px); gap: 12px; }
    .tli-header__logo { flex-basis: 80px; }
    .tli-header__navigation { gap: 4px; }
    .tli-header .tli-header__trigger { padding-inline: 12px; }
    .tli-header__label { font-size: 13px; }
    .tli-header__utilities { gap: 12px; }
    .tli-header__phone { font-size: 14px; }
    .tli-header__account-link span { max-width: 155px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 1279px) {
    .tli-header__inner { width: calc(100% - 40px); min-height: 88px; gap: 16px; }
    .tli-header__logo { flex-basis: auto; margin-right: auto; }
    .tli-header__logo img { width: 62px; height: 62px; }
    .tli-header .tli-header__mobile-toggle { display: flex; order: 3; align-items: center; justify-content: center; width: 40px; height: 44px; padding: 8px; }
    .tli-header__mobile-toggle svg { width: 24px; height: 24px; }
    .tli-header__navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 88px); overflow-y: auto; border-top: 1px solid #e3e9f2; background: #fff; box-shadow: 0 12px 20px #28477f12; }
    .tli-header__navigation.is-open { display: block; }
    .tli-header__item { display: block; border-bottom: 1px solid #e3e9f2; }
    .tli-header .tli-header__trigger { width: 100%; padding: 18px 24px; border-bottom-width: 2px; white-space: normal; }
    .tli-header__label { width: 100%; justify-content: space-between; }
    .tli-header__panel { position: static; width: 100%; max-height: none; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
    .tli-header__panel .tli-header__panel-inner { width: auto; margin: 0 24px; padding: 18px 0 24px; }
    .tli-header .tli-header__panel-heading h2 { font-size: 26px; }
    .tli-header__columns, .tli-header__panel--enterprise .tli-header__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .tli-header__column { padding: 0; border: 0; }
    .tli-header .tli-header__expand { display: block; flex-shrink: 0; padding: 0 8px; font-size: 20px; }
    .tli-header__children--collapsible { display: none; }
    .tli-header__children--collapsible.is-expanded { display: block; }
    .tli-header__academy { grid-template-columns: minmax(160px, 30%) minmax(0, 1fr); gap: 20px; }
    .tli-header__academy-tabs { padding-right: 12px; }
    .tli-header__academy-courses { grid-template-columns: minmax(0, 1fr); }
    .tli-header__academy { min-height: 0; }
    .tli-header__academy-summary { flex-wrap: wrap; gap: 14px; }
    .tli-header__academy-summary-copy { flex-basis: 100%; padding-top: 0; }
    .tli-header .tli-header__academy-visit { margin-left: 0; }
}
@media (max-width: 639px) {
    .tli-header__inner { width: calc(100% - 32px); min-height: 80px; gap: 12px; }
    .tli-header__logo img { width: 56px; height: 56px; }
    .tli-header__utilities { gap: 12px; }
    .tli-header__phone, .tli-header__social { display: none; }
    .tli-header__account-link span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
    .tli-header__navigation { max-height: calc(100dvh - 80px); }
    .tli-header__columns, .tli-header__panel--enterprise .tli-header__columns, .tli-header__academy { grid-template-columns: minmax(0, 1fr); }
    .tli-header__column + .tli-header__column { border-top: 1px solid #e3e9f2; padding-top: 20px; }
    .tli-header__academy-tabs { border-right: 0; border-bottom: 1px solid #e3e9f2; padding: 0 0 16px; }
}

/* Server demonstration header and the requested static Enterprise feature panel. */
.tli-header--demo .tli-header__trigger { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; }
.tli-header__subtitle { font-size: 12px; font-weight: 400; line-height: 1.5; color: #7a89a5; white-space: nowrap; }
.tli-header__enterprise-banner { display: flex; align-items: baseline; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 24px; }
.tli-header .tli-header__enterprise-banner h2 { flex-shrink: 0; margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 32px; font-style: normal; font-weight: 600; line-height: 1.4; color: var(--header-blue); }
.tli-header .tli-header__enterprise-banner p { margin: 0; font-family: 'Playfair Display', Georgia, serif; font-size: 17px; font-style: italic; line-height: 1.5; color: #71809c; }
.tli-header .tli-header__enterprise-visit { flex-shrink: 0; margin-left: auto; padding: 13px 28px; border-radius: 30px; background: var(--header-blue); color: white; font-size: 13px; font-weight: 700; line-height: 1.4; text-transform: uppercase; white-space: nowrap; }
.tli-header .tli-header__enterprise-visit:hover { background: #1c3563; }
.tli-header .tli-header__enterprise-feature h4 { margin: 12px 0 4px; font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 700; font-style: normal; line-height: 1.5; letter-spacing: 1.2px; text-transform: uppercase; color: #7a89a5; }
.tli-header .tli-header__enterprise-feature ul { list-style: none; padding: 0; margin: 0; }
.tli-header .tli-header__enterprise-feature ul + h4 { margin-top: 20px; }
.tli-header .tli-header__enterprise-feature li { display: flex; gap: 14px; margin: 0; padding: 7px 0; font-size: 14px; font-weight: 400; line-height: 1.45; color: #3e4d6a; }
.tli-header__enterprise-feature li span { color: var(--header-blue); flex-shrink: 0; }
@media (min-width: 1280px) and (max-width: 1599px) {
    .tli-header--demo .tli-header__navigation { gap: 0; }
    .tli-header--demo .tli-header__trigger { padding-inline: 8px; }
    .tli-header--demo .tli-header__subtitle { font-size: 10px; }
    .tli-header--demo .tli-header__utilities { gap: 8px; }
    .tli-header--demo .tli-header__account-link span { max-width: 110px; }
    .tli-header__enterprise-banner { flex-wrap: wrap; gap: 12px 24px; }
}
@media (max-width: 1279px) {
    .tli-header__enterprise-banner { flex-direction: column; align-items: flex-start; gap: 14px; }
    .tli-header .tli-header__enterprise-banner h2 { font-size: 26px; }
    .tli-header .tli-header__enterprise-visit { margin-left: 0; }
    .tli-header__subtitle { white-space: normal; }
}
