/* DT_EXAM_SOURCES_PAGE_V2 2026-09-16: standalone /sources page (tokens + header + band basics), then the v1 band/dialog rules */
@font-face{font-family:Vazirmatn;src:url("/assets/gateway-v3/assets/Vazirmatn-Regular-sub-v1.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Vazirmatn;src:url("/assets/gateway-v3/assets/Vazirmatn-Bold-sub-v1.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:Vazirmatn;src:url("/assets/gateway-v3/assets/Vazirmatn-ExtraBold-sub-v1.woff2") format("woff2");font-weight:800 900;font-display:swap}
:root{--blue:#1354ff;--navy:#08183f;--muted:#52658d;--line:#d9e1f4}
*,*:before,*:after{box-sizing:border-box}
html{scroll-behavior:smooth}
body.sources-page{margin:0;background:#fff;color:var(--navy);font-family:Vazirmatn,sans-serif;-webkit-text-size-adjust:100%}
.sources-page h1,.sources-page h2,.sources-page h3,.sources-page h4,.sources-page p{margin:0}
.sources-page img{max-width:100%}
.sx-top{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(6px)}
.sx-top-in{max-width:1320px;margin:0 auto;padding:10px clamp(16px,5vw,88px);display:flex;align-items:center;justify-content:space-between;gap:16px}
.sx-brand{display:flex;direction:ltr;align-items:center;gap:8px;height:44px}.sx-brand img:first-child{height:40px;width:auto}.sx-brand img:last-child{height:24px;width:auto}
.sx-nav{display:flex;align-items:center;gap:6px}
.sx-nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:10px;text-decoration:none;font-weight:700;color:#23355f}
.sx-nav a:hover{background:#eef3ff}
.band{position:relative;padding:clamp(36px,6vw,96px) clamp(16px,5vw,88px);color:var(--navy)}
.band-in{max-width:1320px;margin:0 auto}
.band-head{max-width:820px;margin-bottom:clamp(24px,3vw,44px)}
.band-eyebrow{display:inline-flex;align-items:center;gap:10px;color:var(--blue);font-weight:800;font-size:16px;margin-bottom:12px}
.band-eyebrow:before{content:"";width:28px;height:2px;background:var(--blue)}
.band-head h1{font-size:clamp(28px,3.6vw,54px);line-height:1.35;font-weight:900;letter-spacing:-.5px;text-wrap:balance}.band-head h1 span{color:var(--blue)}
.band-head p{margin-top:16px;font-size:clamp(16px,1.3vw,20px);line-height:1.95;color:#3f527a;font-weight:500}
.icon{width:20px;height:20px}
@media (max-width:520px){.sx-brand img:last-child{display:none}.sx-nav a{padding:0 10px;font-size:15px}}
.sources{background:linear-gradient(180deg,#fff 0,#f5f8ff 100%)}
.sources .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sources-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}
.sources-search{flex:1 1 360px;max-width:560px;display:flex;align-items:center;gap:10px;background:#fff;border:1.5px solid var(--line);border-radius:14px;padding:0 16px;min-height:54px;box-shadow:0 6px 24px rgba(8,24,63,.05);transition:border-color .2s,box-shadow .2s}
.sources-search:focus-within{border-color:var(--blue);box-shadow:0 0 0 4px rgba(19,84,255,.12)}
.sources-search .icon{width:20px;height:20px;color:var(--blue);flex:none}
.sources-search input{flex:1;border:0;outline:0;background:transparent;font:inherit;font-size:16px;color:var(--navy);min-width:0}
.sources-sum{color:var(--muted);font-weight:700;font-size:16px;display:flex;align-items:center;gap:10px}
.sources-sum strong{color:var(--blue);font-size:24px;font-weight:900}
.sources-sum i{width:5px;height:5px;border-radius:50%;background:var(--line)}


.sources-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(236px,1fr));gap:18px}
.source-card{display:flex;flex-direction:column;width:100%;height:100%;padding:0;border:1px solid var(--line);border-radius:18px;background:#fff;overflow:hidden;cursor:pointer;font:inherit;color:var(--navy);text-align:right;box-shadow:0 4px 16px rgba(8,24,63,.04);transition:transform .22s,box-shadow .22s,border-color .22s}
.source-card:hover,.source-card:focus-visible{transform:translateY(-4px);border-color:#b7c9f7;box-shadow:0 18px 40px rgba(8,24,63,.13);outline:0}
.source-card:focus-visible{box-shadow:0 0 0 4px rgba(19,84,255,.25)}
.source-shot{display:block;aspect-ratio:4/3;background:#0a1d4d;overflow:hidden}
.source-shot img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s}
.source-card:hover .source-shot img{transform:scale(1.05)}
.source-body{display:flex;flex-direction:column;gap:4px;padding:14px 16px 16px}
.source-body strong{font-size:18px;font-weight:800;line-height:1.6}
.source-body small{font-size:13px;color:var(--muted);text-align:right;font-weight:500}
.source-count{margin-top:8px;align-self:flex-start;font-size:13px;font-weight:700;color:var(--blue);background:#eef3ff;border-radius:999px;padding:4px 12px}
.sources-grid li[hidden]{display:none}
.sources-empty{margin-top:20px;color:var(--muted);font-weight:700}
.sources-foot{margin-top:28px;font-size:14px;line-height:1.9;color:var(--muted);max-width:900px}

.sources-dialog{border:0;padding:0;margin:auto;width:min(920px,calc(100vw - 32px));max-height:calc(100vh - 40px);border-radius:24px;background:#fff;color:var(--navy);box-shadow:0 40px 120px rgba(4,14,40,.45);overflow:hidden}
.sources-dialog::backdrop{background:rgba(6,16,44,.62);backdrop-filter:blur(4px)}
.sources-dialog[open]{animation:sdIn .28s ease-out}
@keyframes sdIn{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:none}}
.sd-frame{position:relative;display:flex;flex-direction:column;max-height:calc(100vh - 40px)}
.sd-scroll{overflow:auto;overscroll-behavior:contain}
.sd-close{position:absolute;top:14px;left:14px;z-index:3;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.92);color:var(--navy);font-size:28px;line-height:1;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.2)}
.sd-hero{display:grid;grid-template-columns:minmax(0,1.05fr) 1fr;align-items:center;background:linear-gradient(120deg,#08183f,#0e2c78);color:#fff}
.sd-hero img{width:100%;height:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.sd-hero>div{padding:26px clamp(20px,3vw,40px)}
.sd-hero .band-eyebrow{color:#9fc0ff;margin-bottom:8px}.sd-hero .band-eyebrow:before{background:#9fc0ff}
.sd-hero h3{font-size:clamp(26px,3vw,40px);font-weight:900;line-height:1.45}
.sd-en{text-align:right;color:#cfdcff;font-size:16px;margin-top:4px}
.sd-count{margin-top:14px;display:inline-block;background:rgba(255,255,255,.12);border-radius:999px;padding:6px 14px;font-weight:700;font-size:14px}
.sd-group{padding:22px clamp(18px,3vw,36px) 6px}
.sd-group h4{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:900;margin-bottom:12px}
.sd-group h4 span{font-size:13px;font-weight:800;color:var(--blue);background:#eef3ff;border-radius:999px;padding:2px 10px}
.sd-group ol,.sd-group ul{margin:0;padding:0;list-style:none;display:grid;gap:10px;counter-reset:sd}
.sd-group ol li{position:relative;counter-increment:sd;padding:12px 16px 12px 52px;border:1px solid var(--line);border-radius:14px;background:#fbfcff;text-align:left;font-family:Inter,"Segoe UI",Roboto,Vazirmatn,sans-serif;line-height:1.55}
.sd-group ol li:before{content:counter(sd);position:absolute;left:14px;top:12px;width:26px;height:26px;border-radius:8px;background:var(--blue);color:#fff;font-size:13px;font-weight:800;display:grid;place-items:center}
.sd-group ol li strong{display:block;font-size:16px;font-weight:700;color:var(--navy)}
.sd-meta{display:block;font-size:13.5px;color:var(--muted);margin-top:2px}
.sd-scope{display:block;margin-top:8px;font-size:13.5px;color:#0b3fc4;background:#eef3ff;border-radius:8px;padding:6px 10px}
.sd-journals ol li:before{background:#0e9f6e}
.sd-guides ol li:before{background:#c27803}
.sd-articles ol li:before{background:#7048b6}
.sd-notes ul li{text-align:left;font-family:Inter,"Segoe UI",Roboto,sans-serif;font-size:15px;line-height:1.6;padding:10px 14px;border-radius:12px;background:#fff8e6;border:1px solid #f6dfa0}
.sd-nav{display:flex;justify-content:space-between;gap:12px;padding:14px clamp(18px,3vw,36px);border-top:1px solid var(--line);background:#fff}
.sd-nav button{font:inherit;font-weight:800;font-size:15px;color:var(--blue);background:#eef3ff;border:0;border-radius:10px;padding:10px 18px;cursor:pointer}
.sd-nav button:hover{background:#dfe8ff}
@media (max-width:700px){
 .sources-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .source-body{padding:10px 12px 12px}.source-body strong{font-size:15px}.source-body small{font-size:11.5px}.source-count{font-size:11.5px;padding:3px 9px}
 .sources-dialog{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border-radius:0;margin:0}
 .sd-frame{max-height:100dvh;height:100dvh}
 .sd-scroll{flex:1}
 .sd-hero{grid-template-columns:1fr}
 .sd-group ol li{padding:10px 12px 10px 46px}.sd-group ol li:before{left:10px}
}
@media (prefers-reduced-motion:reduce){.sources-dialog[open]{animation:none}.source-card,.source-shot img{transition:none}}
