/* TURBOGEN: approved corporate visual identity applied to the EXISTING Motofit views.
   No storefront/payment/account behavior is overridden. Settings remain native. */
:root{--tg-navy:#071f4e;--tg-blue:#17458d;--tg-red:#e21f2f;--tg-bg:#f5f7fa;--tg-muted:#687386;--tg-line:#e7ebf1}
.tg-inner-layout,.tg-auth-page{color:#111827;background:var(--tg-bg);min-height:100vh;line-height:1.9}
.tg-inner-layout a,.tg-auth-page a{transition:color .2s ease,background .2s ease,box-shadow .2s ease}
.tg-inner-container{width:min(1240px,calc(100% - 48px));margin-inline:auto}
/* Internal header retains its distinct position but copies typography and color from home. */
.tg-inner-header{position:relative;z-index:50;background:var(--tg-navy);color:#fff;border-bottom:1px solid #ffffff26;box-shadow:0 9px 25px #071f4e1c}
.tg-inner-header-row{display:flex;align-items:center;gap:20px;min-height:94px;justify-content:space-between}
.tg-inner-brand{display:flex;align-items:center;gap:15px;min-width:155px;text-decoration:none;color:#fff;font-size:12px;font-weight:750;white-space:nowrap}
.tg-inner-brand img{max-width:170px;max-height:58px;width:auto;object-fit:contain}
.tg-inner-nav{flex:1;min-width:0;display:flex;align-items:center;justify-content:center}
.tg-site-menu{display:flex;gap:13px;align-items:center;margin:0;padding:0;list-style:none}
.tg-site-menu .tg-nav-item{position:relative;list-style:none}
.tg-site-menu .tg-nav-row{display:flex;align-items:center;min-width:0}
.tg-site-menu .tg-nav-row>a{display:inline-flex;align-items:center;gap:5px;padding:10px 7px;color:#ffffffd9;font-size:12px;font-weight:650;white-space:nowrap;line-height:1.7;text-decoration:none}
.tg-site-menu .tg-nav-row>a:hover,.tg-site-menu .tg-has-children:focus-within>.tg-nav-row>a{color:#fff}
.tg-site-menu .tg-nav-row>a small{background:var(--tg-red);padding:2px 6px;color:white;border-radius:6px;font-size:9px}
.tg-site-menu .tg-submenu-toggle{min-width:25px;min-height:32px;padding:2px;border:0;background:transparent;color:#ffffffab;font-size:18px;cursor:pointer}
.tg-site-menu .tg-submenu{position:absolute;display:none;right:0;top:100%;min-width:220px;width:max-content;max-width:min(335px,90vw);padding:9px;z-index:100;border:1px solid var(--tg-line);border-radius:14px;box-shadow:0 16px 45px #06173522;background:#fff;list-style:none}
.tg-site-menu .tg-submenu .tg-nav-row>a{flex:1;white-space:normal;padding:11px 12px;border-radius:9px;color:var(--tg-navy);line-height:1.8;font-size:12px}
.tg-site-menu .tg-submenu .tg-nav-row>a:hover{background:#f5f7fa;color:var(--tg-red)}
.tg-site-menu .tg-submenu .tg-submenu{right:calc(100% - 3px);top:0}
.tg-site-menu .tg-submenu .tg-submenu-toggle{color:var(--tg-navy)}
.tg-inner-actions{display:flex;align-items:center;gap:10px}
.tg-inner-cta,.tg-inner-mobile-cta{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:0 16px;border-radius:11px;background:var(--tg-red);color:#fff!important;text-decoration:none;font-size:11px;font-weight:750;white-space:nowrap}
.tg-inner-cta:hover,.tg-inner-mobile-cta:hover{background:color-mix(in srgb,var(--tg-red) 80%,black)}
.tg-account-shortcut{border:1px solid #ffffff40;border-radius:11px;display:grid;place-items:center;color:#fff;font-size:23px;width:43px;height:43px}
.tg-inner-toggle{display:none;color:#fff;border:1px solid #ffffff60;border-radius:11px;background:#ffffff16;width:43px;height:43px;font-size:22px;cursor:pointer}
.tg-inner-mobile-cta{display:none}
@media(min-width:1101px){.tg-site-menu .tg-has-children:hover>.tg-submenu,.tg-site-menu .tg-has-children:focus-within>.tg-submenu,.tg-site-menu .tg-has-children.tg-expanded>.tg-submenu{display:block}}
/* Internal pages begin directly beneath the header; titles live inside page content. */
/* Use the existing cards and Laravel/Livewire components; unify their visual geometry. */
.tg-inner-layout main{min-height:150px}
.tg-inner-layout .text-brand-500,.tg-inner-layout .text-brand-600{color:var(--tg-navy)}
.tg-inner-layout .bg-brand-500{background-color:var(--tg-navy)}
.tg-inner-layout .hover\:bg-brand-600:hover{background:var(--tg-blue)}
.tg-inner-layout :is(input:not([type=checkbox]):not([type=radio]),textarea,select){accent-color:var(--tg-navy)}
.tg-inner-layout :is(input,textarea,select):focus-visible,.tg-auth-page :is(input,textarea,select):focus-visible{outline-color:var(--tg-blue)}
.tg-inner-layout :is(article,.post-detail-page article){overflow-wrap:anywhere}
.tg-inner-layout :is(.rounded-2xl,.rounded-3xl){box-shadow:0 10px 26px #071f4e07}
.tg-inner-layout a:focus-visible,.tg-inner-layout button:focus-visible,.tg-auth-page a:focus-visible,.tg-auth-page button:focus-visible{outline:2px solid var(--tg-red);outline-offset:3px}
.tg-account-page{padding-top:38px;padding-bottom:65px}
.tg-inner-layout .post-detail-page{background:var(--tg-bg)}
.tg-inner-layout .post-detail-page article{border-radius:17px!important}
.tg-inner-layout :is(.prose,.editor-content){line-height:2.15}
.tg-inner-layout :is(.prose,.editor-content) h2{color:var(--tg-navy);border-right:3px solid var(--tg-red);padding-right:12px}
.tg-content-page{padding-top:38px;padding-bottom:58px}
/* Commerce and profile retain their own responsive grids and native actions. */
.tg-inner-layout .tg-account-page nav a[aria-current=page]{background:var(--tg-navy);color:#fff}
/* Footer: exactly the native FooterSettings columns, styled like the approved home. */
.tg-inner-footer{background:#061735;color:#fff;margin-top:70px;padding:72px 0 0}
.tg-footer-layout{display:grid;grid-template-columns:1.3fr .65fr .65fr 1fr;gap:52px}
.tg-footer-layout>div{display:flex;align-items:flex-start;flex-direction:column;gap:11px;min-width:0}
.tg-footer-layout p{font-size:11px;color:#ffffff85;line-height:2.15;margin-top:9px}
.tg-footer-layout strong{font-size:12px;margin:0 0 13px;color:#fff}
.tg-footer-layout a{font-size:11px;line-height:1.8;color:#ffffffa6;text-decoration:none;overflow-wrap:anywhere}
.tg-footer-layout a:hover{color:#fff}
.tg-inner-foot-logo{max-width:200px;max-height:65px;width:auto;object-fit:contain}
.tg-inner-foot-bottom{display:flex;justify-content:space-between;gap:12px;margin-top:54px;border-top:1px solid #ffffff22;padding:21px 0;font-size:10px;color:#ffffff72}
/* Login/registration remains original Livewire AuthFlow and uses original auth settings. */
.tg-auth-page{background:#f5f7fa}
.tg-auth-page .tg-auth-shell>section{background:var(--tg-navy)}
.tg-auth-page .tg-auth-shell>aside{background:#f5f7fa}
.tg-auth-page .tg-auth-shell>aside>div>div{border-radius:21px;box-shadow:0 30px 65px #071f4e18;border-color:var(--tg-line)}
.tg-auth-heading{padding-bottom:21px;margin-bottom:22px;border-bottom:1px solid var(--tg-line)}
.tg-auth-heading span{font-size:10px;color:var(--tg-red);font-weight:800;letter-spacing:.02em}
.tg-auth-heading strong{display:block;color:var(--tg-navy);font-size:24px;line-height:1.6;font-weight:850}
.tg-auth-heading p{color:var(--tg-muted);font-size:11px;margin-top:4px}
.tg-auth-back{display:inline-flex;color:var(--tg-muted);font-size:11px;margin-bottom:23px}
.tg-auth-back:hover{color:var(--tg-red)}
.tg-auth-page .bg-brand-500{background:var(--tg-navy)}
@media(max-width:1110px){.tg-site-menu{gap:4px}.tg-site-menu .tg-nav-row>a{font-size:11px}.tg-footer-layout{gap:30px}}
@media(max-width:1100px){
 .tg-inner-container{width:calc(100% - 34px)}
 .tg-inner-header-row{min-height:72px}
 .tg-inner-brand img{max-width:152px;max-height:48px}
 .tg-inner-brand span{display:none}
 .tg-inner-cta{display:none}.tg-inner-toggle{display:grid;place-items:center}
 .tg-inner-nav{display:none;position:absolute;right:0;left:0;top:100%;background:#061735;padding:18px 20px 25px;max-height:calc(100dvh - 72px);overflow-y:auto;box-shadow:0 20px 30px #06173533}
 .tg-inner-nav.is-open{display:block}
 .tg-inner-menu{display:flex;flex-direction:column;align-items:stretch;gap:1px}
 .tg-inner-menu>.tg-nav-item{border-bottom:1px solid #ffffff17}
 .tg-inner-menu .tg-nav-row>a{padding:14px 6px;flex:1;font-size:13px}
 .tg-inner-menu .tg-submenu-toggle{color:#fff;min-width:42px;min-height:42px}
 .tg-inner-menu .tg-submenu{position:static;display:none;max-width:none;width:auto;margin:0 12px 8px 0;background:#ffffff10;border-color:#ffffff16;box-shadow:none}
 .tg-inner-menu .tg-has-children.tg-expanded>.tg-submenu{display:block}
 .tg-inner-menu .tg-submenu .tg-nav-row>a{color:#fff;font-size:12px}
 .tg-inner-menu .tg-submenu .tg-submenu{margin-right:8px}
 .tg-inner-menu .tg-submenu .tg-nav-row>a:hover{background:#ffffff12;color:#fff}
 .tg-inner-menu .tg-submenu .tg-submenu-toggle{color:#fff}
 .tg-inner-mobile-cta{display:flex;margin-top:15px}
 .tg-footer-layout{grid-template-columns:1fr 1fr;gap:35px}
}
@media(max-width:640px){
 .tg-inner-container{width:calc(100% - 28px)}

 .tg-footer-layout{grid-template-columns:1fr;gap:30px}
 .tg-inner-footer{margin-top:40px;padding-top:48px}
 .tg-inner-foot-bottom{flex-direction:column;gap:5px;margin-top:32px}
 .tg-auth-page .tg-auth-shell>aside>div>div{padding:25px}
}
@media(prefers-reduced-motion:reduce){.tg-inner-layout *,.tg-auth-page *{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

.tg-inner-actions .tg-utility-link{width:43px;height:43px;border:1px solid #ffffff58;border-radius:11px;display:grid;place-items:center;color:#fff;background:#ffffff08;flex-shrink:0}
.tg-inner-actions .tg-utility-link:hover{background:#ffffff26}

/* V5: compact, responsive footer; all existing Motofit FooterSettings keys remain untouched */
.tg-inner-footer{margin-top:38px;padding:38px 0 0}
.tg-footer-layout{gap:27px;grid-template-columns:1.3fr .65fr .65fr 1fr}
.tg-footer-layout>div{gap:6px}
.tg-footer-layout strong{margin:0 0 5px}
.tg-footer-layout p{margin-top:4px;line-height:1.8}
.tg-inner-foot-logo{max-width:170px;max-height:48px}
.tg-inner-foot-bottom{margin-top:25px;padding:13px 0}
@media(max-width:920px){.tg-footer-layout{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}}
@media(max-width:640px){.tg-inner-footer{margin-top:25px;padding-top:29px}.tg-footer-layout{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 15px}.tg-footer-about{grid-column:1/-1}.tg-inner-foot-bottom{margin-top:20px}}

/* V7: homepage's white canvas and a compact, uniform site header. */
:root{--tg-site-bg:#ffffff;--tg-site-soft:#f5f7fa}
body.tg-inner-layout,body.tg-auth-page{background:var(--tg-site-bg)!important}
.tg-inner-header-row{min-height:66px;gap:13px}
.tg-inner-brand img{max-height:43px;max-width:156px}
.tg-inner-actions .tg-utility-link{height:37px;width:37px}
.tg-inner-cta,.tg-inner-mobile-cta{min-height:38px;padding-inline:14px}
.tg-inner-menu .tg-nav-row>a{padding-block:7px}
@media(max-width:1100px){.tg-inner-header-row{min-height:64px}.tg-inner-brand img{max-height:41px;max-width:145px}}
/* Keep menu below actual header when compacted. */
@media(max-width:1100px){.tg-inner-nav{max-height:calc(100dvh - 64px)}}

/* Full-page content surfaces inherit homepage white, not the old storefront gray. */
.tg-inner-layout :is(.min-h-screen.bg-slate-50,.post-detail-page,.tg-projects-page),
.tg-inner-layout main.tg-content-page{background:var(--tg-site-bg,#fff)!important}
