:root {
    --ink:#0f172a;
    --muted:#64748b;
    --line:#e2e8f0;
    --blue:#4f46e5;
    --navy:#172554;
    --soft:#f8fafc;
}

* {
    box-sizing:border-box;
}

body.public-site {
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
    color:var(--ink);
    background:#fff;
}

.public-header {
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(16px);
    border-bottom:1px solid rgba(226,232,240,.8);
}

.public-header .navbar {
    min-height:74px;
}

.public-brand {
    display:flex;
    align-items:center;
    gap:.65rem;
    text-decoration:none;
    color:var(--ink);
}

.public-brand-mark {
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    border-radius:14px;
    background:linear-gradient(135deg,#4f46e5,#0ea5e9);
    color:white;
    font:800 1.35rem Georgia;
}

.public-brand b {
    display:block;
    letter-spacing:.04em;
}

.public-brand small {
    display:block;
    font-size:.7rem;
    color:#64748b;
}

.nav-link {
    font-weight:650;
    color:#334155!important;
    border-radius:10px;
    padding:.55rem .75rem!important;
}

.nav-link:hover {
    background:#f1f5f9;
}

.hero-home {
    position:relative;
    overflow:hidden;
    padding:7rem 0 6rem;
    background:radial-gradient(circle at 80% 10%,#dbeafe 0,transparent 30%),radial-gradient(circle at 20% 0,#ede9fe 0,transparent 25%),linear-gradient(#fff,#f8fafc);
}

.hero-home h1 {
    font-size:clamp(3rem,6vw,5.8rem);
    font-weight:850;
    letter-spacing:-.055em;
    line-height:.96;
    margin:1.2rem 0 1.5rem;
}

.hero-home h1 span {
    color:#4f46e5;
}

.hero-home .lead {
    color:#475569;
    max-width:720px;
    font-size:1.2rem;
}

.eyebrow {
    display:inline-flex;
    align-items:center;
    gap:.45rem;
    font-size:.74rem;
    font-weight:800;
    letter-spacing:.12em;
    color:#4f46e5;
}

.eyebrow.light {
    color:#c7d2fe;
}

.hero-orbit {
    height:430px;
    position:relative;
    display:grid;
    place-items:center;
}

.orbit-core {
    width:180px;
    height:180px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:linear-gradient(145deg,#172554,#4f46e5);
    color:#fff;
    font:700 5rem Georgia;
    box-shadow:0 30px 80px rgba(79,70,229,.25);
}

.orbit-core small {
    position:absolute;
    margin-top:115px;
    font:700 .68rem system-ui;
    letter-spacing:.15em;
}

.hero-orbit:before,.hero-orbit:after {
    content:"";
    position:absolute;
    border:1px solid #cbd5e1;
    border-radius:50%;
}

.hero-orbit:before {
    width:330px;
    height:330px;
}

.hero-orbit:after {
    width:420px;
    height:420px;
}

.orbit-chip {
    position:absolute;
    z-index:2;
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:999px;
    padding:.7rem 1rem;
    font-weight:750;
    box-shadow:0 12px 30px rgba(15,23,42,.09);
}

.orbit-chip i {
    color:#4f46e5;
    margin-right:.35rem;
}

.chip-a {
    top:50px;
    right:15px;
}

.chip-b {
    bottom:70px;
    right:5px;
}

.chip-c {
    left:0;
    bottom:110px;
}

.section-space {
    padding:5.5rem 0;
}

.section-soft {
    background:#f8fafc;
}

.section-heading {
    max-width:700px;
    margin-bottom:2.2rem;
}

.section-heading>span {
    font-size:.72rem;
    letter-spacing:.14em;
    font-weight:800;
    color:#4f46e5;
}

.section-heading h2 {
    font-size:clamp(2rem,4vw,3.2rem);
    letter-spacing:-.04em;
    font-weight:820;
    margin:.45rem 0;
}

.section-heading p {
    color:#64748b;
    font-size:1.05rem;
}

.feature-card {
    display:block;
    height:100%;
    min-height:370px;
    border:1px solid #e2e8f0;
    border-radius:28px;
    padding:2rem;
    color:inherit;
    text-decoration:none;
    position:relative;
    overflow:hidden;
    transition:.2s;
    background:#fff;
}

.feature-card:hover {
    transform:translateY(-5px);
    box-shadow:0 22px 50px rgba(15,23,42,.1);
    color:inherit;
}

.feature-card:after {
    content:"";
    position:absolute;
    width:180px;
    height:180px;
    border-radius:50%;
    right:-80px;
    bottom:-80px;
    background:#eef2ff;
}

.feature-icon {
    width:58px;
    height:58px;
    border-radius:18px;
    display:grid;
    place-items:center;
    font-size:1.5rem;
    background:#eef2ff;
    color:#4f46e5;
}

.feature-no {
    position:absolute;
    right:2rem;
    top:2rem;
    color:#cbd5e1;
    font-weight:850;
}

.feature-card h3 {
    font-size:1.55rem;
    font-weight:800;
    margin:3.2rem 0 1rem;
}

.feature-card p {
    color:#64748b;
    min-height:80px;
}

.feature-card strong {
    color:#4f46e5;
}

.feature-online .feature-icon {
    background:#ecfdf5;
    color:#059669;
}

.feature-knowledge .feature-icon {
    background:#fff7ed;
    color:#ea580c;
}

.post-card {
    display:block;
    height:100%;
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:22px;
    overflow:hidden;
    color:inherit;
    text-decoration:none;
}

.post-cover {
    height:170px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,#e0e7ff,#dbeafe);
    font-size:3rem;
    color:#4f46e5;
}

.post-card small {
    color:#4f46e5;
    font-weight:700;
}

.post-card h3 {
    font-size:1.2rem;
    font-weight:800;
    margin:.5rem 0;
}

.post-card p {
    color:#64748b;
}

.post-card span {
    font-weight:750;
}

.content-empty {
    min-height:280px;
    border:1px dashed #cbd5e1;
    border-radius:24px;
    display:grid;
    place-items:center;
    text-align:center;
    background:#fff;
    padding:2rem;
}

.content-empty i {
    font-size:2.4rem;
    color:#94a3b8;
}

.content-empty h3 {
    font-weight:800;
    margin:.8rem 0;
}

.content-empty p {
    color:#64748b;
    max-width:600px;
}

.text-link {
    font-weight:750;
    text-decoration:none;
}

.cta-panel {
    background:linear-gradient(135deg,#172554,#4338ca);
    color:#fff;
    border-radius:32px;
    padding:3rem;
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:2rem;
    box-shadow:0 25px 60px rgba(30,41,59,.18);
}

.cta-panel h2 {
    font-size:clamp(2rem,4vw,3.4rem);
    font-weight:830;
    letter-spacing:-.04em;
    margin:.7rem 0;
}

.cta-panel p {
    color:#cbd5e1;
    max-width:700px;
}

.module-hero {
    padding:7rem 0 6rem;
    color:#fff;
}

.module-hero .container {
    max-width:1050px;
}

.module-hero h1 {
    font-size:clamp(3rem,6vw,5.5rem);
    font-weight:850;
    letter-spacing:-.05em;
    line-height:.98;
    margin:1rem 0 1.5rem;
}

.module-hero p {
    font-size:1.15rem;
    max-width:760px;
    color:rgba(255,255,255,.78);
    margin-bottom:2rem;
}

.module-hero.dna {
    background:radial-gradient(circle at 80% 10%,#6366f1,transparent 35%),#172554;
}

.module-hero.online {
    background:radial-gradient(circle at 80% 10%,#34d399,transparent 32%),#064e3b;
}

.module-hero.knowledge {
    background:radial-gradient(circle at 80% 10%,#fb923c,transparent 32%),#7c2d12;
}

.info-card,.action-panel {
    height:100%;
    padding:2rem;
    border:1px solid #e2e8f0;
    border-radius:24px;
    background:#fff;
}

.info-card i,.action-panel>i {
    font-size:2rem;
    color:#4f46e5;
}

.info-card h3,.action-panel h2 {
    font-weight:800;
    margin:1rem 0;
}

.info-card p,.action-panel p {
    color:#64748b;
}

.grade-card {
    padding:2rem;
    border:1px solid #e2e8f0;
    border-radius:22px;
    text-align:center;
}

.grade-card span,.grade-card small {
    display:block;
    color:#64748b;
}

.grade-card b {
    font-size:4rem;
    line-height:1.1;
    color:#4f46e5;
}

/* BUILD 12 R2 — shared Public footer: premium scientific/educational direction. */
.public-footer {
    position:relative;
    isolation:isolate;
    overflow:hidden;
    color:#eaf4ff;
    background:
        radial-gradient(circle at 50% 108%,rgba(18,169,255,.25),transparent 36%),
        radial-gradient(circle at 12% 14%,rgba(0,195,255,.11),transparent 24%),
        radial-gradient(circle at 88% 8%,rgba(73,113,255,.13),transparent 28%),
        linear-gradient(135deg,#020d25 0%,#041b46 48%,#062963 100%);
    border-top:1px solid rgba(91,191,255,.26);
}

.public-footer::before,
.public-footer::after {
    content:"";
    position:absolute;
    inset:auto -8% 0;
    height:46%;
    pointer-events:none;
    z-index:-1;
}

.public-footer::before {
    background:
        linear-gradient(rgba(31,142,255,.10) 1px,transparent 1px),
        linear-gradient(90deg,rgba(31,142,255,.10) 1px,transparent 1px);
    background-size:34px 34px;
    transform:perspective(340px) rotateX(58deg) translateY(34%);
    transform-origin:center bottom;
    mask-image:linear-gradient(to top,rgba(0,0,0,.75),transparent 88%);
}

.public-footer::after {
    height:64%;
    background:radial-gradient(ellipse at center bottom,rgba(19,139,255,.24),transparent 66%);
}

.public-footer__glow {
    position:absolute;
    left:50%;
    bottom:4.4rem;
    width:min(72vw,920px);
    height:180px;
    transform:translateX(-50%);
    border-radius:50%;
    background:radial-gradient(ellipse,rgba(18,183,255,.18),transparent 68%);
    filter:blur(18px);
    pointer-events:none;
    z-index:0;
}

.public-footer__main {
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:minmax(220px,1fr) minmax(540px,2.05fr) minmax(250px,1.08fr);
    gap:clamp(1.5rem,3vw,3.25rem);
    align-items:start;
    padding-block:clamp(3rem,5vw,4.4rem) clamp(2.3rem,4vw,3.5rem);
}

.public-footer__brand,
.public-footer__capabilities,
.public-footer__product {
    position:relative;
    z-index:2;
    min-width:0;
}

.public-footer__brand-link {
    display:flex;
    align-items:center;
    gap:.9rem;
    color:#fff;
    text-decoration:none;
}

.public-footer__brand-link:hover {
    color:#fff;
}

.public-footer__brand-logo {
    display:grid;
    place-items:center;
    width:86px;
    height:62px;
    flex:0 0 86px;
    padding:3px;
    border-radius:14px;
    background:rgba(255,255,255,.07);
    box-shadow:0 0 26px rgba(40,184,255,.18);
}

.public-footer__brand-logo img {
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}

.public-footer__brand-link b {
    display:block;
    font-size:clamp(1.35rem,1.9vw,1.85rem);
    letter-spacing:.045em;
    line-height:1.1;
}

.public-footer__brand-link small {
    display:block;
    margin-top:.35rem;
    max-width:250px;
    color:#b9d0ef;
    font-size:.78rem;
    line-height:1.45;
}

.public-footer__illustration {
    position:absolute;
    left:50%;
    bottom:-3.2rem;
    width:min(31vw,410px);
    height:auto;
    max-height:260px;
    object-fit:contain;
    transform:translateX(-50%);
    opacity:.33;
    filter:drop-shadow(0 0 24px rgba(71,189,255,.28));
    pointer-events:none;
    user-select:none;
    z-index:0;
}

.public-footer__capabilities {
    padding-inline:clamp(1.1rem,2.2vw,2rem);
    border-inline:1px solid rgba(137,193,255,.18);
}

.public-footer__capabilities h2,
.public-footer__product h2 {
    margin:0 0 1.15rem;
    color:#f8fbff;
    font-size:.83rem;
    font-weight:800;
    letter-spacing:.09em;
    text-transform:uppercase;
}

.public-footer__capability-grid {
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:.55rem;
}

.public-footer__capability {
    min-width:0;
    min-height:96px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:.58rem;
    padding:.65rem .38rem;
    border-radius:14px;
    color:#edf7ff;
    text-align:center;
    text-decoration:none;
    font-size:.76rem;
    font-weight:750;
    line-height:1.32;
    overflow-wrap:anywhere;
    transition:background-color var(--tt-motion-fast,180ms) ease,border-color var(--tt-motion-fast,180ms) ease,transform var(--tt-motion-fast,180ms) ease;
}

.public-footer a.public-footer__capability:hover {
    color:#fff;
    background:rgba(49,151,255,.10);
    transform:translateY(-2px);
}

.public-footer__capability-icon {
    width:48px;
    height:48px;
    flex:0 0 48px;
    display:grid;
    place-items:center;
    border:1px solid rgba(98,211,255,.56);
    border-radius:14px;
    color:#68dbff;
    background:linear-gradient(145deg,rgba(19,61,123,.68),rgba(4,21,58,.58));
    box-shadow:0 0 18px rgba(32,174,255,.16),inset 0 0 14px rgba(78,191,255,.06);
    font-size:1.45rem;
}

.public-footer__capability--future {
    color:#d6e6fa;
    border:1px dashed rgba(111,189,255,.26);
    background:rgba(255,255,255,.025);
    cursor:default;
}

.public-footer__capability--future small {
    display:block;
    width:max-content;
    max-width:100%;
    margin:.28rem auto 0;
    padding:.15rem .48rem;
    border-radius:999px;
    background:rgba(125,211,252,.12);
    color:#9ee7ff;
    font-size:.58rem;
    font-weight:850;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.public-footer__product h2 span {
    color:#bbd3f0;
    font-weight:650;
    letter-spacing:0;
    text-transform:none;
}

.public-footer__product-list {
    display:grid;
    gap:.62rem;
}

.public-footer__product-list p {
    display:flex;
    align-items:flex-start;
    gap:.65rem;
    margin:0;
    color:#bfd2eb;
    font-size:.8rem;
    line-height:1.48;
}

.public-footer__product-list i {
    width:1.15rem;
    flex:0 0 1.15rem;
    margin-top:.08rem;
    color:#73dcff;
    text-align:center;
}

.public-footer__product-list a {
    color:#d8ebff;
    text-decoration:none;
}

.public-footer__product-list a:hover {
    color:#fff;
    text-decoration:underline;
    text-underline-offset:3px;
}

.public-footer__bottom {
    position:relative;
    z-index:2;
    border-top:1px solid rgba(142,195,255,.20);
    background:rgba(0,8,27,.34);
    backdrop-filter:blur(6px);
}

.public-footer__bottom-inner {
    min-height:64px;
    padding-block:.62rem;
}

.public-footer__copyright { display:flex; align-items:center; }
.public-footer__presence-slot { display:flex; align-items:center; justify-content:center; }
.public-footer__bottom-inner > :last-child { display:flex; align-items:center; justify-content:flex-end; }

.public-footer__bottom p {
    display:flex;
    align-items:center;
    gap:.65rem;
    margin:0;
    color:#afc5df;
    font-size:.78rem;
}

.public-footer__bottom p i {
    color:#8adfff;
    font-size:1.05rem;
}

.public-footer__actions {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:.55rem;
}

.public-footer__actions a {
    min-height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:.45rem;
    padding:.55rem .78rem;
    border:1px solid rgba(129,190,255,.30);
    border-radius:999px;
    color:#dbeeff;
    text-decoration:none;
    font-size:.76rem;
    font-weight:750;
}

.public-footer__actions a:hover {
    color:#fff;
    border-color:rgba(112,217,255,.72);
    background:rgba(31,142,255,.12);
}

.public-footer a:focus-visible {
    outline:3px solid rgba(103,232,249,.88);
    outline-offset:3px;
}

@media(max-width:1199.98px) {
    .public-footer__main {
        grid-template-columns:minmax(0,1fr) minmax(0,1fr);
        gap:2rem 2.4rem;
    }
    .public-footer__brand { grid-column:1; grid-row:1; }
    .public-footer__product { grid-column:2; grid-row:1; }
    .public-footer__capabilities {
        grid-column:1 / -1;
        grid-row:2;
        padding:1.5rem 0 0;
        border-inline:0;
        border-top:1px solid rgba(137,193,255,.18);
    }
    .public-footer__illustration {
        left:50%;
        bottom:-1.9rem;
        width:min(42vw,350px);
        opacity:.24;
    }
}

@media(max-width:767.98px) {
    .public-footer__main {
        grid-template-columns:1fr;
        gap:1.65rem;
        padding-block:2.4rem 2rem;
    }
    .public-footer__brand,
    .public-footer__capabilities,
    .public-footer__product {
        grid-column:1;
        grid-row:auto;
    }
    .public-footer__capabilities {
        padding-top:1.35rem;
    }
    .public-footer__capability-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:.55rem;
    }
    .public-footer__capability {
        min-height:64px;
        flex-direction:row;
        justify-content:flex-start;
        padding:.55rem .65rem;
        text-align:left;
    }
    .public-footer__capability-icon {
        width:44px;
        height:44px;
        flex-basis:44px;
        border-radius:12px;
        font-size:1.18rem;
    }
    .public-footer__capability--future {
        grid-column:1 / -1;
    }
    .public-footer__capability--future small {
        margin:.18rem 0 0;
    }
    .public-footer__product {
        padding-top:1.35rem;
        border-top:1px solid rgba(137,193,255,.18);
    }
    .public-footer__illustration {
        display:none;
    }
    .public-footer__bottom-inner {
        min-height:0;
        padding-block:.78rem;
    }
    .public-footer__copyright,
    .public-footer__presence-slot,
    .public-footer__bottom-inner > :last-child {
        justify-content:center;
        text-align:center;
    }
    .public-footer__actions {
        width:100%;
        justify-content:center;
    }
    .public-footer__actions a {
        flex:1 1 0;
    }
}

@media(max-width:420px) {
    .public-footer__brand-logo {
        width:76px;
        height:54px;
        flex-basis:76px;
    }
    .public-footer__brand-link small {
        font-size:.73rem;
    }
    .public-footer__capability-grid {
        grid-template-columns:1fr;
    }
    .public-footer__capability--future {
        grid-column:auto;
    }
}

/* BUILD 15 R1 — reusable Public back-to-top control.
 * Opt-in via public_bottom(['back_to_top'=>true]); footer lift is supplied by shared JS. */
.tt-public-back-to-top {
    position:fixed;
    right:max(16px,calc(env(safe-area-inset-right) + 12px));
    bottom:calc(max(18px,calc(env(safe-area-inset-bottom) + 14px)) + var(--tt-public-back-to-top-lift,0px));
    z-index:1024;
    width:46px;
    height:46px;
    min-width:46px;
    min-height:46px;
    display:grid;
    place-items:center;
    padding:0;
    border:1px solid rgba(37,99,235,.24);
    border-radius:14px;
    background:rgba(255,255,255,.96);
    color:#1d5fc5;
    box-shadow:0 10px 28px rgba(20,62,120,.18);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    transition:opacity .16s ease,transform .16s ease,bottom .12s ease,background-color .16s ease,color .16s ease;
}
.tt-public-back-to-top[hidden] { display:none!important; }
.tt-public-back-to-top:hover { background:#eef6ff; color:#144eaa; transform:translateY(-1px); }
.tt-public-back-to-top:focus-visible { outline:3px solid rgba(37,99,235,.36); outline-offset:3px; }
@media(max-width:767.98px) {
    .tt-public-back-to-top {
        width:44px; height:44px; min-width:44px; min-height:44px;
        right:max(12px,calc(env(safe-area-inset-right) + 8px));
    }
}
@media(prefers-reduced-motion:reduce) {
    .tt-public-back-to-top { transition:none!important; transform:none!important; }
}

@media(prefers-reduced-motion:reduce) {
    .public-footer__capability,
    .public-footer__actions a {
        transition:none!important;
    }
    .public-footer a.public-footer__capability:hover {
        transform:none;
    }
}

.public-mobile-nav a {
    padding:.9rem 1rem;
    border-radius:12px;
    background:#f8fafc;
    color:#0f172a;
    text-decoration:none;
    font-weight:700;
}

@media(max-width:991.98px) {
    .hero-home {
        padding:5rem 0 4rem;
    }
    .hero-orbit {
        height:330px;
        margin-top:1rem;
    }
    .hero-orbit:before {
        width:270px;
        height:270px;
    }
    .hero-orbit:after {
        width:320px;
        height:320px;
    }
    .orbit-core {
        width:145px;
        height:145px;
        font-size:4rem;
    }
    .chip-a {
        right:0;
    }
    .chip-c {
        left:0;
    }
    .section-space {
        padding:4rem 0;
    }
    .cta-panel {
        align-items:start;
        flex-direction:column;
    }
    .module-hero {
        padding:5rem 0 4rem;
    }
}

@media(max-width:575.98px) {
    .hero-home h1 {
        font-size:3.15rem;
    }
    .hero-orbit {
        height:280px;
    }
    .hero-orbit:before {
        width:220px;
        height:220px;
    }
    .hero-orbit:after {
        width:275px;
        height:275px;
    }
    .orbit-core {
        width:120px;
        height:120px;
        font-size:3.2rem;
    }
    .orbit-chip {
        font-size:.75rem;
        padding:.55rem .7rem;
    }
    .chip-a {
        top:20px;
    }
    .chip-b {
        bottom:35px;
    }
    .chip-c {
        bottom:70px;
    }
    .feature-card {
        min-height:330px;
        padding:1.5rem;
    }
    .section-space {
        padding:3.4rem 0;
    }
    .cta-panel {
        padding:2rem;
        border-radius:24px;
    }
    .module-hero h1 {
        font-size:3.1rem;
    }
}

/* ===== toantin3.2 Build 2: refined typography + official brand ===== */

body.public-site {
    font-family:"Segoe UI",Roboto,Arial,sans-serif;
    font-size:16px;
    line-height:1.65;
}

.public-brand-logo {
    width:64px;
    height:44px;
    border-radius:10px;
    overflow:hidden;
    display:block;
    flex:0 0 64px;
    background:transparent;
}

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

.hero-home h1 {
    font-size:clamp(2.7rem,5.2vw,4.8rem);
    font-weight:760;
    letter-spacing:-.045em;
    line-height:1.02;
    max-width:820px;
}

.hero-home .lead {
    font-size:1.08rem;
    line-height:1.75;
    max-width:760px;
}

.section-heading h2 {
    font-size:clamp(1.9rem,3.2vw,2.75rem);
    font-weight:750;
    letter-spacing:-.03em;
    line-height:1.15;
}

.feature-card h3,.post-card h3,.info-card h3,.action-panel h2 {
    font-weight:740;
}

.module-hero h1 {
    font-size:clamp(2.7rem,5vw,4.5rem);
    font-weight:760;
    line-height:1.03;
}

.module-hero.compact {
    padding:5.2rem 0 4.5rem;
}

.knowledge-search {
    max-width:720px;
}

.knowledge-search .form-control {
    border:0;
}

.knowledge-search .input-group {
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 14px 40px rgba(0,0,0,.12);
}

.grade-filter {
    display:flex;
    gap:.55rem;
    flex-wrap:wrap;
}

.grade-filter a {
    padding:.6rem 1rem;
    border:1px solid #e2e8f0;
    border-radius:999px;
    text-decoration:none;
    color:#334155;
    font-weight:650;
    background:#fff;
}

.grade-filter a.active,.grade-filter a:hover {
    background:#172554;
    color:#fff;
    border-color:#172554;
}

.article-container {
    max-width:880px;
}

.article-head {
    padding:5.5rem 0 3rem;
    background:linear-gradient(180deg,#f8fafc,#fff);
}

.article-breadcrumb {
    display:flex;
    gap:.55rem;
    flex-wrap:wrap;
    color:#64748b;
    font-size:.9rem;
    margin-bottom:1.4rem;
}

.article-breadcrumb a {
    text-decoration:none;
}

.article-head h1 {
    font-size:clamp(2.25rem,5vw,4rem);
    font-weight:760;
    letter-spacing:-.04em;
    line-height:1.08;
}

.article-lead {
    font-size:1.18rem;
    color:#64748b;
    line-height:1.7;
    margin:1.2rem 0;
}

.article-meta {
    display:flex;
    gap:1.25rem;
    flex-wrap:wrap;
    color:#64748b;
    font-size:.9rem;
}

.article-body-section {
    padding:1rem 0 6rem;
}

.article-content {
    font-size:1.08rem;
    line-height:1.85;
    color:#1e293b;
}

.article-content h2 {
    font-size:1.75rem;
    margin:2.2rem 0 1rem;
    font-weight:750;
}

.article-content h3 {
    font-size:1.35rem;
    margin:1.8rem 0 .8rem;
    font-weight:740;
}

.article-content img {
    max-width:100%;
    height:auto;
    border-radius:14px;
}

.article-content table {
    max-width:100%;
}

@media(max-width:575.98px) {
    .hero-home h1 {
        font-size:2.65rem;
    }
    .hero-home .lead {
        font-size:1rem;
    }
    .article-head {
        padding:3.6rem 0 2rem;
    }
    .article-content {
        font-size:1.02rem;
    }
    .public-brand-logo {
        width:40px;
        height:40px;
        flex-basis:40px;
    }
}

/* ===== Build 2 FIX1: cache-safe brand sizing ===== */

.public-brand-logo {
    width:64px!important;
    height:44px!important;
    min-width:64px!important;
    max-width:64px!important;
    min-height:44px!important;
    max-height:44px!important;
    overflow:hidden!important;
    border-radius:10px;
}

.public-brand-logo img {
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    display:block!important;
}

.public-header .navbar-brand {
    max-width:320px;
}

@media(max-width:575.98px) {
    .public-brand-logo {
        width:56px!important;
        height:40px!important;
        min-width:56px!important;
        max-width:56px!important;
    }
    .public-brand-logo img {
        width:100%!important;
        height:100%!important;
        max-width:100%!important;
        max-height:100%!important;
    }
}

/* ===== toantin3.2 Build 3: typography refinement ===== */

.cta-panel h2 {
    font-size:clamp(1.65rem,2.8vw,2.65rem)!important;
    line-height:1.12!important;
    letter-spacing:-.025em!important;
    font-weight:760!important;
    max-width:850px;
}

.cta-panel {
    padding:2.6rem 3rem;
}

.module-hero h1 {
    font-size:clamp(2.35rem,4.2vw,3.8rem)!important;
    line-height:1.06!important;
}

@media(max-width:575.98px) {
    .cta-panel h2 {
        font-size:1.65rem!important;
    }
    .cta-panel {
        padding:1.65rem!important;
    }
    .module-hero h1 {
        font-size:2.25rem!important;
    }
}

.document-card {
    border:1px solid #e2e8f0;
    border-radius:20px;
    background:#fff;
    padding:1.25rem;
    height:100%;
}

.document-card .doc-icon {
    width:48px;
    height:48px;
    border-radius:14px;
    display:grid;
    place-items:center;
    background:#eef2ff;
    color:#4f46e5;
    font-size:1.35rem;
}

.document-card h3 {
    font-size:1.05rem;
    font-weight:780;
    margin:.85rem 0 .4rem;
}

.document-meta {
    font-size:.85rem;
    color:#64748b;
}

/* ===== TOANTIN 3.2 BUILD 4 — Global typography system ===== */

:root {
    --tt-font:"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    --tt-body:16px;
    --tt-small:.875rem;
}

html {
    font-size:16px;
}

body.public-site {
    font-family:var(--tt-font)!important;
    font-size:var(--tt-body)!important;
    line-height:1.62!important;
    font-weight:400;
}

.public-site h1,.public-site h2,.public-site h3,.public-site h4,.public-site h5,.public-site h6 {
    font-family:var(--tt-font)!important;
    letter-spacing:-.025em;
    font-weight:700;
}

.public-brand b {
    font-size:1.15rem;
    font-weight:750;
    letter-spacing:.025em;
}

.public-brand small {
    font-size:.72rem;
}

.public-header .nav-link {
    font-size:.98rem;
    font-weight:650;
}

.hero-home {
    padding:5.8rem 0 5rem;
}

.hero-home h1 {
    font-size:clamp(2.75rem,4.35vw,4.35rem)!important;
    line-height:1.06!important;
    font-weight:720!important;
    letter-spacing:-.04em!important;
    max-width:850px;
}

.hero-home .lead {
    font-size:1.06rem!important;
    line-height:1.72!important;
}

.eyebrow {
    font-size:.72rem!important;
    font-weight:750!important;
    letter-spacing:.11em;
}

.section-heading h2 {
    font-size:clamp(1.75rem,2.65vw,2.45rem)!important;
    line-height:1.18!important;
    font-weight:720!important;
}

.section-heading p {
    font-size:1rem!important;
    line-height:1.65;
}

.feature-card h3 {
    font-size:1.32rem!important;
    font-weight:720!important;
}

.feature-card p {
    font-size:.98rem;
    line-height:1.65;
}

.module-hero {
    padding:5rem 0 4.4rem!important;
}

.module-hero h1 {
    font-size:clamp(2.4rem,3.8vw,3.55rem)!important;
    line-height:1.08!important;
    font-weight:720!important;
    letter-spacing:-.035em!important;
}

.module-hero p {
    font-size:1.05rem!important;
    line-height:1.7;
}

.cta-panel h2 {
    font-size:clamp(1.55rem,2.15vw,2.15rem)!important;
    line-height:1.2!important;
    font-weight:700!important;
    letter-spacing:-.02em!important;
}

.article-head h1 {
    font-size:clamp(2rem,3.35vw,3.2rem)!important;
    line-height:1.13!important;
    font-weight:720!important;
    letter-spacing:-.03em!important;
}

.article-lead {
    font-size:1.08rem!important;
}

.article-content {
    font-size:1.04rem!important;
    line-height:1.82!important;
}

.article-content h2 {
    font-size:1.6rem!important;
    font-weight:720!important;
}

.article-content h3 {
    font-size:1.28rem!important;
    font-weight:700!important;
}

.post-card h3 {
    font-size:1.12rem!important;
    font-weight:700!important;
    line-height:1.4;
}

.grade-card b {
    font-size:3rem!important;
}

.btn {
    font-weight:650;
}

@media(max-width:575.98px) {
    html {
        font-size:15.5px;
    }
    .hero-home {
        padding:4rem 0 3.5rem;
    }
    .hero-home h1 {
        font-size:2.45rem!important;
    }
    .module-hero h1 {
        font-size:2.15rem!important;
    }
    .article-head h1 {
        font-size:2rem!important;
    }
}

/* ===== BUILD 4 FIX1 — Editorial education typography ===== */

body.public-site {
    font-family:Arial,"Helvetica Neue","Segoe UI",sans-serif!important;
    font-size:15.5px!important;
    line-height:1.6!important;
    color:#172033;
}

.public-site h1,.public-site h2,.public-site h3,.public-site h4 {
    font-family:Arial,"Helvetica Neue","Segoe UI",sans-serif!important;
    font-weight:700!important;
    letter-spacing:-.018em!important;
}

.public-header .nav-link {
    font-size:15px!important;
    font-weight:600!important;
}

.public-brand b {
    font-size:18px!important;
    font-weight:700!important;
}

.public-brand small {
    font-size:12px!important;
}

.hero-home {
    padding:4.7rem 0 4.2rem!important;
}

.hero-home h1 {
    font-size:clamp(2.55rem,3.65vw,3.65rem)!important;
    line-height:1.09!important;
    font-weight:700!important;
    letter-spacing:-.035em!important;
    max-width:760px!important;
}

.hero-home .lead {
    font-size:16px!important;
    line-height:1.68!important;
    max-width:760px;
}

.section-heading h2 {
    font-size:clamp(1.65rem,2.2vw,2.15rem)!important;
    line-height:1.22!important;
}

.module-hero {
    padding:4.2rem 0 3.7rem!important;
}

.module-hero h1 {
    font-size:clamp(2.2rem,3vw,3rem)!important;
    line-height:1.1!important;
}

.cta-panel {
    padding:2.2rem 2.5rem!important;
}

.cta-panel h2 {
    font-size:clamp(1.45rem,1.9vw,1.9rem)!important;
    line-height:1.25!important;
}

.article-head {
    padding:3.6rem 0 2.6rem!important;
}

.article-head h1 {
    font-size:clamp(1.9rem,2.75vw,2.75rem)!important;
    line-height:1.18!important;
    max-width:900px;
}

.article-head .lead {
    font-size:16px!important;
    line-height:1.7!important;
}

.article-content {
    font-size:16px!important;
    line-height:1.8!important;
    max-width:820px;
}

.article-content h2 {
    font-size:1.45rem!important;
    margin-top:2rem!important;
}

.article-content h3 {
    font-size:1.18rem!important;
    margin-top:1.6rem!important;
}

.post-card h3 {
    font-size:1.05rem!important;
    line-height:1.42!important;
}

.feature-card h3 {
    font-size:1.18rem!important;
}

.btn {
    font-size:15px!important;
}

@media(max-width:575.98px) {
    body.public-site {
        font-size:15px!important;
    }
    .hero-home {
        padding:3.2rem 0!important;
    }
    .hero-home h1 {
        font-size:2.25rem!important;
    }
    .module-hero h1 {
        font-size:2rem!important;
    }
    .article-head h1 {
        font-size:1.85rem!important;
    }
    .cta-panel h2 {
        font-size:1.4rem!important;
    }
}

/* BUILD 5 — comments */

.comment-section {
    border-top:1px solid #e5e7eb;
    padding-top:2.25rem;
}

.comment-title {
    font-size:1.55rem!important;
    margin:.25rem 0 0;
}

.comment-count {
    font-size:.85rem;
    color:#64748b;
}

.comment-list {
    display:grid;
    gap:1rem;
    margin-bottom:2rem;
}

.comment-item {
    display:grid;
    grid-template-columns:42px 1fr;
    gap:.85rem;
    padding:1rem 0;
    border-bottom:1px solid #edf0f4;
}

.comment-avatar {
    width:42px;
    height:42px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#eef2ff;
    color:#4338ca;
    font-weight:700;
}

.comment-head {
    display:flex;
    align-items:center;
    gap:.75rem;
    flex-wrap:wrap;
}

.comment-head time {
    font-size:.78rem;
    color:#94a3b8;
}

.comment-body {
    margin-top:.3rem;
    font-size:15.5px;
    line-height:1.65;
}

.comment-empty {
    padding:1.1rem;
    border:1px dashed #cbd5e1;
    border-radius:14px;
    color:#64748b;
    background:#f8fafc;
}

.comment-form-wrap {
    margin-top:2rem;
    padding:1.4rem;
    border-radius:18px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
}

.comment-form-wrap h3 {
    font-size:1.15rem!important;
}

.hp-field {
    position:absolute!important;
    left:-10000px!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important;
}

.article-body .article-callout {
    padding:1rem 1.1rem;
    border-left:4px solid #2563eb;
    background:#eff6ff;
    border-radius:8px;
    margin:1.25rem 0;
}

.article-body pre {
    background:#0f172a;
    color:#e2e8f0;
    padding:1rem;
    border-radius:10px;
    overflow:auto;
}

.article-body .math-block {
    text-align:center;
    margin:1.4rem 0;
    overflow-x:auto;
}

.article-body table {
    width:100%;
    margin:1.25rem 0;
}

.article-body th,.article-body td {
    padding:.7rem;
    border:1px solid #dbe1ea;
}

.article-body th {
    background:#f8fafc;
}

/* BUILD29 FIX29.24 — Homepage feature orbit + LCD public entry */

.hero-orbit-v2 {
    isolation:isolate;
}

.hero-orbit-v2:before,.hero-orbit-v2:after {
    border-color:rgba(99,102,241,.20);
}

.orbit-core-v2 {
    position:relative;
    z-index:3;
    overflow:visible;
    background:radial-gradient(circle at 35% 28%,#818cf8 0,#4f46e5 35%,#312e81 72%,#172554 100%);
    border:1px solid rgba(255,255,255,.75);
    box-shadow:0 0 0 10px rgba(99,102,241,.07),0 28px 70px rgba(49,46,129,.38),inset 0 2px 12px rgba(255,255,255,.22);
}

.orbit-core-v2:before {
    content:"";
    position:absolute;
    inset:10px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.22);
}

.orbit-core-v2 .sigma {
    position:relative;
    z-index:2;
    font:700 5.3rem Georgia,serif;
    line-height:1;
    text-shadow:0 5px 20px rgba(15,23,42,.28);
}

.orbit-core-v2 small {
    z-index:2;
    margin-top:120px;
}

.orbit-halo {
    position:absolute;
    border-radius:50%;
    pointer-events:none;
    z-index:0;
}

.halo-1 {
    width:250px;
    height:250px;
    background:radial-gradient(circle,rgba(99,102,241,.16),rgba(99,102,241,0) 70%);
}

.halo-2 {
    width:390px;
    height:390px;
    border:1px dashed rgba(79,70,229,.13);
}

.hero-orbit-v2 .orbit-chip {
    text-decoration:none;
    color:#172033;
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
    white-space:nowrap;
}

.hero-orbit-v2 .orbit-chip:hover {
    transform:translateY(-3px);
    box-shadow:0 18px 38px rgba(49,46,129,.16);
    border-color:#c7d2fe;
    color:#312e81;
}

.hero-orbit-v2 .orbit-chip i {
    font-size:1.05em;
}

.hero-orbit-v2 .chip-a {
    top:42px;
    right:5px;
}

.hero-orbit-v2 .chip-b {
    right:-16px;
    bottom:65px;
}

.hero-orbit-v2 .chip-c {
    left:-22px;
    bottom:68px;
}

.hero-orbit-v2 .chip-d {
    left:-15px;
    top:55px;
}

.module-hero.lcd {
    background:radial-gradient(circle at 82% 12%,#60a5fa,transparent 34%),radial-gradient(circle at 65% 85%,#6366f1,transparent 28%),#172554;
}

@media(max-width:991.98px) {
    .hero-orbit-v2 .chip-a {
        top:18px;
    }
    .hero-orbit-v2 .chip-d {
        top:35px;
    }
    .hero-orbit-v2 .chip-b {
        right:0;
        bottom:30px;
    }
    .hero-orbit-v2 .chip-c {
        left:0;
        bottom:38px;
    }
    .orbit-core-v2 .sigma {
        font-size:4.2rem;
    }
    .orbit-core-v2 small {
        margin-top:95px;
    }
}

@media(max-width:575.98px) {
    .hero-orbit-v2 .orbit-chip {
        font-size:.69rem;
    }
    .hero-orbit-v2 .chip-a {
        top:5px;
        right:0;
    }
    .hero-orbit-v2 .chip-d {
        top:45px;
        left:-5px;
    }
    .hero-orbit-v2 .chip-b {
        right:-3px;
        bottom:20px;
    }
    .hero-orbit-v2 .chip-c {
        left:-3px;
        bottom:55px;
    }
    .orbit-core-v2 .sigma {
        font-size:3.4rem;
    }
    .orbit-core-v2 small {
        margin-top:76px;
        font-size:.55rem;
    }
}

/* BUILD29 FIX29.25 — balanced homepage orbit + recent LCD presentations */

.hero-orbit-v2 {
    min-height:460px;
}

.hero-orbit-v2 .orbit-core-v2 {
    width:168px;
    height:168px;
}

.hero-orbit-v2 .orbit-core-v2 .sigma {
    font-size:4.9rem;
}

.hero-orbit-v2 .orbit-core-v2 small {
    margin-top:108px;
}

.hero-orbit-v2 .halo-1 {
    width:285px;
    height:285px;
}

.hero-orbit-v2 .halo-2 {
    width:405px;
    height:405px;
}

.hero-orbit-v2 .orbit-chip {
    z-index:5;
    min-width:168px;
    text-align:center;
    padding:.72rem 1.05rem;
}

.hero-orbit-v2 .chip-a {
    top:28px;
    left:50%;
    right:auto;
    bottom:auto;
    transform:translateX(-50%);
}

.hero-orbit-v2 .chip-b {
    top:50%;
    right:-18px;
    left:auto;
    bottom:auto;
    transform:translateY(-50%);
}

.hero-orbit-v2 .chip-c {
    top:50%;
    left:-18px;
    right:auto;
    bottom:auto;
    transform:translateY(-50%);
}

.hero-orbit-v2 .chip-d {
    bottom:24px;
    left:50%;
    right:auto;
    top:auto;
    transform:translateX(-50%);
}

.hero-orbit-v2 .chip-a:hover,.hero-orbit-v2 .chip-d:hover {
    transform:translateX(-50%) translateY(-3px);
}

.hero-orbit-v2 .chip-b:hover,.hero-orbit-v2 .chip-c:hover {
    transform:translateY(calc(-50% - 3px));
}

.lcd-recent-wrap {
    margin-top:2.25rem;
}

.lcd-recent-card {
    border:1px solid #e2e8f0;
    border-radius:24px;
    background:#fff;
    box-shadow:0 18px 45px rgba(15,23,42,.06);
    overflow:hidden;
}

.lcd-recent-head {
    padding:1.4rem 1.5rem;
    border-bottom:1px solid #e2e8f0;
}

.lcd-recent-head h2 {
    font-weight:820;
    letter-spacing:-.025em;
    margin:0;
}

.lcd-recent-head p {
    color:#64748b;
    margin:.35rem 0 0;
}

.lcd-recent-card table {
    margin:0;
}

.lcd-recent-card th {
    background:#f8fafc;
    color:#475569;
    font-size:.82rem;
    text-transform:uppercase;
    letter-spacing:.04em;
    white-space:nowrap;
}

.lcd-recent-card td,.lcd-recent-card th {
    padding:1rem 1.15rem;
    vertical-align:middle;
}

.lcd-title {
    font-weight:750;
    color:#172033;
}

.lcd-subject-pill {
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    padding:.35rem .7rem;
    background:#eef2ff;
    color:#4338ca;
    font-weight:750;
}

.lcd-all {
    text-align:center;
    padding:1.25rem;
    border-top:1px solid #e2e8f0;
}

@media(max-width:991.98px) {
    .hero-orbit-v2 {
        min-height:390px;
    }
    .hero-orbit-v2 .chip-b {
        right:0;
    }
    .hero-orbit-v2 .chip-c {
        left:0;
    }
    .hero-orbit-v2 .chip-a {
        top:8px;
    }
    .hero-orbit-v2 .chip-d {
        bottom:8px;
    }
}

@media(max-width:575.98px) {
    .hero-orbit-v2 {
        min-height:330px;
    }
    .hero-orbit-v2 .orbit-chip {
        min-width:132px;
        font-size:.67rem;
        padding:.58rem .7rem;
    }
    .hero-orbit-v2 .orbit-core-v2 {
        width:130px;
        height:130px;
    }
    .hero-orbit-v2 .orbit-core-v2 .sigma {
        font-size:3.5rem;
    }
    .hero-orbit-v2 .orbit-core-v2 small {
        margin-top:76px;
    }
    .hero-orbit-v2 .halo-1 {
        width:210px;
        height:210px;
    }
    .hero-orbit-v2 .halo-2 {
        width:285px;
        height:285px;
    }
    .hero-orbit-v2 .chip-b {
        right:-5px;
    }
    .hero-orbit-v2 .chip-c {
        left:-5px;
    }
    .lcd-recent-card td,.lcd-recent-card th {
        padding:.8rem;
    }
    .lcd-recent-head {
        padding:1.1rem;
    }
}

/* UIH-HOME-1 — homepage aggregate presence strip, rendered only on homepage immediately before the shared footer. */
.public-presence-strip {
    background:#0b1220;
    color:#e2e8f0;
    border-top:1px solid rgba(148,163,184,.16);
}

.presence-stat-grid {
    display:grid;
    grid-template-columns:minmax(170px,1.35fr) minmax(170px,1.35fr) repeat(5,minmax(100px,.75fr));
    gap:.65rem;
    align-items:stretch;
}

.presence-stat-card {
    min-width:0;
    display:flex;
    align-items:center;
    gap:.6rem;
    padding:.72rem .8rem;
    border:1px solid rgba(148,163,184,.16);
    border-radius:14px;
    background:rgba(255,255,255,.045);
}

.presence-stat-card > span:last-child { min-width:0; }
.presence-stat-card small {
    display:block;
    color:#94a3b8;
    font-size:.72rem;
    font-weight:700;
    line-height:1.2;
    white-space:nowrap;
}
.presence-stat-card b {
    display:block;
    margin-top:.2rem;
    color:#f8fafc;
    font-size:1.05rem;
    line-height:1.1;
    font-variant-numeric:tabular-nums;
}
.presence-stat-primary {
    background:rgba(79,70,229,.12);
    border-color:rgba(129,140,248,.22);
}
.presence-online-total {
    background:rgba(16,185,129,.09);
    border-color:rgba(52,211,153,.20);
}
.presence-stat-icon {
    flex:0 0 30px;
    width:30px;
    height:30px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:rgba(255,255,255,.08);
    color:#c7d2fe;
}
.presence-dot {
    flex:0 0 8px;
    width:8px;
    height:8px;
    border-radius:50%;
    background:#94a3b8;
    box-shadow:0 0 0 4px rgba(148,163,184,.08);
}
.presence-dot-sup{background:#f87171}.presence-dot-teacher{background:#60a5fa}.presence-dot-student{background:#34d399}.presence-dot-member{background:#c084fc}.presence-dot-guest{background:#fbbf24}
.presence-stat-note {
    margin-top:.6rem;
    color:#94a3b8;
    font-size:.76rem;
}

@media(max-width:1199.98px) {
    .presence-stat-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
    .presence-stat-primary { grid-column:span 2; }
}

@media(max-width:767.98px) {
    .presence-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.5rem; }
    .presence-stat-primary { grid-column:span 1; }
    .presence-stat-card { padding:.66rem .7rem; }
}

@media(max-width:419.98px) {
    .presence-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .presence-stat-card small { white-space:normal; }
    .presence-stat-card b { font-size:1rem; }
    .presence-stat-icon { flex-basis:28px; width:28px; height:28px; }
}

@media(prefers-reduced-motion:reduce) {
    .public-presence-strip * { scroll-behavior:auto!important; transition:none!important; }
}

/* BUILD 12 UI-REG-1 — canonical Public/Homepage navigation reconciliation. */
.tt-design-system-v1 .public-header {
  border-top:3px solid #1d6fe8;
  border-bottom:1px solid #e4edf8;
  background:rgba(255,255,255,.97);
  box-shadow:0 8px 28px rgba(23,63,122,.08);
  backdrop-filter:saturate(135%) blur(12px);
  -webkit-backdrop-filter:saturate(135%) blur(12px);
}
.tt-design-system-v1 .public-header .navbar { min-height:68px; padding-block:.35rem; }
.tt-design-system-v1 .public-nav-shell { width:100%; max-width:min(1560px,calc(100% - 24px)); }
.tt-design-system-v1 .public-brand { min-width:0; gap:.62rem; }
.tt-design-system-v1 .public-brand-copy { display:grid; min-width:0; line-height:1.05; }
.tt-design-system-v1 .public-brand-copy b { color:#0d3473; letter-spacing:.015em; }
.tt-design-system-v1 .public-brand-copy small { margin-top:.2rem; color:#70819a; font-size:.68rem; }
.tt-design-system-v1 .public-nav-list { gap:.15rem; min-width:0; }
.tt-design-system-v1 .public-nav-list .nav-link {
  position:relative;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.38rem;
  padding:.48rem .62rem;
  border-radius:12px;
  color:#334a6f;
  font-size:.84rem;
  font-weight:750;
  white-space:nowrap;
}
.tt-design-system-v1 .public-nav-list .nav-link>i { color:#6a7f9e; font-size:.95rem; }
.tt-design-system-v1 .public-nav-list .nav-link:hover,
.tt-design-system-v1 .public-nav-list .nav-link:focus-visible,
.tt-design-system-v1 .public-nav-list .nav-link.is-active,
.tt-design-system-v1 .public-nav-list .tool-nav-split.is-active>.nav-link {
  color:#155fcf;
  background:#eef6ff;
}
.tt-design-system-v1 .public-nav-list .nav-link.is-active::after,
.tt-design-system-v1 .public-nav-list .tool-nav-split.is-active>.nav-link:first-child::after {
  content:"";
  position:absolute;
  inset:auto 20% -7px;
  height:3px;
  border-radius:999px;
  background:#2875e3;
}
.tt-design-system-v1 .public-nav-list .nav-link:focus-visible,
.tt-design-system-v1 .public-account-link:focus-visible,
.tt-design-system-v1 .public-nav-menu-button:focus-visible,
.tt-design-system-v1 .public-mobile-nav a:focus-visible,
.tt-design-system-v1 .public-mobile-tools-direct:focus-visible {
  outline:3px solid rgba(37,99,235,.35);
  outline-offset:2px;
}
.tt-design-system-v1 .tool-nav-split { border-radius:12px; }
.tt-design-system-v1 .tool-nav-toggle { min-width:32px; }
.tt-design-system-v1 .tool-nav-dropdown { max-height:min(66vh,520px); overflow:auto; border:1px solid #dfe8f4; border-radius:14px; }
.tt-design-system-v1 .public-nav-account { min-width:0; }
.tt-design-system-v1 .public-account-link {
  min-height:44px;
  max-width:190px;
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  color:#596b85;
  text-decoration:none;
  font-size:.78rem;
  font-weight:700;
  white-space:nowrap;
}
.tt-design-system-v1 .public-account-link span { overflow:hidden; text-overflow:ellipsis; }
.tt-design-system-v1 .public-admin-cta,
.tt-design-system-v1 .public-role-cta,
.tt-design-system-v1 .public-login-cta,
.tt-design-system-v1 .public-register-cta {
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.38rem;
  border-radius:12px;
  padding:.5rem .72rem;
  font-size:.78rem;
  font-weight:800;
  white-space:nowrap;
}
.tt-design-system-v1 .public-admin-cta { color:#a91f35; border:1px solid #f2ccd4; background:#fff2f4; }
.tt-design-system-v1 .public-admin-cta:hover { color:#8f172a; background:#ffe8ed; }
.tt-design-system-v1 .public-role-cta { color:#17345f; border:1px solid #dce5f0; background:#f8fbff; }
.tt-design-system-v1 .public-login-cta { color:#155fcf; border:1px solid #bdd3f4; background:#fff; }
.tt-design-system-v1 .public-register-cta { color:#fff; border:1px solid #1764d6; background:#1764d6; }
.tt-design-system-v1 .public-nav-menu-button { width:44px; height:44px; padding:.5rem; border:0; border-radius:12px; }

.tt-design-system-v1 .public-nav-drawer { width:min(88vw,380px); border-left:1px solid #dfe8f4; }
.tt-design-system-v1 .public-nav-drawer__head { min-height:70px; border-bottom:1px solid #e4edf8; }
.tt-design-system-v1 .public-brand--drawer { text-decoration:none; }
.tt-design-system-v1 .public-brand--drawer>span:last-child { display:grid; line-height:1.08; }
.tt-design-system-v1 .public-brand--drawer small { margin-top:.2rem; color:#74839a; font-size:.7rem; }
.tt-design-system-v1 .public-mobile-nav { display:grid; gap:.35rem; min-width:0; }
.tt-design-system-v1 .public-mobile-nav>a,
.tt-design-system-v1 .public-mobile-nav__account>a {
  min-height:46px;
  display:flex;
  align-items:center;
  gap:.7rem;
  padding:.68rem .78rem;
  border-radius:12px;
  color:#263d62;
  text-decoration:none;
  font-weight:750;
  overflow-wrap:anywhere;
}
.tt-design-system-v1 .public-mobile-nav>a:hover,
.tt-design-system-v1 .public-mobile-nav>a:focus-visible,
.tt-design-system-v1 .public-mobile-nav>a.is-active,
.tt-design-system-v1 .public-mobile-nav__account>a:hover { background:#eef6ff; color:#155fcf; }
.tt-design-system-v1 .public-mobile-nav i { width:22px; text-align:center; color:#557397; }
.tt-design-system-v1 .public-mobile-tools-direct {
  min-height:48px;
  display:grid!important;
  grid-template-columns:22px minmax(0,auto) minmax(0,1fr) 18px;
  align-items:center;
  gap:.7rem;
  border:1px solid #e3ebf6;
  background:#fbfdff;
}
.tt-design-system-v1 .public-mobile-tools-direct small {
  justify-self:end;
  color:#6f819b;
  font-size:.72rem;
  font-weight:700;
  text-align:right;
}
.tt-design-system-v1 .public-mobile-tools-direct__arrow { width:18px!important; color:#7a8ca5!important; }
.tt-design-system-v1 .public-mobile-tools-direct:hover,
.tt-design-system-v1 .public-mobile-tools-direct:focus-visible,
.tt-design-system-v1 .public-mobile-tools-direct.is-active { background:#eef6ff; color:#155fcf; }
.tt-design-system-v1 .public-mobile-tools-direct:hover small,
.tt-design-system-v1 .public-mobile-tools-direct:focus-visible small,
.tt-design-system-v1 .public-mobile-tools-direct.is-active small { color:#155fcf; }
.tt-design-system-v1 .public-mobile-nav__account { display:grid; gap:.25rem; margin-top:.55rem; padding-top:.55rem; border-top:1px solid #e3ebf6; }

@media (max-width:1399.98px) {
  .tt-design-system-v1 .public-nav-list .nav-link { padding-inline:.52rem; font-size:.84rem; }
  .tt-design-system-v1 .public-account-link { max-width:135px; }
}
@media (max-width:1199.98px) {
  /* BUILD 15: collapse to the offcanvas before desktop labels need to become tiny. */
  .tt-design-system-v1 .public-header .navbar { min-height:64px; }
  .tt-design-system-v1 .public-nav-shell { max-width:calc(100% - 18px); }
}


/* BUILD 21B Phase A — Presence Stats lives only in the bottom utility strip. */
.public-footer__presence-slot .public-footer-presence {
    width:auto;
    max-width:100%;
    margin:0;
    justify-content:center;
}

.public-footer__presence-slot .public-footer-presence__pill {
    min-width:116px;
    flex:0 1 auto;
    display:flex;
    align-items:center;
    gap:.36rem;
    padding:.34rem .43rem;
    border:1px solid rgba(109,218,255,.24);
    border-radius:10px;
    color:#fff;
    background:linear-gradient(135deg,rgba(10,55,116,.76),rgba(5,34,83,.68));
    box-shadow:0 5px 13px rgba(0,17,54,.12),inset 0 1px 0 rgba(255,255,255,.06),0 0 12px rgba(50,190,255,.04);
}

.public-footer__presence-slot .public-footer-presence__icon {
    width:24px;
    height:24px;
    flex:0 0 24px;
    display:grid;
    place-items:center;
    border:1px solid rgba(129,229,255,.28);
    border-radius:7px;
    color:#8be8ff;
    background:rgba(30,130,210,.14);
    font-size:.75rem;
}
.public-footer__presence-slot .public-footer-presence__copy { min-width:0; }
.public-footer__presence-slot .public-footer-presence__copy small {
    display:block; color:#c6def6; font-size:.59rem; font-weight:700; line-height:1.05; white-space:nowrap;
}
.public-footer__presence-slot .public-footer-presence__copy b {
    display:block; margin-top:.08rem; color:#fff; font-size:.84rem; font-weight:800; line-height:1; font-variant-numeric:tabular-nums;
}
@media(max-width:419.98px) {
    .public-footer__presence-slot .public-footer-presence { width:100%; }
    .public-footer__presence-slot .public-footer-presence__pill { min-width:0; flex:1 1 132px; }
}
@media(max-width:319.98px) {
    .public-footer__presence-slot .public-footer-presence__pill { flex-basis:100%; }
}

/* BUILD11 AUX01 — shared footer support chooser controls */
.public-footer__support-link{appearance:none;border:0;background:transparent;color:inherit;padding:0;text-align:left;text-decoration:none;font:inherit}
.public-footer__support-link:hover,.public-footer__support-link:focus-visible{text-decoration:underline}
.public-footer__actions button{appearance:none;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:.45rem;padding:.55rem .78rem;border:1px solid rgba(129,190,255,.30);border-radius:999px;background:transparent;color:#dbeeff;font:750 .76rem/1 inherit}
.public-footer__actions button:hover{color:#fff;border-color:rgba(112,217,255,.72);background:rgba(31,142,255,.12)}
.public-footer button:focus-visible{outline:3px solid rgba(103,232,249,.88);outline-offset:3px}
@media(max-width:767.98px){.public-footer__actions button{flex:1 1 0}}
