#marketing .tm-tabs{display:flex;gap:6px;border-bottom:1px solid var(--line,#35465e);margin:8px 0 24px;padding:0 0 10px}
#marketing .tm-tabs button{background:transparent;color:var(--muted,#a8bdd8);border:1px solid transparent;border-radius:10px;padding:14px 26px;font-size:16px;font-weight:700;cursor:pointer}
#marketing .tm-tabs button[aria-selected=true]{background:#91d4ed;color:#091521;border-color:#b3e9fc;box-shadow:0 3px 16px #4dc4ec20}
#marketing .tm-subnav{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}
#marketing .tm-subnav button{padding:10px 16px;background:transparent;color:var(--muted,#a8bdd8);border:1px solid #3a4e67;border-radius:8px;cursor:pointer;font-weight:600}
#marketing .tm-subnav button[aria-selected=true]{background:#203a52;color:#c5f1ff;border-color:#64b7d4}
#marketing .tm-tabs button:focus-visible,#marketing .tm-subnav button:focus-visible{outline:3px solid #ffb562;outline-offset:3px}
#marketing .tm-marketing-intro h3{font-size:23px;margin:6px 0}#marketing .tm-marketing-intro p{color:var(--muted,#a8bdd8);margin:8px 0}
#marketing .tm-controls{margin-top:24px}#marketing .tm-controls .section-head{margin:0 0 20px}#marketing .tm-controls .section-head p:last-child{font-weight:400;max-width:700px}
#marketing .tm-control-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:24px}#marketing #tmControlForm>label{max-width:440px}#marketing .tm-controls fieldset{margin:0}#marketing #tmLeagues{display:flex;flex-wrap:wrap;gap:12px}
#marketing #tmControlNotice{align-self:center;font-size:13px}#marketing #tm-media .mk-assets{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));margin-top:24px}#marketing #tm-media .mk-upload-guide{max-width:680px}
#marketing #tm-takeovers>h3,#marketing #tm-cards>h3{font-size:22px}#marketing #mkForm{max-width:1040px}#marketing #mkPreview+button{margin:14px 0 22px}#marketing #pcPreview{border-radius:9px}#marketing #pcForm textarea{min-height:80px}
#marketing #tm-cards .mk-grid{grid-template-columns:minmax(320px,1fr) minmax(280px,1fr);gap:40px}#marketing #pcList .mk-campaign{flex-direction:column}#marketing #pcList .mk-actions{justify-content:flex-start}
body.light-mode #marketing .tm-subnav button[aria-selected=true]{background:#d8edf8;color:#16354b}
@media(max-width:850px){#marketing .tm-control-grid,#marketing #tm-cards .mk-grid{grid-template-columns:1fr}#marketing .tm-tabs button{flex:1;padding:14px 12px}#marketing .tm-subnav{display:grid;grid-template-columns:1fr 1fr}#marketing .tm-subnav button{padding:12px 8px}#marketing .tm-controls .section-head{display:block}}

/* Shared heading and live preview, visible on both primary tabs. */
#marketing .tm-hero{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(0,1.8fr);gap:28px;align-items:center;padding:12px 0 20px}
#marketing .tm-hero>div{min-width:0}
#marketing .tm-hero>.mk-live{min-width:0;width:100%;box-sizing:border-box;margin:0;padding:16px}
#marketing .tm-hero .mk-live .section-head{margin:0 0 8px;gap:12px}
#marketing .tm-hero .mk-live h3{margin:2px 0;font-size:16px}
#marketing .tm-hero .mk-live .eyebrow{margin:0;font-size:10px}
#marketing .tm-hero .mk-live>label{margin:0 0 10px;max-width:340px;gap:4px}
#marketing .tm-hero .mk-live select{padding:8px}
#marketing .tm-hero .mk-live .mk-caption{margin:8px 0 0;font-size:11px}
#marketing .tm-hero .mk-live .secondary{padding:8px 12px;font-size:12px}
@media(max-width:900px){#marketing .tm-hero{grid-template-columns:minmax(0,1fr);gap:16px}}

#marketing .tm-hero .tm-preview-head{display:grid;grid-template-columns:auto minmax(180px,340px) auto;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}
#marketing .tm-hero .tm-preview-head>label{min-width:0;margin:0;gap:3px}
#marketing .tm-hero .tm-preview-head>button{justify-self:end}
@media(max-width:1100px) and (min-width:901px), (max-width:600px){#marketing .tm-hero .tm-preview-head{grid-template-columns:auto minmax(0,1fr);gap:10px}#marketing .tm-hero .tm-preview-head>button{grid-column:1 / -1}}

/* Keep the shared preview and section tabs available while editing content. */
body.tm-page-active main>.tabs,body.tm-page-active main>.demo-nav{position:sticky;top:calc(var(--tm-brand-height,76px) + 8px);z-index:9;background:#101b29}
#marketing>.tm-pinned-header{position:sticky;top:var(--tm-header-top,160px);z-index:8;background:#0d1723;border-bottom:1px solid var(--line);box-shadow:0 14px 20px #0003;max-height:calc(100dvh - var(--tm-header-top,160px) - 140px);overflow:auto;scrollbar-width:thin}
#marketing>.tm-pinned-header>.tm-tabs{margin-bottom:0}
body.light-mode #marketing>.tm-pinned-header,body.light-mode.tm-page-active main>.tabs{background:#f3f7fc}
#marketing :is(input,select,textarea,button,form,fieldset){scroll-margin-top:var(--tm-scroll-offset,480px)}

#marketing .tm-hero h2{font-size:clamp(25px,2.4vw,36px);letter-spacing:-.035em;margin:6px 0 10px}
#marketing .tm-hero>div>p:last-child{color:var(--muted);font-size:14px;line-height:1.6}
