@font-face{
  font-family:"KisaanUrdu";
  src:url("/kisaantime/fonts/JameelNooriNastaleeq.ttf") format("truetype");
  font-display:swap
}
@font-face{
  font-family:"KisaanEng";
  src:url("/kisaantime/fonts/montserrat.italic.otf") format("opentype");
  font-display:swap
}
:root{
  --green:#17663a;
  --green-dark:#0e4d2b;
  --green-soft:#eaf4ec;
  --green-pale:#f3f8f3;
  --ink:#17241b;
  --muted:#626d65;
  --line:#d8dfd9;
  --surface:#fff;
  --page:#f7f7f3;
  --danger:#9e2f2f;
  --radius:18px;
  --container:1440px
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  background:var(--page);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.5
}
button,input,select{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
a{color:inherit}
.container{width:min(calc(100% - 36px),var(--container));margin-inline:auto}
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:#fff;
  border-bottom:1px solid var(--line)
}
.header-inner{
  min-height:82px;
  display:grid;
  grid-template-columns:minmax(250px,1fr) auto minmax(190px,1fr);
  align-items:center;
  gap:28px
}
.brand{
  width:max-content;
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none
}
.brand-logo{
  width:46px;
  height:46px;
  object-fit:contain
}
.brand-copy{display:grid;line-height:1.1}
.brand-copy strong{
  color:var(--green);
  font-family:Georgia,"Times New Roman",serif;
  font-size:22px;
  letter-spacing:.02em
}
.brand-copy small{
  margin-top:5px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:11px;
  font-weight:700
}
.main-nav{display:flex;gap:42px;align-items:center}
.main-nav a{
  position:relative;
  text-decoration:none;
  font-weight:750
}
.main-nav a::after{
  content:"";
  position:absolute;
  inset-inline:0;
  bottom:-9px;
  height:2px;
  background:var(--green);
  transform:scaleX(0);
  transition:transform .16s ease
}
.main-nav a:hover::after,.main-nav a:focus-visible::after{transform:scaleX(1)}
.lang-toggle{
  justify-self:end;
  min-height:46px;
  padding:0 18px;
  color:var(--ink);
  background:#fff;
  border:1px solid var(--line);
  border-radius:11px;
  cursor:pointer;
  font-weight:750
}
.lang-toggle:hover,.lang-toggle:focus-visible{border-color:var(--green)}
.hero{
  min-height:270px;
  margin-top:26px;
  display:grid;
  grid-template-columns:1.18fr .82fr;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px
}
.hero-copy{
  padding:48px 56px;
  display:flex;
  flex-direction:column;
  justify-content:center
}
.eyebrow{
  margin:0 0 10px;
  color:var(--green);
  font-size:13px;
  font-weight:850;
  letter-spacing:.11em;
  text-transform:uppercase
}
.hero h1,.about h2,.contact h2{
  margin:0;
  font-family:Georgia,"Times New Roman",serif;
  line-height:1.08
}
.hero h1{font-size:clamp(40px,5vw,66px)}
.hero-copy>p:last-child{
  margin:18px 0 0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(18px,2vw,27px)
}
.hero-art{min-height:270px;overflow:hidden}
.hero-art img{width:100%;height:100%;display:block;object-fit:cover}
.calculator-wrap{padding:28px 0 70px}
.calculator-shell{
  display:grid;
  grid-template-columns:248px minmax(0,1fr) 430px;
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px
}
.shape-sidebar,.calculator-card,.results-panel{padding:28px}
.shape-sidebar{border-inline-end:1px solid var(--line)}
.shape-list{display:grid;gap:10px}
.shape-tab{
  width:100%;
  min-height:82px;
  padding:12px 14px;
  display:grid;
  grid-template-columns:50px 1fr;
  align-items:center;
  gap:12px;
  text-align:start;
  color:var(--ink);
  background:#fff;
  border:1px solid var(--line);
  border-radius:13px;
  cursor:pointer
}
.shape-tab:hover,.shape-tab:focus-visible{border-color:var(--green)}
.shape-tab.active{color:#fff;background:var(--green);border-color:var(--green)}
.tab-icon{width:44px;height:44px;display:grid;place-items:center}
.tab-icon svg{width:40px;height:40px;fill:none;stroke:currentColor;stroke-width:2.1}
.shape-tab>span:last-child{display:grid}
.shape-tab b{
  font-family:"KisaanUrdu",serif;
  font-size:22px;
  font-weight:400;
  line-height:1
}
.shape-tab em{
  margin-top:4px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:16px;
  font-style:normal;
  font-weight:700
}
.help-card{
  position:relative;
  min-height:245px;
  margin-top:34px;
  padding:20px 18px;
  overflow:hidden;
  background:var(--green-pale);
  border:1px solid var(--line);
  border-radius:13px
}
.help-card h2{
  margin:0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:21px
}
.help-card ol{margin:17px 0 0;padding-inline-start:23px}
.help-card li{margin:11px 0}
.help-card li::marker{color:var(--green);font-weight:800}
.help-plant{
  position:absolute;
  inset-inline-end:4px;
  bottom:-3px;
  width:78px;
  fill:none;
  stroke:var(--green);
  stroke-width:3
}
.calculator-card{min-width:0;padding-inline:38px}
.calculator-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px
}
.calculator-head h2,.results-panel>h2,#calculatorForm h3{
  margin:0;
  color:var(--green-dark);
  font-family:Georgia,"Times New Roman",serif
}
.calculator-head h2,.results-panel>h2{font-size:29px}
.calculator-head p{margin:7px 0 0;color:var(--muted)}
.reset-button{
  padding:8px 12px;
  color:var(--green);
  background:transparent;
  border:1px solid var(--line);
  border-radius:9px;
  cursor:pointer;
  font-weight:750
}
.reset-button:hover,.reset-button:focus-visible{border-color:var(--green)}
.diagram{
  min-height:244px;
  margin:22px 0 24px;
  display:grid;
  place-items:center;
  border-bottom:1px solid var(--line)
}
.diagram svg{width:min(100%,560px);height:224px;color:var(--ink)}
.diagram .shape,.diagram .line{
  fill:none;
  stroke:currentColor;
  stroke-width:2
}
.diagram .dash{stroke-dasharray:7 6}
.diagram text{
  fill:currentColor;
  font-family:Inter,system-ui,sans-serif;
  font-size:14px
}
#calculatorForm h3{margin-bottom:22px;font-size:25px}
.field-stack{display:grid;gap:18px}
.field label,.point-grid label,.area-row label{
  display:block;
  margin-bottom:7px;
  font-weight:800
}
.control{
  display:grid;
  grid-template-columns:minmax(0,1fr) 92px;
  gap:10px
}
.control input,.control select,.point-grid input,.area-row input,.area-row select,.marla-standard select{
  min-height:56px;
  color:var(--ink);
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  outline:none
}
.control input,.point-grid input,.area-row input{width:100%;padding:0 15px}
.control select,.area-row select,.marla-standard select{padding:0 11px;cursor:pointer}
.control input:focus,.control select:focus,.point-grid input:focus,.area-row input:focus,.area-row select:focus,.marla-standard select:focus{
  border-color:var(--green);
  box-shadow:0 0 0 3px rgba(23,102,58,.11)
}
input[aria-invalid="true"]{border-color:var(--danger)!important}
.angle-suffix{
  min-height:56px;
  display:grid;
  place-items:center;
  background:var(--green-pale);
  border:1px solid var(--line);
  border-radius:10px;
  font-weight:800
}
.info-box{
  margin-top:26px;
  padding:17px;
  display:grid;
  grid-template-columns:27px 1fr;
  gap:12px;
  align-items:start;
  background:var(--green-pale);
  border:1px solid var(--line);
  border-radius:11px
}
.info-box>span{
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  color:#fff;
  background:var(--green);
  border-radius:50%;
  font-weight:850
}
.info-box p{margin:0}
.unit-group{margin:25px 0 0;padding:0;border:0}
.unit-group legend{margin-bottom:11px;font-weight:800}
.unit-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.unit-tab{
  min-height:52px;
  color:var(--ink);
  background:#fff;
  border:1px solid var(--line);
  border-radius:9px;
  cursor:pointer;
  font-weight:800
}
.unit-tab:hover,.unit-tab:focus-visible{border-color:var(--green)}
.unit-tab.active{color:#fff;background:var(--green);border-color:var(--green)}
.form-message{min-height:23px;margin:12px 0 0;color:var(--danger);font-weight:750}
.form-actions{display:grid;grid-template-columns:1fr auto;gap:10px}
.calculate-button,.print-button,.add-row{
  min-height:60px;
  border-radius:10px;
  cursor:pointer;
  font-weight:850
}
.calculate-button{color:#fff;background:var(--green);border:1px solid var(--green)}
.calculate-button:hover,.calculate-button:focus-visible{background:var(--green-dark)}
.print-button{
  padding:0 18px;
  color:var(--green);
  background:#fff;
  border:1px solid var(--line)
}
.print-button:hover,.print-button:focus-visible{border-color:var(--green)}
.points-wrap,.composite-wrap{display:grid;gap:12px}
.points-head,.composite-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px
}
.points-head p,.composite-head p{margin:0;color:var(--muted)}
.add-row{
  min-height:42px;
  padding:0 14px;
  color:var(--green);
  background:#fff;
  border:1px solid var(--line)
}
.add-row:hover,.add-row:focus-visible{border-color:var(--green)}
.point-grid{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) minmax(0,1fr) 42px;
  gap:9px;
  align-items:end
}
.point-number{
  min-height:56px;
  display:grid;
  place-items:center;
  color:var(--green);
  background:var(--green-pale);
  border:1px solid var(--line);
  border-radius:10px;
  font-weight:850
}
.remove-row{
  width:42px;
  height:42px;
  margin-bottom:7px;
  color:var(--danger);
  background:#fff;
  border:1px solid var(--line);
  border-radius:9px;
  cursor:pointer;
  font-size:20px
}
.remove-row:disabled{opacity:.35;cursor:not-allowed}
.area-row{
  display:grid;
  grid-template-columns:82px minmax(0,1fr) 112px 42px;
  gap:9px;
  align-items:end
}
.results-panel{background:var(--green-pale);border-inline-start:1px solid var(--line)}
.primary-result{
  min-height:165px;
  margin-top:26px;
  padding:19px;
  display:grid;
  justify-items:center;
  align-content:center;
  background:var(--green-soft);
  border:1px solid var(--line);
  border-radius:13px
}
.primary-result>span{justify-self:start;font-family:Georgia,"Times New Roman",serif;font-size:18px;font-weight:700}
.primary-result strong{
  margin-top:3px;
  color:var(--green);
  font-family:Georgia,"Times New Roman",serif;
  font-size:49px;
  line-height:1
}
.primary-result small{margin-top:8px;font-weight:800}
.marla-standard{
  margin-top:14px;
  display:grid;
  grid-template-columns:1fr 150px;
  gap:12px;
  align-items:center;
  font-weight:800
}
.marla-standard select{min-height:45px}
.result-list{margin-top:14px;display:grid;gap:10px}
.result-list article{
  min-height:86px;
  padding:12px 14px;
  display:grid;
  grid-template-columns:40px minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
  background:#fff;
  border:1px solid var(--line);
  border-radius:11px
}
.result-icon{
  width:37px;
  height:37px;
  display:grid;
  place-items:center;
  color:var(--green);
  background:var(--green-pale);
  border:1px solid var(--line);
  border-radius:8px;
  font-size:12px;
  font-weight:900
}
.result-list h3,.note-card h3{
  margin:0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:17px
}
.result-list p{margin:4px 0 0;color:var(--muted);font-size:12px}
.result-list article>strong{font-family:Georgia,"Times New Roman",serif;font-size:18px}
.note-card{
  margin-top:26px;
  padding:18px;
  background:var(--green-soft);
  border:1px solid var(--line);
  border-radius:11px
}
.note-card p{margin:9px 0 0;color:var(--muted)}
.about,.contact{
  margin-bottom:26px;
  padding:40px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:55px;
  align-items:center;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px
}
.about h2,.contact h2{font-size:clamp(30px,4vw,48px)}
.about>p{margin:0;color:var(--muted);font-size:18px}
.guide{
  margin-bottom:26px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:20px
}
.guide article{min-height:205px;padding:30px;background:#fff}
.guide article+article{border-inline-start:1px solid var(--line)}
.guide strong{color:var(--green);font-family:Georgia,"Times New Roman",serif;font-size:31px}
.guide h3{margin:20px 0 7px;font-family:Georgia,"Times New Roman",serif;font-size:22px}
.guide p{margin:0;color:var(--muted)}
.contact a{justify-self:end;color:var(--green);font-size:19px;font-weight:850}
.site-footer{margin-top:55px;color:#fff;background:var(--green-dark)}
.site-footer .container{
  min-height:80px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px
}
:focus-visible{outline:3px solid rgba(23,102,58,.25);outline-offset:2px}
html[dir="rtl"] body{font-family:"KisaanUrdu",system-ui,sans-serif}
html[dir="rtl"] .hero h1,
html[dir="rtl"] .about h2,
html[dir="rtl"] .contact h2,
html[dir="rtl"] .calculator-head h2,
html[dir="rtl"] .results-panel>h2,
html[dir="rtl"] #calculatorForm h3{font-family:"KisaanUrdu",Georgia,serif}
@media(max-width:1180px){
  .header-inner{grid-template-columns:1fr auto}
  .main-nav{display:none}
  .calculator-shell{grid-template-columns:225px minmax(0,1fr)}
  .results-panel{grid-column:1/-1;border-inline-start:0;border-top:1px solid var(--line)}
  .result-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:780px){
  .container{width:min(calc(100% - 22px),var(--container))}
  .header-inner{min-height:70px;gap:10px}
  .brand-logo{width:38px;height:38px}
  .brand-copy strong{font-size:18px}
  .brand-copy small{display:none}
  .lang-toggle{padding:0 12px;font-size:13px}
  .hero{grid-template-columns:1fr;margin-top:14px}
  .hero-copy{padding:32px 24px}
  .hero-art{min-height:170px}
  .calculator-wrap{padding-top:14px}
  .calculator-shell{display:block}
  .shape-sidebar,.calculator-card,.results-panel{padding:21px}
  .shape-sidebar{border-inline-end:0;border-bottom:1px solid var(--line)}
  .shape-list{display:flex;overflow-x:auto;padding-bottom:4px}
  .shape-tab{min-width:184px}
  .help-card{display:none}
  .calculator-card{padding-inline:21px}
  .diagram{min-height:205px}
  .diagram svg{height:185px}
  .result-list,.about,.contact,.guide{grid-template-columns:1fr}
  .guide article+article{border-inline-start:0;border-top:1px solid var(--line)}
  .about,.contact{gap:20px;padding:27px}
  .contact a{justify-self:start}
}
@media(max-width:520px){
  .calculator-head{display:block}
  .reset-button{margin-top:11px}
  .control{grid-template-columns:minmax(0,1fr) 76px}
  .unit-tabs{gap:6px}
  .unit-tab{font-size:12px}
  .form-actions{grid-template-columns:1fr}
  .point-grid{grid-template-columns:40px minmax(0,1fr) minmax(0,1fr)}
  .point-grid .remove-row{grid-column:3;justify-self:end}
  .area-row{grid-template-columns:72px minmax(0,1fr) 95px}
  .area-row .remove-row{grid-column:3;justify-self:end}
  .result-list article{grid-template-columns:38px minmax(0,1fr)}
  .result-list article>strong{grid-column:2}
  .marla-standard{grid-template-columns:1fr}
  .site-footer .container{padding:18px 0;display:grid}
}
@media print{
  .site-header,.hero,.shape-sidebar,.form-actions,.about,.guide,.contact,.site-footer{display:none!important}
  body{background:#fff}
  .calculator-wrap{padding:0}
  .calculator-shell{display:grid;grid-template-columns:1fr 380px;border:0}
  .calculator-card,.results-panel{padding:20px}
  .results-panel{border:1px solid var(--line)}
}
