/* Together public site shell, separate from the member workspace */
body.tg-marketing{background:#fff;color:#192b41}
body.tg-marketing .tg-app{display:block!important;min-height:100vh}
body.tg-marketing .tg-workspace{
    margin:0!important;margin-inline:0!important;padding:0!important;
    width:100%!important;max-width:none!important;min-width:0
}
body.tg-marketing .tg-main{
    width:100%!important;max-width:none!important;min-width:0;
    margin:0!important;padding:0!important;overflow:visible!important
}
body.tg-marketing .tg-content{min-width:0;width:100%;padding:0!important}
.tm-header{
    position:sticky;top:0;z-index:100;
    border-bottom:1px solid #e5ebf2;background:rgba(255,255,255,.97)
}
.tm-header-inner{
    max-width:1280px;margin:auto;min-height:94px;padding:18px 28px;
    display:flex;align-items:center;justify-content:space-between;gap:24px
}
.tm-brand{display:block;flex:0 0 auto}
.tm-brand img{display:block;width:184px;max-width:100%;height:auto}
.tm-main-nav,.tm-header-actions,.tm-language{
    display:flex;align-items:center;gap:22px
}
.tm-main-nav a,.tm-services summary,.tm-header-actions a{
    color:#192b41;text-decoration:none;font-size:14px;line-height:1.7
}
.tm-services{position:relative}
.tm-services summary{cursor:pointer;list-style:none;min-height:42px;display:flex;align-items:center;gap:10px}
.tm-services summary::-webkit-details-marker{display:none}
.tm-services-menu{
    position:absolute;inset-inline-start:0;top:100%;width:280px;max-width:85vw;
    padding:10px;border:1px solid #e0e7ef;border-radius:12px;
    background:#fff;box-shadow:0 15px 35px rgba(25,43,65,.12)
}
.tm-services-menu a{display:block;padding:12px;border-radius:7px}
.tm-services-menu a:hover{background:#fff8db}
.tm-header-actions a.tm-button{
    display:inline-flex;align-items:center;justify-content:center;
    min-height:45px;padding:10px 20px;border-radius:9px;
    background:#ffcc06;color:#192b41;font-weight:700
}
.tm-language{gap:10px}
.tm-language a{color:#60748c;font-size:13px}
.tm-page-title{max-width:1100px;margin:0 auto;padding:40px 28px 10px}
.tm-page-title h1{font-size:29px;line-height:1.6;color:#192b41}
body.tg-marketing .tg-content:has(.tg-access-page),
body.tg-marketing .tg-content:has(.mb-account),
body.tg-marketing .tg-content:has(.sr-card),
body.tg-marketing .tg-content:has(.sg-wrap),
body.tg-marketing .tg-content:has(.tg-change-email),
body.tg-marketing .tg-content:has(.tg-billing),
body.tg-marketing .tg-content:has(.tg-message-pages){
    max-width:1100px!important;margin:auto;padding:20px 28px 60px!important
}
.tm-header a:focus-visible,.tm-header summary:focus-visible{
    outline:3px solid #c49b00;outline-offset:4px
}
/* Shared dark footer; existing attribution and portal links retained */
body.tg-portal .tg-footer{
    background:#142338!important;color:#dbe4ef!important;
    border-top:0!important
}
body.tg-portal .tg-footer .tg-footer-brandbar{
    color:#fff;border-bottom-color:#354559
}
body.tg-portal .tg-footer .tg-footer-brandname{color:#fff}
body.tg-portal .tg-footer .tg-footer-tagline,
body.tg-portal .tg-footer .copy_right{color:#b5c4d6}
body.tg-portal .tg-footer a{color:#dbe4ef}
body.tg-portal .tg-footer .tg-footer-support a[href^="tel:"]{
    background:#ffcc06;color:#192b41;border-color:#ffcc06
}
body.tg-portal .tg-footer .tg-footer-links{color:#dbe4ef}
body.tg-portal .tg-footer .tg-footer-links h3,
body.tg-portal .tg-footer .tg-footer-links h4,
body.tg-portal .tg-footer .tg-footer-links strong{color:#fff}
body.tg-marketing .tg-footer{margin:0!important;padding:35px max(24px,calc((100% - 1224px)/2))!important}
.tm-footer-public-links{display:grid;grid-template-columns:1fr 1fr;gap:35px;padding-bottom:25px}
.tm-footer-public-links strong{display:block;color:#fff;margin-bottom:14px}
.tm-footer-public-links a{display:block;padding:6px 0;text-decoration:none}
@media(max-width:950px){
    .tm-header-inner{flex-wrap:wrap;gap:14px;min-height:80px}
    .tm-main-nav{order:3;width:100%;justify-content:center;border-top:1px solid #edf1f6;padding-top:8px}
    .tm-header-actions{gap:13px}
}
@media(max-width:600px){
    .tm-header-inner{padding:14px 16px}
    .tm-brand img{width:145px}
    .tm-header-actions{gap:10px;flex-wrap:wrap}
    .tm-header-actions a.tm-button{padding:8px 12px;min-height:41px}
    .tm-language{gap:8px}
    .tm-signin{font-size:13px!important}
    .tm-main-nav{gap:25px}
    .tm-page-title{padding:25px 18px 0}
    body.tg-marketing .tg-content:has(.tg-access-page),
    body.tg-marketing .tg-content:has(.mb-account),
    body.tg-marketing .tg-content:has(.sr-card),
    body.tg-marketing .tg-content:has(.sg-wrap),
    body.tg-marketing .tg-content:has(.tg-change-email),
    body.tg-marketing .tg-content:has(.tg-billing),
    body.tg-marketing .tg-content:has(.tg-message-pages){padding:18px 16px 40px!important}
    .tm-footer-public-links{gap:20px}
}

/* Together marketing polish v3 */
.tm-header-inner{max-width:1400px;gap:20px}
.tm-main-nav{gap:17px}
.tm-main-nav>a{font-weight:600;white-space:nowrap}
.tm-main-nav>a:hover{color:#806000}
.tm-header-actions{gap:15px}
.tm-main-nav a,.tm-services summary{min-height:44px;align-content:center}
body.tg-marketing .tc-page{
    max-width:1236px!important;margin:0 auto!important;
    padding:25px 28px 75px!important
}
.tmh #tm-features,.tmh #tm-pricing,.tmh #tm-api,
.tmh #tm-faq,.tmh #tm-calculator,.tmh #tm-assistant{
    scroll-margin-top:150px
}
.tmh #tm-features{background:#fff}
.tmh #tm-features>.tmh-wrap>.tmh-copy{margin-bottom:32px}
.tmh .tmh-feature{
    position:relative;padding:30px;border-radius:16px;
    border:1px solid #dfe7f0;
    background:linear-gradient(145deg,#fff 60%,#f5f8fc);
    box-shadow:0 5px 18px #172b4304
}
.tmh .tmh-feature-icon{
    display:inline-flex;align-items:center;justify-content:center;
    width:58px;height:58px;margin-bottom:22px;border-radius:16px;
    background:#fff5c6;color:#6e570c;border:1px solid #f3e4a5
}
.tmh .tmh-feature-icon svg{display:block;flex:none}
.tmh .tmh-feature:nth-child(even) .tmh-feature-icon{
    background:#eaf0f7;color:#294663;border-color:#dce5ef
}
.tmh .tmh-feature h3{font-size:21px;line-height:1.65;margin-bottom:10px}
.tmh .tmh-feature p{font-size:15px;line-height:1.95;color:#526981}
.tmh #tm-assistant{
    background:linear-gradient(115deg,#eef3f8,#fff9df);
    border-block:1px solid #e4eaf0
}
.tmh .tmh-price-card{box-shadow:0 7px 22px #172b4305}
.tmh .tmh-calculator{
    border-top:4px solid #ffcc06;box-shadow:0 8px 24px #172b4306
}
.tmh .tmh-slide-controls button{
    height:28px;background:transparent!important;position:relative
}
.tmh .tmh-slide-controls button:before{
    content:"";display:block;width:100%;height:6px;
    border-radius:8px;background:#73849a
}
.tmh .tmh-slide-controls button[aria-pressed=true]:before{background:#ffcc06}
@media(max-width:1150px){
    .tm-header-inner{flex-wrap:wrap}
    .tm-main-nav{
        order:3;width:100%;justify-content:center;flex-wrap:wrap;
        gap:4px 22px;border-top:1px solid #edf1f6;padding-top:8px
    }
}
@media(max-width:650px){
    .tm-main-nav{gap:2px 17px;justify-content:flex-start}
    .tm-main-nav a,.tm-services summary{font-size:13px}
    .tm-services-menu{width:265px}
    .tmh .tmh-feature{padding:24px}
    .tmh .tmh-feature-icon{width:52px;height:52px;margin-bottom:16px}
    body.tg-marketing .tc-page{padding:20px 18px 45px!important}
    .tmh #tm-features,.tmh #tm-pricing,.tmh #tm-api,
    .tmh #tm-faq,.tmh #tm-calculator,.tmh #tm-assistant{
        scroll-margin-top:220px
    }
}
