/* EJAD Document Verify — واجهة التحقق (تصميم رسمي) */
.edv{
  --p:var(--edv-p,#0F3D2E);
  --a:var(--edv-a,#A8834A);
  --p-deep:color-mix(in srgb,var(--p) 78%,#000);
  --p-soft:color-mix(in srgb,var(--p) 7%,#fff);
  --a-soft:color-mix(in srgb,var(--a) 14%,#fff);
  --paper:var(--edv-bg,#F2F4F3); --surface:#FFFFFF; --ink:var(--edv-ink,#16201C); --on-p:var(--edv-on-p,#fff); --muted:#5E6A66; --line:#D8DEDB; --line-2:#E8ECEA;
  --ok:#17693F; --ok-bg:#E7F2EC; --bad:#A6261B; --bad-bg:#FBEAE8;
  --warn:#8F5A09; --warn-bg:#FBF1DF; --none:#4B5652; --none-bg:#ECEFEE;
  text-align:start; color:var(--ink);
  font-family:var(--edv-font,"IBM Plex Sans Arabic"),"Segoe UI",Tahoma,Arial,sans-serif;
  font-size:16px; line-height:1.7; max-width:780px; margin:0 auto 48px;
}
.edv *,.edv *::before,.edv *::after{box-sizing:border-box}
.edv button,.edv input{font-family:inherit; letter-spacing:0; text-transform:none}
.edv :focus-visible{outline:3px solid var(--a); outline-offset:2px}
.edv svg{display:inline-block; vertical-align:middle}
.edv [hidden]{display:none !important}

/* الترويسة */
.edv .edv-masthead{position:relative; overflow:hidden; background:var(--p); color:var(--on-p); border-radius:8px 8px 0 0; padding:30px 32px 34px}
.edv .edv-guilloche{position:absolute; left:-170px; top:50%; transform:translateY(-50%); width:540px; height:540px; pointer-events:none}
.edv .edv-guilloche .g-l{stroke:var(--on-p); stroke-opacity:.13; stroke-width:.6}
.edv .edv-guilloche .g-a{stroke:var(--a); stroke-width:.9; opacity:.75}
.edv .edv-inner{position:relative}
.edv .edv-org{display:flex; align-items:center; gap:12px}
.edv .edv-emblem{width:44px; height:44px; border-radius:50%; display:grid; place-items:center; color:var(--a); border:1.5px solid var(--a); background:rgba(255,255,255,.04)}
.edv .edv-emblem svg{width:24px; height:24px}
.edv .edv-org strong{display:block; font-size:16px; font-weight:600; line-height:1.3}
.edv .edv-org small{display:block; font-size:13px; opacity:.72}
.edv .edv-title{margin:26px 0 6px; padding:0; border:0; font-family:inherit; font-size:clamp(26px,5vw,38px); line-height:1.3; font-weight:600; color:var(--on-p)}
.edv .edv-subtitle{margin:0; max-width:48ch; color:var(--on-p); opacity:.8; font-size:15.5px}

/* شريط الطباعة الدقيقة */
.edv .edv-micro{height:20px; overflow:hidden; white-space:nowrap; background:var(--a); color:color-mix(in srgb,var(--p) 70%,#000); font-size:9px; line-height:20px; letter-spacing:.04em; border-radius:0 0 2px 2px; user-select:none; opacity:.95}

/* البطاقات */
.edv .edv-main{margin-top:20px}
.edv .edv-card{background:var(--surface); border:1px solid var(--line); border-radius:8px}
.edv .edv-scan{padding:22px 22px 20px; border-top:3px solid var(--p)}

.edv .edv-tabs{display:flex; gap:4px; border-bottom:1px solid var(--line); margin:-4px 0 20px}
.edv .edv-tab{flex:1; border:0; border-bottom:2px solid transparent; margin:0 0 -1px; background:transparent; box-shadow:none; padding:10px 8px 12px; border-radius:0; cursor:pointer; font-weight:500; font-size:15px; color:var(--muted); display:flex; align-items:center; justify-content:center; gap:8px; line-height:1.4}
.edv .edv-tab:hover{background:transparent; color:var(--ink)}
.edv .edv-tab[aria-selected="true"]{color:var(--p); border-bottom-color:var(--p); font-weight:600; background:transparent}
.edv .edv-tab svg{width:18px; height:18px}

.edv .edv-viewport{position:relative; aspect-ratio:3/2; border-radius:6px; overflow:hidden; background:var(--p-deep); display:grid; place-items:center}
.edv #edv-reader{position:absolute; inset:0; border:0 !important}
.edv #edv-reader video{width:100% !important; height:100% !important; object-fit:cover}
.edv .edv-idle{position:relative; z-index:1; text-align:center; color:rgba(255,255,255,.8); padding:20px}
.edv .edv-idle svg{width:52px; height:52px; color:var(--a); margin-bottom:8px}
.edv .edv-idle p{margin:0 0 16px; font-size:15px; color:rgba(255,255,255,.8)}
.edv .edv-idle .edv-btn-gold{background:var(--a); color:#fff}
.edv .edv-idle .edv-btn-gold:hover{background:color-mix(in srgb,var(--a) 88%,#000)}
.edv .edv-corners{position:absolute; inset:18% 12%; pointer-events:none; z-index:2}
.edv .edv-corners i{position:absolute; width:24px; height:24px; border:2.5px solid var(--a)}
.edv .edv-corners i:nth-child(1){top:0; right:0; border-left:0; border-bottom:0}
.edv .edv-corners i:nth-child(2){top:0; left:0; border-right:0; border-bottom:0}
.edv .edv-corners i:nth-child(3){bottom:0; right:0; border-left:0; border-top:0}
.edv .edv-corners i:nth-child(4){bottom:0; left:0; border-right:0; border-top:0}
.edv .edv-viewport:not(.is-live) .edv-corners{display:none}

.edv .edv-btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; border-radius:6px; padding:11px 20px; margin:0; cursor:pointer; font-weight:500; font-size:15px; line-height:1.4; text-decoration:none; box-shadow:none; min-height:0; width:auto; transition:background .15s}
.edv .edv-btn-gold{background:var(--p); color:#fff}
.edv .edv-btn-gold:hover,.edv .edv-btn-gold:focus{background:var(--p-deep); color:#fff}
.edv .edv-btn-gold:disabled{opacity:.55; cursor:not-allowed}
.edv .edv-btn-ghost{background:var(--surface); border:1px solid var(--line); color:var(--ink)}
.edv .edv-btn-ghost:hover,.edv .edv-btn-ghost:focus{background:var(--paper); color:var(--ink)}
.edv .edv-btn-sm{padding:7px 12px; font-size:14px}
.edv .edv-block{width:100%; padding:12px}
.edv .edv-row{display:flex; gap:10px; justify-content:space-between; align-items:center; margin-top:12px; flex-wrap:wrap}
.edv .edv-hint{font-size:14px; color:var(--muted); margin:0}

.edv .edv-drop{position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:6px; border:1.5px dashed var(--line); border-radius:6px; padding:38px 16px; cursor:pointer; background:var(--paper); transition:border-color .15s,background .15s}
.edv .edv-drop:hover,.edv .edv-drop.is-over{border-color:var(--p); background:var(--p-soft)}
.edv .edv-drop svg{width:38px; height:38px; color:var(--p)}
.edv .edv-drop strong{font-weight:500}
.edv .edv-drop input{position:absolute; width:1px; height:1px; opacity:0; pointer-events:none}

.edv .edv-manual label{display:block; font-weight:500; margin-bottom:8px}
.edv .edv-field{display:flex; gap:8px; margin-bottom:8px}
.edv .edv-field input,.edv .edv-inp{flex:1; min-width:0; width:100%; border:1px solid var(--line); background:var(--surface); color:var(--ink); border-radius:6px; padding:11px 14px; margin:0; font-size:16px; line-height:1.4; box-shadow:none; height:auto}
.edv .edv-field input{font-size:18px; direction:ltr; text-align:left; font-variant-numeric:tabular-nums; letter-spacing:.03em}
.edv .edv-field input:focus,.edv .edv-inp:focus{outline:none; border-color:var(--p); box-shadow:0 0 0 3px var(--p-soft)}
.edv .edv-ltr{direction:ltr; text-align:left}
.edv .edv-notice{margin-top:12px; padding:10px 14px; border-radius:6px; font-size:14px; background:var(--bad-bg); color:var(--bad); border-inline-start:3px solid var(--bad)}

/* النتيجة: شكل شهادة رسمية */
.edv .edv-result{margin-top:20px; overflow:hidden; border-top:0}
.edv .edv-result-head{display:grid; grid-template-columns:auto 1fr; gap:18px; align-items:center; padding:20px 24px; background:var(--st-bg); border-top:4px solid var(--st); border-bottom:1px solid var(--line)}
.edv .edv-seal{width:80px; height:80px; border-radius:50%; display:grid; place-items:center; position:relative; color:var(--st); border:2.5px solid currentColor; background:var(--surface)}
.edv .edv-seal::before{content:""; position:absolute; inset:5px; border-radius:50%; border:1px dashed currentColor; opacity:.55}
.edv .edv-seal svg{width:36px; height:36px}
.edv .edv-result.is-stamp .edv-seal{animation:edv-stamp .45s cubic-bezier(.2,1.4,.4,1) both}
@keyframes edv-stamp{from{transform:scale(1.5) rotate(-10deg); opacity:0}to{transform:scale(1) rotate(0); opacity:1}}
.edv .edv-state-label{margin:0; font-size:clamp(21px,4vw,26px); font-weight:600; color:var(--st); line-height:1.35}
.edv .edv-state-note{margin:4px 0 0; color:var(--muted); font-size:15px}

.edv .edv-docno{position:relative; margin:22px 24px 6px; padding:18px 20px; border:1px solid var(--a); outline:1px solid var(--a); outline-offset:3px; border-radius:2px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; background:var(--a-soft)}
.edv .edv-docno small{display:block; color:var(--muted); font-size:13px}
.edv .edv-num{direction:ltr; unicode-bidi:isolate; font-size:clamp(22px,4.4vw,30px); font-weight:600; font-variant-numeric:tabular-nums; letter-spacing:.04em; word-break:break-all; color:var(--ink)}
.edv .edv-corner{display:none}

.edv .edv-details{margin:14px 24px 6px; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border:1px solid var(--line-2); border-radius:6px; overflow:hidden}
.edv .edv-details div{padding:12px 16px; border-bottom:1px solid var(--line-2); border-inline-start:1px solid var(--line-2); margin-inline-start:-1px}
.edv .edv-details dt{color:var(--muted); font-size:13px; font-weight:400; margin:0}
.edv .edv-details dd{margin:2px 0 0; font-weight:500; font-size:15.5px}

.edv .edv-original{display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; margin:14px 24px 22px; padding:14px 16px; border:1px solid var(--line); border-inline-start:3px solid var(--p); border-radius:6px; background:var(--p-soft)}
.edv .edv-original-txt{display:flex; gap:12px; align-items:center}
.edv .edv-original-txt svg{width:24px; height:24px; color:var(--p); flex:none}
.edv .edv-original strong{display:block; font-size:15px; font-weight:600}
.edv .edv-original-txt span{font-size:14px; color:var(--muted)}
.edv .edv-original-err{flex-basis:100%; margin:0; padding:8px 12px; border-radius:6px; font-size:14px; background:var(--bad-bg); color:var(--bad)}
.edv .edv-result-foot{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:14px 24px 16px; background:var(--paper); border-top:1px solid var(--line); font-size:13.5px; color:var(--muted)}
.edv .edv-foot-actions{display:flex; gap:8px; flex-wrap:wrap}

.edv .s-valid{--st:var(--ok); --st-bg:var(--ok-bg)}
.edv .s-invalid{--st:var(--bad); --st-bg:var(--bad-bg)}
.edv .s-expired{--st:var(--warn); --st-bg:var(--warn-bg)}
.edv .s-tampered{--st:var(--bad); --st-bg:var(--bad-bg)}
.edv .s-notfound{--st:var(--none); --st-bg:var(--none-bg)}

/* النوافذ */
.edv .edv-dialog{border:0; padding:0; margin:auto; border-radius:8px; background:var(--surface); color:var(--ink); box-shadow:0 30px 80px -20px rgba(0,0,0,.55); max-width:calc(100vw - 24px); max-height:calc(100vh - 24px); border-top:4px solid var(--p)}
.edv .edv-dialog::backdrop{background:color-mix(in srgb,var(--p-deep) 70%,transparent); backdrop-filter:blur(3px)}
.edv .edv-dlg-head{display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px 20px; border-bottom:1px solid var(--line)}
.edv .edv-dlg-head h3{margin:0; padding:0; font-size:18px; font-weight:600; line-height:1.4; color:var(--ink); font-family:inherit}
.edv .edv-sub{margin:0; font-size:14px; color:var(--muted)}
.edv .edv-x{border:0; background:transparent; box-shadow:none; width:38px; height:38px; padding:0; margin:0; border-radius:6px; cursor:pointer; display:grid; place-items:center; color:var(--muted); flex:none}
.edv .edv-x:hover{background:var(--paper); color:var(--ink)}
.edv .edv-x svg{width:20px; height:20px}

.edv .edv-login{width:420px}
.edv .edv-login form{padding:18px 20px 22px; display:grid; gap:14px; margin:0}
.edv .edv-login label{display:block; font-weight:500; font-size:14px; margin-bottom:6px}
.edv .edv-pw{position:relative}
.edv .edv-pw .edv-inp{padding-left:46px}
.edv .edv-eye{position:absolute; left:4px; top:50%; transform:translateY(-50%)}
.edv .edv-otp{font-size:20px; letter-spacing:.2em; text-align:center !important}
.edv #edv-otp-wrap .edv-hint{margin-top:6px; font-size:13px}
.edv .edv-err{margin:0; padding:9px 12px; border-radius:6px; font-size:14px; background:var(--bad-bg); color:var(--bad)}
.edv .edv-secure{display:flex; gap:8px; align-items:center; font-size:13px; color:var(--muted); margin:0}
.edv .edv-secure svg{width:16px; height:16px; flex:none}

.edv .edv-viewer{width:min(900px,100vw - 24px); height:min(94vh,1120px)}
.edv .edv-viewer[open]{display:flex; flex-direction:column}
.edv .edv-tools{display:flex; align-items:center; gap:8px}
.edv .edv-chip{font-size:13px; padding:5px 10px; border-radius:999px; background:var(--paper); color:var(--muted); white-space:nowrap}
.edv .edv-viewer-body{flex:1; overflow:auto; background:color-mix(in srgb,var(--p-deep) 60%,#3a3f3d); padding:24px 16px}
.edv .edv-viewer-foot{padding:10px 20px; font-size:13px; color:var(--muted); border-top:1px solid var(--line)}

.edv .edv-file{position:relative; max-width:780px; margin:0 auto; background:#fff; box-shadow:0 12px 30px rgba(0,0,0,.35); overflow:hidden}
.edv .edv-file iframe{display:block; width:100%; height:calc(94vh - 190px); min-height:520px; border:0}
.edv .edv-file img{display:block; width:100%; height:auto}

.edv .edv-paper{position:relative; overflow:hidden; max-width:680px; min-height:900px; margin:0 auto; background:#fff; color:#16201C; padding:44px 46px 40px; border-top:8px solid var(--p); box-shadow:0 12px 30px rgba(0,0,0,.35); display:flex; flex-direction:column; user-select:none; -webkit-user-select:none}
.edv .edv-paper .ph{display:flex; justify-content:space-between; align-items:flex-start; gap:16px; padding-bottom:14px; border-bottom:2px solid var(--a)}
.edv .edv-paper .ph b{display:block; font-size:18px; font-weight:600}
.edv .edv-paper .ph small{color:#5E6A66; font-size:13px}
.edv .edv-paper .ref{direction:ltr; text-align:left; font-size:13px; color:#5E6A66; line-height:1.7}
.edv .edv-paper .ref b{font-size:15px; color:#16201C}
.edv .edv-paper h4{margin:40px 0 4px; text-align:center; font-size:28px; font-weight:600; color:var(--p); font-family:inherit}
.edv .edv-paper .lead{margin:0; text-align:center; color:#5E6A66}
.edv .edv-paper .body{margin:30px 0 0; font-size:16px; line-height:2.1; text-align:justify}
.edv .edv-paper table{width:100%; border-collapse:collapse; margin:24px 0 0; font-size:15px; border:0}
.edv .edv-paper td{border:1px solid #DDE2E0; padding:9px 12px; text-align:start}
.edv .edv-paper td:first-child{background:#F3F5F4; color:#5E6A66; width:36%}
.edv .edv-paper .sign{margin-top:auto; padding-top:48px; display:flex; justify-content:space-between; align-items:flex-end; gap:16px}
.edv .edv-paper .sig-line{width:190px; border-top:1px solid #16201C; padding-top:6px; font-size:13px; color:#5E6A66; text-align:center}
.edv .edv-paper .seal-mark{width:112px; height:112px; border:3px double var(--a); border-radius:50%; display:grid; place-items:center; color:var(--a); font-weight:600; font-size:12px; text-align:center; line-height:1.5; transform:rotate(-12deg); padding:10px}

.edv .edv-wm{position:absolute; inset:-40%; display:flex; flex-wrap:wrap; align-content:center; justify-content:center; gap:70px 90px; transform:rotate(-30deg); pointer-events:none; opacity:.09; font-weight:600; font-size:15px; white-space:nowrap; color:var(--p); z-index:2}
.edv .edv-void{position:absolute; top:42%; left:50%; transform:translate(-50%,-50%) rotate(-16deg); border:5px solid #A6261B; color:#A6261B; font-size:46px; font-weight:700; padding:2px 30px; border-radius:10px; opacity:.8; background:rgba(255,255,255,.6); z-index:3; pointer-events:none}

@media (max-width:560px){
  .edv .edv-masthead{padding:24px 18px 26px; border-radius:0}
  .edv .edv-guilloche{width:400px; height:400px; left:-200px}
  .edv .edv-main{padding:0 10px}
  .edv .edv-scan{padding:16px}
  .edv .edv-tab{font-size:14px; padding:10px 4px 12px; white-space:nowrap}
  .edv .edv-tab svg{display:none}
  .edv .edv-field{flex-direction:column}
  .edv .edv-field .edv-btn{width:100%}
  .edv .edv-result-head{grid-template-columns:auto 1fr; padding:16px}
  .edv .edv-seal{width:60px; height:60px}
  .edv .edv-seal svg{width:28px; height:28px}
  .edv .edv-docno,.edv .edv-details,.edv .edv-original{margin-left:14px; margin-right:14px}
  .edv .edv-details{grid-template-columns:1fr}
  .edv .edv-result-foot{padding:14px}
  .edv .edv-original .edv-btn{width:100%}
  .edv .edv-chip{display:none}
  .edv .edv-paper{padding:28px 20px; min-height:0}
  .edv .edv-paper .ph{flex-direction:column}
  .edv .edv-paper .ref{text-align:right; direction:rtl}
  .edv .edv-paper h4{font-size:22px; margin-top:28px}
  .edv .edv-paper .sign{flex-direction:column-reverse; align-items:center}
}
@media (prefers-reduced-motion:reduce){ .edv .edv-result.is-stamp .edv-seal{animation:none} }

/* طباعة نتيجة التحقق فقط */
@media print{
  body *{visibility:hidden !important}
  .edv .edv-result,.edv .edv-result *{visibility:visible !important}
  .edv .edv-result{position:absolute; inset:0 0 auto 0; border:1px solid #999; -webkit-print-color-adjust:exact; print-color-adjust:exact}
  .edv .edv-foot-actions,.edv #edv-copy,.edv .edv-original{display:none !important}
}

/* ===== 1.4: الهوية البصرية ===== */
.edv .edv-title,.edv .edv-org strong,.edv .edv-state-label,.edv .edv-dlg-head h3,.edv .edv-paper h4,.edv .edv-paper .ph b,.edv h2,.edv h3{font-family:var(--edv-font-h,var(--edv-font)),"Segoe UI",Tahoma,Arial,sans-serif}
.edv .edv-logo{display:block; width:auto; max-width:240px; object-fit:contain}
.edv .edv-logo-plate{display:inline-flex; padding:8px 12px; background:#fff; border-radius:8px; box-shadow:0 1px 0 rgba(0,0,0,.08)}
.edv .edv-paper .org{display:flex; align-items:center; gap:12px}
.edv .edv-paper .ph-logo{height:54px; width:auto; max-width:160px; object-fit:contain}
.edv .screen-reader-text{position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}

/* ===== 1.5: اللغات ===== */
.edv .edv-langsw{position:absolute; top:0; inset-inline-end:0; z-index:2; display:inline-flex; align-items:center; padding:5px 12px; border:1px solid color-mix(in srgb,var(--on-p) 35%,transparent); border-radius:999px; color:var(--on-p) !important; text-decoration:none !important; font-size:13px; line-height:1.4; font-family:"IBM Plex Sans Arabic","Segoe UI",Tahoma,sans-serif}
.edv .edv-langsw:hover{background:color-mix(in srgb,var(--on-p) 12%,transparent)}
.edv .edv-langsw + .edv-org{padding-inline-end:90px}
.edv[dir=ltr] .edv-guilloche{left:auto; right:-170px}
.edv[dir=ltr] .edv-pw .edv-inp{padding-left:14px; padding-right:46px}
.edv[dir=ltr] .edv-eye{left:auto; right:4px}
.edv[dir=ltr] .edv-paper .ref{text-align:right}
@media (max-width:640px){
  .edv .edv-langsw + .edv-org{padding-inline-end:70px}
  .edv[dir=ltr] .edv-guilloche{right:-200px}
  .edv[dir=ltr] .edv-paper .ref{text-align:left; direction:ltr}
}
.edv-sr{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* عدة مرفقات */
.edv .edv-att-note{font-weight:600}
.edv .edv-file-in{position:relative}
.edv .edv-att-nav{max-width:780px; margin:0 auto 14px; display:flex; align-items:center; gap:12px}
.edv .edv-att-strip{display:flex; gap:8px; overflow-x:auto; padding:4px 2px 8px; flex:1; scrollbar-width:thin}
.edv .edv-att-tile{position:relative; flex:none; width:64px; height:84px; border-radius:6px; overflow:hidden; border:2px solid transparent; background:#fff; padding:0; cursor:pointer; opacity:.7; transition:opacity .15s,border-color .15s}
.edv .edv-att-tile:hover{opacity:1}
.edv .edv-att-tile.is-current{border-color:var(--a); opacity:1}
.edv .edv-att-tile img{width:100%; height:100%; object-fit:cover; object-position:top; display:block}
.edv .edv-att-tile-ph{display:grid; place-items:center; height:100%; font-size:12px; font-weight:700; color:#8a948f}
.edv .edv-att-tile-n{position:absolute; bottom:3px; inset-inline-start:3px; min-width:18px; height:18px; border-radius:9px; background:rgba(0,0,0,.65); color:#fff; font-size:11px; display:grid; place-items:center; padding:0 4px}
.edv .edv-att-counter{color:#fff; font-size:13px; white-space:nowrap; opacity:.85}

/* نقش الأمان: خيارات قابلة للتخصيص */
.edv .edv-masthead{--pat-line:var(--on-p); --pat-accent:var(--a); --pat-op:.13; --pat-size:1; --pat-img-op:.3}
.edv .edv-masthead > .edv-guilloche{left:auto; right:auto; width:calc(540px * var(--pat-size)); height:calc(540px * var(--pat-size)); top:50%; transform:translateY(-50%)}
.edv .edv-guilloche .g-l{stroke:var(--pat-line); stroke-opacity:var(--pat-op); stroke-width:.6}
.edv .edv-guilloche .g-a{stroke:var(--pat-accent); stroke-width:.9; opacity:min(1, calc(var(--pat-op) * 4))}
.edv[dir=rtl] .edv-guilloche.pos-end,.edv[dir=ltr] .edv-guilloche.pos-start{left:calc(-170px * var(--pat-size))}
.edv[dir=rtl] .edv-guilloche.pos-start,.edv[dir=ltr] .edv-guilloche.pos-end{right:calc(-170px * var(--pat-size))}
.edv .edv-guilloche.pos-center{left:50%; transform:translate(-50%,-50%)}
.edv .edv-masthead > .edv-guilloche.is-full{inset:0; width:100%; height:100%; transform:none}
.edv .edv-guilloche.is-full .g-l{stroke-width:1.1}
.edv .edv-pat-img{position:absolute; inset:0; pointer-events:none; opacity:var(--pat-img-op); background-repeat:no-repeat}
.edv .edv-pat-img.fit-cover{background-size:cover}
.edv .edv-pat-img.fit-contain{background-size:contain}
.edv .edv-pat-img.fit-tile{background-size:auto 110px; background-repeat:repeat}
.edv[dir=rtl] .edv-pat-img.ipos-end,.edv[dir=ltr] .edv-pat-img.ipos-start{background-position:left center}
.edv[dir=rtl] .edv-pat-img.ipos-start,.edv[dir=ltr] .edv-pat-img.ipos-end{background-position:right center}
.edv .edv-pat-img.ipos-center{background-position:center}
.edv .edv-pat-img.is-gray{filter:grayscale(1)}
.edv[dir=rtl] .edv-pat-img.is-fade{-webkit-mask-image:linear-gradient(to left,transparent 5%,#000 75%); mask-image:linear-gradient(to left,transparent 5%,#000 75%)}
.edv[dir=ltr] .edv-pat-img.is-fade{-webkit-mask-image:linear-gradient(to right,transparent 5%,#000 75%); mask-image:linear-gradient(to right,transparent 5%,#000 75%)}
@media (max-width:640px){
  .edv .edv-masthead > .edv-guilloche:not(.is-full){width:calc(400px * var(--pat-size)); height:calc(400px * var(--pat-size))}
  .edv[dir=rtl] .edv-guilloche.pos-end,.edv[dir=ltr] .edv-guilloche.pos-start{left:calc(-200px * var(--pat-size))}
  .edv[dir=rtl] .edv-guilloche.pos-start,.edv[dir=ltr] .edv-guilloche.pos-end{right:calc(-200px * var(--pat-size))}
}
@media print{.edv .edv-pat-img{display:none}}
