
:root{--green:#12512f;--green2:#0a3520;--green-soft:#e3efe6;--cream:#FDF9F2;--card:#fffdf8;--sand:#e9dfc8;--line:#c4b28a;--terra:#b04a1f;--ink:#131a16;--muted:#5c564a}
*{box-sizing:border-box}
img{max-width:100%}
body{margin:0;background:var(--cream);color:var(--ink);font-family:Manrope,system-ui,-apple-system,'Segoe UI',sans-serif;font-size:17px;line-height:1.6}
h1,h2,h3,.wordmark{font-family:Fraunces,Georgia,serif;font-weight:900;color:var(--ink)}
h1{font-size:44px;line-height:1.1;margin:.4em 0}
h2{font-size:30px;margin:1.4em 0 .4em}
h3{font-size:22px}
a{color:var(--green)}
header.site{background:var(--card);border-bottom:3px solid var(--green);position:sticky;top:0;z-index:20}
.wrap{max-width:1340px;margin:0 auto;padding:0 20px}
.bar{display:flex;align-items:center;gap:18px;padding:12px 0;flex-wrap:wrap}
.wordmark{font-size:34px;text-decoration:none;color:var(--green);letter-spacing:-.5px}
.wordmark span{color:var(--ink)}
nav.main{display:flex;gap:16px;flex-wrap:wrap}
nav.main a{text-decoration:none;font-weight:700;color:var(--ink)}
nav.main a:hover{color:var(--green)}
.searchbox{margin-left:auto}
.searchbox input{padding:9px 12px;border:2px solid var(--green);border-radius:8px;font-size:15px;width:210px;background:#fff}
.site-card{background:var(--card);border:2px solid var(--line);border-radius:30px;padding:28px;margin:22px 0}
.eyebrow{font-family:Fraunces,Georgia,serif;font-style:italic;font-weight:700;font-size:23px;color:var(--terra);margin:0 0 6px}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:36px;align-items:center;padding:38px 0 10px}
.hero-grid h1{font-size:clamp(44px,6vw,74px);margin:.1em 0;line-height:1.05}
.hero-grid h1 .hl{color:var(--green);border-bottom:9px solid #bcd6c4;white-space:nowrap}
.lede{font-size:21px;max-width:720px}
.cta-row{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}
.btn.pill{border-radius:999px}
.hero-photo{position:relative}
.hero-photo>img{width:100%;min-height:540px;object-fit:cover;border-radius:24px;border:2px solid var(--line);display:block}
.pill-badge{position:absolute;top:16px;left:16px;background:var(--green);color:#fff;font-weight:800;padding:10px 16px;border-radius:999px;box-shadow:0 3px 0 var(--green2)}
.overlay-card{position:absolute;left:16px;bottom:16px;right:16px;display:flex;gap:12px;align-items:center;background:var(--card);border:2px solid var(--line);border-radius:16px;padding:10px 14px}
.overlay-card img{width:64px;height:80px;object-fit:cover;border-radius:10px;border:2px solid var(--line)}
.tick-list{list-style:none;padding:0;margin:14px 0}
.tick-list li{padding:4px 0 4px 28px;position:relative}
.tick-list li:before{content:"✓";position:absolute;left:0;color:var(--green);font-weight:900}
.doc-btns{display:flex;gap:10px;flex-wrap:wrap;margin:6px 0 14px}
.doc-btn{background:var(--sand);border:2px solid var(--line);border-radius:999px;padding:10px 18px;font-weight:800;font-size:16px;cursor:pointer;color:var(--ink);font-family:Manrope,system-ui,sans-serif}
.doc-btn.active{background:var(--green);color:#fff;border-color:var(--green2);box-shadow:0 3px 0 var(--green2)}
.tool-grid{display:grid;grid-template-columns:300px 1fr;gap:24px;align-items:start}
@media(max-width:900px){.hero-grid{grid-template-columns:1fr}.tool-grid{grid-template-columns:1fr}}
.result-photo{width:128px;height:158px;object-fit:cover;border-radius:12px;border:2px solid var(--line);background:#fff}
.slider-label{text-align:center;font-weight:800;letter-spacing:.5px;margin:20px 0 10px}
.compare{position:relative;overflow:hidden;border-radius:16px;border:2px solid var(--line)}
.compare img{display:block;width:100%;height:420px;object-fit:cover}
.compare img.after{position:absolute;inset:0;clip-path:inset(0 0 0 var(--split,55%))}
.cmp-tag{position:absolute;top:12px;font-weight:800;background:rgba(19,26,22,.75);color:#fff;padding:6px 12px;border-radius:999px;font-size:14px}
.cmp-tag.left{left:12px}.cmp-tag.right{right:12px}
.cmp-handle{position:absolute;top:0;bottom:0;left:var(--split,55%);width:4px;background:#fff;box-shadow:0 0 0 2px var(--green);transform:translateX(-50%)}
.compare input[type=range]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:ew-resize;margin:0}
.btn.block{width:100%;text-align:center;padding:16px 26px;font-size:19px}
.strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.strip-card{background:var(--card);border:2px solid var(--line);border-radius:20px;overflow:hidden}
.strip-card img{width:100%;height:260px;object-fit:cover;display:block}
.strip-card div{padding:14px 16px}
.strip-card h3{margin:0 0 4px}
.strip-card p{margin:4px 0}
.print-sheet{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;max-width:520px}
.print-sheet img{width:100%;aspect-ratio:35/45;object-fit:cover;border:2px dashed #999;border-radius:6px;background:#fff}
.family{display:grid;grid-template-columns:300px 1fr;gap:28px;align-items:center;margin:26px 0}
@media(max-width:760px){.family{grid-template-columns:1fr}}
.family img{width:100%;border-radius:20px;border:2px solid var(--line)}
details.faq{background:var(--card);border:2px solid var(--line);border-radius:14px;padding:14px 18px;margin:10px 0}
details.faq summary{font-weight:800;font-size:19px;cursor:pointer;font-family:Fraunces,Georgia,serif}
details.faq p{margin:8px 0 2px}
.btn{display:inline-block;background:var(--green);color:#fff!important;text-decoration:none;font-weight:800;padding:14px 26px;border-radius:10px;border:0;cursor:pointer;font-size:17px;box-shadow:0 3px 0 var(--green2)}
.btn:hover{background:var(--green2)}
.btn.secondary{background:var(--ink)}
.btn:disabled{opacity:.5;cursor:not-allowed}
.quick{background:var(--green-soft);border:2px solid var(--green);border-radius:12px;padding:16px 20px;margin:22px 0}
.quick b{color:var(--green)}
.card{background:var(--card);border:2px solid var(--line);border-radius:14px;padding:20px;margin:16px 0}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.toolcard{background:var(--card);border:2px solid var(--line);border-radius:14px;padding:18px}
.toolcard h3{margin-top:0}
.studio{display:grid;grid-template-columns:1fr 1fr;gap:20px}
@media(max-width:760px){.studio{grid-template-columns:1fr}}
canvas.preview,img.preview{max-width:100%;border:2px solid var(--line);border-radius:10px;background:#fff}
label{display:block;font-weight:700;margin:12px 0 4px}
input[type=text],input[type=number],input[type=file],select{padding:10px;border:2px solid var(--line);border-radius:8px;font-size:16px;width:100%;background:#fff}
input[type=range]{width:100%}
.error{background:#fdecea;border:2px solid #b3261e;color:#7a1a14;border-radius:10px;padding:12px 16px;margin:12px 0}
.ok{background:var(--green-soft);border:2px solid var(--green);border-radius:10px;padding:12px 16px;margin:12px 0}
.warn{background:#fff4d6;border:2px solid #8a6d00;border-radius:10px;padding:12px 16px;margin:12px 0}
table.specs{border-collapse:collapse;width:100%;margin:12px 0}
table.specs th,table.specs td{border:1px solid var(--line);padding:9px 10px;text-align:left;vertical-align:top}
table.specs th{background:var(--green-soft)}
.specs-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.notver{color:#8a6d00;font-weight:700}
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.stepnum{font-size:40px;color:var(--green);font-weight:900;font-family:Fraunces,serif}
footer.site{border-top:3px solid var(--green);margin-top:48px;padding:28px 0;background:var(--green2);color:#dceadf}
footer.site a{color:#cfe6d4;margin-right:14px}
footer.site b{color:#fff}
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;margin:16px 0}
.photos img{width:100%;height:200px;object-fit:cover;border-radius:12px;border:2px solid var(--line)}
.faq h3{margin-bottom:2px}.faq p{margin-top:2px}
.small{font-size:14px;color:var(--muted)}
.ad-slot{display:none!important}
/* ---- RTL (Urdu/Arabic): Noto Nastaliq needs a taller line; absolute-positioned
   bits (ticks, badges, slider tags, search box) are mirrored. ---- */
html[dir=rtl] body{line-height:2}
html:lang(ur) body,html:lang(ur) h1,html:lang(ur) h2,html:lang(ur) h3,html:lang(ur) .eyebrow,html:lang(ur) details.faq summary,html:lang(ur) .stepnum,html:lang(ur) input,html:lang(ur) select,html:lang(ur) button{font-family:'Noto Nastaliq Urdu',Manrope,system-ui,'Segoe UI',sans-serif}
html:lang(ar) body,html:lang(ar) h1,html:lang(ar) h2,html:lang(ar) h3,html:lang(ar) .eyebrow,html:lang(ar) details.faq summary,html:lang(ar) .stepnum,html:lang(ar) input,html:lang(ar) select,html:lang(ar) button,html:lang(fa) body,html:lang(fa) h1,html:lang(fa) h2,html:lang(fa) h3,html:lang(fa) .eyebrow,html:lang(fa) details.faq summary,html:lang(fa) .stepnum,html:lang(fa) input,html:lang(fa) select,html:lang(fa) button,html:lang(sd) body,html:lang(sd) h1,html:lang(sd) h2,html:lang(sd) h3,html:lang(sd) .eyebrow,html:lang(sd) details.faq summary,html:lang(sd) .stepnum,html:lang(sd) input,html:lang(sd) select,html:lang(sd) button,html:lang(ps) body,html:lang(ps) h1,html:lang(ps) h2,html:lang(ps) h3,html:lang(ps) .eyebrow,html:lang(ps) details.faq summary,html:lang(ps) .stepnum,html:lang(ps) input,html:lang(ps) select,html:lang(ps) button{font-family:'Noto Naskh Arabic',Manrope,system-ui,'Segoe UI',sans-serif}
html:lang(he) body,html:lang(he) h1,html:lang(he) h2,html:lang(he) h3,html:lang(he) .eyebrow,html:lang(he) details.faq summary,html:lang(he) .stepnum,html:lang(he) input,html:lang(he) select,html:lang(he) button{font-family:'Noto Sans Hebrew',Manrope,system-ui,'Segoe UI',sans-serif}
html[dir=rtl] .wordmark{font-family:Fraunces,Georgia,serif}
html[dir=rtl] .hero-grid h1{line-height:1.7}
html[dir=rtl] .tick-list li{padding:4px 28px 4px 0}
html[dir=rtl] .tick-list li:before{left:auto;right:0}
html[dir=rtl] .pill-badge{left:auto;right:16px}
html[dir=rtl] .cmp-tag.left{left:auto;right:12px}
html[dir=rtl] .cmp-tag.right{right:auto;left:12px}
html[dir=rtl] .searchbox{margin-left:0;margin-right:auto}
.lang-switch{padding:8px 10px;border:2px solid var(--green);border-radius:8px;font-size:15px;font-weight:700;background:#fff;color:var(--ink);max-width:170px}
@media(max-width:390px){.hero-grid h1{font-size:clamp(36px,6vw,74px)}.hero-photo>img{min-height:320px}.searchbox input{width:160px}}
/* ---- v2 mobile overflow fixes (2026-11-27) ----
   1) Footer link row: the links are written back-to-back with NO whitespace
      or separator between them, so About+Contact+Privacy+Terms+Disclaimer+
      Studio+Custom Photo Maker formed ONE unbreakable inline line (~516px,
      555px in the /uk/ tree) that forced sideways scrolling on every page.
      Making each footer link inline-block gives the row a legal break point
      between links. Desktop is unchanged: the row fits on one line there. */
footer.site a{display:inline-block}
/* 2) Spec tables: bare source URLs (e.g. onlinemrp.dgip.gov.pk/photo-requirements,
      a 40-char unbreakable token) held table.specs at ~386px min-content width,
      wider than a phone screen. overflow-wrap:anywhere lets such tokens break
      so the table can fit its container. Desktop column widths are driven by
      max-content there, so nothing changes on wide screens. */
table.specs th,table.specs td{overflow-wrap:anywhere}
/* 3) Hero headline: .hl is white-space:nowrap. In the single-column layout
      (<=900px) the highlighted phrase is wider than small screens (~431px at
      the 44px clamp, ~352px even at the 36px small-screen clamp) and pushed
      the hero grid — and the page — sideways. Let it wrap in that layout;
      above 900px the original nowrap desktop rendering is kept untouched. */
@media(max-width:900px){.hero-grid h1 .hl{white-space:normal}}
