/*
Theme Name: ذهب ألمانيا (DGP Theme)
Description: قالب «بطاقة السعر» لموقع سعر الذهب في ألمانيا باليورو.
Version: 1.0.0
Author: فريق ذهب ألمانيا
Requires PHP: 8.0
Text Domain: dgp-theme
*/

@font-face{font-family:Alexandria;font-style:normal;font-weight:400 700;font-display:swap;src:url(assets/fonts/alexandria-arabic.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:Alexandria;font-style:normal;font-weight:400 700;font-display:swap;src:url(assets/fonts/alexandria-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
--bg:#FFF9F6;--surface:#FFFFFF;--ink:#2A1F22;--ink-2:#3D3033;--muted:#6E5F62;--faint:#9C8A8D;--line:#EADCD8;--line-2:#F0E4E1;
--rose-dark:#8F4B57;--rose:#B76E79;--rose-tint:#F7E6E6;--rose-border:#E4B2AE;--chip-on-ink:#F6D6D2;--gold-accent:#D9A441;
--rg:linear-gradient(135deg,#FCEDEA 0%,#F2CFCB 52%,#E4B2AE 100%)
}

/* base */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html.no-scroll{overflow:hidden}
body{margin:0;background:var(--bg);color:var(--ink-2);font:400 16px/1.8 Alexandria,system-ui,sans-serif;font-variant-numeric:tabular-nums;overflow-x:hidden}
img,svg{max-width:100%;height:auto}
a{color:var(--rose-dark);text-underline-offset:3px}
a:hover{color:var(--ink)}
h1,h2,h3{color:var(--ink);line-height:1.5;margin:0 0 .6em}
h2{font-size:21px;font-weight:700}
h3{font-size:17px;font-weight:600}
p{margin:0 0 1em}
button,input,textarea,select{font:inherit;color:inherit}
bdi[dir=ltr],.dgp-n{unicode-bidi:isolate;direction:ltr}
.cite{white-space:nowrap}
:focus-visible{outline:3px solid var(--rose-dark);outline-offset:2px;border-radius:6px}
.skip{position:absolute;right:8px;top:-60px;z-index:100;background:var(--rose-dark);color:#fff;padding:10px 16px;border-radius:10px}
.skip:focus{top:8px}
.wrap{width:100%;max-width:1200px;margin:0 auto;padding:0 16px}
.main{padding-top:24px;padding-bottom:56px}

/* header */
.site-h{background:var(--surface);border-bottom:1px solid var(--line);padding:12px 16px}
.site-h .wrap{padding:0}
.site-h__in{display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-height:44px}
.brand .logo{width:40px;height:40px;flex:none}
.brand__t{display:flex;flex-direction:column;line-height:1.35}
.brand__n{font-size:18px;font-weight:700;color:var(--ink)}
.brand__s{font-size:11.5px;color:var(--muted)}
.nav{display:none}
.nav__l,.drawer__l,.site-f__l{list-style:none;margin:0;padding:0}
.nav__l{display:flex;gap:4px}
.nav__l a{display:inline-flex;align-items:center;min-height:44px;font-size:15px;font-weight:500;color:var(--ink);padding:8px 16px;border-radius:999px;text-decoration:none}
.nav__l a:hover{background:var(--rose-tint)}
.nav__l a.is-on{background:var(--rose-dark);color:#fff;font-weight:600}
.menu-btn{width:44px;height:44px;border-radius:50%;border:0;background:var(--rose-tint);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.menu-btn svg,.drawer__x svg{fill:none;stroke:var(--rose-dark);stroke-width:2.2;stroke-linecap:round}
.drawer{position:fixed;inset:0;z-index:50}
.drawer__bg{position:absolute;inset:0;background:rgba(42,31,34,.45)}
.drawer__p{position:absolute;top:0;right:0;bottom:0;width:min(320px,86vw);background:var(--surface);padding:16px;overflow-y:auto;box-shadow:-8px 0 30px rgba(42,31,34,.18)}
.drawer__x{width:44px;height:44px;border-radius:50%;border:0;background:var(--rose-tint);display:flex;align-items:center;justify-content:center;margin:0 0 12px auto;cursor:pointer}
.drawer__l a{display:flex;align-items:center;min-height:48px;padding:0 14px;border-radius:12px;color:var(--ink);font-weight:500;text-decoration:none}
.drawer__l a.is-on{background:var(--rose-dark);color:#fff;font-weight:600}

/* ad slots */
.dgp-ad{box-sizing:border-box;width:100%;max-width:1200px;margin:40px auto}
.dgp-ad--top{padding:0 16px;margin:clamp(28px,7vw,100px) auto clamp(80px,11vw,160px);min-height:280px}
.dgp-ad ins{display:block;width:100%}

/* page head */
.phead{margin:0 0 18px}
.phead h1{font-size:25px;font-weight:700;line-height:1.5;margin:0 0 4px}
.upd{font-size:13px;color:var(--muted);margin:0}
.upd__s{display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--rose-dark)}
.upd__s::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--rose-dark)}
.upd__s.is-stale{color:var(--muted)}
.upd__s.is-stale::before{background:var(--faint)}
.meta{font-size:13px;color:var(--muted);margin:-8px 0 18px}
.rank-math-breadcrumb{font-size:13px;color:var(--muted);margin:0 0 10px}
.rank-math-breadcrumb p{margin:0}
.rank-math-breadcrumb a{color:var(--muted)}

/* price tag */
.dgp-tagwrap{position:relative;padding-top:30px;margin-bottom:22px}
.dgp-tag__shadow{filter:drop-shadow(0 12px 20px rgba(143,75,87,.22))}
.dgp-tag{position:relative;clip-path:polygon(0 0,calc(100% - 48px) 0,100% 50%,calc(100% - 48px) 100%,0 100%);border-radius:20px 0 0 20px;background:var(--rg);padding:22px 70px 20px 22px}
.dgp-tag__hole{position:absolute;right:22px;top:50%;width:16px;height:16px;margin-top:-8px;border-radius:50%;background:var(--bg);box-shadow:inset 0 2px 3px rgba(42,31,34,.25)}
.dgp-tag__cord{position:absolute;top:0;right:0;width:100px;height:calc(50% + 15px);overflow:visible;pointer-events:none;z-index:2}
.dgp-tag__cord path{fill:none;stroke:var(--rose-dark);stroke-width:2;stroke-linecap:round}
.dgp-tag__top{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.dgp-tag__pill{background:var(--ink);color:var(--chip-on-ink);font-size:12.5px;font-weight:600;padding:3px 11px;border-radius:999px;line-height:1.6}
.dgp-tag__lbl{font-size:14px;font-weight:600;color:#5A3E44}
.dgp-tag__price{font-size:min(52px,13.4vw);white-space:nowrap;font-weight:700;color:var(--ink);line-height:1.2;margin:6px 0 8px;letter-spacing:-.5px}
.dgp-tag__chg{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13px;color:#5A3E44}
.dgp-chg{background:rgba(255,255,255,.6);border-radius:8px;color:var(--rose-dark);font-weight:600;padding:2px 8px;font-size:13.5px}

/* hallmark chips */
.dgp-stamps__lbl{font-size:13px;color:var(--muted);margin:0 0 8px}
.dgp-stamps__grid,.dgp-hm__g{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.dgp-chipb{height:54px;border-radius:14px;border:1px solid var(--line);background:var(--surface);color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.25;cursor:pointer;padding:0 4px}
.dgp-chipb:hover{border-color:var(--rose-border)}
.dgp-chipb__n{font-size:16px;font-weight:700}
.dgp-chipb__k{font-size:11px;color:var(--muted)}
.dgp-chipb.is-on{background:var(--rose-dark);border-color:var(--rose-dark);color:#fff}
.dgp-chipb.is-on .dgp-chipb__k{color:#fff}
.dgp-mini{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.dgp-mini__c,.dgp-card{background:var(--surface);border:1px solid var(--line);border-radius:16px}
.dgp-mini__c{padding:12px 14px;display:flex;flex-direction:column}
.dgp-mini__c span{font-size:12.5px;color:var(--muted)}
.dgp-mini__c strong{font-size:18px;font-weight:700;color:var(--ink)}

/* karat list */
.dgp-karats h2{margin-top:6px}
.dgp-karats__l{list-style:none;margin:0;padding:0}
.dgp-krow{display:grid;grid-template-columns:54px 1fr auto;align-items:center;column-gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:12px 14px;margin-bottom:8px}
.dgp-krow__b{width:54px;height:32px;display:inline-flex;align-items:center;justify-content:center;border:1.5px solid var(--rose);color:var(--rose-dark);border-radius:999px;font-size:14px;font-weight:700}
.dgp-krow__t,.dgp-krow__v{display:flex;flex-direction:column;line-height:1.45}
.dgp-krow__t strong{font-size:15px;font-weight:600;color:var(--ink)}
.dgp-krow__t small{font-size:12px;color:var(--muted)}
.dgp-krow__v{text-align:left;align-items:flex-end}
.dgp-krow__v strong{font-size:17px;font-weight:700;color:var(--ink)}
.dgp-krow__p{font-size:12px;color:var(--rose-dark)}
.dgp-krow.is-hl{background:var(--rose-tint);border-color:var(--rose-border)}
.dgp-krow.is-hl .dgp-krow__b{background:var(--ink);border-color:var(--ink);color:var(--chip-on-ink)}
.dgp-fine{font-size:12.5px;color:var(--muted);margin:8px 0 0;line-height:1.7}

/* tools + app card */
.tools{margin:36px 0}
.tools__g{display:grid;gap:10px}
.tool,.app{display:flex;align-items:center;gap:14px;border-radius:18px;padding:14px;text-decoration:none}
.tool{background:var(--surface);border:1px solid var(--line);color:var(--ink)}
.tool:hover{border-color:var(--rose-border);color:var(--ink)}
.tool__i,.app__i{flex:none;width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center}
.tool__i{background:var(--rose-tint)}
.tool__i svg,.app__i svg{fill:none;stroke:var(--rose-dark);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tool__t,.app__t{display:flex;flex-direction:column;line-height:1.5;min-width:0}
.tool__t strong,.app__t strong{font-size:16px;font-weight:600}
.tool__t span{font-size:13px;color:var(--muted)}
.app{background:var(--rose-dark);border-radius:20px;color:#fff}
.app__i{background:rgba(255,255,255,.16)}
.app__i svg{stroke:#fff}
.app__t span{font-size:13px;color:#F3D9DA}
.app__b{margin-right:auto;flex:none;display:inline-flex;align-items:center;min-height:44px;padding:0 20px;border-radius:999px;background:#fff;color:var(--rose-dark);font-weight:600;text-decoration:none}
.app__b:hover{color:var(--ink)}

/* 7 days */
.dgp-week{margin-bottom:24px}
.dgp-week__ch{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;padding:16px 12px 12px;direction:ltr}
.dgp-week__c{display:flex;flex-direction:column;align-items:center;min-width:0}
.dgp-week__v{font-size:10px;color:var(--muted);margin-bottom:4px;white-space:nowrap}
.dgp-week__bw{height:130px;width:100%;display:flex;align-items:flex-end;justify-content:center}
.dgp-week__b{display:block;width:100%;max-width:34px;background:#EBC9C6;border-radius:8px 8px 3px 3px}
.dgp-week__c.is-last .dgp-week__b{background:var(--rose-dark)}
.dgp-week__c.is-last .dgp-week__v{color:var(--rose-dark);font-weight:700}
.dgp-week__d{font-size:11px;color:var(--muted);margin-top:6px}

/* content */
.entry{color:var(--ink-2)}
.entry h2{margin-top:1.6em}
.entry h3{margin-top:1.3em}
.entry>:first-child,.hgrid__b.entry>:first-child{margin-top:0}
.entry ul,.entry ol{padding-right:22px;padding-left:0;margin:0 0 1em}
.entry li{margin-bottom:.35em}
.dgp-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 0 1.2em;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.dgp-tbl,.dgp-bars__t{width:100%;border-collapse:collapse;font-size:14px;line-height:1.6}
.dgp-tbl th,.dgp-tbl td,.dgp-bars__t th,.dgp-bars__t td{padding:10px 12px;text-align:right;border-bottom:1px solid var(--line-2);vertical-align:top}
.dgp-tbl thead th,.dgp-bars__t thead th{background:var(--ink);color:#fff;font-weight:600;border-bottom:0}
.dgp-tbl tbody tr:last-child>*,.dgp-bars__t tbody tr:last-child>*{border-bottom:0}
.dgp-note,.dgp-notebox{background:var(--rose-tint);border:1px solid var(--rose-border);border-radius:14px;padding:12px 16px;margin:0 0 1.2em;font-size:14.5px}
.dgp-note p:last-child{margin:0}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 26px;border:0;border-radius:999px;background:var(--rose-dark);color:#fff;font-weight:600;cursor:pointer}
.btn:hover{background:var(--ink)}

/* history */
.dgp-hist .dgp-tbl{font-size:13px}
.dgp-hist th,.dgp-hist td{white-space:nowrap;text-align:center}
.dgp-hist tbody th{text-align:right;font-weight:500}
.dgp-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px}
.dgp-pager a{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;background:var(--rose-tint);text-decoration:none;font-weight:600}

/* forms + tools */
.dgp-lbl{display:block;font-size:13px;color:var(--muted);margin:14px 0 6px}
.dgp-in{display:block;width:100%;height:56px;border-radius:14px;border:1px solid var(--line);background:var(--surface);padding:0 14px;font-size:18px;color:var(--ink)}
.dgp-ta{height:auto;min-height:150px;padding:12px 14px;font-size:16px}
.dgp-in:focus{border-color:var(--rose-dark)}
.dgp-hm,.dgp-bars,.dgp-tax{margin:0 0 28px}
.dgp-hm__card,.dgp-tax__card{background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden;margin-top:14px}
.dgp-hm__h{background:var(--ink);color:#fff;display:flex;align-items:center;gap:14px;padding:14px 16px}
.dgp-hm__oval{flex:none;width:76px;height:46px;border:2px solid var(--rose);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;color:var(--chip-on-ink)}
.dgp-hm__ht{display:flex;flex-direction:column;line-height:1.5}
.dgp-hm__ht strong{font-size:17px;font-weight:600;color:#fff}
.dgp-hm__ht span{font-size:13px;color:#CDBFC2}
.dgp-hm__b{padding:16px}
.dgp-hm__b p{font-size:14.5px;margin:0 0 12px}
.dgp-hm__row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid var(--line-2);border-bottom:1px solid var(--line-2)}
.dgp-hm__row span{font-size:13.5px;color:var(--muted)}
.dgp-hm__row strong{font-size:19px;font-weight:700;color:var(--ink)}
.dgp-rg{background:var(--rg);border-radius:16px;padding:14px 16px;margin-top:14px;display:flex;flex-direction:column}
.dgp-rg span{font-size:13px;color:#5A3E44}
.dgp-rg strong{font-size:26px;font-weight:700;color:var(--ink);line-height:1.4}
.dgp-bars__ctl{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 10px;margin-bottom:12px}
.dgp-bars__ctl .dgp-lbl{margin:0;font-size:15px;font-weight:600;color:var(--ink)}
.dgp-rpill{background:var(--rg);border-radius:999px;padding:3px 14px;font-size:14px;font-weight:700;color:var(--ink)}
.dgp-range{width:100%;height:44px;accent-color:var(--rose-dark);cursor:pointer;margin:0}
.dgp-bars__t td,.dgp-bars__t thead th+th{text-align:left}
.dgp-bars__t td{white-space:nowrap;font-weight:600;color:var(--ink)}
.dgp-bars__t tbody th{font-weight:500;white-space:nowrap}
.dgp-bars__t tr.is-hl>*{background:var(--rose-tint)}
.dgp-glyph{display:inline-block;height:10px;border-radius:3px;background:var(--rg);border:1px solid var(--rose-border);margin-left:8px;vertical-align:middle}
.dgp-notebox{margin-top:12px}
.dgp-tax__h{background:var(--rg);padding:14px 16px;display:flex;flex-direction:column}
.dgp-tax__h span{font-size:13px;color:#5A3E44}
.dgp-tax__h strong{font-size:21px;font-weight:700;color:var(--ink);line-height:1.5}
.dgp-tax__card.is-done .dgp-tax__h{background:var(--ink)}
.dgp-tax__card.is-done .dgp-tax__h span{color:#CDBFC2}
.dgp-tax__card.is-done .dgp-tax__h strong{color:#fff}
.dgp-tax__b{padding:16px}
.dgp-tax__bar{display:grid;grid-template-columns:repeat(12,1fr);gap:4px}
.dgp-tax__s{height:10px;border-radius:4px;background:var(--line-2)}
.dgp-tax__s.is-on{background:var(--rose-dark)}
.dgp-tax__b p{margin:10px 0 0;font-size:14px;font-weight:600;color:var(--ink)}
.dgp-facts{display:grid;gap:10px;margin-top:16px}
.dgp-fact{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px 16px}
.dgp-fact__p{display:inline-block;background:var(--rg);border-radius:999px;padding:2px 14px;font-size:15px;font-weight:700;color:var(--ink)}
.dgp-fact strong{display:block;font-size:15px;font-weight:600;color:var(--ink);margin:8px 0 2px}
.dgp-fact p{font-size:13px;color:var(--muted);margin:0}

/* FAQ */
.faq{margin-top:36px}
.faq__i{background:var(--surface);border:1px solid var(--line);border-radius:16px;margin-bottom:10px}
.faq__q{margin:0;font-size:15px}
.faq__q button{width:100%;min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border:0;background:none;font-size:15px;font-weight:600;color:var(--ink);text-align:right;cursor:pointer;border-radius:16px}
.faq__x{flex:none;width:30px;height:30px;border-radius:50%;background:var(--rose-tint);position:relative}
.faq__x::before,.faq__x::after{content:"";position:absolute;top:50%;left:50%;width:12px;height:2px;margin:-1px 0 0 -6px;background:var(--rose-dark);border-radius:2px}
.faq__x::after{transform:rotate(90deg)}
[aria-expanded=true] .faq__x{background:var(--rose-dark)}
[aria-expanded=true] .faq__x::before{background:#fff}
[aria-expanded=true] .faq__x::after{display:none}
.faq__a{padding:0 16px 14px;font-size:15px}
.faq__a p{margin:0}

/* contact, lists */
.cf{max-width:640px}
.cf__hp{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.cf__msg{background:var(--rose-tint);border:1px solid var(--rose-border);border-radius:12px;padding:10px 14px}
.plist{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.plist a{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px 16px;text-decoration:none;color:var(--ink)}
.plist span{font-size:14px;color:var(--muted)}

/* footer */
.site-f{background:var(--ink);border-top:4px solid var(--rose);padding:30px 16px 34px;color:#fff}
.site-f .wrap{padding:0}
.brand--f .logo{width:42px;height:42px}
.brand--f .brand__n{color:#fff}
.brand--f .brand__s{color:#CDBFC2}
.site-f__l{display:flex;flex-wrap:wrap;gap:4px 22px;margin:18px 0 14px}
.site-f__l a{display:inline-flex;align-items:center;min-height:44px;color:#fff;font-size:15px;text-decoration:none}
.site-f__l a:hover{text-decoration:underline}
.site-f__n{font-size:13px;color:#B9A9AC;margin:0;max-width:760px;line-height:1.9}

/* desktop */
@media (min-width:768px){
.wrap{padding:0 24px}
.brand .logo{width:46px;height:46px}
.brand__n{font-size:21px}
.phead h1{font-size:40px}
h2{font-size:24px}
.dgp-tag{padding:28px 84px 24px 28px}
.dgp-tag__price{font-size:64px}
.dgp-stamps__grid,.dgp-hm__g{grid-template-columns:repeat(7,1fr)}
.tools__g{grid-template-columns:repeat(4,1fr)}
.tool,.app{flex-direction:column;align-items:flex-start;padding:18px}
.app__b{margin:auto 0 0}
.dgp-facts{grid-template-columns:repeat(3,1fr)}
.site-f{padding:44px 0 48px}
.site-f .wrap{padding:0 24px}
.dgp-ad--top{padding:0 24px}
.art{max-width:860px}
}
@media (min-width:1024px){
.site-h{padding:12px 24px}
.nav{display:block}
.menu-btn{display:none}
.hgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:start}
.hgrid--2{margin-top:8px}
.entry--wide{max-width:860px}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media (max-width:480px){
.dgp-bars__t{font-size:12.5px}
.dgp-bars__t th,.dgp-bars__t td{padding:9px 6px}
.dgp-bars__t .dgp-glyph{max-width:22px}
.dgp-bars__t thead th{white-space:normal;line-height:1.4}
.dgp-glyph{margin-left:5px}
.dgp-tbl th,.dgp-tbl td{padding:9px 9px}
}
