/* Home v6 - the hero.
   Tokens come from najdeah-home-v6.css (.nv6). Everything is placed with
   logical properties, so the whole section mirrors into Arabic on its own. */

/* ---------------------------------------------------------- the samples --- */
/* The point of these is that they look like the file, not like a graphic:
   hairline rules, tabular figures, one accent colour used once. */

.njd-sm-svg{width:100%;height:auto;color:#2A3446;display:block}
/* the labels are Latin strings inside an Arabic document: without isolation the
   bidi algorithm reorders "2 500 kVA" into "kVA 500 2" */
.njd-sm-svg text{direction:ltr;unicode-bidi:isolate}

.njd-sm-xls{font-size:12.5px;font-variant-numeric:tabular-nums;color:#2A3446}
.njd-sm-xls .rw{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;
 padding:9px 12px;border-bottom:1px solid #EDEFF3;font-weight:600}
.njd-sm-xls .rw:nth-child(even){background:#FAFAFB}
.njd-sm-xls .hd{background:#F3F4F6;font-size:10.5px;font-weight:800;letter-spacing:.1em;
 text-transform:uppercase;color:#6B7280;border-bottom:1.5px solid #E4E6EB}
.njd-sm-xls .n{text-align:end;direction:ltr;unicode-bidi:isolate}
.njd-sm-xls .rw span:nth-child(2){direction:ltr;unicode-bidi:isolate}
.njd-sm-xls .rw:not(.hd) .hi{color:var(--or);font-weight:800}
.njd-sm-xls .tb{display:flex;gap:5px;padding:10px 12px 0}
.njd-sm-xls .tb i{font-style:normal;font-size:10.5px;font-weight:700;color:#8A9099;
 background:#F1F2F4;border-radius:6px 6px 0 0;padding:7px 11px}
.njd-sm-xls .tb i.on{background:var(--or);color:#fff}

.njd-sm-doc{color:#2A3446}
.njd-sm-doc b{display:block;font-size:14px;font-weight:800;letter-spacing:-.02em;margin:0 0 12px}
.njd-sm-doc b~b{margin-top:20px}
.njd-sm-doc i{display:block;height:8px;border-radius:5px;background:#E9EBEF;margin-bottom:9px}
.njd-sm-doc i.l{width:100%}.njd-sm-doc i.m{width:76%}.njd-sm-doc i.s{width:54%}
.njd-sm-doc .sg{display:flex;gap:18px;margin-top:22px}
.njd-sm-doc .sg span{flex:1}
.njd-sm-doc .sg i{margin-bottom:8px}
.njd-sm-doc .sg em{font-style:normal;display:block;border-top:1.5px solid #CFD4DC;padding-top:7px;
 font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#98A0AC}

/* ================================================================ hero ==== */

.nv6-h5{background:#fff;overflow:hidden;padding-bottom:58px}
/* a faint drawing grid that never shows an edge: it is masked away long before
   it reaches one, so the section still reads as plain white */
.nv6-h5::before{content:"";position:absolute;inset:0 0 auto;height:460px;pointer-events:none;
 background-image:linear-gradient(rgba(15,17,21,.05) 1px,transparent 1px),
  linear-gradient(90deg,rgba(15,17,21,.05) 1px,transparent 1px);
 background-size:56px 56px;
 -webkit-mask-image:radial-gradient(58% 100% at 50% 0%,#000 0%,transparent 76%);
 mask-image:radial-gradient(58% 100% at 50% 0%,#000 0%,transparent 76%)}
/* and one very soft warm wash behind the headline, to stop the white going flat */
.nv6-h5::after{content:"";position:absolute;inset-block-start:-120px;inset-inline-start:50%;
 width:900px;height:520px;transform:translateX(-50%);pointer-events:none;
 background:radial-gradient(50% 50% at 50% 50%,rgba(255,90,31,.09) 0%,transparent 72%)}

.njd-h5c{position:relative;z-index:2;text-align:center;max-width:780px;margin:0 auto;padding:74px 0 0}
.njd-h5e{display:inline-flex;align-items:center;gap:9px;font-size:12.5px;font-weight:700;
 color:#5A6068;background:#fff;border:1px solid #E7E7EA;border-radius:999px;padding:7px 16px;
 box-shadow:0 2px 10px rgba(15,17,21,.05)}
.njd-h5e i{width:7px;height:7px;border-radius:50%;background:var(--or);
 box-shadow:0 0 0 4px rgba(255,90,31,.16)}
.nv6-h5 h1{font-size:clamp(38px,4.6vw,62px);font-weight:800;line-height:1.03;
 letter-spacing:-.045em;margin:24px 0 0;text-wrap:balance}
/* the second half of the line sits on a highlighter stroke rather than being
   recoloured - the headline stays one solid colour and still has a focus */
.nv6-h5 h1 .hl{position:relative;white-space:nowrap}
.nv6-h5 h1 .hl::after{content:"";position:absolute;inset-inline:-.06em;bottom:.11em;height:.30em;
 z-index:-1;border-radius:.14em;background:linear-gradient(90deg,rgba(255,90,31,.34),rgba(255,90,31,.18))}
.nv6-h5 .lede{font-size:17px;line-height:1.62;color:#5A6068;margin:22px auto 34px;max-width:590px}
.nv6-h5 .nv6-hb{justify-content:center}

/* the proof line: who bought it, how it scored, what it costs to start */
.njd-h5p{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;
 margin-top:30px;font-size:13.5px;color:#787E86}
.njd-h5p b{color:var(--ink);font-weight:800}
.njd-h5p .fc{display:flex}
.njd-h5p .fc i{width:30px;height:30px;border-radius:50%;border:2.5px solid #fff;
 margin-inline-start:-8px;font-style:normal;font-size:11px;font-weight:800;color:#fff;
 display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(15,17,21,.16)}
.njd-h5p .fc i:first-child{margin-inline-start:0}
.njd-h5p .tx b{margin-inline-end:3px}
.njd-h5p .rt{display:inline-flex;align-items:center;gap:7px}
.njd-h5p .rt .nv6-stars{display:inline-flex;gap:1px}
.njd-h5p .dv{width:1px;height:16px;background:#E4E4E7}

/* ------------------------------------------------------------- the cards -- */
.njd-h5s{position:relative;z-index:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:20px;margin-top:56px}
.njd-sm{display:flex;flex-direction:column;background:#fff;border:1px solid #E7E8EB;
 border-radius:16px;overflow:hidden;color:inherit;
 box-shadow:0 26px 50px -34px rgba(15,17,21,.3);
 transition:transform .22s,box-shadow .22s,border-color .22s}
.njd-sm:hover{transform:translateY(-4px);border-color:#D9DADE;
 box-shadow:0 40px 70px -34px rgba(15,17,21,.34)}
.njd-sm .hd{display:flex;align-items:center;justify-content:space-between;gap:12px;
 padding:15px 18px;border-bottom:1px solid #EEEFF2}
.njd-sm .hd b{font-size:13.5px;font-weight:700}
.njd-sm .hd i{font-style:normal;font-size:10.5px;font-weight:800;letter-spacing:.09em;
 color:var(--or);background:rgba(255,90,31,.1);border-radius:6px;padding:5px 9px}
/* cropped at a fixed height and faded at the cut, so it reads as "there is
   more in the file" rather than as a picture that happens to end */
.njd-sm .bd{display:block;height:206px;padding:20px 18px 0;overflow:hidden;
 -webkit-mask-image:linear-gradient(#000 62%,transparent 100%);
 mask-image:linear-gradient(#000 62%,transparent 100%);
 transition:mask-image .22s,-webkit-mask-image .22s}
.njd-sm:hover .bd{-webkit-mask-image:linear-gradient(#000 82%,transparent 100%);
 mask-image:linear-gradient(#000 82%,transparent 100%)}
.njd-sm.s-xls .bd{padding:0}
.njd-sm.s-cad .bd{display:grid;place-items:center;padding:14px}
.njd-sm .ft{display:flex;align-items:center;justify-content:space-between;gap:12px;
 margin-top:auto;padding:14px 18px;border-top:1px solid #F1F2F4;background:#FCFCFD}
.njd-sm .ft em{font-style:normal;font-size:12.5px;color:#7E848C}
.njd-sm .ft u{display:inline-flex;align-items:center;gap:6px;text-decoration:none;
 font-size:12.5px;font-weight:700;color:var(--or);white-space:nowrap}
.njd-sm:hover .ft u .nv6-ar,.njd-sm:hover .ft u svg{transform:translateX(3px)}
.njd-sm .ft u svg{transition:transform .18s}

@media (max-width:980px){
 .njd-h5s{grid-template-columns:repeat(2,minmax(0,1fr))}
 /* the third card is the one that adds least - it goes first on the way down */
 .njd-sm:nth-child(3){display:none}
}
@media (max-width:700px){
 .njd-h5c{padding-top:54px}
 .nv6-h5 h1{letter-spacing:-.04em}
 .nv6-h5 h1 .hl{white-space:normal}
 .nv6-h5 .lede{font-size:16px;margin-bottom:28px}
 .nv6-h5 .nv6-hb{flex-direction:column;align-items:stretch}
 .njd-h5p{gap:10px;font-size:12.5px;row-gap:8px}
 .njd-h5p .dv{display:none}
 .njd-h5s{grid-template-columns:1fr;gap:16px;margin-top:40px}
 .njd-sm .bd{height:186px}
}

/* Arabic sits lower in its line box than Latin does, so the same offset leaves
   the highlighter stroke floating under the word instead of crossing it */
.njd-ar .nv6-h5 h1 .hl::after{bottom:.34em;height:.24em}
