/* Plagebleu — Unified UI layer v1 (desktop · app/phone · interactive board). Loaded last. */
:root{--pb-r-card:24px;--pb-r-pill:999px;--pb-sp:clamp(36px,5vw,72px);--pb-gut:clamp(16px,4vw,56px);--pb-max:1280px;--pb-ink:#0a3350;--pb-ac:#18a9b9}

/* ---- 1) Navigation: readable sizes everywhere ---- */
html body #navbar #navLinks .nav-link-single,html body #navbar #navLinks .nav-drop-btn,html body #navbar #navLinks .pb-classroom-nav-link,html body #navbar #navLinks .dt-studio-nav{font-size:clamp(13.5px,.98vw,16px)!important;font-weight:700}
html body #navbar #navLinks .nav-drop-menu a{font-size:clamp(14px,1vw,16px)!important}

/* ---- 2) Section rhythm: same padding, width, heading scale ---- */
html body #mainContent .site-section:not(.hero-section):not(.dtx-section):not(#section-hero):not(#pbClassroomEntry){padding-block:var(--pb-sp)!important;padding-inline:max(var(--pb-gut),calc((100% - var(--pb-max)) / 2))!important}
html body #mainContent .section-header h2,html.ocean-pro body #mainContent .site-section:not(.dt2-section) .section-header h2{font-size:clamp(26px,2.2vw + 12px,40px)!important;line-height:1.25!important;letter-spacing:0}
html body #mainContent .section-header p,html.ocean-pro body #mainContent .site-section:not(.dt2-section) .section-header p{max-width:64ch;margin-inline:auto;font-size:clamp(15px,.5vw + 12px,19px)!important;line-height:1.8}
html body #mainContent .section-header{margin-bottom:clamp(20px,3vw,40px)}

/* ---- 3) Cards & buttons: one shape language ---- */
html body #mainContent :is(.card,.pb-cre-card){border-radius:var(--pb-r-card)!important}
html body #mainContent :is(.btn-primary,.btn-outline,.btn-hero,.card-btn,.btn-small,.ctab){border-radius:var(--pb-r-pill)!important;font-weight:700}
html body #mainContent .card [style*="font-size:0.72em"]{font-size:.82em!important}
a,button,[role=button],.card{-webkit-tap-highlight-color:transparent}
body :focus-visible{outline:3px solid var(--pb-ac);outline-offset:2px}
@media (hover:none){html body #mainContent :is(.card,.pb-cre-card,.pbl-tile,.btn-primary,.btn-outline,.btn-hero):active{transform:scale(.97);transition:transform .08s}}
@media (prefers-reduced-motion:reduce){.pbl-tile{transition:none!important}}

/* ---- 4) Quick-start launcher (inside the hero) ---- */
html body #section-hero.hero-section{flex-wrap:wrap}
html body #section-hero.hero-section>.slider-container{flex:1 1 100%;max-width:100%}
html body #section-hero.hero-section>.pbl{flex:0 0 100%;width:100%;box-sizing:border-box}
.pbl{position:relative;z-index:3;max-width:var(--pb-max);margin:clamp(14px,2.4vw,28px) auto 0;padding:0 var(--pb-gut) clamp(10px,2vw,20px)}
.pbl-head{text-align:center;margin-bottom:clamp(10px,1.6vw,18px)}
.pbl-head h2{margin:0;font-size:clamp(20px,1.6vw + 12px,32px);color:var(--pb-ink);line-height:1.3}
.pbl-head p{margin:4px 0 0;font-size:clamp(14px,.4vw + 12px,17px);color:#3d6a85}
.pbl-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:clamp(10px,1.4vw,18px)}
.pbl-tile{--g1:#0e7ab8;--g2:#18a9b9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:clamp(112px,11vw,150px);padding:14px 8px;border:0;border-radius:var(--pb-r-card);color:#fff;font:inherit;cursor:pointer;text-align:center;background:linear-gradient(150deg,var(--g1),var(--g2));box-shadow:0 8px 20px rgba(10,51,80,.18);transition:transform .15s,box-shadow .15s}
.pbl-tile:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(10,51,80,.26)}
.pbl-ic{font-size:clamp(34px,3.2vw,50px);line-height:1}
.pbl-tile strong{font-size:clamp(15px,.5vw + 12px,20px);line-height:1.25}
.pbl-tile small{font-size:clamp(12.5px,.3vw + 11px,15px);opacity:.92;line-height:1.3}
.pbl-a{--g1:#ff8a2a;--g2:#ffb347}.pbl-b{--g1:#0a7586;--g2:#18a9b9}.pbl-c{--g1:#5b5bd6;--g2:#8a7bf0}.pbl-d{--g1:#0d5c8e;--g2:#2a8fd0}.pbl-e{--g1:#d6456b;--g2:#f27a93}.pbl-f{--g1:#1f8f5f;--g2:#46c28a}
.pbl-a small,.pbl-a strong{color:#3a1d00;text-shadow:none}
@media (max-width:1000px){.pbl-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:520px){.pbl-grid{grid-template-columns:repeat(2,1fr)}.pbl-tile{min-height:104px}}

/* ---- 5) Interactive board: bigger, calmer, touch-first ---- */
@media (min-width:1400px) and (max-width:1899px) and (pointer:coarse){:root{--pb-zoom:1.1}}
html.pb-board{--pb-max:1480px}
html.pb-board .pbl-tile{min-height:170px}
html.pb-board body #mainContent :is(.card-btn,.btn-primary,.btn-outline,.btn-hero,.btn-small,.ctab){min-height:56px}
html.pb-board *{scrollbar-width:thin}
html.pb-board,html.pb-board body{-webkit-user-select:none;user-select:none}
html.pb-board input,html.pb-board textarea{-webkit-user-select:text;user-select:text}

/* ---- 6) Installed app (PWA / standalone) ---- */
@media (display-mode:standalone),(display-mode:fullscreen){
 html body #navbar{padding-top:env(safe-area-inset-top)}
 html body #footer{padding-bottom:calc(env(safe-area-inset-bottom) + 12px)}
 html,body,#ui-layer{overscroll-behavior-y:contain}
}

/* ---- 7) Digital twin labels stay readable ---- */
.dtx .dtx-n{font-size:max(12px,.75rem)}

/* ---- 8) Hero + launcher fit the first screen ---- */
html body #mainContent #section-hero.hero-section>.slider-container,html body #mainContent #section-hero.hero-section>.slider-container .slide{height:clamp(250px,40svh,420px)!important;min-height:0!important}
html body #mainContent #section-hero.hero-section>.slider-container .slide{padding:clamp(10px,1.6vw,28px)!important}
html body #mainContent #section-hero.hero-section .slide-content{padding:clamp(6px,1vw,16px) clamp(14px,3vw,48px) clamp(30px,3.4vw,48px)!important;margin-inline:auto!important;max-width:min(860px,100%)}
html body #mainContent #section-hero.hero-section .slide-content h1{font-size:clamp(26px,3.4vw + 6px,60px)!important;line-height:1.15!important;margin:0 0 clamp(6px,1vw,14px)!important}
html body #mainContent #section-hero.hero-section .slide-content p{font-size:clamp(14.5px,.9vw + 9px,23px)!important;line-height:1.5!important;max-width:60ch;margin:0 auto clamp(10px,1.4vw,20px)!important}
html body #mainContent #section-hero.hero-section .slide-content .btn-hero{padding:clamp(9px,1vw,14px) clamp(22px,3vw,38px)!important;font-size:clamp(15px,.5vw + 12px,19px)!important}
@media (max-width:520px){html body #mainContent #section-hero.hero-section>.slider-container,html body #mainContent #section-hero.hero-section>.slider-container .slide{height:clamp(220px,32svh,290px)!important}.pbl-head p{display:none}}

/* ---- 9) Hero grows to hold the launcher (no clipping, no wave over tiles) ---- */
html body #mainContent #section-hero.hero-section.pb-has-launcher{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding-bottom:clamp(12px,2vw,24px)!important}
html body #mainContent #section-hero.hero-section.pb-has-launcher::after{display:none!important}
html body #mainContent #section-hero.hero-section.pb-has-launcher>.slider-container{border-radius:clamp(18px,2.5vw,30px);overflow:hidden}

/* ===== شريط العلوي: تدرّج بحري جذّاب ===== */
html body #navbar{background:linear-gradient(115deg,#0891b2 0%,#0e72bd 48%,#2a52c9 100%)!important;border:0!important;border-bottom:3px solid #ff9a5c!important;box-shadow:0 8px 24px rgba(14,90,160,.28)!important;position:relative;overflow:visible}
html body #navbar::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.5;background:radial-gradient(circle at 12% 0%,rgba(255,255,255,.35),transparent 42%),radial-gradient(circle at 90% 110%,rgba(255,255,255,.22),transparent 40%)}
html body #navbar .nav-inner{position:relative;background:transparent!important}
html body #navbar .nav-brand{color:#fff!important;text-shadow:0 1px 6px rgba(0,40,80,.35)}
html body #navbar .nav-hamburger{background:rgba(255,255,255,.22)!important;color:#fff!important;border:1.5px solid rgba(255,255,255,.55)!important;box-shadow:0 2px 8px rgba(0,40,80,.18)}
html body #navbar .nav-hamburger:hover,html body #navbar .nav-hamburger:focus-visible{background:rgba(255,255,255,.34)!important}
html body #navbar #navLinks .nav-drop-btn:hover,html body #navbar #navLinks .nav-link-single:hover{background:rgba(255,255,255,.2)!important}

/* ===== السلايد: منع تداخل النقاط والأسهم مع الزر والنص ===== */
html body #mainContent #section-hero .slide{padding-block:26px 76px!important;box-sizing:border-box!important}
html body #mainContent #section-hero .slider-dots{bottom:20px!important;height:14px;align-items:center;z-index:6!important}
html body #mainContent #section-hero .slider-container{min-height:min(440px,78svh)!important}
@media(max-width:700px){html body #mainContent #section-hero .slider-nav{top:auto!important;bottom:8px!important;transform:none!important;z-index:7!important}}
@media(max-width:480px){html body #mainContent #section-hero .slide{padding-inline:28px!important}html body #mainContent #section-hero .slider-container{height:auto!important;min-height:370px!important}}
