/* FEBRY.OPS WEBSITE V325 — UNIFIED COMPACT INTERFACE
   Presentation-only overrides. Based on full Website V324.
   IMPORTANT: Not loaded on /website-services/ (including its admin/catalog).
   Keep original 1x/2x/3x accessibility, colors, business rules and interaction logic.
   Typography remains readable, while gutters, gaps, cards and hero space shrink.
*/

/* Main home: approximately 15–22% tighter than V324 */
body.cl-home .cl-container{width:min(1090px,calc(100% - 36px))!important}
body.cl-home .cl-nav{height:62px!important;padding-inline:clamp(16px,3.2vw,52px)!important;gap:14px!important}
body.cl-home .cl-brand{font-size:17px!important}
body.cl-home .cl-brand-icon{transform:scale(.88);transform-origin:center}
body.cl-home .cl-nav-links{gap:13px!important}
body.cl-home .cl-nav-links a{font-size:11.5px!important}
body.cl-home .cl-nav-links .cl-nav-cta{padding:9px 14px!important}
body.cl-home .cl-hero{padding:clamp(43px,5.8vw,70px) 0 46px!important;gap:clamp(24px,3.8vw,47px)!important}
body.cl-home .cl-hero h1{font-size:clamp(35px,4.05vw,56px)!important;line-height:1.06!important;margin:11px 0 16px!important}
body.cl-home .cl-hero p{font-size:clamp(13px,1.15vw,15px)!important;line-height:1.58!important}
body.cl-home .cl-eyebrow{font-size:10px!important;letter-spacing:.13em!important}
body.cl-home .cl-actions{gap:9px!important;margin-top:20px!important}
body.cl-home .cl-button{padding:10px 15px!important;min-height:41px!important;font-size:11.5px!important;border-radius:11px!important}
body.cl-home .cl-showcase{min-height:335px!important;padding:16px!important;border-radius:21px!important}
body.cl-home .cl-show-window{padding:13px!important}
body.cl-home .cl-show-bubble{font-size:11px!important}
body.cl-home .cl-section{padding:51px 0!important}
body.cl-home .cl-section-head{gap:16px!important;margin-bottom:19px!important}
body.cl-home .cl-section h2{font-size:clamp(26px,2.85vw,39px)!important;line-height:1.12!important;margin:8px 0!important}
body.cl-home .cl-section-lead{font-size:13px!important;line-height:1.55!important}
body.cl-home .cl-product{padding:17px!important;border-radius:16px!important}
body.cl-home .cl-product h3{font-size:clamp(20px,1.85vw,25px)!important}
body.cl-home :is(.cl-product p,.cl-feature p,.cl-work span){font-size:12.5px!important;line-height:1.55!important}
body.cl-home .cl-product-media{border-radius:13px!important}
body.cl-home .cl-feature{padding:16px!important;border-radius:15px!important}
body.cl-home .cl-feature h3{font-size:17px!important}
body.cl-home .cl-feature-num{font-size:12px!important}
body.cl-home .cl-work{padding:17px!important;border-radius:15px!important}
body.cl-home .cl-work h3{font-size:17px!important}
body.cl-home .cl-cta{padding:27px!important;border-radius:19px!important}
body.cl-home .cl-paktra-spotlight{grid-template-columns:minmax(0,1fr) 215px;gap:20px;padding:19px 21px;border-radius:17px}
body.cl-home .cl-paktra-spotlight h3{font-size:clamp(20px,2.2vw,27px)!important}
body.cl-home .cl-paktra-spotlight p{font-size:12.5px;line-height:1.56}
body.cl-home .cl-paktra-visual{min-height:140px;padding:13px}

/* Public site — pricing, portfolio, Q&A, contact, optimize, Paktra, legal pages.
   Avoid touching website-services altogether: it does not import this file. */
body.cl-public{font-size:14px;line-height:1.55}
body.cl-public :is(.shell,.container){max-width:1090px}
body.cl-public :is(.topbar-inner,nav .nav){gap:12px}
body.cl-public :where(.topbar){min-height:59px}
body.cl-public :is(.topbar-inner,nav .nav){min-height:58px}
body.cl-public :is(.hero,.hero.compact){padding-top:37px!important;padding-bottom:25px!important}
body.cl-public :is(.hero h1,main h1,.page-head h2){font-size:clamp(34px,4.1vw,53px)!important;line-height:1.05!important;letter-spacing:-.048em!important}
body.cl-public :where(.lead,.portfolio-intro){font-size:14px!important;line-height:1.57!important}
body.cl-public :is(.hero .eyebrow,.hero .kicker){font-size:10.5px!important;letter-spacing:.12em!important;margin-bottom:11px!important}
body.cl-public :is(.section-head h2,.section h2,.page-head h2){font-size:clamp(25px,2.7vw,36px)!important;line-height:1.13!important}
body.cl-public :where(.section-head){gap:16px;margin-bottom:17px}
body.cl-public :is(.section,.page-section){padding-top:39px;padding-bottom:39px}
body.cl-public :where(.card,.panel,.group,.package,.notice,.faq-item){border-radius:16px!important}
body.cl-public :where(.card,.panel,.group,.package){padding:16px!important}
body.cl-public :where(.card h3,.panel h3){font-size:clamp(17px,1.8vw,22px)!important}
body.cl-public :where(.card p,.panel p,.group p,.notice,.desc,.text-muted){font-size:12.5px;line-height:1.56}
body.cl-public :where(.btn,.top-btn,.mini-btn,.home-btn,.primary-btn,.ghost-btn){font-size:12px!important;border-radius:10px!important;padding:9px 13px!important}
body.cl-public :where(button,input,select,textarea){font-family:inherit}
body.cl-public :where(input,select,textarea){font-size:13px}
body.cl-public :where(.footer,footer){font-size:11px}

/* Pricing and its many product groups */
body.cl-pricing main{max-width:1020px!important;padding-bottom:66px!important}
body.cl-pricing .hero{padding:37px 0 28px!important}
body.cl-pricing section{padding:33px 0!important}
body.cl-pricing .section-head h2{font-size:clamp(24px,2.65vw,35px)!important}
body.cl-pricing .section-head p{font-size:12.5px!important}
body.cl-pricing .packages{gap:12px!important}
body.cl-pricing .package{padding:17px!important;border-radius:16px!important}
body.cl-pricing .packages .package h3{font-size:clamp(19px,2vw,24px)!important;margin:17px 0 7px!important}
body.cl-pricing .package li{font-size:12px!important;line-height:1.5!important}
body.cl-pricing .group{padding:16px!important}
body.cl-pricing .group h3{font-size:19px!important}
body.cl-pricing .row{padding:10px 0!important;gap:8px 13px!important}
body.cl-pricing .row p{font-size:12px!important}
body.cl-pricing .cta{padding:58px 0 26px!important}
body.cl-pricing .cta h2{font-size:clamp(27px,3.2vw,39px)!important}
body.cl-pricing .v318-pricing-shortcut{gap:9px!important}

/* Portfolio */
body.cl-portfolio .shell{max-width:1000px}
body.cl-portfolio .hero.compact{padding:32px 0 12px!important}
body.cl-portfolio .hero h1{font-size:clamp(34px,4.2vw,53px)!important}
body.cl-portfolio .portfolio-intro{font-size:13px!important;margin-top:11px!important}
body.cl-portfolio .marquee-wrap{padding:11px 0 30px!important}
body.cl-portfolio .marquee{padding:11px!important;border-radius:16px!important}
body.cl-portfolio .track{gap:10px!important}
body.cl-portfolio .slide{width:210px!important;padding:9px!important;border-radius:14px!important}
body.cl-portfolio .slide.desktop{width:325px!important}
body.cl-portfolio .slide h3{font-size:18px!important}
body.cl-portfolio .slide p{font-size:11.5px!important}

/* Question centre: keep 172 Q&A entries usable, reduce their tall spacing. */
body.cl-public:has(.qa-list) .hero{padding:37px 0 22px!important}
body.cl-public:has(.qa-list) .hero h1{font-size:clamp(34px,4.15vw,53px)!important;line-height:1.07!important}
body.cl-public:has(.qa-list) .lead{margin-top:13px!important}
body.cl-public:has(.qa-list) .section-head{margin:25px 0 12px!important}
body.cl-public:has(.qa-list) .qa-list{gap:9px!important}
body.cl-public:has(.qa-list) .qa-item{border-radius:13px!important}
body.cl-public:has(.qa-list) .qa-q{grid-template-columns:29px minmax(0,1fr) 32px!important;gap:8px!important;padding:11px 13px!important;min-height:48px}
body.cl-public:has(.qa-list) .qa-question{font-size:13px!important;line-height:1.43!important}
body.cl-public:has(.qa-list) .qa-plus{width:30px!important;height:30px!important;font-size:17px!important}
body.cl-public:has(.qa-list) .qa-answer{padding-left:50px!important;padding-right:18px!important;font-size:12.5px!important;line-height:1.59!important}
body.cl-public:has(.qa-list) .qa-service{margin-left:50px!important;margin-right:18px!important;font-size:11px!important}
body.cl-public:has(.qa-list) .search{padding:12px 14px!important;border-radius:12px!important;font-size:13px!important}
body.cl-public:has(.qa-list) .filter{padding:8px 12px!important}

/* Contact and information pages */
body.cl-public:has(.contact-soon-note) .card{padding:17px!important;border-radius:17px!important}
body.cl-public:has(.contact-soon-note) .card h3{font-size:21px!important}
body.cl-public:has(.contact-soon-note) .value{font-size:17px!important}
body.cl-public:has(.contact-soon-note) .desc{font-size:13px!important}
body.cl-public:has(.contact-soon-note) .grid{gap:12px!important}

/* PAKTRA presentation page */
body.cl-paktra .hero{min-height:0!important;gap:30px!important;padding:49px 0 42px!important}
body.cl-paktra .hero h1{font-size:clamp(40px,5.4vw,75px)!important;line-height:.94!important;margin-bottom:20px!important}
body.cl-paktra .lead{font-size:clamp(14px,1.4vw,17px)!important}
body.cl-paktra .section{padding:48px 0!important}
body.cl-paktra .section h2{font-size:clamp(27px,3.4vw,46px)!important}
body.cl-paktra .card{padding:17px!important;border-radius:17px!important}
body.cl-paktra .card h3{font-size:19px!important;margin:12px 0 6px!important}
body.cl-paktra .step{padding:16px!important;border-radius:16px!important}
body.cl-paktra .step h3{margin:12px 0 7px!important}
body.cl-paktra .feature{padding:9px 0!important}

/* OPTIMIZE workspace: interface density, not functionality */
body.cl-public:has(.brand-wrap-opt) .page-head{gap:15px!important;margin-bottom:21px!important}
body.cl-public:has(.brand-wrap-opt) .page-head h2{font-size:clamp(29px,3.5vw,44px)!important}
body.cl-public:has(.brand-wrap-opt) :is(.form-grid,.market-memory-grid){gap:12px!important}
body.cl-public:has(.brand-wrap-opt) :is(.primary-btn,.analyze-btn,.ghost-btn){padding:10px 15px!important;min-height:40px}

/* MS-Chat / client workspace: preserve readable bubbles and touch controls,
   compact spacing and sections instead of shrinking conversational text excessively. */
body.cl-ms .topbar{min-height:58px!important;padding:7px clamp(12px,2vw,23px)!important;gap:8px!important}
body.cl-ms .brand{font-size:13px!important}
body.cl-ms .login-wrap{gap:20px!important;padding:28px 15px 40px!important}
body.cl-ms .login-card{padding:18px!important;border-radius:16px!important}
body.cl-ms .login-hero-copy h1{font-size:clamp(31px,3.6vw,48px)!important;line-height:1.12!important}
body.cl-ms .login-hero-copy p{font-size:13px!important;line-height:1.55!important}
body.cl-ms :where(.card,.mobile-card,.account-usage,.ms-tier-card,.ms-buy-panel,.ms-workspace-sidebar,.threads-oauth-card,.writing-style-card,.template-card,.schedule-card,.sd-entry){border-radius:13px!important}
body.cl-ms :where(.mobile-card,.ms-tier-card,.ms-buy-panel,.account-usage,.threads-oauth-card,.writing-style-card){padding:14px!important}
body.cl-ms .chat-head{padding:9px 12px!important}
body.cl-ms .chat-title h1{font-size:18px!important}
body.cl-ms :where(.bubble){font-size:12.4px!important;line-height:1.55!important;padding:11px 13px!important}
body.cl-ms :where(.btn,.febry-solid-btn){padding:9px 13px;font-size:12px}
body.cl-ms :where(input,select,textarea){font-size:13px}
body.cl-ms #sdScreen .sd-shell{width:min(1240px,calc(100% - 36px))!important}
body.cl-ms #sdScreen :where(h2){font-size:clamp(20px,1.9vw,26px)!important}
body.cl-ms #sdScreen :where(.sd-entry,.sd-schedule-card){border-radius:13px!important}
body.cl-ms #sdScreen :where(.sd-form-field){gap:5px}

/* Admin already compact V316; reduce only large surface gaps, not data grid widths. */
body.cl-admin .topbar{min-height:59px!important;padding:8px clamp(13px,2vw,22px)!important}
body.cl-admin .admin-shell{width:min(1280px,calc(100% - 32px))!important;padding:18px 0 44px!important}
body.cl-admin #adminView .admin-top h1{font-size:clamp(20px,1.8vw,25px)!important}
body.cl-admin #adminView .oc-title-row h2{font-size:clamp(17px,1.8vw,21px)!important}
body.cl-admin #adminView :where(.card,.stat,.oc-section,.oc-card,.oc-detail){border-radius:13px!important}
body.cl-admin #adminView .card{padding:11px!important}
body.cl-admin #adminView .free-event-card{padding:12px!important}
body.cl-admin #adminView .oc-main-nav button{min-height:35px!important;font-size:11px!important}
body.cl-admin #adminView :where(.btn){font-size:12px}

/* Narrow/mobile: compact while keeping tappable controls at least ~40px. */
@media(max-width:800px){
  body.cl-home .cl-nav{height:58px!important;padding-inline:14px!important}
  body.cl-home .cl-container{width:calc(100% - 28px)!important}
  body.cl-home .cl-hero{padding:37px 0 33px!important;gap:19px!important}
  body.cl-home .cl-hero h1{font-size:clamp(34px,8.8vw,45px)!important}
  body.cl-home .cl-section{padding:38px 0!important}
  body.cl-home .cl-section h2{font-size:clamp(24px,6.2vw,33px)!important}
  body.cl-home .cl-showcase{min-height:290px!important;padding:13px!important}
  body.cl-home .cl-product{padding:15px!important}
  body.cl-home .cl-paktra-spotlight{grid-template-columns:1fr;padding:16px;gap:13px}
  body.cl-home .cl-paktra-visual{min-height:115px}
  body.cl-home .cl-button{min-height:42px!important}
  body.cl-public :is(.hero h1, main h1, .page-head h2){font-size:clamp(32px,8vw,45px)!important}
  body.cl-public :is(.hero,.hero.compact){padding:30px 0 21px!important}
  body.cl-public :is(.section,.page-section){padding:29px 0!important}
  body.cl-public :is(.btn,.top-btn,.mini-btn,.home-btn,.primary-btn,.ghost-btn){min-height:40px}
  body.cl-pricing section{padding:28px 0!important}
  body.cl-pricing .package{padding:15px!important}
  body.cl-pricing .packages .package h3{font-size:21px!important}
  body.cl-portfolio .slide{width:180px!important}
  body.cl-portfolio .slide.desktop{width:285px!important}
  body.cl-paktra .hero{padding:34px 0 31px!important;gap:19px!important}
  body.cl-paktra .hero h1{font-size:clamp(37px,8vw,55px)!important}
  body.cl-paktra .section{padding:32px 0!important}
  body.cl-ms .topbar{min-height:54px!important}
  body.cl-ms .login-card{padding:15px!important}
  body.cl-ms .login-hero-copy h1{font-size:clamp(31px,7.6vw,43px)!important}
  body.cl-ms :where(.btn,.febry-solid-btn){min-height:40px}
  body.cl-ms #sdScreen .sd-shell{width:calc(100% - 24px)!important}
  body.cl-admin .admin-shell{width:calc(100% - 24px)!important}
}
@media(max-width:390px){
  body.cl-home .cl-nav{padding-inline:11px!important;gap:7px!important}
  body.cl-home .cl-container{width:calc(100% - 24px)!important}
  body.cl-home .cl-hero h1{font-size:clamp(32px,8.5vw,36px)!important}
  body.cl-home .cl-section{padding:34px 0!important}
  body.cl-public:has(.qa-list) .qa-q{grid-template-columns:22px minmax(0,1fr) 30px!important;gap:6px!important;padding:10px!important}
  body.cl-public:has(.qa-list) .qa-answer{padding-left:37px!important;padding-right:12px!important}
  body.cl-public:has(.qa-list) .qa-service{margin-left:37px!important;margin-right:12px!important}
}
@media(prefers-reduced-motion:reduce){
 body.cl-home .cl-brand-icon{transition:none!important}
}
