/* Saudi e-invoicing (v3 preview): the ZATCA wave checker (/tools/zatca-readiness, templates/website/zatca_macros.html)
   and the landing /sa/e-invoicing, on the «next» system + pg-guides.css (calculator frame, inputs, segments, result
   panel, tables). Every rule carries .nx + a class (.zr-*, .ze-*). Light (default) + dark; RTL + LTR; balanced rows;
   phones (<640) centred; no sideways scroll at 360 px; tap targets ≥ 40 px. */

.nx .zr-calc [hidden],.nx .ze [hidden]{display:none!important}
.nx .zr-years{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.nx .zr-hint{display:flex;gap:8px;align-items:flex-start;margin:0;font-size:var(--fs-xs);line-height:1.7;color:var(--ink-4)}
.nx .zr-hint .i{width:15px;height:15px;flex:none;margin-top:.25em;color:var(--em-text)}
.nx .zr-res{justify-content:flex-start}
.nx .zr-res__badge{display:inline-flex;align-self:flex-start;align-items:baseline;gap:8px;margin:0;padding:6px 16px;border-radius:999px;font-weight:600;color:#fff;background:linear-gradient(145deg,#16876A,#0B6B51);box-shadow:0 10px 22px -12px rgb(9 79 60/.7)}
.nx .zr-res__badge bdi{font-family:var(--f-display);font-size:1.5rem;line-height:1.1}
.nx .zr-res[data-status="passed"] .zr-res__badge{background:linear-gradient(145deg,#EBC572,#B3841E);color:#2A1E05}
.nx .zr-res__t{margin:0;font-family:var(--f-display);font-weight:600;font-size:clamp(1.25rem,1.05rem + .8vw,1.6rem);line-height:1.5;color:var(--r-v);text-wrap:balance}
.nx .zr-res__x,.nx .zr-res__r{margin:0;line-height:1.9;color:var(--r-t)}
.nx .zr-res__r{padding:10px 12px;border-radius:12px;font-size:var(--fs-sm);background:var(--r-box)}
.nx .zr-res__acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
.nx .zr-res__acts .btn{min-height:46px}
.nx .zr-res[data-status="below"] .zr-res__t,.nx .zr-res[data-status="not_registered"] .zr-res__t{color:var(--r-big)}
.nx .zr-head{margin-bottom:clamp(16px,2.4vw,26px)}
.nx .zr-head .nx-h2{margin:0}
.nx .zr-tbl{max-width:1040px;margin-inline:auto}
.nx .zr-tbl table{min-width:640px}
.nx .zr-tbl td a{color:var(--em-text);font-weight:500;text-underline-offset:.3em}
.nx .zr-tag{display:inline-block;margin-inline-start:4px;padding:1px 9px;border-radius:999px;font-size:.75rem;font-weight:600;color:var(--ink-3);background:var(--gd-soft)}
.nx .zr-tag--on{color:#fff;background:linear-gradient(145deg,#16876A,#0B6B51)}
.nx .zr-src{display:flex;gap:8px;align-items:flex-start;max-width:1040px;margin:14px auto 0;font-size:var(--fs-sm);line-height:1.8;color:var(--ink-3)}
.nx .zr-src .i{width:16px;height:16px;flex:none;margin-top:.3em;color:var(--em-text)}
.nx .zr-src a{color:var(--em-text);font-weight:500}

/* ------------------------------------------------------------------ landing /sa/e-invoicing */
.nx .ze-sec{padding-block:clamp(22px,3.6vw,48px)}
.nx .ze-head{margin-bottom:clamp(18px,2.6vw,30px)}
.nx .ze-head .nx-h2{margin:0}
.nx .ze-head .nx-kick{margin-bottom:12px}
.nx .ze-hero__in{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(22px,4vw,48px);align-items:stretch;min-width:0}
.nx .ze-hero__copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0;text-align:start}
.nx .ze-crumbs ol{justify-content:flex-start}
.nx .ze-h1{margin:0;max-width:18ch;font-size:clamp(1.95rem,1.25rem + 2.5vw,3.3rem);line-height:1.28;text-wrap:balance}
.nx .ze-lead{margin:14px 0 0;max-width:54ch;line-height:1.85}
.nx .ze-chips{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0;padding:0;list-style:none}
.nx .ze-chips li{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:6px 14px;border-radius:999px;font-weight:600;font-size:var(--fs-sm);color:var(--ink-2);background:var(--gd-soft);border:1px solid rgb(14 122 92/.14)}
.nx .ze-chips .i{width:16px;height:16px;flex:none;color:var(--em-text)}
.nx .ze-chips li.ze-chip--gold{background:rgb(224 165 38/.14);border-color:rgb(224 165 38/.3)}
.nx .ze-ctas{margin-top:22px}
/* the invoice mock-up (light glass in light mode) */
.nx .ze-mock{display:flex;flex-direction:column;justify-content:center;gap:14px;min-width:0;padding:clamp(18px,2.4vw,26px);border-radius:28px;
	background:radial-gradient(120% 80% at 10% 0%,rgb(57 146 121/.16),transparent 60%),radial-gradient(90% 70% at 100% 100%,rgb(224 165 38/.18),transparent 60%),var(--gd-bg) padding-box,var(--gd-bd) border-box}
.nx .ze-inv{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 16px;align-items:center;padding:16px 18px;border-radius:20px;background:var(--m-bg,#fff);border:1px solid var(--line);box-shadow:0 18px 40px -26px rgb(14 27 44/.45)}
.nx .ze-inv__k{margin:0;font-size:var(--fs-xs);font-weight:600;color:var(--ink-4)}
.nx .ze-inv__t{margin:2px 0 0;font-family:var(--f-display);font-weight:600;font-size:1.1rem;color:var(--ink)}
.nx .ze-inv__amt{margin:6px 0 0;font-weight:700;font-size:1.25rem;font-variant-numeric:tabular-nums;color:var(--ink)}
.nx .ze-inv__amt small{font-size:.7em;font-weight:500;color:var(--ink-3)}
.nx .ze-inv .qr{width:84px;height:84px;padding:4px;border-radius:12px;background:#fff;fill:#0E1B2C;border:1px solid rgb(14 27 44/.12)}
.nx .ze-flow{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.nx .ze-flow li{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;border-radius:14px;font-weight:600;font-size:var(--fs-sm);color:var(--ink-2);background:rgb(255 255 255/.6);border:1px solid var(--line)}
:root[data-theme="dark"] .nx .ze-flow li{background:rgb(255 255 255/.04)}
.nx .ze-flow__n{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:9px;color:#fff;background:linear-gradient(145deg,#16876A,#0B6B51)}
.nx .ze-flow__n .i{width:15px;height:15px}
.nx .ze-flow li:last-child .ze-flow__n{background:linear-gradient(145deg,#EBC572,#B3841E)}
.nx .ze-mock__cap{margin:0;font-size:var(--fs-xs);color:var(--ink-4);text-align:center}
/* requirement cards (3 + 2: odd last spans) */
.nx .ze-reqs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0;padding:0;list-style:none;align-items:stretch}
.nx .ze-reqs>li:last-child:nth-child(odd){grid-column:1/-1}
.nx .ze-req{display:flex;gap:14px;align-items:flex-start;min-width:0;padding:20px 22px;border-radius:22px;text-align:start}
.nx .ze-req h3{margin:0 0 6px;font-family:var(--f-display);font-weight:600;font-size:1.1rem;line-height:1.5;color:var(--ink)}
.nx .ze-req p{margin:0;line-height:1.85;color:var(--ink-3)}
.nx .ze-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 22px;margin-top:18px}
/* how Ehsebly does it: steps | features */
.nx .ze-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 clamp(18px,2.6vw,28px);padding:0;list-style:none;counter-reset:ze;align-items:stretch}
.nx .ze-step{position:relative;min-width:0;padding:20px 20px 18px;border-radius:22px;counter-increment:ze;text-align:start}
.nx .ze-step::before{content:counter(ze);display:grid;place-items:center;width:34px;height:34px;margin-bottom:10px;border-radius:11px;font-weight:700;color:#fff;background:linear-gradient(145deg,#16876A,#0B6B51);box-shadow:0 10px 20px -10px rgb(9 79 60/.6)}
.nx .ze-step h3{margin:0 0 6px;font-family:var(--f-display);font-weight:600;font-size:1.05rem;line-height:1.5;color:var(--ink)}
.nx .ze-step p{margin:0;font-size:.95rem;line-height:1.8;color:var(--ink-3)}
.nx .ze-feats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0;padding:0;list-style:none;align-items:stretch}
.nx .ze-feats>li:last-child:nth-child(3n+1){grid-column:1/-1}
.nx .ze-feat{display:flex;gap:12px;align-items:flex-start;min-width:0;padding:18px 20px;border-radius:22px;text-align:start}
.nx .ze-feat h3{margin:0 0 4px;font-weight:600;font-size:1.02rem;line-height:1.55;color:var(--ink)}
.nx .ze-feat p{margin:0;font-size:.95rem;line-height:1.8;color:var(--ink-3)}
.nx .ze-feat .gd-ico{width:40px;height:40px;border-radius:12px}
.nx .ze-feat .gd-ico .i,.nx .ze-feat .gd-ico .bi{width:20px;height:20px}

@media (max-width:1023px){
	.nx .ze-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
	.nx .ze-feats{grid-template-columns:repeat(2,minmax(0,1fr))}
	.nx .ze-feats>li:last-child:nth-child(3n+1){grid-column:auto}
	.nx .ze-feats>li:last-child:nth-child(odd){grid-column:1/-1}
}
@media (max-width:899px){
	.nx .ze-hero__in{grid-template-columns:minmax(0,1fr)}
	.nx .ze-hero__copy{align-items:center;text-align:center}
	.nx .ze-crumbs ol,.nx .ze-chips,.nx .ze-ctas{justify-content:center}
	.nx .ze-lead{margin-inline:auto}
}
@media (max-width:639px){
	.nx .zr-years{grid-template-columns:repeat(2,minmax(0,1fr))}
	.nx .zr-res__badge{align-self:center}
	.nx .zr-res{text-align:center}
	.nx .zr-res__acts{justify-content:center}
	.nx .zr-res__acts .btn{width:100%;justify-content:center}
	.nx .zr-src{text-align:start}
	.nx .ze-reqs,.nx .ze-steps,.nx .ze-feats{grid-template-columns:minmax(0,1fr)}
	.nx .ze-reqs>li:last-child:nth-child(odd),.nx .ze-feats>li:last-child:nth-child(odd){grid-column:auto}
	.nx .ze-req,.nx .ze-feat{flex-direction:column;align-items:center;text-align:center}
	.nx .ze-step{text-align:center}
	.nx .ze-step::before{margin-inline:auto}
	.nx .ze-ctas{flex-direction:column;align-items:stretch;width:100%}
	.nx .ze-ctas .btn,.nx .ze-ctas .nx-tlink{justify-content:center}
	.nx .ze-inv .qr{width:72px;height:72px}
}
:root[data-theme="dark"] .nx .ze-mock{background:radial-gradient(120% 80% at 10% 0%,rgb(57 146 121/.3),transparent 60%),radial-gradient(90% 70% at 100% 100%,rgb(224 165 38/.14),transparent 60%),var(--gd-bg) padding-box,var(--gd-bd) border-box}
:root[data-theme="dark"] .nx .ze-inv{background:rgb(255 255 255/.05)}
:root[data-theme="dark"] .nx .ze-chips li{border-color:rgb(127 216 184/.18)}
:root[data-theme="dark"] .nx .ze-chips li.ze-chip--gold{background:rgb(235 197 114/.1);border-color:rgb(235 197 114/.25)}
:root[data-theme="dark"] .nx .zr-res[data-status="passed"] .zr-res__badge{color:#2A1E05}
