/*
Theme Name: UKJM Custom
Theme URI: https://ukjm.in/
Author: UKJM Website Team
Description: WordPress implementation of the approved Uttarakhand Jansarokar Manch prototype.
Version: 1.5.10
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: ukjm
*/

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body.ukjm-site { margin: 0; background: #F4F0FA; overflow-x: hidden; }
/* Give the full page a deliberate frame instead of allowing every section to sprawl edge-to-edge. */
body.ukjm-site > #page, body.ukjm-site > header, body.ukjm-site > main, body.ukjm-site > footer { max-width: 1600px; margin-left: auto; margin-right: auto; }
#app { min-height: 55vh; }
#mf { max-width: 1440px; margin: 0 auto; }
.hero { min-height: min(88vh, 900px); }
.hero h1 { max-width: 20ch; font-size: clamp(42px, 6.2vw, 84px); line-height: 1.08; text-wrap: balance; }
.bar { max-width: 1200px; }
.brand { white-space: normal; }
.brand #lg { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 52px; width: 52px; height: 52px; }
.brand #lg .lgi { width: 52px; height: 52px; }
#nav a { text-transform: none; }
.lang { text-transform: none; }
footer .wrap { max-width: 1200px; }
#foot { flex: 1 1 320px; }
#copyright { width: 100%; text-align: center; border-top: 1px solid #ffffff35; padding-top: 18px; margin-top: 16px; font-size: 14px; }
#copyright a { color: var(--gold,#F2C649); text-decoration: none; }
#copyright a:hover { text-decoration: underline; }
@media (min-width: 1441px) { body.ukjm-site { box-shadow: 0 0 36px #332B4312; } }
@media (max-width: 760px) { .hero { min-height: 78vh; } .hero h1 { max-width: 17ch; font-size: clamp(40px, 10vw, 58px); } .brand #lg, .brand #lg .lgi { width: 42px; height: 42px; flex-basis: 42px; } #nav { order: 3; width: 100%; } .bar { gap: 8px; padding: 8px 16px; } #mf { width: 100%; } #copyright { font-size: 12px; } }


/* UKJM 1.2.0: stable responsive page frame and content sizing */
body.ukjm-site { width: 100%; max-width: 100%; overflow-x: clip; }
body.ukjm-site > header, body.ukjm-site > main, body.ukjm-site > footer { width: 100%; }
#app { width: 100%; max-width: 100%; overflow: clip; }
#app .wrap, footer .wrap, header .bar { width: min(100% - 40px, 1200px); }
#mf { width: min(100%, 1440px); }
.pn { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pn > *, .tx, .tile, .page, .grid { min-width: 0; }
.tx h3, .tx p, .tile h3, .tile p { overflow-wrap: anywhere; }
img, video, iframe { max-width: 100%; }
@media (max-width: 760px) {
  #app .wrap, footer .wrap, header .bar { width: 100%; }
  .pn { grid-template-columns: minmax(0, 1fr); }
  .pn .im { min-height: 260px; }
  .pn:nth-child(even) .im { order: 0; }
  .tx { padding: 32px 24px; }
  .tx .manifesto-number { font-size: clamp(112px, 15vw, 136px); }
  .hero h1 { max-width: 16ch; overflow-wrap: break-word; }
}

/* UKJM v1.4.1 */
body.ukjm-site{max-width:100%;overflow-x:hidden}
#app .wrap,footer .wrap,header .bar{width:min(calc(100% - 48px),1200px);margin-inline:auto}
#app .page{padding-block:56px}
#app .grid{align-items:stretch}
#app .tile{height:100%;overflow:hidden}
#app .tile h3,#app .tile p{overflow-wrap:anywhere}
@media(max-width:760px){#app .wrap,footer .wrap,header .bar{width:calc(100% - 28px)}#app .page{padding-block:36px}}

/* Campaign detail breadcrumb: render as a real navigation link, not escaped subtitle text. */
.campaign-back{margin:0 0 18px;font-size:1rem}
.campaign-back .text-link{display:inline-flex;align-items:center;gap:6px}


/* UKJM v1.5.6 — restore approved Hindi manifesto hero hierarchy */
.hero{
  min-height:clamp(600px,87vh,760px);
  align-items:flex-start;
  background-image:linear-gradient(180deg,rgba(0,0,0,.08) 0%,rgba(0,0,0,.22) 42%,rgba(0,0,0,.78) 100%),var(--hero,url('assets/images/ukjm-image-02.jpg'));
  background-position:center center;
  background-size:cover;
  color:#fff;
}
.hero .wrap{
  width:calc(100% - 48px)!important;
  max-width:880px!important;
  margin-inline:auto!important;
  padding:44px 0 56px!important;
}
.hero .tag{
  display:inline-block;
  margin:0 0 8px;
  padding:4px 16px 3px;
  background:var(--gold,#F2C649);
  color:#332B43;
  font-size:clamp(18px,2vw,24px);
  line-height:1.35;
  font-weight:700;
}
.hero h1{
  max-width:100%;
  width:100%;
  margin:0;
  color:#fff;
  font-size:clamp(54px,8.8vw,var(--hero-heading-size,112px))!important;
  line-height:1.02;
  font-weight:800;
  letter-spacing:-.025em;
  text-wrap:balance;
  overflow-wrap:normal;
  text-shadow:0 3px 24px rgba(0,0,0,.28);
}
.hero p{
  max-width:48ch;
  margin:22px 0 28px;
  color:#fff;
  font-size:clamp(18px,2vw,24px);
  line-height:1.55;
  text-shadow:0 2px 12px rgba(0,0,0,.6);
}
.hero .btn{margin:0 10px 10px 0;padding:12px 30px;font-size:clamp(18px,2vw,23px);font-weight:700}
.hero .btn.o{margin-left:0;background:rgba(0,0,0,.14);border-color:#fff;color:#fff}
.strip{padding:20px 24px;font-size:clamp(24px,3.5vw,38px);font-weight:700}
@media(max-width:760px){
  .hero{min-height:clamp(570px,78svh,700px);background-position:58% center}
  .hero .wrap{width:calc(100% - 36px)!important;max-width:100%!important;padding:34px 0 38px!important}
  .hero .tag{font-size:17px;padding:4px 10px}
  .hero h1{font-size:clamp(42px,10vw,min(68px,var(--hero-heading-size,112px)))!important;line-height:1.08;letter-spacing:-.015em}
  .hero p{font-size:18px;line-height:1.5;margin:18px 0 22px}
  .hero .btn{display:inline-block;padding:10px 16px;font-size:17px;margin-right:6px}
  .hero .btn.o{margin-left:0}
  .strip{font-size:clamp(21px,5.8vw,29px);padding:17px 14px}
}

/* UKJM v1.5.9: approved new mountain emblem */
#lg .lgi, footer .lgi{background-image:url('assets/images/ukjm-image-01.png')!important;background-position:center!important;background-size:cover!important;border:0!important}
.brand #lg{overflow:hidden;border-radius:50%}


/* UKJM v1.5.10 — restore prototype header proportions and remove vertical whitespace */
body.ukjm-site > header, body.ukjm-site header {
  height:auto !important; min-height:0 !important; margin-top:0 !important; padding-top:0 !important;
}
body.ukjm-site header .bar {
  display:flex !important; align-items:center !important; flex-wrap:nowrap !important;
  box-sizing:border-box !important; min-height:76px !important; height:auto !important;
  padding-top:8px !important; padding-bottom:8px !important;
}
body.ukjm-site header .brand {
  display:flex !important; align-items:center !important; flex:0 1 auto !important;
  min-width:0 !important; white-space:nowrap !important; line-height:1.08 !important;
  margin-top:0 !important; margin-bottom:0 !important;
}
body.ukjm-site header .brand #lg, body.ukjm-site header .brand #lg .lgi {
  width:56px !important; height:56px !important; flex:0 0 56px !important;
}
body.ukjm-site header .brand #wm {
  display:inline-block !important; max-width:none !important;
  font-size:26px !important; line-height:1.08 !important; font-weight:700 !important;
  white-space:nowrap !important;
}
@media (max-width:760px) {
  body.ukjm-site header .bar { min-height:68px !important; padding:8px 14px !important; gap:10px !important; }
  body.ukjm-site header .brand { max-width:calc(100% - 112px) !important; white-space:normal !important; }
  body.ukjm-site header .brand #lg, body.ukjm-site header .brand #lg .lgi { width:44px !important; height:44px !important; flex-basis:44px !important; }
  body.ukjm-site header .brand #wm { font-size:clamp(18px,4.6vw,23px) !important; white-space:normal !important; }
}
