:root {
    --tn-blue: #08164f;
    --tn-blue-2: #061143;
    --tn-primary: #173bd6;
    --tn-red: #ff343f;
    --tn-muted: #627096;
    --tn-line: #e5ecf7;
    --tn-soft: #f6f9ff;
    --tn-white: #fff;
    --tn-shadow: 0 18px 45px rgba(9,30,66,.12);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    color: var(--tn-blue);
    background: #fff;
}

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

.tn-shell {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}

.tn-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(8,22,79,.06);
}

.tn-navwrap {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.tn-brand {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1.7px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.tn-brand span { color: var(--tn-blue); }
.tn-brand b { color: var(--tn-red); font-weight: 900; }
.tn-brand img { height: 25px; width: auto; display: block; }

.tn-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 14px;
    font-weight: 800;
    color: var(--tn-blue-2);
}

.tn-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tn-icon-link,
.tn-theme-button {
    width: 36px;
    height: 36px;
    border: 0;
    background: #fff;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 24px;
    color: var(--tn-blue);
    cursor: pointer;
}

.tn-theme-button {
    border: 1px solid var(--tn-line);
    font-size: 17px;
}

.tn-login,
.tn-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14px;
}

.tn-login {
    background: #fff;
    border: 1px solid var(--tn-line);
}

.tn-signup {
    background: linear-gradient(180deg,#173bdc,#0b2cb6);
    color: #fff;
    box-shadow: 0 8px 18px rgba(23,59,220,.24);
    border: 0;
}

.tn-logout-form { display: inline; }

.tn-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #eaf8ff;
}

.tn-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('/images/index-hero.png');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    transform: scale(1.01);
}

.tn-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(255,255,255,.97) 0%,
            rgba(255,255,255,.92) 30%,
            rgba(255,255,255,.60) 48%,
            rgba(255,255,255,.18) 68%,
            rgba(255,255,255,0) 100%),
        linear-gradient(180deg,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,0) 68%,
            rgba(255,255,255,.88) 100%);
}

.tn-hero:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 130px;
    background: linear-gradient(180deg,rgba(255,255,255,0),#fff 88%);
    z-index: 1;
}

.tn-hero__content {
    position: relative;
    z-index: 2;
    padding: 76px 0 112px;
    max-width: 760px;
}

.tn-eyebrow {
    margin: 0 0 6px;
    font-weight: 800;
    color: #355086;
    font-size: 13px;
    opacity: 0;
}

.tn-hero h1 {
    margin: 0;
    font-size: clamp(44px, 5.1vw, 70px);
    line-height: 1.02;
    letter-spacing: -3px;
    color: #071652;
    font-weight: 900;
}

    .tn-hero h1 span {
    background: linear-gradient(90deg, #e7359a 0%, #f0447a 28%, #ff6b45 58%, #f59f00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 1px rgba(0,0,0,.08);
}

.tn-hero__subtitle {
    width: min(520px,100%);
    font-size: 20px;
    line-height: 1.7;
    margin: 26px 0 24px;
    color: #0b1d58;
    font-weight: 500;
}

.tn-search {
    width: min(670px,100%);
    height: 80px;
    background: #fff;
    border: 1px solid #dce7f5;
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 0 14px 0 25px;
    gap: 16px;
    box-shadow: var(--tn-shadow);
}

.tn-search__icon {
    font-size: 40px;
    line-height: 1;
    color: #08164f;
    transform: rotate(-20deg);
    display: inline-block;
}

.tn-search input {
    border: 0;
    outline: 0;
    flex: 1;
    font-size: 16px;
    color: #25345c;
    min-width: 0;
}

.tn-search button {
    border: 0;
    background: linear-gradient(180deg,#173bdc,#0b2cb6);
    color: #fff;
    height: 58px;
    border-radius: 10px;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.tn-popular-searches {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
    font-size: 14px;
}

.tn-popular-searches strong { font-weight: 900; }

.tn-popular-searches a {
    background: rgba(255,255,255,.82);
    border: 1px solid #dce7f5;
    padding: 9px 18px;
    border-radius: 999px;
    color: #233763;
    box-shadow: 0 8px 18px rgba(9,30,66,.04);
}

.tn-quick-grid {
    position: relative;
    z-index: 3;
    margin-top: -62px;
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 22px;
}

.tn-quick-card {
    min-height: 245px;
    border-radius: 18px;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 16px 32px rgba(9,30,66,.10);
    border: 1px solid rgba(255,255,255,.8);
    transition: transform .18s ease, box-shadow .18s ease;
}

.tn-quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(9,30,66,.14);
}

.tn-quick-card__icon {
    font-size: 50px;
    display: block;
    margin-bottom: 20px;
}

.tn-quick-card strong {
    font-size: 20px;
    margin-bottom: 12px;
}

.tn-quick-card span:last-of-type {
    font-size: 14px;
    line-height: 1.65;
    color: #132862;
}

.tn-quick-card em {
    font-style: normal;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #fff;
    margin-top: 20px;
    color: #1137d4;
    box-shadow: 0 10px 18px rgba(9,30,66,.12);
    font-weight: 900;
}

.tn-accent-blue { background: linear-gradient(150deg,#e5f4ff,#f9fcff); }
.tn-accent-green { background: linear-gradient(150deg,#e8fae7,#fff); }
.tn-accent-red { background: linear-gradient(150deg,#ffe8e8,#fff4f4); }
.tn-accent-purple { background: linear-gradient(150deg,#f2e7ff,#fff); }
.tn-accent-orange { background: linear-gradient(150deg,#fff3df,#fff); }
.tn-accent-cyan { background: linear-gradient(150deg,#dffcff,#fff); }

.tn-section { padding: 34px 0 0; }

.tn-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 20px;
}

.tn-section h2,
.tn-topic-panel h2 {
    font-size: 25px;
    margin: 0;
    font-weight: 900;
    letter-spacing: -.8px;
}

.tn-section__head a,
.tn-panel-link {
    color: #0b32c0;
    font-weight: 900;
}

.tn-place-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 16px;
}

.tn-place-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(9,30,66,.10);
    border: 1px solid #e4ebf6;
    transition: transform .18s ease, box-shadow .18s ease;
}

.tn-place-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(9,30,66,.13);
}

.tn-place-card__image {
    display: block;
    height: 158px;
    background-size: cover;
    background-position: center;
}

.tn-place-bangkok .tn-place-card__image {
    background: linear-gradient(170deg,rgba(17,34,91,.1),rgba(255,142,77,.4)),linear-gradient(90deg,#26325e,#ffa36a);
}

.tn-place-phuket .tn-place-card__image {
    background: linear-gradient(150deg,#7be1ff,#fff 40%,#27a858 42%,#02749b);
}

.tn-place-pattaya .tn-place-card__image {
    background: linear-gradient(160deg,#ffcd9e,#309fca 45%,#293d7d 47%,#34a8c9);
}

.tn-place-chiang-mai .tn-place-card__image {
    background: linear-gradient(160deg,#ffd69d,#9d4f26 50%,#2f8b48 52%,#c4e6ff);
}

.tn-place-hua-hin .tn-place-card__image {
    background: linear-gradient(160deg,#ffd4b1,#71cef1 38%,#ffe9bd 39%,#4a9d65);
}

.tn-place-card__body {
    display: block;
    padding: 16px;
}

.tn-place-card strong {
    display: block;
    font-size: 18px;
    margin-bottom: 3px;
}

.tn-place-card small {
    font-size: 12px;
    color: #53638b;
}

.tn-place-card__stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
    margin-top: 15px;
}

.tn-place-card__stats b {
    display: block;
    font-size: 11px;
    color: #1035c8;
}

.tn-place-card__stats small {
    display: block;
    font-size: 9px;
    line-height: 1.2;
}

.tn-place-next {
    position: absolute;
    right: -35px;
    top: 96px;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: #fff;
    display: grid;
    place-items: center;
    font-size: 45px;
    box-shadow: var(--tn-shadow);
    color: #0b1d58;
}

.tn-info-grid {
    display: grid;
    grid-template-columns: .9fr 1.35fr;
    gap: 22px;
    padding: 34px 0;
}

.tn-topic-panel,
.tn-stats-panel {
    background: #fff;
    border: 1px solid #e5ecf7;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(9,30,66,.07);
    padding: 20px;
}

.tn-topic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.tn-topic-grid a {
    min-height: 48px;
    border-radius: 9px;
    background: #f3f6fb;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-weight: 800;
    font-size: 13px;
}

.tn-topic-grid span { font-size: 20px; }

.tn-panel-link {
    display: block;
    text-align: right;
    margin-top: 10px;
    font-size: 13px;
}

.tn-stats-panel {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    align-items: center;
    background: linear-gradient(120deg,#eef9ff,#fff3ea);
}

.tn-stat {
    text-align: center;
    padding: 16px;
    border-right: 1px solid rgba(8,22,79,.12);
}

.tn-stat:last-child { border-right: 0; }
.tn-stat span { font-size: 43px; display: block; }
.tn-stat strong { display: block; font-size: 28px; color: #0a32bc; margin: 8px 0; }
.tn-stat b { display: block; font-size: 14px; }
.tn-stat small { display: block; margin-top: 12px; line-height: 1.55; color: #415378; font-size: 12px; }


.tn-ask {
    position: relative;
    margin: 0 auto 22px;
    height: 198px;
    min-height: 198px;
    border-radius: 18px;
    overflow: hidden;
    background-image: url('/images/index-ask.png');
    background-size: cover;
    background-position: center 48%;
    background-repeat: no-repeat;
    display: grid;
    grid-template-columns: 200px minmax(260px, .85fr) minmax(410px, 1.15fr);
    align-items: center;
    column-gap: 22px;
    padding: 22px 34px;
    box-shadow: 0 14px 34px rgba(9,30,66,.08);
}

.tn-ask__copy {
    grid-column: 2;
    align-self: center;
    min-width: 0;
}

.tn-ask h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 30px;
    line-height: 1.05;
    margin: 0 0 10px;
    letter-spacing: -1px;
    font-weight: 900;
    color: #071652;
}

.tn-ask h2 span {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1;
    border: 1px solid #1439d1;
    border-radius: 999px;
    padding: 6px 10px;
    color: #1439d1;
    background: rgba(255,255,255,.45);
}

.tn-ask p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #173066;
    max-width: 390px;
}

.tn-ask__formwrap {
    grid-column: 3;
    min-width: 0;
}

.tn-ask__chips {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 12px;
}

.tn-ask__chips a {
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(255,255,255,.72);
    backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    color: #173066;
    box-shadow: 0 8px 18px rgba(9,30,66,.05);
}

.tn-ask__search {
    height: 58px;
    background: rgba(255,255,255,.96);
    border: 1px solid #dce7f5;
    border-radius: 999px;
    display: flex;
    align-items: center;
    padding: 0 8px 0 22px;
    box-shadow: 0 12px 28px rgba(9,30,66,.12);
}

.tn-ask__search input {
    border: 0;
    outline: 0;
    flex: 1;
    min-width: 0;
    background: transparent;
    font-size: 15px;
    color: #173066;
}

.tn-ask__search button {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 0;
    background: #1238d7;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.tn-bot {
    display: none;
}

.tn-footer {
    background: #fff;
    border-top: 1px solid #edf2f7;
    padding: 32px 0 28px;
}

.tn-footer__grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 38px;
}

.tn-footer__brand .tn-brand { font-size: 28px; }

.tn-footer p,
.tn-footer small {
    color: #53638b;
    line-height: 1.6;
}

.tn-socials {
    display: flex;
    gap: 10px;
    margin: 14px 0;
}

.tn-socials a {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eff4fb;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.tn-footer__cols {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 26px;
}

.tn-footer h3 {
    font-size: 14px;
    margin: 0 0 13px;
}

.tn-footer__cols a {
    display: block;
    font-size: 13px;
    color: #173066;
    margin: 0 0 10px;
}

.tn-subscribe input {
    width: 100%;
    height: 34px;
    border: 1px solid #d7e1ef;
    border-radius: 5px;
    padding: 0 10px;
}

.tn-subscribe button {
    margin-top: 8px;
    width: 100%;
    height: 36px;
    border: 0;
    border-radius: 5px;
    background: #143bd7;
    color: #fff;
    font-weight: 800;
}

.card,
.auth-card {
    background: #fff;
    border: 1px solid var(--tn-line);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--tn-shadow);
}

.main-shell { padding: 40px 0; }
.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }

.btn {
    display: inline-flex;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 800;
}

.btn-primary { background: var(--tn-primary); color: #fff; }
.btn-secondary { border: 1px solid var(--tn-line); }

.auth-card {
    width: min(520px,calc(100% - 32px));
    margin: 40px auto;
}

.auth-form { display: grid; gap: 10px; }

.auth-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--tn-line);
}

.muted { color: var(--tn-muted); }

.alert {
    background: #fff4f4;
    border: 1px solid #ffd0d0;
    color: #9d1d1d;
    padding: 12px;
    border-radius: 12px;
}

@media (max-width: 1050px) {
    .tn-nav { display: none; }
    .tn-hero { min-height: 590px; }
    .tn-hero__overlay {
        background:
            linear-gradient(90deg,
                rgba(255,255,255,.97) 0%,
                rgba(255,255,255,.88) 42%,
                rgba(255,255,255,.34) 72%,
                rgba(255,255,255,.08) 100%),
            linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.88) 100%);
    }
    .tn-quick-grid { grid-template-columns: repeat(3,1fr); }
    .tn-place-row { grid-template-columns: repeat(2,1fr); }
    .tn-info-grid,
    .tn-ask,
    .tn-footer__grid { grid-template-columns: 1fr; }
    .tn-stats-panel,
    .tn-footer__cols { grid-template-columns: repeat(2,1fr); }
    .tn-place-next { display: none; }
    .tn-hero h1 { font-size: 48px; }
    .tn-ask__chips { justify-content: flex-start; }
}

@media (max-width: 640px) {
    .tn-shell { width: min(100% - 28px,1160px); }
    .tn-navwrap { min-height: 76px; }
    .tn-brand { font-size: 24px; }
    .tn-brand img { height: 25px; }
    .tn-login { display: none; }
    .tn-hero { min-height: 640px; align-items: flex-start; }
    .tn-hero__bg { background-position: 68% center; }
    .tn-hero__overlay {
        background:
            linear-gradient(180deg,
                rgba(255,255,255,.98) 0%,
                rgba(255,255,255,.92) 44%,
                rgba(255,255,255,.55) 72%,
                rgba(255,255,255,.20) 100%);
    }
    .tn-hero__content { padding: 50px 0 100px; }
    .tn-hero h1 { font-size: 38px; letter-spacing: -1.8px; }
    .tn-hero__subtitle { font-size: 16px; }
    .tn-search {
        height: auto;
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
    }
    .tn-search__icon { display: none; }
    .tn-search input { height: 42px; }
    .tn-search button { width: 100%; }
    .tn-quick-grid,
    .tn-place-row,
    .tn-topic-grid,
    .tn-stats-panel,
    .tn-footer__cols { grid-template-columns: 1fr; }
    .tn-quick-card { min-height: 185px; }
    .tn-section__head { align-items: flex-start; flex-direction: column; }
    .tn-stat { border-right: 0; border-bottom: 1px solid rgba(8,22,79,.12); }
    .tn-stat:last-child { border-bottom: 0; }
    .tn-ask { padding: 22px; }
    .tn-bot { font-size: 70px; }
    .tn-footer__cols { gap: 12px; }
}
.tn-hero__overlay {
    background: radial-gradient( circle at 43% 42%, rgba(255,255,255,.34) 0%, rgba(255,255,255,.22) 24%, rgba(255,255,255,.08) 42%, rgba(255,255,255,0) 62% );
}
.tn-hero h1,
.tn-hero__subtitle,
.tn-popular-searches strong {
    text-shadow: 0 2px 18px rgba(255,255,255,.65);
}


@media (max-width: 1050px) {
    .tn-ask {
        height: auto;
        min-height: 240px;
        grid-template-columns: 310px 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        background-position: 35% center;
        padding: 24px 28px;
    }

    .tn-ask__copy,
    .tn-ask__formwrap {
        grid-column: 2;
    }

    .tn-ask__formwrap {
        margin-top: 14px;
    }

    .tn-ask__chips {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .tn-ask {
        min-height: 430px;
        grid-template-columns: 1fr;
        background-position: 20% center;
        padding: 230px 18px 20px;
        border-radius: 18px;
    }

    .tn-ask__copy,
    .tn-ask__formwrap {
        grid-column: 1;
    }

    .tn-ask h2 {
        font-size: 28px;
    }

    .tn-ask p {
        font-size: 14px;
    }

    .tn-ask__chips {
        justify-content: flex-start;
    }

    .tn-ask__search {
        height: 56px;
    }
}

/* ============================================================
   Font Awesome icon normalization
   ============================================================ */
.tn-icon-link,
.tn-theme-button,
.tn-mobile-menu-button {
    font-size: 17px;
}

.tn-search__icon {
    font-size: 22px;
    transform: none;
}

.tn-quick-card__icon i,
.tn-topic-grid i,
.tn-stat i,
.tn-socials i {
    line-height: 1;
}

.tn-quick-card__icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255,255,255,.56);
    box-shadow: 0 12px 28px rgba(9,30,66,.08);
    color: #1238d7;
}

.tn-accent-green .tn-quick-card__icon { color: #099447; }
.tn-accent-red .tn-quick-card__icon { color: #f02f5f; }
.tn-accent-purple .tn-quick-card__icon { color: #7437d8; }
.tn-accent-orange .tn-quick-card__icon { color: #f59f00; }
.tn-accent-cyan .tn-quick-card__icon { color: #09a9bd; }

.tn-topic-grid span {
    width: 25px;
    color: #1238d7;
    text-align: center;
}

.tn-stat span {
    color: #1238d7;
}

.tn-stat:nth-child(2) span { color: #099447; }
.tn-stat:nth-child(3) span { color: #f02f5f; }
.tn-stat:nth-child(4) span { color: #f59f00; }

/* ============================================================
   Desktop mega menu
   ============================================================ */
.tn-nav-item {
    height: 92px;
    display: flex;
    align-items: center;
}

.tn-nav-link {
    height: 92px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 800;
    color: inherit;
    cursor: pointer;
    padding: 0;
}

.tn-nav-link i,
.tn-nav a i {
    font-size: 11px;
}

.tn-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: #173bd6;
    border-radius: 999px 999px 0 0;
    opacity: 0;
    transform: scaleX(.65);
    transition: .18s ease;
}

.tn-has-mega.is-open .tn-nav-link {
    color: #1238d7;
}

.tn-has-mega.is-open .tn-nav-link::after {
    opacity: 1;
    transform: scaleX(1);
}

.tn-mega-backdrop {
    position: fixed;
    inset: 92px 0 0;
    z-index: 40;
    background: rgba(4, 15, 48, .48);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.tn-mega-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.tn-mega-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 92px;
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease;
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 22px;
}

    .tn-mega-menu.is-open {
        opacity: 1;
        pointer-events: none;
        transform: translateY(0);
    }

.tn-mega-panel {
    background: #fff;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 30px 80px rgba(8, 22, 79, .22);
    padding: 22px 26px 24px;
    pointer-events: auto;
}

.tn-mega-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid #edf2f7;
}

.tn-mega-head strong {
    display: block;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.5px;
    color: #071652;
}

.tn-mega-head span {
    display: block;
    margin-top: 4px;
    color: #53638b;
    font-size: 13px;
}

.tn-mega-head a,
.tn-mega-bottom {
    color: #1238d7;
    font-weight: 900;
    font-size: 13px;
    white-space: nowrap;
}

.tn-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) 230px;
    gap: 22px;
}

.tn-mega-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.tn-mega-col h3 {
    margin: 0 0 2px;
    font-size: 13px;
    line-height: 1;
    color: #1238d7;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.tn-mega-link {
    display: grid;
    grid-template-columns: 26px 1fr;
    column-gap: 11px;
    align-items: start;
    padding: 5px 4px;
    border-radius: 10px;
    transition: background .15s ease, transform .15s ease;
}

.tn-mega-link:hover {
    background: #f6f9ff;
    transform: translateX(2px);
}

.tn-mega-link i {
    color: #1238d7;
    font-size: 18px;
    line-height: 1.2;
    text-align: center;
    margin-top: 2px;
}

.tn-mega-link strong {
    display: block;
    font-size: 14px;
    font-weight: 900;
    color: #071652;
    line-height: 1.2;
}

.tn-mega-link small {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.35;
    color: #53638b;
}

.tn-mega-bottom {
    margin-top: auto;
    padding-top: 8px;
}

.tn-mega-inspiration {
    gap: 10px;
}

.tn-mega-mini-card {
    min-height: 86px;
    border-radius: 13px;
    padding: 34px 14px 12px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
    box-shadow: 0 12px 26px rgba(9,30,66,.14);
}

.tn-mega-mini-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.66));
    z-index: 1;
}

.tn-mega-mini-card strong,
.tn-mega-mini-card small {
    position: relative;
    z-index: 2;
}

.tn-mega-mini-card strong {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.15;
}

.tn-mega-mini-card small {
    margin-top: 3px;
    font-size: 12px;
}

.tn-feature-one { background: linear-gradient(135deg,#74cef5,#173066); }
.tn-feature-two { background: linear-gradient(135deg,#ffae72,#101a3c); }
.tn-feature-three { background: linear-gradient(135deg,#93dc74,#173066); }

.tn-mega-cta {
    background: linear-gradient(180deg,#f5f8ff,#edf4ff);
    border-radius: 16px;
    padding: 22px 20px;
}

.tn-mega-cta h2 {
    margin: 0 0 10px;
    font-size: 25px;
    line-height: 1.12;
    letter-spacing: -.7px;
    color: #071652;
}

.tn-mega-cta p {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.55;
    color: #173066;
}

.tn-mega-cta a:not(.tn-mega-cta-button) {
    display: grid;
    grid-template-columns: 24px 1fr;
    column-gap: 11px;
    margin-bottom: 16px;
}

.tn-mega-cta a i {
    color: #1238d7;
    font-size: 17px;
    margin-top: 2px;
    text-align: center;
}

.tn-mega-cta a strong {
    display: block;
    font-size: 14px;
    font-weight: 900;
}

.tn-mega-cta a small {
    display: block;
    margin-top: 3px;
    color: #53638b;
    line-height: 1.35;
    font-size: 12px;
}

.tn-mega-cta-button {
    margin-top: 14px;
    min-height: 46px;
    border-radius: 9px;
    background: linear-gradient(180deg,#173bdc,#0b2cb6);
    color: #fff;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(23,59,220,.22);
}

/* ============================================================
   Mobile app-style drawer
   ============================================================ */
.tn-mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--tn-line);
    background: #fff;
    border-radius: 12px;
    place-items: center;
    color: var(--tn-blue);
    cursor: pointer;
}

.tn-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(4, 15, 48, .52);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.tn-mobile-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.tn-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    width: min(420px, 100%);
    background: #fff;
    transform: translateX(100%);
    transition: transform .24s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(8,22,79,.22);
}

.tn-mobile-drawer.is-open {
    transform: translateX(0);
}

.tn-mobile-drawer__head {
    min-height: 78px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf2f7;
}

.tn-mobile-drawer__head button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--tn-line);
    border-radius: 12px;
    background: #fff;
    color: var(--tn-blue);
    font-size: 18px;
}

.tn-mobile-nav {
    padding: 18px 20px 24px;
    overflow-y: auto;
    display: grid;
    gap: 8px;
}

.tn-mobile-nav > a,
.tn-mobile-accordion {
    min-height: 52px;
    border-radius: 14px;
    padding: 0 14px;
    background: #f6f9ff;
    border: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 900;
    color: #071652;
    width: 100%;
    text-align: left;
}

.tn-mobile-accordion {
    justify-content: space-between;
    cursor: pointer;
}

.tn-mobile-accordion span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tn-mobile-nav i {
    color: #1238d7;
    width: 22px;
    text-align: center;
}

.tn-mobile-submenu {
    display: none;
    padding: 4px 0 8px 22px;
    gap: 7px;
}

.tn-mobile-submenu.is-open {
    display: grid;
}

.tn-mobile-submenu a {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    color: #173066;
    font-weight: 800;
    border-radius: 12px;
}

.tn-mobile-submenu a:hover {
    background: #f6f9ff;
}

.tn-mobile-auth {
    margin-top: auto;
    padding: 18px 20px 24px;
    border-top: 1px solid #edf2f7;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tn-mobile-auth .tn-login,
.tn-mobile-auth .tn-signup,
.tn-mobile-auth form,
.tn-mobile-auth form button {
    width: 100%;
}

body.tn-menu-open {
    overflow: hidden;
}

@media (max-width: 1180px) {
    .tn-mega-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tn-mega-cta {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1.1fr repeat(3, 1fr) auto;
        align-items: center;
        gap: 14px;
    }

    .tn-mega-cta h2,
    .tn-mega-cta p,
    .tn-mega-cta a:not(.tn-mega-cta-button) {
        margin: 0;
    }
}

@media (max-width: 1050px) {
    .tn-nav,
    .tn-nav-actions > .tn-icon-link,
    .tn-nav-actions > .tn-theme-button,
    .tn-nav-actions > .tn-login,
    .tn-nav-actions > .tn-signup,
    .tn-nav-actions > .tn-logout-form {
        display: none;
    }

    .tn-mobile-menu-button {
        display: grid;
    }

    .tn-mega-menu,
    .tn-mega-backdrop {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .tn-mobile-auth {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) { .tn-mobile-auth .tn-login { display: inline-flex; } }

/* ============================================================
   Navigation mega menus + mobile app drawer
   API-driven menu patch
   ============================================================ */
body.tn-menu-open {
    overflow: hidden;
}

.tn-nav-item {
    height: 92px;
    display: flex;
    align-items: center;
}

.tn-nav-link {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 92px;
    cursor: pointer;
    position: relative;
    padding: 0;
}

.tn-nav-link::after,
.tn-nav > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: #173bd6;
    border-radius: 999px 999px 0 0;
    opacity: 0;
    transform: scaleX(.65);
    transition: opacity .18s ease, transform .18s ease;
}

.tn-nav > a {
    height: 92px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.tn-has-mega.is-open .tn-nav-link,
.tn-nav > a:hover,
.tn-nav-link:hover {
    color: #1238d7;
}

.tn-has-mega.is-open .tn-nav-link::after,
.tn-nav > a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.tn-mega-backdrop {
    position: fixed;
    inset: 92px 0 0;
    z-index: 40;
    background: rgba(4, 15, 48, .48);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

.tn-mega-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.tn-mega-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 92px;
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease;
}

.tn-mega-menu.is-open {
    opacity: 1;
    pointer-events: none;
    transform: translateY(0);
}

.tn-mega-panel {
    pointer-events: auto;
    width: min(1320px, calc(100vw - 44px));
    background: #fff;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 28px 78px rgba(8, 22, 79, .24);
    overflow: hidden;
    padding: 0;
}

.tn-mega-panel-scroll {
    max-height: calc(100vh - 126px);
    overflow-y: auto;
    overscroll-behavior: contain;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr) 285px;
    gap: 0;
    padding: 26px 28px;
    scrollbar-width: thin;
}

.tn-mega-sidebar {
    border-right: 1px solid #e5ecf7;
    padding: 0 22px 0 0;
}

.tn-mega-sidebar h3,
.tn-mega-main h3,
.tn-mega-right h3 {
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #071652;
    font-size: 17px;
    font-weight: 900;
}

.tn-mega-sidebar h3 i,
.tn-mega-main h3 i,
.tn-mega-right h3 i {
    color: #1238d7;
    font-size: 20px;
}

.tn-mega-sidebar-list {
    display: grid;
    gap: 7px;
}

.tn-mega-sidebar-list a {
    min-height: 42px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    color: #0a1a55;
    font-weight: 800;
    font-size: 13px;
}

.tn-mega-sidebar-list a span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.tn-mega-sidebar-list a i {
    width: 18px;
    text-align: center;
    color: #1238d7;
    font-size: 16px;
}

.tn-mega-sidebar-list a small {
    color: #53638b;
    font-size: 12px;
    font-weight: 700;
}

.tn-mega-sidebar-list a.is-active,
.tn-mega-sidebar-list a:hover {
    background: #f0f5ff;
    color: #1238d7;
}

.tn-mega-main {
    min-width: 0;
    padding: 0 24px;
}

.tn-mega-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 28px;
}

.tn-mega-group {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
}

.tn-mega-thumb,
.tn-mega-iconbox {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    display: grid;
    place-items: center;
    background-color: #eef4ff;
    color: #1238d7;
    font-size: 25px;
    flex: 0 0 auto;
}

.tn-mega-group-title {
    display: block;
    color: #071652;
    font-weight: 900;
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.tn-mega-group-links {
    display: grid;
    gap: 5px;
}

.tn-mega-group-links a {
    color: #173066;
    font-size: 12.5px;
    line-height: 1.25;
}

.tn-mega-group-links a:hover,
.tn-mega-view-all:hover,
.tn-mega-cta-button:hover {
    color: #1238d7;
}

.tn-mega-view-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #0b32c0;
    font-size: 12.5px;
    font-weight: 900;
    margin-top: 10px;
}

.tn-mega-feature-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 26px;
}

.tn-mega-feature-card {
    min-height: 105px;
    border-radius: 13px;
    color: #fff;
    padding: 48px 16px 14px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 14px 28px rgba(9,30,66,.14);
}

.tn-mega-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,12,30,.05), rgba(5,12,30,.70));
}

.tn-mega-feature-card strong,
.tn-mega-feature-card small {
    position: relative;
    z-index: 1;
}

.tn-mega-feature-card strong {
    font-weight: 900;
    font-size: 14px;
}

.tn-mega-feature-card small {
    margin-top: 3px;
    font-size: 12px;
}

.tn-mega-right {
    background: linear-gradient(180deg,#f4f7ff,#eef4ff);
    border-radius: 15px;
    padding: 22px;
    min-width: 0;
}

.tn-mega-right p {
    margin: -8px 0 18px;
    color: #173066;
    line-height: 1.55;
    font-size: 14px;
}

.tn-mega-right-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 13px;
}

.tn-mega-right-item > i {
    color: #1238d7;
    font-size: 21px;
    width: 36px;
    text-align: center;
}

.tn-mega-right-image {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}

.tn-mega-right-item strong {
    display: block;
    color: #071652;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 900;
}

.tn-mega-right-item small {
    display: block;
    color: #43527a;
    font-size: 12px;
    margin-top: 3px;
    line-height: 1.35;
}

.tn-mega-cta-button {
    height: 42px;
    border-radius: 9px;
    background: linear-gradient(180deg,#173bdc,#0b2cb6);
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 900;
    font-size: 13px;
    padding: 0 16px;
    box-shadow: 0 12px 24px rgba(23,59,220,.22);
    margin: 8px 0 14px;
}

.tn-mega-popular {
    border-top: 1px solid rgba(8,22,79,.10);
    margin-top: 12px;
    padding-top: 16px;
}

.tn-mega-popular h4 {
    margin: 0 0 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tn-mega-popular div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tn-mega-popular a {
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.7);
    color: #1238d7;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.tn-mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--tn-line);
    background: #fff;
    color: var(--tn-blue);
    font-size: 18px;
    place-items: center;
}

.tn-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: #fff;
    transform: translateX(100%);
    transition: transform .24s ease;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

    .tn-mobile-drawer.is-open {
        display: flex;
        transform: translateX(0);
    }

.tn-mobile-drawer__head {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 18px;
    border-bottom: 1px solid var(--tn-line);
}

.tn-mobile-drawer__head button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--tn-line);
    background: #fff;
    color: var(--tn-blue);
    font-size: 20px;
}

.tn-mobile-nav {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
}

.tn-mobile-nav > a,
.tn-mobile-accordion {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
    border: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    font: inherit;
    font-weight: 900;
    color: #071652;
    text-align: left;
}

.tn-mobile-nav > a i,
.tn-mobile-accordion span i {
    width: 22px;
    margin-right: 10px;
    color: #1238d7;
    text-align: center;
}

.tn-mobile-accordion.is-open,
.tn-mobile-nav > a:hover {
    background: #f1f5ff;
    color: #1238d7;
}

.tn-mobile-submenu {
    display: none;
    padding: 4px 0 10px 36px;
}

.tn-mobile-submenu.is-open {
    display: grid;
    gap: 4px;
}

.tn-mobile-submenu a {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #173066;
    font-size: 14px;
    font-weight: 700;
}

.tn-mobile-submenu a i {
    color: #1238d7;
    width: 18px;
}

.tn-mobile-submenu-main {
    color: #1238d7 !important;
    font-weight: 900 !important;
}

.tn-mobile-auth {
    border-top: 1px solid var(--tn-line);
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tn-mobile-auth .tn-login,
.tn-mobile-auth .tn-signup,
.tn-mobile-auth form,
.tn-mobile-auth form button {
    width: 100%;
}

.tn-socials i,
.tn-subscribe i {
    font-size: 13px;
}

@media (max-width: 1200px) {
    .tn-mega-panel-scroll {
        grid-template-columns: 230px minmax(0, 1fr) 255px;
        padding: 24px;
    }

    .tn-mega-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    .tn-mobile-drawer {
        display: flex;
    }

        .tn-mobile-drawer:not(.is-open) {
            transform: translateX(100%);
        }
    .tn-nav,
    .tn-icon-link,
    .tn-theme-button,
    .tn-nav-actions > .tn-login,
    .tn-nav-actions > .tn-signup,
    .tn-nav-actions > .tn-logout-form {
        display: none !important;
    }

    .tn-mobile-menu-button {
        display: grid;
    }

    .tn-mega-menu,
    .tn-mega-backdrop {
        display: none !important;
    }
}

/* ============================================================
   Dynamic node pages
   ============================================================ */
.tn-node-page {
    background: linear-gradient(180deg, #f7fbff 0%, #fff 320px);
    padding: 0;
}

.tn-node-layout {
    display: grid;
    gap: 22px;
}

.tn-node-breadcrumbs {
    margin: 0 0 18px;
    color: #53638b;
    font-size: 13px;
    font-weight: 800;
}

.tn-node-breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tn-node-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tn-node-breadcrumbs li:not(:last-child)::after {
    content: "/";
    color: #9aa8c7;
}

.tn-node-breadcrumbs a {
    color: #1238d7;
}

.tn-node-breadcrumbs span[aria-current="page"] {
    color: #071652;
}

.tn-node-hero-card,
.tn-node-card {
    background: rgba(255,255,255,.96);
    border: 1px solid #e5ecf7;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(9,30,66,.08);
}

.tn-node-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 28px;
    align-items: center;
    padding: 38px;
    overflow: hidden;
    position: relative;
}

.tn-node-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 84% 12%, rgba(23,59,214,.10), transparent 34%),
        radial-gradient(circle at 8% 0%, rgba(255,107,69,.10), transparent 30%);
    pointer-events: none;
}

.tn-node-hero-card > * {
    position: relative;
    z-index: 1;
}

.tn-node-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: #1238d7;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .02em;
    margin-bottom: 15px;
}

.tn-node-hero-card h1 {
    margin: 0;
    color: #071652;
    font-size: clamp(38px, 4vw, 60px);
    line-height: 1.02;
    letter-spacing: -2.4px;
    font-weight: 900;
}

.tn-node-summary {
    margin: 18px 0 0;
    color: #173066;
    font-size: 19px;
    line-height: 1.7;
    max-width: 780px;
}

.tn-node-status-card {
    border-radius: 18px;
    background: #f6f9ff;
    border: 1px solid #e5ecf7;
    padding: 20px;
    display: grid;
    gap: 8px;
    color: #53638b;
    font-size: 13px;
}

.tn-node-status-card strong {
    color: #071652;
    font-size: 18px;
    font-weight: 900;
}

.tn-node-status-card a {
    color: #1238d7;
    font-weight: 900;
}

.tn-node-card {
    padding: 26px;
}

.tn-node-card h2 {
    margin: 0 0 18px;
    font-size: 24px;
    color: #071652;
    letter-spacing: -.6px;
    font-weight: 900;
}

.tn-node-prose {
    color: #173066;
    font-size: 16px;
    line-height: 1.8;
}

.tn-node-prose p {
    margin-top: 0;
}

.tn-node-prose :last-child {
    margin-bottom: 0;
}

.tn-node-two-col,
.tn-node-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
    gap: 22px;
    align-items: start;
}

.tn-node-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tn-node-dl {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px 18px;
    margin: 0;
    font-size: 14px;
}

.tn-node-dl-wide {
    grid-template-columns: 170px minmax(0, 1fr);
}

.tn-node-dl dt {
    color: #53638b;
    font-weight: 900;
}

.tn-node-dl dd {
    margin: 0;
    color: #071652;
    min-width: 0;
    overflow-wrap: anywhere;
}

.tn-node-dl a {
    color: #1238d7;
    font-weight: 800;
}

.tn-node-link-list,
.tn-node-route-list {
    display: grid;
    gap: 10px;
}

.tn-node-link-list a,
.tn-node-route-list a,
.tn-node-related-grid a {
    display: grid;
    gap: 5px;
    padding: 14px;
    border-radius: 14px;
    background: #f6f9ff;
    border: 1px solid #edf2f7;
    transition: transform .15s ease, background .15s ease;
}

.tn-node-link-list a:hover,
.tn-node-route-list a:hover,
.tn-node-related-grid a:hover {
    transform: translateY(-2px);
    background: #eef4ff;
}

.tn-node-link-list span,
.tn-node-related-grid span,
.tn-node-route-list span {
    color: #1238d7;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.tn-node-link-list strong,
.tn-node-related-grid strong {
    color: #071652;
    font-size: 15px;
    font-weight: 900;
}

.tn-node-link-list small,
.tn-node-related-grid small {
    color: #53638b;
    line-height: 1.45;
}

.tn-node-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tn-node-route-list a {
    color: #071652;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.tn-node-article,
.tn-node-html-content {
    max-width: 900px;
}

.tn-node-button {
    display: inline-flex;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0 18px;
    background: #1238d7;
    color: #fff;
    font-weight: 900;
}

.tn-node-empty {
    padding: 60px 0;
}

@media (max-width: 1050px) {
    .tn-node-hero-card,
    .tn-node-two-col,
    .tn-node-grid,
    .tn-node-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tn-node-page {
        padding-top: 20px;
    }

    .tn-node-hero-card,
    .tn-node-card {
        border-radius: 18px;
        padding: 22px;
    }

    .tn-node-hero-card h1 {
        font-size: 34px;
        letter-spacing: -1.5px;
    }

    .tn-node-summary {
        font-size: 16px;
    }

    .tn-node-dl,
    .tn-node-dl-wide {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }
}
.tn-user-menu {
    position: relative;
}

.tn-user-menu__button {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 6px 0;
}

.tn-user-menu__bell {
    position: relative;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #344563;
    font-size: 22px;
}

    .tn-user-menu__bell span {
        position: absolute;
        top: -8px;
        right: -7px;
        width: 22px;
        height: 22px;
        border-radius: 999px;
        background: #ff4667;
        color: #fff;
        display: grid;
        place-items: center;
        font-size: 12px;
        font-weight: 800;
        border: 2px solid #fff;
    }

.tn-user-menu__avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eef3ff;
}

.tn-user-menu__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

    .tn-user-menu__text strong {
        font-size: 12px;
        font-weight: 800;
        color: #142344;
    }

    .tn-user-menu__text small {
        margin-top: 4px;
        font-size: 12px;
        font-weight: 700;
        color: #6b7894;
    }

.tn-user-menu__chevron {
    color: #8190ab;
    font-size: 16px;
    margin-left: 4px;
}

.tn-user-menu__dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 210px;
    background: #fff;
    border: 1px solid #e6ebf5;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(20, 35, 68, .14);
    padding: 8px;
    display: none;
    z-index: 2000;
}

.tn-user-menu.is-open .tn-user-menu__dropdown {
    display: block;
}

.tn-user-menu__dropdown a,
.tn-user-menu__dropdown button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #30405f;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}

    .tn-user-menu__dropdown a:hover,
    .tn-user-menu__dropdown button:hover {
        background: #f3f6ff;
        color: #2456ff;
    }

.tn-mega-menu {
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    z-index: 1000;
}

    .tn-mega-menu.is-open {
        pointer-events: none;
        visibility: visible;
        opacity: 1;
        z-index: 1002;
    }

    .tn-mega-menu .tn-mega-panel {
        pointer-events: none;
    }

    .tn-mega-menu.is-open .tn-mega-panel {
        pointer-events: auto;
    }