/* Department dashboard shell; limited to /admin/ landing page. */
.cg-admin-workspace:has(.cg-team-hub){background:#f6f7f9;color:#202631}
.cg-team-hub{--hub-yellow:#f2ca19;--hub-line:#e1e4e8;--hub-muted:#667180;min-height:100vh;font:16px/1.5 var(--wp--preset--font-family--open-sans,"Open Sans",sans-serif)}
.cg-team-hub a{color:inherit;text-decoration:none}
.cg-team-hub a:focus-visible{outline:3px solid #b48c00;outline-offset:4px}
.cg-hub-sidebar{position:fixed;inset:0 auto 0 0;width:244px;padding:32px 16px 24px;background:#fff;border-right:1px solid var(--hub-line);display:flex;flex-direction:column;z-index:20}
body.admin-bar .cg-hub-sidebar{top:32px}
.cg-hub-brand{display:block;padding:0 16px 38px}.cg-hub-brand img{width:185px;height:auto;display:block}
.cg-hub-eyebrow{color:var(--hub-muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1.5px;margin:0 16px 16px}
.cg-hub-sidebar nav{display:grid;gap:9px}.cg-hub-sidebar nav a{display:flex;align-items:center;gap:16px;padding:14px 17px;border-radius:9px;font-size:16px}
.cg-hub-sidebar nav a[aria-current]{background:#fff3bc;font-weight:700}.cg-hub-sidebar nav a:hover{background:#f5f6f8}
.cg-hub-sidebar a.cg-hub-website{margin: auto 16px 0;padding-top:20px;border-top:1px solid var(--hub-line);color:var(--hub-muted);display:flex;justify-content:space-between;font-size:14px}
.cg-hub-content{margin-left:244px}.cg-hub-topbar{height:auto;min-height:76px;padding:20px 36px;border-bottom:1px solid var(--hub-line);display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;color:var(--hub-muted);font-size:14px}
.cg-hub-topbar strong{color:#202631;font-weight:600}.cg-hub-topbar>span>span{padding:0 12px}.cg-hub-user{color:#202631}
.cg-admin-workspace .cg-team-hub main#cg-hub-main{width:auto;max-width:1600px;margin:0 auto;padding:36px;min-width:0}
.cg-hub-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:36px}
.cg-team-hub h1{font-size:36px;letter-spacing:-1px;margin:0 0 10px;line-height:1.2}.cg-hub-heading p{font-size:17px;color:var(--hub-muted);margin:0}
.cg-hub-phase{white-space:nowrap;border:1px solid var(--hub-line);background:#fff;border-radius:30px;padding:7px 12px;color:var(--hub-muted);font-size:12px}
.cg-team-hub section{margin:0 0 34px}.cg-team-hub h2{font-size:21px;margin:0 0 17px;font-weight:700;line-height:1.4}
.cg-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.cg-team-hub a.cg-hub-card{border:1px solid var(--hub-line);border-radius:10px;padding:24px 20px;background:#fff;display:flex;gap:16px;align-items:flex-start;min-height:125px;transition:border-color .15s,box-shadow .15s}
.cg-team-hub a.cg-hub-card:hover{border-color:#c7ab30;box-shadow:0 3px 12px #17202b08}
.cg-hub-card-icon{flex:0 0 26px;margin-top:2px}.cg-hub-card strong{font-size:16px;display:block;line-height:1.4;margin-bottom:7px}
.cg-hub-card-description{font-size:14px;color:var(--hub-muted);display:block;line-height:1.6}.cg-hub-arrow{margin-left:auto;color:var(--hub-muted)}
.cg-team-hub .cg-hub-next{padding:24px 28px;border:1px solid var(--hub-line);border-left:4px solid var(--hub-yellow);border-radius:8px;background:#fff;margin-top:40px}.cg-hub-next h2{font-size:17px;margin-bottom:8px}.cg-hub-next p{font-size:14px;max-width:840px;margin:0;color:var(--hub-muted)}
@media(min-width:1600px){.cg-hub-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1150px){.cg-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cg-hub-sidebar{width:210px}.cg-hub-brand img{width:160px}.cg-hub-content{margin-left:210px}.cg-admin-workspace .cg-team-hub main#cg-hub-main{padding:28px}.cg-hub-topbar{padding:20px 28px}}
@media(max-width:760px){.cg-hub-sidebar,body.admin-bar .cg-hub-sidebar{position:relative;inset:auto;width:auto;padding:18px;border-right:0;border-bottom:1px solid var(--hub-line)}.cg-hub-brand{padding:0 4px 20px}.cg-hub-brand img{width:158px}.cg-hub-eyebrow,.cg-hub-sidebar a.cg-hub-website{display:none}.cg-hub-sidebar nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.cg-hub-sidebar nav a{font-size:12px;padding:10px 4px;gap:6px;flex-direction:column;text-align:center}.cg-hub-sidebar nav svg{width:20px;height:20px}.cg-hub-content{margin-left:0}.cg-hub-topbar{min-height:58px;padding:16px 20px;font-size:12px}.cg-hub-user{max-width:120px;text-align:right}.cg-admin-workspace .cg-team-hub main#cg-hub-main{padding:24px 20px}.cg-hub-heading{display:block;margin-bottom:28px}.cg-team-hub h1{font-size:29px}.cg-hub-heading p{font-size:15px}.cg-hub-phase{display:inline-block;margin-top:15px}.cg-hub-grid{grid-template-columns:1fr}.cg-team-hub a.cg-hub-card{min-height:100px;padding:20px}.cg-team-hub .cg-hub-next{padding:20px}}
@media(prefers-reduced-motion:reduce){.cg-team-hub a.cg-hub-card{transition:none}}



/* Shared frame and department accordion, used by the hub and standalone tools. */
.cg-team-shell{--hub-yellow:#f2ca19;--hub-line:#e1e4e8;--hub-muted:#667180;min-height:100vh;font-family:var(--wp--preset--font-family--open-sans,"Open Sans",sans-serif)}
.cg-team-shell .cg-hub-sidebar{overflow-y:auto;overscroll-behavior:contain;padding-top:26px}
.cg-team-shell .cg-hub-brand{padding-bottom:26px}
.cg-team-shell .cg-hub-departments{display:block;flex:1;min-height:0}
.cg-hub-department{border:0;margin:0 0 6px;padding:0;background:none}
.cg-hub-department>summary{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:8px;cursor:pointer;list-style:none;color:#202631;font:600 15px/1.4 var(--wp--preset--font-family--open-sans,"Open Sans",sans-serif)}
.cg-hub-department>summary::-webkit-details-marker{display:none}
.cg-hub-department>summary>svg:first-child{width:21px;height:21px;flex:0 0 21px}
.cg-hub-department>summary .cg-hub-chevron{margin-left:auto;transition:transform .15s}
.cg-hub-department[open]>summary .cg-hub-chevron{transform:rotate(180deg)}
.cg-hub-department.is-current>summary{background:#fff3bc}
.cg-hub-department>summary:hover{background:#f5f6f8}
.cg-hub-submenu{padding:7px 0 8px 32px;margin:0 0 0 10px;border-left:1px solid #e1e4e8}
.cg-team-shell .cg-hub-sidebar nav .cg-hub-submenu a{display:block;padding:8px 10px;margin:2px 0;border-radius:6px;font-size:13px;line-height:1.4;text-align:left;font-weight:500;color:#4c5868;text-decoration:none}
.cg-team-shell .cg-hub-sidebar nav .cg-hub-submenu a[aria-current="page"]{background:#fff3bc;color:#202631;font-weight:700}
.cg-team-shell .cg-hub-sidebar nav .cg-hub-submenu a:hover{background:#f1f3f6;color:#202631}
.cg-hub-menu-label{display:block;margin:12px 10px 4px;font-size:10px;line-height:1.5;letter-spacing:1.1px;text-transform:uppercase;font-weight:700;color:#78818d}
.cg-team-shell .cg-hub-website{flex-shrink:0;margin-top:20px!important}
.cg-team-shell .cg-hub-content{min-width:0}
.cg-tool-shell .cg-hub-sidebar a{color:inherit;text-decoration:none}
.cg-tool-shell .cg-hub-topbar{position:relative;width:100%;height:auto;letter-spacing:normal;font-family:inherit}
.cg-tool-shell .cg-hub-content>main{min-width:0}
body.cg-admin-workspace:has(.cg-tool-shell){background:#f6f7f9}
.cg-tool-shell .cg-hub-content>main{--cg-admin-gutter:28px}
@media(min-width:761px){.cg-tool-shell .cg-hub-content{margin-left:244px}}
@media(min-width:761px) and (max-width:1150px){.cg-tool-shell .cg-hub-content{margin-left:210px}}
@media(max-width:760px){
 .cg-team-shell .cg-hub-sidebar{padding:18px;overflow:visible}
 .cg-team-shell .cg-hub-brand{padding-bottom:18px}
 .cg-team-shell .cg-hub-departments{display:block}
 .cg-hub-department>summary{font-size:14px;padding:10px 12px}
 .cg-team-shell .cg-hub-sidebar nav .cg-hub-submenu a{font-size:14px;padding:10px}
 .cg-hub-submenu{padding-left:22px}
 .cg-tool-shell .cg-hub-content{margin-left:0}
 .cg-tool-shell .cg-hub-content>main{--cg-admin-gutter:16px}
}
@media(prefers-reduced-motion:reduce){.cg-hub-department>summary .cg-hub-chevron{transition:none}}

/* Staff tool pages share the frame; public entry points retain their own layout. */
.cg-tool-shell .cg-hub-content>main{padding-top:32px}
.cg-native-tool-shell .cg-staff-tool-main{max-width:1500px;padding-bottom:64px}
.cg-native-tool-shell .wp-block-post-content{max-width:none}
.cg-native-tool-shell h1,.cg-tool-shell #flyer-directory h1{font-size:32px;line-height:1.25;margin:0 0 18px;letter-spacing:-.5px}
.cg-tool-intro{color:#667180;font-size:15px;max-width:850px;margin:0 0 24px}
.cg-tool-shell #flyer-directory{max-width:1200px;padding-bottom:40px}
.cg-tool-shell #flyer-directory>form{display:grid;grid-template-columns:auto minmax(160px,1fr) auto minmax(160px,1fr);gap:12px 16px;padding:20px;background:#fff;border:1px solid #e1e4e8;border-radius:10px;margin:0 0 26px}
.cg-tool-shell #flyer-directory select{width:100%;min-width:0}
.cg-tool-shell #flyer-directory .flyer-community{background:#fff;border:1px solid #e1e4e8;border-radius:10px;padding:20px 24px;margin-bottom:20px}
.cg-tool-shell #flyer-directory .flyer-community h2{font-size:19px;padding-bottom:14px}
.cg-tool-shell #flyer-directory .flyer-community li{border-bottom:1px solid #eef0f3;padding:12px 0}
.cg-tool-shell #flyer-directory .flyer-community li:last-child{border-bottom:0}
.cg-tool-shell #flyer-directory .home a{font-weight:650;color:#202631;text-decoration:none}
.cg-tool-shell #flyer-directory .home a:hover{text-decoration:underline}
.cg-tool-shell #flyer-directory .agent{font-size:14px;color:#667180}
.cg-tool-shell #flyer-directory .flyer-error{font-size:12px;background:#fff3d1;padding:4px 7px;border-radius:4px;color:#785400}
.cg-tool-shell .ext-main .ext-panel{border-radius:10px;border-color:#e1e4e8}
.cg-tool-shell .ext-main>h1+ p{max-width:850px;color:#667180}
.cg-tool-email-signature-generator .cg-internal-tool{max-width:1000px;margin:0;padding:0}
.cg-tool-email-signature-generator .cg-internal-intro{text-align:left;max-width:850px;margin:0 0 26px}
.cg-tool-email-signature-generator .form-wrapper{background:#fff;padding:24px;border:1px solid #e1e4e8;border-radius:10px}
.cg-tool-marketing-email-generator .cg-marketing-generator{max-width:none;margin:0;padding:0}
.cg-tool-marketing-email-generator .cg-marketing-generator .generator-hero{display:none}
.cg-tool-marketing-email-generator .cg-marketing-generator h1{text-align:left;font-size:32px;margin:0 0 18px}
.cg-tool-marketing-email-generator .cg-marketing-generator .generator-intro{text-align:left;max-width:850px;margin:0 0 26px;color:#667180}
.cg-tool-marketing-email-generator .cg-marketing-generator .generator-fields{max-width:100%;margin:0 0 28px;background:#fff;border:1px solid #e1e4e8;border-radius:10px}
.cg-tool-open-houses .cg-oh-hero{width:auto;max-width:none;height:auto;margin:0;background:transparent;overflow:visible}
.cg-tool-open-houses .cg-oh-hero>img,.cg-tool-open-houses .cg-oh-hero-copy>p{display:none}
.cg-tool-open-houses .cg-oh-hero-copy{position:static;display:block;padding:0;margin:0;max-width:none;text-align:left}
.cg-tool-open-houses .cg-oh-hero-copy h1{font-size:32px;line-height:1.25;letter-spacing:-.5px;margin:0 0 18px;text-shadow:none;color:#171a1d}
.cg-tool-open-houses .cg-oh-list-intro{color:#667180;margin:0 0 26px}
.cg-tool-open-houses .cg-oh-results-map{top:24px}
.cg-tool-notice{padding:24px;background:#fff;border:1px solid #e1e4e8;border-radius:10px}
.cg-tool-skip{position:absolute;top:-100px;left:16px;z-index:1000;background:#fff;color:#171a1d;padding:12px}
.cg-tool-skip:focus{top:12px}
@media(max-width:900px){.cg-tool-shell #flyer-directory>form{grid-template-columns:auto minmax(0,1fr)}}
@media(max-width:600px){.cg-tool-shell #flyer-directory>form{display:block;padding:18px}.cg-tool-shell #flyer-directory label{display:block;margin-bottom:6px}.cg-tool-shell #flyer-directory select{margin-bottom:12px}.cg-tool-shell #flyer-directory .flyer-community{padding:18px}.cg-native-tool-shell h1,.cg-tool-shell #flyer-directory h1{font-size:28px}}

.cg-tool-open-houses .cg-oh-results-layout:has(.cg-oh-results-map:empty){display:block}
