/* CORVASEC FIX66.39 — Mobile Web Theme
   Mirrors the CORVASEC native app visual language while leaving desktop untouched. */
.cvm39-shell{display:none}

@media (max-width:820px){
  :root{
    --cvm39-bg:#020c14;
    --cvm39-elevated:#061521;
    --cvm39-panel:#081927;
    --cvm39-panel2:#0b2132;
    --cvm39-panel3:#0c273a;
    --cvm39-border:#173a53;
    --cvm39-border-bright:#255b7a;
    --cvm39-cyan:#13b9ff;
    --cvm39-cyan2:#51d0ff;
    --cvm39-text:#f2faff;
    --cvm39-text2:#c0d2de;
    --cvm39-muted:#7d9bad;
    --cvm39-nav-h:62px;
    --cvm39-safe-bottom:env(safe-area-inset-bottom,0px);
  }
  html[data-theme="light"]{
    --cvm39-bg:#f4faff;
    --cvm39-elevated:#ffffff;
    --cvm39-panel:#ffffff;
    --cvm39-panel2:#f3f9fd;
    --cvm39-panel3:#eaf5fc;
    --cvm39-border:#c6deed;
    --cvm39-border-bright:#9cc9e2;
    --cvm39-cyan:#087ef0;
    --cvm39-cyan2:#159ce9;
    --cvm39-text:#07182f;
    --cvm39-text2:#38566d;
    --cvm39-muted:#6d8799;
  }

  html{scroll-padding-top:62px}
  body.corvasec-hybrid{background:var(--cvm39-bg)!important;padding-bottom:calc(var(--cvm39-nav-h) + var(--cvm39-safe-bottom));overflow-x:hidden}
  body.corvasec-hybrid.cvm39-locked{overflow:hidden!important}
  body.corvasec-hybrid>.topbar{display:none!important}
  body.corvasec-hybrid main{width:100%;max-width:none!important;overflow:clip}
  .cvm39-shell{display:block}

  .cvm39-topbar{height:58px;position:sticky;top:0;z-index:120;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 12px;background:color-mix(in srgb,var(--cvm39-elevated) 96%,transparent);border-bottom:1px solid var(--cvm39-border);box-shadow:0 8px 28px rgba(0,0,0,.18);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
  .cvm39-brand{justify-self:start;display:flex;align-items:center;width:min(160px,48vw);height:42px;overflow:hidden}
  .cvm39-brand img{display:block;width:100%;height:auto;max-height:39px;object-fit:contain;object-position:left center}
  .cvm39-brand-light{display:none!important}.cvm39-brand-dark{display:block!important}
  html[data-theme="light"] .cvm39-brand-dark{display:none!important}html[data-theme="light"] .cvm39-brand-light{display:block!important}
  .cvm39-top-actions{display:flex;align-items:center;gap:7px}
  .cvm39-icon-button,.cvm39-account-button{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--cvm39-border-bright);background:var(--cvm39-panel2);color:var(--cvm39-text);padding:0;cursor:pointer}
  .cvm39-icon-button svg,.cvm39-account-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .cvm39-account-button{overflow:hidden;font-weight:850;color:var(--cvm39-cyan2)}
  .cvm39-account-button img{width:100%;height:100%;object-fit:cover}

  .cvm39-overlay{position:fixed;inset:0;z-index:159;background:rgba(0,7,12,.72);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
  .cvm39-drawer{position:fixed;z-index:160;top:0;bottom:0;left:0;width:min(88vw,355px);padding:calc(12px + env(safe-area-inset-top,0px)) 14px calc(18px + var(--cvm39-safe-bottom));display:flex;flex-direction:column;background:var(--cvm39-elevated);border-right:1px solid var(--cvm39-border-bright);box-shadow:22px 0 50px rgba(0,0,0,.35);transform:translateX(-104%);visibility:hidden;transition:transform .22s ease,visibility .22s step-end}
  .cvm39-drawer.is-open{transform:translateX(0);visibility:visible;transition:transform .22s ease}
  .cvm39-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 1px 13px;border-bottom:1px solid var(--cvm39-border)}
  .cvm39-drawer-head strong{display:block;color:var(--cvm39-text);font-size:15px}.cvm39-drawer-head span{display:block;margin-top:3px;color:var(--cvm39-muted);font-size:8px;letter-spacing:.7px;text-transform:uppercase}
  .cvm39-drawer-nav{flex:1;overflow:auto;padding:7px 1px 16px;overscroll-behavior:contain}
  .cvm39-nav-label{display:block;margin:14px 10px 5px;color:var(--cvm39-cyan);font-size:8px;font-weight:850;letter-spacing:1.45px;text-transform:uppercase}
  .cvm39-drawer-nav a{min-height:43px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 11px;border-radius:7px;color:var(--cvm39-text2);font-size:13px;font-weight:700}
  .cvm39-drawer-nav a:hover,.cvm39-drawer-nav a:focus-visible{background:var(--cvm39-panel2);color:var(--cvm39-cyan2)}
  .cvm39-drawer-nav a b{color:var(--cvm39-muted);font-size:18px;font-weight:400}
  .cvm39-drawer-auth{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:12px;border-top:1px solid var(--cvm39-border)}
  .cvm39-drawer-auth>a,.cvm39-drawer-auth button{min-height:42px;border:1px solid var(--cvm39-border-bright);border-radius:7px;background:var(--cvm39-panel2);color:var(--cvm39-text);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:12px;padding:0 12px}
  .cvm39-drawer-auth .is-primary{background:linear-gradient(135deg,var(--cvm39-cyan2),var(--cvm39-cyan));color:#00131d;border-color:var(--cvm39-cyan)}
  .cvm39-drawer-auth form{display:flex}.cvm39-drawer-auth form button{width:100%}
  .cvm39-user-copy{min-width:0}.cvm39-user-copy strong,.cvm39-user-copy span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cvm39-user-copy strong{font-size:12px;color:var(--cvm39-text)}.cvm39-user-copy span{margin-top:3px;font-size:9px;color:var(--cvm39-muted)}

  .cvm39-search-sheet{position:fixed;z-index:170;left:0;right:0;top:0;padding:calc(14px + env(safe-area-inset-top,0px)) 14px 18px;background:var(--cvm39-elevated);border-bottom:1px solid var(--cvm39-border-bright);box-shadow:0 18px 50px rgba(0,0,0,.38);transform:translateY(-110%);visibility:hidden;transition:transform .22s ease,visibility .22s step-end}
  .cvm39-search-sheet.is-open{transform:translateY(0);visibility:visible;transition:transform .22s ease}
  .cvm39-search-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:13px}.cvm39-search-head strong{display:block;color:var(--cvm39-text);font-size:17px}.cvm39-search-head span{display:block;margin-top:3px;color:var(--cvm39-muted);font-size:10px;line-height:1.35}
  .cvm39-search-form{height:48px;display:grid;grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:8px;padding-left:13px;border:1px solid var(--cvm39-border-bright);border-radius:8px;background:var(--cvm39-panel);overflow:hidden}.cvm39-search-form>svg{width:19px;height:19px;fill:none;stroke:var(--cvm39-muted);stroke-width:1.8}.cvm39-search-form input{width:100%;border:0;outline:0;background:transparent;color:var(--cvm39-text);font-size:14px}.cvm39-search-form input::placeholder{color:var(--cvm39-muted)}.cvm39-search-form button{align-self:stretch;border:0;border-left:1px solid var(--cvm39-border);padding:0 15px;background:var(--cvm39-panel2);color:var(--cvm39-cyan2);font-weight:800;font-size:11px}
  .cvm39-quick-links{display:flex;gap:7px;overflow-x:auto;padding-top:10px;scrollbar-width:none}.cvm39-quick-links::-webkit-scrollbar{display:none}.cvm39-quick-links a{flex:0 0 auto;padding:7px 10px;border:1px solid var(--cvm39-border);border-radius:999px;background:var(--cvm39-panel2);color:var(--cvm39-text2);font-size:10px;font-weight:700}

  .cvm39-bottom-nav{position:fixed;z-index:140;left:0;right:0;bottom:0;height:calc(var(--cvm39-nav-h) + var(--cvm39-safe-bottom));padding:4px 6px var(--cvm39-safe-bottom);display:grid;grid-template-columns:repeat(5,1fr);background:color-mix(in srgb,#03111a 97%,transparent);border-top:1px solid #17374d;box-shadow:0 -10px 30px rgba(0,0,0,.22);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
  html[data-theme="light"] .cvm39-bottom-nav{background:color-mix(in srgb,#fff 96%,transparent);border-top-color:var(--cvm39-border)}
  .cvm39-bottom-nav a{position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#8ea5b4;font-size:8px;font-weight:700;letter-spacing:.1px}.cvm39-bottom-nav a svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.cvm39-bottom-nav a.is-active{color:var(--cvm39-cyan)}.cvm39-bottom-nav a.is-active::before{content:"";position:absolute;top:-4px;width:28px;height:2px;border-radius:2px;background:var(--cvm39-cyan);box-shadow:0 0 10px rgba(19,185,255,.55)}

  /* Global mobile typography and content rhythm */
  body.corvasec-hybrid{font-size:14px;line-height:1.5}
  body.corvasec-hybrid :is(button,a,input,select,textarea){-webkit-tap-highlight-color:transparent}
  body.corvasec-hybrid :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--cvm39-cyan)!important;outline-offset:2px}
  body.corvasec-hybrid main :is(.section,.cv22-page,.cv-tools-pro__inner,.cv-tools-v2__inner,.cv28,.cv58r2,.cvdoc29,.cv-doc,.kb27){max-width:100%!important}
  body.corvasec-hybrid table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  body.corvasec-hybrid pre,body.corvasec-hybrid code{max-width:100%;overflow-wrap:anywhere}
  body.corvasec-hybrid img,body.corvasec-hybrid iframe{max-width:100%}

  /* Home — compact app-inspired layout */
  .corvasec-hybrid-home .threat-strip{padding:8px 12px 0!important}
  .corvasec-hybrid-home .pulse-ultra{display:flex!important;overflow-x:auto!important;gap:7px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;scrollbar-width:none}.corvasec-hybrid-home .pulse-ultra::-webkit-scrollbar{display:none}
  .corvasec-hybrid-home .pulse-ultra__brand,.corvasec-hybrid-home .pulse-ultra__metric,.corvasec-hybrid-home .pulse-ultra__level{flex:0 0 128px!important;min-height:62px!important;border:1px solid var(--cvm39-border)!important;border-radius:7px!important;background:var(--cvm39-panel)!important;padding:9px!important}
  .corvasec-hybrid-home .pulse-ultra__brand{flex-basis:155px!important}
  .corvasec-hybrid-home .hero{height:auto!important;min-height:240px!important;margin-top:10px!important;border-top:1px solid var(--cvm39-border)!important;border-bottom:1px solid var(--cvm39-border)!important;background:linear-gradient(135deg,#0c2940,#061521 52%,#020d15)!important}
  .corvasec-hybrid-home .hero__art{inset:0!important;opacity:.34!important;background-position:65% center!important}
  .corvasec-hybrid-home .hero__veil{background:linear-gradient(90deg,rgba(2,12,20,.97),rgba(2,12,20,.74) 58%,rgba(2,12,20,.18))!important}
  html[data-theme="light"] .corvasec-hybrid-home .hero__veil{background:linear-gradient(90deg,rgba(244,250,255,.98),rgba(244,250,255,.78) 60%,rgba(244,250,255,.24))!important}
  .corvasec-hybrid-home .hero__content{width:100%!important;padding:27px 17px 25px!important}.corvasec-hybrid-home .hero h1{max-width:280px;font-size:39px!important;line-height:.95!important;letter-spacing:-1.5px!important}.corvasec-hybrid-home .hero__lead{font-size:15px!important}.corvasec-hybrid-home .hero__copy{max-width:310px;font-size:11px!important}.corvasec-hybrid-home .hero__buttons{display:grid!important;grid-template-columns:1fr;gap:8px!important;max-width:280px}.corvasec-hybrid-home .hero__buttons .btn{min-height:42px;height:auto!important;justify-content:space-between;padding:0 14px!important}
  .corvasec-hybrid-home .section{padding:0 13px!important;margin-top:22px!important}.corvasec-hybrid-home .section-heading{align-items:flex-end!important;gap:8px}.corvasec-hybrid-home .section-heading h2{font-size:17px!important}.corvasec-hybrid-home .section-heading p{font-size:10px!important}.corvasec-hybrid-home .section-heading>a{font-size:9px!important;white-space:nowrap}
  .corvasec-hybrid-home .article-grid{grid-template-columns:1fr!important;gap:9px!important}.corvasec-hybrid-home .article-card{border-color:var(--cvm39-border)!important;border-radius:8px!important;background:var(--cvm39-panel)!important}.corvasec-hybrid-home .article-card>a{display:grid!important;grid-template-columns:104px minmax(0,1fr)!important}.corvasec-hybrid-home .cv62-article-cover{height:100%!important;min-height:125px!important}.corvasec-hybrid-home .article-body{padding:11px!important}.corvasec-hybrid-home .article-body h3{font-size:14px!important}.corvasec-hybrid-home .article-body p{font-size:10px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .corvasec-hybrid-home .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.corvasec-hybrid-home .category{min-height:86px!important;grid-template-columns:30px minmax(0,1fr)!important;padding:12px!important;border-radius:8px!important;background:var(--cvm39-panel)!important;border-color:var(--cvm39-border)!important}.corvasec-hybrid-home .category>span:first-child{font-size:24px!important}.corvasec-hybrid-home .category strong{font-size:12px!important}.corvasec-hybrid-home .category .cv29-category-arrow{display:none}

  /* Unified Search */
  .cv22-page{padding:14px 12px 28px!important}.cv22-search-hero{padding:17px 14px!important;border-radius:9px!important}.cv22-search-hero h1{font-size:24px!important}.cv22-search-form{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}.cv22-filters{display:flex!important;gap:6px!important;overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:3px!important;scrollbar-width:none}.cv22-filters::-webkit-scrollbar{display:none}.cv22-filters a{flex:0 0 auto!important}.cv22-result-list{grid-template-columns:1fr!important}.cv22-result-link{padding:13px!important}.cv22-result-link strong{font-size:15px!important}.cv22-section-head{align-items:flex-end!important;gap:8px}.cv22-section-head h2{font-size:18px!important}

  /* Document Center directory + detail */
  .cvdoc29{padding:13px 12px 30px!important}.cvdoc29-breadcrumb{font-size:10px!important;overflow-x:auto;white-space:nowrap}.cvdoc29-hero{display:block!important;padding:18px 14px!important;border-radius:9px!important}.cvdoc29-hero__art{display:none!important}.cvdoc29-hero__copy{max-width:none!important}.cvdoc29-hero__copy h1{font-size:30px!important}.cvdoc29-hero__copy p{font-size:12px!important}.cvdoc29-stats{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:7px!important}.cvdoc29-stat{min-height:54px!important;padding:8px!important}.cvdoc29-hero__bottom{position:static!important;margin-top:14px!important}.cvdoc29-search{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}.cvdoc29-search button{min-height:43px!important}.cvdoc29-popular{overflow-x:auto!important;flex-wrap:nowrap!important;white-space:nowrap!important;padding-bottom:3px!important}.cvdoc29-main{display:block!important}.cvdoc29-sidebar{width:100%!important;position:static!important;margin:0 0 12px!important}.cvdoc29-panel{border-radius:8px!important}.cvdoc29-toolbar{display:block!important}.cvdoc29-toolbar__right{margin-top:9px!important;display:flex!important;justify-content:space-between!important;gap:7px!important;overflow-x:auto}.cvdoc29-card{display:grid!important;grid-template-columns:70px minmax(0,1fr)!important;gap:10px!important;padding:11px!important}.cvdoc29-card__cover{width:70px!important;min-width:70px!important;height:92px!important}.cvdoc29-card__content h3{font-size:14px!important}.cvdoc29-card__content p{font-size:10px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.cvdoc29-card__actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}.cvdoc29-card__actions a,.cvdoc29-card__actions button{min-height:40px!important}
  .cv-doc{padding:13px 12px 28px!important}.cv-doc__crumbs{overflow-x:auto;white-space:nowrap;font-size:10px!important}.cv-doc__detail-hero{display:block!important;padding:17px!important}.cv-doc__file-badge--large{float:left;margin:0 12px 8px 0}.cv-doc__detail-copy h1{font-size:29px!important;line-height:1!important}.cv-doc__detail-actions{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;clear:both;padding-top:12px}.cv-doc__detail-actions a{width:100%!important;min-height:43px!important}.cv-doc__detail-grid{grid-template-columns:1fr!important}.cv-doc__detail-side{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}.cv-doc__panel{padding:14px!important}.cv-doc__preview iframe,.cv-doc__preview embed{height:58vh!important;min-height:390px!important}

  /* Technical References */
  .cv58r2{padding:13px 12px 30px!important}.cv58r2-breadcrumb{overflow-x:auto;white-space:nowrap}.cv58r2-hero{display:block!important;padding:18px 14px!important}.cv58r3-hero-art{display:none!important}.cv58r2-hero__copy h1{font-size:30px!important}.cv58r2-stats{grid-template-columns:repeat(2,1fr)!important}.cv58r3-hero-bottom,.cv58r4-hero-bottom{position:static!important;margin-top:12px!important}.cv58r2-search,.cv58r4-search{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}.cv58r2-main{display:block!important}.cv58r2-sidebar{position:static!important;width:100%!important;margin-bottom:12px!important}.cv58r2-toolbar{display:block!important}.cv58r2-toolbar__right{margin-top:8px!important;overflow-x:auto!important}.cv58r2-card{display:grid!important;grid-template-columns:68px minmax(0,1fr)!important;gap:10px!important;padding:11px!important}.cv58r2-card__cover{width:68px!important;min-width:68px!important}.cv58r2-card__actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}.cv58r2-pagination-row{display:block!important}.cv58r2-per-page{margin-top:8px!important}
  .cv28{padding:13px 12px 28px!important}.cv28-hero{padding:17px 14px!important}.cv28-hero__copy h1{font-size:28px!important}.cv28-feature-grid{grid-template-columns:1fr!important}.cv28-card{padding:13px!important}.cv28-imported-list{grid-template-columns:1fr!important}

  /* Security Tools / collections */
  .cv-tools-pro__inner,.cv-tools-v2__inner{padding:13px 12px 30px!important}.cv-hero-panel{display:block!important;padding:17px 14px!important}.cv-hero-art{display:none!important}.cv-hero-copy h1,.cv-simple-hero h1{font-size:29px!important}.cv-hero-search{max-width:none!important}.cv-hero-metrics{grid-template-columns:repeat(2,1fr)!important}.cv-controls-panel{padding:12px!important}.cv-category-row{overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:none}.cv-category-row::-webkit-scrollbar{display:none}.cv-category-pill{flex:0 0 auto!important}.cv-filter-grid{grid-template-columns:1fr 1fr!important}.cv-directory-grid,.cv-featured-grid,.cv-collections-grid,.cv-directory-v2-grid{grid-template-columns:1fr!important}.cv-tool-card,.cv-featured-card,.cv-collection-card,.cv-directory-v2-card{border-radius:8px!important}

  /* Knowledge, certifications, labs, forum, account and general content */
  .kb27{padding-inline:12px!important}.kb27 :is(.kb27-grid,.kb27-category-grid,.kb27-layout){grid-template-columns:1fr!important}.kb27 :is(.kb27-hero,.kb27-panel){border-radius:8px!important}
  .hybrid-extension-main{min-height:55vh!important}.hybrid-content-page{margin:14px auto!important;padding:0 12px 28px!important}.hybrid-content-header,.hybrid-content-body{padding:16px!important;border-radius:8px!important}.hybrid-content-header h1{font-size:28px!important}.hybrid-content-body{font-size:14px!important;line-height:1.65!important}
  .hybrid-forum-shell main,.hybrid-account-shell main,.hybrid-intelligence-shell main{padding-inline:0!important}

  /* Footer becomes compact but remains accessible above the app-style nav. */
  .cv-native-footer{margin-top:28px!important;padding-bottom:12px!important}.cv-native-footer .cv-native-shell{padding-inline:14px!important}.cv-native-footer__main{display:block!important}.cv-native-footer__brand-wrap{margin-bottom:18px!important}.cv-native-footer__brand{max-width:180px!important}.cv-native-footer__columns{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px 14px!important}.cv-native-footer__connect{margin-top:18px!important}.cv-native-footer__bottom{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:9px!important}.cv-native-footer__links{display:flex!important;gap:13px!important;flex-wrap:wrap!important}
  .theme-toggle{right:12px!important;bottom:calc(var(--cvm39-nav-h) + var(--cvm39-safe-bottom) + 10px)!important;min-width:74px!important;height:36px!important;min-height:36px!important;z-index:130!important}
}

@media (max-width:420px){
  .cvm39-brand{width:145px}.cvm39-topbar{padding-inline:9px}.cvm39-icon-button,.cvm39-account-button{width:36px;height:36px}
  .corvasec-hybrid-home .hero h1{font-size:36px!important}.corvasec-hybrid-home .article-card>a{grid-template-columns:88px minmax(0,1fr)!important}.corvasec-hybrid-home .cv62-article-cover{min-height:120px!important}
  .cvdoc29-stats,.cv58r2-stats,.cv-hero-metrics{grid-template-columns:1fr 1fr!important}
  .cvdoc29-toolbar__right,.cv58r2-toolbar__right{align-items:flex-start!important;flex-direction:column!important}
  .cv-filter-grid{grid-template-columns:1fr!important}
}

@media (prefers-reduced-motion:reduce){
  .cvm39-drawer,.cvm39-search-sheet{transition:none!important}
}
