/* =====================================================================================================
   "Rigging yard" theme — loaded after styles.css. Screen only: certificates, ID cards and every printout
   keep their current look. Only overrides colours, fonts and shapes; no layout or content changes.
   Shapes: steel plates with cut corners, rigging tags with a punched hole hanging from a lifting beam,
   hex-nut numbers and the crane-hook curve of the Dayim "D". Remove the <link> in index.html to undo.
   Dayim brand: navy PANTONE 2757C #0A1A5C, orange PANTONE 165C #F37021; web font Montserrat.
   ===================================================================================================== */
@media screen {

:root{
  --navy:#0A1A5C; --navy2:#1E2E78; --orange:#F37021; --orange2:#FF9A57; --orange-ink:#A8460C;
  --steel:#24357E; --cut:16px; --cut-s:8px;
  --hazard:repeating-linear-gradient(135deg,var(--orange) 0 10px,var(--navy) 10px 20px);
  --grid:rgba(10,26,92,.04); --muted:#55657C;
  --hex:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
  --plate:polygon(0 0,calc(100% - var(--cut)) 0,100% var(--cut),100% 100%,0 100%);
  --tag:polygon(var(--cut) 0,calc(100% - var(--cut)) 0,100% var(--cut),100% 100%,0 100%,0 var(--cut));
  --bevel:polygon(var(--cut-s) 0,100% 0,100% calc(100% - var(--cut-s)),calc(100% - var(--cut-s)) 100%,0 100%,0 var(--cut-s));
}

/* ---- type: Montserrat (brand web font); Tajawal for Arabic ---- */
html,body{font-family:Montserrat,Lato,system-ui,sans-serif}
h1,h2,h3,.btn,.eyebrow,.tabs button,.stat b,.tile b,.satbig b,.result .big,.door .go,.hc-go,.access b,.goals li b,.bro-cover h1,.bro-sec h2,.cert2 h2{font-family:Montserrat,Urbanist,sans-serif}
h1{font-weight:900;letter-spacing:-.02em}
[dir=rtl],[dir=rtl] h1,[dir=rtl] h2,[dir=rtl] h3,[dir=rtl] .btn,[dir=rtl] .eyebrow,:lang(ar){font-family:Tajawal,Montserrat,sans-serif;letter-spacing:0}

/* ---- readable brand orange: orange text on white is too light, so text uses the deep orange ---- */
a{color:var(--orange-ink)} a:hover{color:#7E3409}
.link{color:var(--orange-ink)}
.eyebrow{color:var(--orange-ink)}
.hero .eyebrow,.auth-hero .eyebrow,.bro-cover .eyebrow,.bro-contact .eyebrow{color:#FFB27F}

/* ---- header: hazard line stays; nav pills become bevelled plates ---- */
.topbar{border-bottom:0}
nav a{border-radius:0;clip-path:var(--bevel)}
nav a.on{background:var(--navy);color:#fff}
nav a:focus-visible{clip-path:none}

/* ---- buttons: cut-corner steel plates; navy text on orange for contrast ---- */
.btn{border-radius:0;clip-path:var(--bevel);letter-spacing:.01em}
.btn.primary{background:var(--orange);color:var(--navy)}
.btn.primary:hover{background:#FF8A3D;color:var(--navy)}
.btn.dark{background:var(--navy)} .btn.dark:hover{background:var(--navy2)}
.btn.ghost{border-width:2px}
.btn:focus-visible{clip-path:none;outline:3px solid var(--orange);outline-offset:2px}
.who .bell b{color:var(--navy)}

/* ---- chips and small labels: little tags instead of pills ---- */
.chip,.hc-cat,.hc-mode,.course .cat,.bro-ed{border-radius:0;clip-path:polygon(6px 0,100% 0,100% 100%,0 100%,0 6px)}
.langs button,.tabs button,.tabs{border-radius:0}
.langs button{clip-path:var(--bevel)}
.tabs button.on{box-shadow:inset 0 -3px 0 var(--orange)}

/* ---- inputs: square, steel edge ---- */
input,select,textarea{border-radius:0}
input:focus,select:focus,textarea:focus{border-color:var(--navy);outline:2px solid var(--orange);outline-offset:0}
.opt,.modlist .mod,.alert,.drop .pv{border-radius:0}
dialog{border-radius:0;border-top:6px solid var(--orange)}

/* ---- plain cards and panels: sharp steel (no clipping, so menus inside still show) ---- */
.card,.tablewrap,.brochure{border-radius:2px}
.card.panel{border-top:3px solid var(--navy)}

/* ---- display cards: steel plates with one cut corner ---- */
.pillar,.door,.tile,.stat,.satbig,.access .card,.quotes figure,.profcard,.result,.goals li,.card.course{border-radius:0;clip-path:var(--plate)}
.access .card{border-top:5px solid var(--orange)}
.tile,.stat{border:0;box-shadow:inset 0 0 0 1px var(--line)}
.card.course:hover{box-shadow:none}

/* ---- hex-nut numbers and icons ---- */
.goals li:before,.steps .dot,.modlist .mn,.pillar .ic{border-radius:0;clip-path:var(--hex)}
.goals li:before{width:30px;height:34px;top:16px;background:var(--navy)}
.goals li:nth-child(odd):before{background:var(--orange);color:var(--navy)}
.pillar .ic{width:48px;height:55px;background:var(--navy);color:#fff}
.pillar:nth-child(2) .ic{background:var(--orange);color:var(--navy)}
.steps .dot{width:30px;height:34px}

/* ---- home hero: crane-hook curve, orange ring instead of the diamond ---- */
.hero{border-radius:0 0 0 180px}
.hero:after,.hero.live:after{width:420px;height:420px;right:-150px;top:-150px;background:transparent;border:64px solid rgba(243,112,33,.22);border-radius:50%;transform:none;opacity:1;animation:none}
.auth-hero{border-bottom-left-radius:180px}
.auth-hero:after{background:transparent;border:56px solid rgba(243,112,33,.25);border-radius:50%;transform:none}

/* ---- the two "doors": rigging tags with a punched hole ---- */
.door{position:relative;border-radius:0;clip-path:var(--tag);padding-top:34px}
.door:before{content:"";position:absolute;left:50%;top:11px;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:var(--navy)}
.door .go,.hc-go{color:var(--orange-ink)}
.door:nth-child(2){background:var(--orange)}
.hero .door .eyebrow{color:var(--orange-ink)}
.door:nth-child(2) p,.hero .door:nth-child(2) .eyebrow,.door:nth-child(2) .go{color:var(--navy)}
/* orange words on light backgrounds in the Dayim story use the readable deep orange */
.st-tag,.st-lead b{color:var(--orange-ink)}

/* ---- course cards on the home page: tags hanging from a lifting beam ---- */
.hc-grid{position:relative;padding-top:30px;border-top:10px solid var(--navy);box-shadow:inset 0 3px 0 var(--orange)}
.hcard{position:relative;border-radius:0;clip-path:var(--tag);border:0}
.hcard:hover{box-shadow:none}
.hc-top:before{content:"";position:absolute;left:50%;top:10px;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:var(--bg);box-shadow:inset 0 0 0 3px var(--orange);z-index:2}
.hc-top{padding-top:32px}
.hc-top::after{background:var(--orange)}

/* ---- in-page tabs: orange load line ---- */
.subnav a.on,.subtabs a.on{border-bottom-color:var(--orange)}

/* ---- footer: navy band with the hook curve and the hazard line ---- */
.foot{background:var(--navy);color:#C9CFE3;border-top-right-radius:120px;margin-top:40px;padding:32px 24px 36px;position:relative}
.foot a{color:#FFB27F}
.foot:after{content:"";position:absolute;left:0;right:0;bottom:0;height:6px;background:var(--hazard)}
[dir=rtl].foot{border-top-right-radius:0;border-top-left-radius:120px}
[dir=rtl] .hero,[dir=rtl].hero{border-radius:0 0 180px 0}

@media (max-width:760px){
  .hero{border-radius:0 0 0 90px}
  .auth-hero{border-bottom-left-radius:90px}
  .foot{border-top-right-radius:60px}
  .hero:after,.hero.live:after{width:220px;height:220px;right:-90px;top:-90px;border-width:36px}
}
@media (prefers-reduced-motion:reduce){.hcard,.door{transition:none}}
}

/* readable orange accents on light backgrounds (story words, star ratings, "Open ›" links, unpinned star) */
@media screen {
section.story .st-lead p b,section.story .st-close p span,section.story .st-tag{color:var(--orange-ink)}
.stars-ro{color:#B57800}
.go{color:var(--orange-ink)}
.pinbtn{color:#7A8499}
.ib.go,.ib.go:hover{color:var(--navy)}
}

/* Dayim story timeline: in Arabic the line sits on the right, under the dots */
[dir=rtl] .st-line:before{left:auto;right:118px}
@media (max-width:720px){[dir=rtl] .st-line:before{left:auto;right:9px}[dir=rtl] .st-year{text-align:right}}
