
:root{
  --green:#07552f;
  --green-2:#0d7340;
  --green-dark:#063b24;
  --accent:#14A44D;
  --accent-dark:#c68c00;
  --ink:#121a15;
  --muted:#5f6a63;
  --cream:#f7f5ef;
  --soft:#f2f5f0;
  --line:#d8dfd9;
  --white:#ffffff;
  --danger:#b43c2f;
  --shadow:0 16px 45px rgba(12,39,22,.13);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--ink);
  background:#fff;
  line-height:1.55;
}
img{max-width:100%;display:block}
a{color:inherit}
button,input,select,textarea{font:inherit}
.container{width:min(1180px,calc(100% - 38px));margin:auto}
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:18px;top:18px;z-index:999;background:#fff;padding:10px 14px}

.top-alert{
  background:var(--green-dark);
  color:#fff;
  font-size:14px;
}
.top-alert-inner{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
}
.top-alert a{
  color:#fff;
  font-weight:900;
  text-decoration:underline;
  text-underline-offset:3px;
}

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:#fff;
  border-bottom:1px solid var(--line);
}
.header-main{
  min-height:92px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  white-space:nowrap;
  font-size:24px;
  font-weight:700;
}
.brand img{
  width:58px;
  height:58px;
  object-fit:cover;
  border-radius:50%;
}
.brand strong{color:var(--green)}
.mainnav{
  display:flex;
  align-items:center;
  gap:25px;
}
.mainnav a{
  text-decoration:none;
  font-size:15px;
  font-weight:800;
  padding:34px 0;
  border-bottom:4px solid transparent;
}
.mainnav a:hover{border-bottom-color:var(--green)}
.mainnav .nav-donate{
  background:var(--accent);
  color:#1d1d1d;
  padding:14px 20px;
  border-bottom:0;
}
.mainnav .nav-donate:hover{background:#ffd05a}
.menu-toggle{
  display:none;
  border:1px solid var(--line);
  background:#fff;
  padding:10px 13px;
  font-weight:800;
}

.section-kicker{
  display:inline-block;
  font-size:12px;
  font-weight:900;
  letter-spacing:.16em;
  color:var(--green-2);
}
.section-kicker.light{color:#fff}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 22px;
  border:0;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
  border-radius:0;
}
.btn-accent{background:var(--accent);color:#191919}
.btn-accent:hover{background:#ffd05a}
.btn-dark,.btn.primary{background:var(--green);color:#fff}
.btn.secondary{background:#fff;color:var(--green);border:2px solid var(--green)}
.btn-white{background:#fff;color:var(--green-dark)}
.btn-outline-white{border:2px solid #fff;color:#fff;background:transparent}

.home-hero{
  min-height:650px;
  position:relative;
  display:flex;
  align-items:center;
  overflow:hidden;
}
.home-hero-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 35%;
}
.home-hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(5,34,21,.88) 0%,rgba(5,34,21,.76) 42%,rgba(5,34,21,.14) 72%,rgba(5,34,21,.02) 100%);
}
.home-hero-content{position:relative;z-index:2}
.hero-panel{max-width:700px;color:#fff;padding:72px 0}
.hero-panel h1{
  font-family:Georgia,serif;
  font-size:clamp(56px,7vw,92px);
  line-height:.95;
  letter-spacing:-.045em;
  margin:15px 0 26px;
}
.hero-panel p{
  max-width:650px;
  font-size:22px;
  color:rgba(255,255,255,.92);
}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}

.impact-strip{
  background:var(--green);
  color:#fff;
}
.impact-strip-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
}
.impact-strip-grid>div{
  padding:27px 24px;
  border-right:1px solid rgba(255,255,255,.22);
}
.impact-strip-grid>div:last-child{border-right:0}
.impact-strip strong{display:block;font-size:21px;margin-bottom:5px}
.impact-strip span{display:block;font-size:14px;color:rgba(255,255,255,.85)}

.section{padding:88px 0}
.section-title-row{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:70px;
  align-items:end;
  margin-bottom:38px;
}
.section-title-row h2,.center-heading h2,.story-copy h2,.newsletter-inner h2,.final-cta h2{
  font-family:Georgia,serif;
  font-size:clamp(38px,4.5vw,60px);
  line-height:1.03;
  margin:10px 0 0;
}
.section-title-row p{font-size:18px;color:var(--muted);margin:0}

.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.feature-card{
  border-top:6px solid var(--accent);
  background:var(--soft);
  padding:30px;
  min-height:300px;
}
.feature-number{
  font-size:13px;
  font-weight:900;
  color:var(--green);
}
.feature-card h3{
  font-family:Georgia,serif;
  font-size:29px;
  margin:20px 0 14px;
}
.feature-card p{color:var(--muted)}
.feature-card a{font-weight:900;color:var(--green)}

.story-section{padding:0;background:var(--cream)}
.story-grid{display:grid;grid-template-columns:1fr 1fr;min-height:630px}
.story-image-wrap{margin-left:calc((100vw - min(1180px,calc(100vw - 38px)))/-2)}
.story-image-wrap img{width:100%;height:100%;object-fit:cover}
.story-copy{padding:75px 0 75px 65px;align-self:center}
.story-copy p{font-size:18px;color:var(--muted)}
.check-list{list-style:none;padding:0;margin:25px 0}
.check-list li{padding:10px 0;border-bottom:1px solid var(--line)}
.check-list li:before{content:"✓";color:var(--green);font-weight:900;margin-right:11px}

.ways-section{padding:88px 0}
.center-heading{text-align:center;max-width:800px;margin:0 auto 38px}
.ways-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.way-card{
  min-height:260px;
  padding:30px;
  background:var(--green-dark);
  color:#fff;
  text-decoration:none;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  border-bottom:8px solid var(--accent);
}
.way-card:nth-child(2){background:#1f6844}
.way-card:nth-child(3){background:#705200}
.way-card span{font-size:12px;font-weight:900;letter-spacing:.14em}
.way-card h3{font-family:Georgia,serif;font-size:28px;line-height:1.15;margin:12px 0 0}

.final-cta{background:var(--accent);padding:55px 0}
.final-cta-inner{display:flex;justify-content:space-between;align-items:center;gap:30px}
.final-cta .section-kicker{color:#2b2408}

.inner-hero{
  min-height:470px;
  position:relative;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
}
.inner-hero-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 40%;
}
.inner-hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(4,32,19,.86),rgba(4,32,19,.63) 48%,rgba(4,32,19,.12));
}
.inner-hero-content{position:relative;z-index:2}
.inner-hero-panel{
  background:var(--green);
  color:#fff;
  max-width:690px;
  padding:42px 46px;
  margin:70px 0 0;
}
.inner-hero-panel h1{
  font-family:Georgia,serif;
  font-size:clamp(48px,5vw,72px);
  line-height:.98;
  letter-spacing:-.035em;
  margin:12px 0 18px;
}
.inner-hero-panel p{font-size:19px;color:rgba(255,255,255,.92);margin:0}

.form-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:20px;
  max-width:980px;
  margin:auto;
}
.form-card{
  background:#fff;
  border:1px solid var(--line);
  padding:38px;
  box-shadow:0 6px 24px rgba(10,40,20,.06);
  display:grid;
  gap:18px;
}
.form-card h2{
  font-family:Georgia,serif;
  font-size:30px;
  margin:20px 0 0;
  padding-top:22px;
  border-top:4px solid var(--accent);
}
.form-card h2:first-of-type{margin-top:0}
.form-card label{
  display:grid;
  gap:8px;
  font-weight:800;
}
.form-card input,.form-card select,.form-card textarea,.tracking-search input{
  width:100%;
  padding:14px 15px;
  border:2px solid #cfd7d0;
  border-radius:0;
  background:#fff;
}
.form-card input:focus,.form-card select:focus,.form-card textarea:focus,.tracking-search input:focus{
  outline:3px solid rgba(244,180,0,.3);
  border-color:var(--green);
}
.form-card textarea{min-height:140px;resize:vertical}
.form-grid{display:grid;gap:16px}
.form-grid.two{grid-template-columns:repeat(2,1fr)}
.form-card small{color:var(--muted);font-weight:400}
.consent{grid-template-columns:auto 1fr!important;align-items:flex-start}
.consent input{width:auto}
.hp{position:absolute;left:-9999px}
.side-note.bottom-note{
  background:var(--cream);
  border-left:7px solid var(--accent);
  padding:26px 28px;
  box-shadow:none;
}
.side-note h3{font-family:Georgia,serif;font-size:25px;margin-top:0}
.policy-box{background:var(--cream);padding:22px;border-left:6px solid var(--green)}
.policy-box li{margin:8px 0}
.donation-types,.checkbox-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}
.donation-types label,.checkbox-grid label{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:10px;
  border:2px solid var(--line);
  padding:14px;
  font-weight:700;
}
.donation-types input,.checkbox-grid input{width:auto}

.quick-actions{margin-bottom:40px}
.cards{display:grid;gap:22px}
.cards.three{grid-template-columns:repeat(3,1fr)}
.card{
  background:var(--soft);
  border-top:6px solid var(--green);
  padding:28px;
}
.action-card{text-decoration:none}
.action-card:hover{background:#eaf1e8}
.card h3{font-family:Georgia,serif;font-size:27px;margin-top:0}

.tracking-search{display:flex;gap:12px;margin-bottom:28px}
.tracking-search input{flex:1}
.tracking-card{border:1px solid var(--line);padding:30px;box-shadow:var(--shadow)}
.tracking-top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.status-pill{background:var(--accent);padding:9px 13px;font-weight:900}
.timeline{display:grid;grid-template-columns:repeat(8,1fr);gap:7px;margin:30px 0;overflow-x:auto}
.timeline-step{min-width:95px;text-align:center;color:#8a948d}
.timeline-step span{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;margin:auto;background:#e5eae5;font-weight:900}
.timeline-step.done{color:var(--green)}
.timeline-step.done span{background:var(--green);color:#fff}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.detail-box{border:1px solid var(--line);padding:20px;margin:14px 0;background:#fff}
.media-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.media-grid img,.media-grid video{width:100%;aspect-ratio:1;object-fit:cover}
.tracking-code{font-size:clamp(30px,6vw,58px);font-weight:900;color:var(--green);letter-spacing:.04em}
.success-panel{background:#fff;border-top:8px solid var(--accent);padding:45px;text-align:center;box-shadow:var(--shadow)}
.notice{padding:20px;background:#fff4cc;border-left:7px solid var(--accent)}
.flash{padding:14px 18px;text-align:center;font-weight:900}
.flash.success{background:#dff3e3;color:#07552f}
.flash.error{background:#ffe2df;color:#8e2017}

.newsletter-band{background:var(--green);color:#fff;padding:55px 0}
.newsletter-inner{display:flex;align-items:center;justify-content:space-between;gap:35px}
.newsletter-inner h2{font-size:40px}

.site-footer{background:#101813;color:#dfe7e1;padding:62px 0 24px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:42px}
.footer-intro p{max-width:330px;color:#b9c7bd}
.footer-brand{color:#fff}
.footer-brand img{width:62px;height:62px}
.site-footer h3{color:#fff;font-size:16px}
.site-footer a{display:block;text-decoration:none;margin:9px 0;color:#dfe7e1}
.site-footer a:hover{text-decoration:underline}
.footer-bottom{border-top:1px solid rgba(255,255,255,.18);margin-top:40px;padding-top:20px;display:flex;justify-content:space-between;gap:20px;font-size:13px}

.admin-head{display:flex;justify-content:space-between;align-items:center;gap:20px}
.dashboard-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:28px 0}
.dashboard-stats>div{background:var(--soft);border-top:5px solid var(--green);padding:20px}
.dashboard-stats strong{display:block;font-size:30px;color:var(--green)}
.table-wrap{overflow:auto;border:1px solid var(--line)}
table{border-collapse:collapse;width:100%;min-width:850px}
th,td{padding:12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;font-size:13px}
th{background:var(--soft)}
.admin-case-layout{display:grid;grid-template-columns:1fr 310px;gap:24px}
.package-row{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;margin-bottom:10px}

@media(max-width:1020px){
  .mainnav{gap:15px}
  .mainnav a{font-size:13px}
  .feature-grid,.ways-grid{grid-template-columns:1fr 1fr}
  .impact-strip-grid{grid-template-columns:1fr 1fr}
  .story-grid{grid-template-columns:1fr}
  .story-image-wrap{margin-left:0;height:480px}
  .story-copy{padding:55px 0}
  .footer-grid{grid-template-columns:1.5fr 1fr 1fr}
}

@media(max-width:860px){
  .top-alert-inner{justify-content:flex-start;overflow:auto}
  .top-alert-inner span{display:none}
  .menu-toggle{display:block}
  .mainnav{
    display:none;
    position:absolute;
    left:0;right:0;top:92px;
    background:#fff;
    flex-direction:column;
    align-items:stretch;
    padding:20px;
    border-bottom:1px solid var(--line);
  }
  .mainnav.open{display:flex}
  .mainnav a{padding:12px 0}
  .mainnav .nav-donate{text-align:center}
  .section-title-row{grid-template-columns:1fr;gap:18px}
  .feature-grid,.ways-grid,.cards.three{grid-template-columns:1fr}
  .inner-hero-panel{max-width:100%;margin-top:180px}
  .footer-grid{grid-template-columns:1fr 1fr}
  .newsletter-inner,.final-cta-inner{align-items:flex-start;flex-direction:column}
  .form-grid.two,.detail-grid,.admin-case-layout{grid-template-columns:1fr}
  .dashboard-stats{grid-template-columns:1fr 1fr}
}

@media(max-width:580px){
  .container{width:min(100% - 22px,1180px)}
  .header-main{min-height:76px}
  .brand img{width:48px;height:48px}
  .brand{font-size:20px}
  .mainnav{top:76px}
  .home-hero{min-height:620px}
  .home-hero-overlay{background:linear-gradient(0deg,rgba(5,34,21,.94),rgba(5,34,21,.46))}
  .hero-panel{padding:270px 0 38px}
  .hero-panel h1{font-size:51px}
  .hero-panel p{font-size:18px}
  .hero-actions .btn{width:100%}
  .impact-strip-grid{grid-template-columns:1fr}
  .impact-strip-grid>div{border-right:0;border-bottom:1px solid rgba(255,255,255,.2)}
  .section{padding:60px 0}
  .section-title-row h2,.center-heading h2,.story-copy h2{font-size:38px}
  .inner-hero{min-height:520px}
  .inner-hero-panel{padding:28px 24px;margin-top:230px}
  .inner-hero-panel h1{font-size:45px}
  .inner-hero-panel p{font-size:16px}
  .form-card{padding:22px}
  .donation-types,.checkbox-grid{grid-template-columns:1fr}
  .tracking-search{flex-direction:column}
  .timeline{grid-template-columns:repeat(8,110px)}
  .media-grid{grid-template-columns:1fr 1fr}
  .dashboard-stats{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column}
  .package-row{grid-template-columns:1fr}
}


.money-donation-panel{
  background:#fff8df;
  border-top:7px solid var(--accent);
  padding:28px;
  margin:4px 0 12px;
}
.money-panel-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
  margin-bottom:22px;
}
.money-panel-heading h3{
  font-family:Georgia,serif;
  font-size:31px;
  margin:8px 0 0;
}
.currency-detection-note{
  background:#fff;
  border:1px solid #ead38a;
  padding:8px 11px;
  font-size:13px;
  font-weight:800;
}
.currency-input-wrap{
  display:flex;
  align-items:stretch;
}
.currency-input-wrap span{
  min-width:54px;
  display:grid;
  place-items:center;
  background:var(--green);
  color:#fff;
  font-size:21px;
  font-weight:900;
}
.currency-input-wrap input{
  border-left:0;
}
.suggested-amounts{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:4px 0 20px;
}
.suggested-amounts button{
  min-width:78px;
  min-height:44px;
  border:2px solid var(--green);
  background:#fff;
  color:var(--green);
  font-weight:900;
  cursor:pointer;
}
.suggested-amounts button:hover{
  background:var(--green);
  color:#fff;
}
.money-notice{
  border-left:5px solid var(--green);
  background:#fff;
  padding:15px 17px;
  color:var(--muted);
}
[hidden]{display:none!important}

@media(max-width:580px){
  .money-donation-panel{padding:20px}
  .money-panel-heading{flex-direction:column}
  .suggested-amounts button{flex:1}
}





/* Global floating Donate Money action and modal */
.global-donate-button{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:9000;
  display:flex;
  align-items:center;
  gap:10px;
  min-height:58px;
  padding:0 23px;
  border:0;
  border-radius:999px;
  background:var(--accent);
  color:#151515;
  font-weight:900;
  font-size:16px;
  box-shadow:0 14px 38px rgba(0,0,0,.28);
  cursor:pointer;
  animation:globalDonatePulse 2.8s infinite;
}
.global-donate-button span:first-child{
  color:#d82035;
  font-size:21px;
}
.global-donate-button:hover{
  transform:translateY(-2px);
  background:#ffd04f;
}
@keyframes globalDonatePulse{
  0%{box-shadow:0 14px 38px rgba(0,0,0,.28),0 0 0 0 rgba(244,180,0,.48)}
  70%{box-shadow:0 14px 38px rgba(0,0,0,.28),0 0 0 15px rgba(244,180,0,0)}
  100%{box-shadow:0 14px 38px rgba(0,0,0,.28),0 0 0 0 rgba(244,180,0,0)}
}
.donation-modal[hidden]{display:none!important}
.donation-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  display:grid;
  place-items:center;
  padding:22px;
}
.donation-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,22,14,.74);
  backdrop-filter:blur(4px);
}
.donation-modal-dialog{
  position:relative;
  z-index:1;
  width:min(690px,100%);
  max-height:calc(100vh - 44px);
  overflow:auto;
  background:#fff;
  border-top:9px solid var(--accent);
  box-shadow:0 28px 80px rgba(0,0,0,.38);
}
.donation-modal-close{
  position:absolute;
  top:14px;
  right:16px;
  width:42px;
  height:42px;
  border:1px solid var(--line);
  background:#fff;
  font-size:30px;
  line-height:1;
  cursor:pointer;
}
.donation-modal-header{
  padding:34px 38px 20px;
}
.donation-modal-header h2{
  margin:7px 0 10px;
  font-family:Georgia,serif;
  font-size:46px;
  line-height:1;
}
.donation-modal-header p{
  margin:0;
  color:var(--muted);
}
.quick-money-form{
  display:grid;
  gap:19px;
  padding:0 38px 36px;
}
.frequency-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  border:2px solid var(--green);
}
.frequency-tabs label{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  min-height:48px;
  font-weight:900;
  cursor:pointer;
}
.frequency-tabs label:has(input:checked){
  background:var(--green);
  color:#fff;
}
.quick-amount-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:9px;
}
.quick-amount-grid button{
  min-height:52px;
  border:2px solid var(--green);
  background:#fff;
  color:var(--green);
  font-size:18px;
  font-weight:900;
  cursor:pointer;
}
.quick-amount-grid button.is-selected,
.quick-amount-grid button:hover{
  background:var(--green);
  color:#fff;
}
.quick-money-fields,.quick-donor-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.quick-money-form label{
  display:grid;
  gap:7px;
  font-weight:800;
}
.quick-money-form input,
.quick-money-form select{
  width:100%;
  min-height:50px;
  padding:11px 13px;
  border:2px solid #ccd5ce;
  background:#fff;
}
.quick-currency-input{
  display:flex;
}
.quick-currency-input span{
  min-width:53px;
  display:grid;
  place-items:center;
  background:var(--green);
  color:#fff;
  font-size:19px;
  font-weight:900;
}
.quick-currency-input input{
  border-left:0;
}
.fee-cover-option{
  grid-template-columns:auto 1fr!important;
  align-items:flex-start;
  padding:16px;
  background:#fff8df;
  border-left:6px solid var(--accent);
}
.fee-cover-option input{
  width:auto;
  min-height:0;
  margin-top:4px;
}
.fee-cover-option span{
  display:grid;
}
.fee-cover-option small{
  color:var(--muted);
  font-weight:400;
}
.quick-donation-summary{
  padding:17px 19px;
  background:var(--soft);
  border:1px solid var(--line);
}
.quick-donation-summary>div{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:6px 0;
}
.quick-summary-total{
  margin-top:7px;
  padding-top:13px!important;
  border-top:2px solid var(--green);
  font-size:19px;
}
.quick-submit-button{
  width:100%;
  font-size:17px;
}
.more-donation-options{
  text-align:center;
  color:var(--green);
  font-weight:900;
}
body.donation-modal-open{
  overflow:hidden;
}

@media(max-width:700px){
  .global-donate-button{
    left:12px;
    right:12px;
    bottom:12px;
    justify-content:center;
    border-radius:0;
  }
  .donation-modal{
    padding:8px;
    align-items:end;
  }
  .donation-modal-dialog{
    width:100%;
    max-height:92vh;
  }
  .donation-modal-header{
    padding:28px 22px 17px;
  }
  .donation-modal-header h2{
    font-size:38px;
  }
  .quick-money-form{
    padding:0 22px 26px;
  }
  .quick-amount-grid{
    grid-template-columns:1fr 1fr;
  }
  .quick-money-fields,.quick-donor-grid{
    grid-template-columns:1fr;
  }
}


/* Public verified requests */
.public-case-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.public-case-card{
  background:#fff;
  border:1px solid var(--line);
  border-top:7px solid var(--green);
  padding:26px;
  box-shadow:0 8px 24px rgba(10,40,20,.07);
}
.public-case-card-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:18px;
}
.public-case-code{
  font-size:12px;
  font-weight:900;
  color:var(--muted);
}
.public-case-card h3{
  font-family:Georgia,serif;
  font-size:28px;
  line-height:1.15;
  margin:0 0 14px;
}
.public-case-card p{color:var(--muted)}
.public-case-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:12px;
}
.public-case-meta span{
  background:var(--soft);
  padding:7px 10px;
  font-size:13px;
  font-weight:800;
}
.public-progress{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:5px;
  margin:20px 0;
}
.public-progress span{
  height:8px;
  background:#dfe5df;
}
.public-progress span.done{background:var(--green)}
.empty-public-cases{
  padding:36px;
  background:var(--soft);
  border-left:7px solid var(--accent);
  text-align:center;
}
.center-link-wrap{text-align:center;margin-top:28px}
.verified-home-section{background:var(--cream)}
.public-case-hero{
  background:var(--green-dark);
  color:#fff;
  padding:62px 0;
}
.public-case-hero-grid{
  display:grid;
  grid-template-columns:1fr 280px;
  gap:45px;
  align-items:center;
}
.public-case-hero h1{
  font-family:Georgia,serif;
  font-size:clamp(46px,5vw,72px);
  line-height:1;
  margin:12px 0 18px;
}
.public-case-hero p{
  font-size:19px;
  color:rgba(255,255,255,.88);
}
.public-case-hero-status{
  background:var(--accent);
  color:#1a1a1a;
  padding:26px;
}
.public-case-hero-status span,
.public-case-hero-status small{display:block}
.public-case-hero-status strong{
  display:block;
  font-size:28px;
  margin:7px 0;
}
.public-case-detail-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:28px;
  align-items:start;
}
.public-case-detail-card{
  background:#fff;
  border:1px solid var(--line);
  border-top:6px solid var(--green);
  padding:28px;
  margin-bottom:24px;
}
.public-case-detail-card h2{
  font-family:Georgia,serif;
  font-size:32px;
  margin:0 0 20px;
}
.public-timeline{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:10px;
  overflow:auto;
}
.public-timeline>div{
  min-width:110px;
  text-align:center;
  color:#8a948d;
}
.public-timeline span{
  width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;
  margin:0 auto 8px;
  background:#e5eae5;
  font-weight:900;
}
.public-timeline .done{color:var(--green)}
.public-timeline .done span{background:var(--green);color:#fff}
.package-table{
  display:grid;
  gap:1px;
  background:var(--line);
}
.package-table>div{
  display:flex;
  justify-content:space-between;
  gap:20px;
  background:#fff;
  padding:14px 16px;
}
.recipient-confirmed-box{
  background:#e8f5e7;
  border-left:7px solid var(--green);
  padding:20px;
}
.recipient-confirmed-box strong,
.recipient-confirmed-box span{display:block}
.public-case-sidebar{
  display:grid;
  gap:16px;
  position:sticky;
  top:120px;
}
.btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 22px;
  font-weight:900;
  text-decoration:none;
  border:2px solid var(--green);
  color:var(--green);
  background:#fff;
}
.public-case-admin{
  background:#f5f8f3;
  border-left:7px solid var(--green);
  padding:22px;
  display:grid;
  gap:16px;
}
.public-case-admin h3{
  font-family:Georgia,serif;
  font-size:26px;
  margin:0;
}
.admin-privacy-warning{
  background:#fff3cd;
  border-left:5px solid var(--accent);
  padding:14px;
  margin:0;
}
@media(max-width:900px){
  .public-case-grid{grid-template-columns:1fr 1fr}
  .public-case-hero-grid,.public-case-detail-layout{grid-template-columns:1fr}
  .public-case-sidebar{position:static}
}
@media(max-width:580px){
  .public-case-grid{grid-template-columns:1fr}
  .public-timeline{grid-template-columns:repeat(6,110px)}
  .package-table>div{flex-direction:column;gap:4px}
}


/* v11 platform enhancements */
.language-toggle{
  border:1px solid var(--line);
  background:#fff;
  padding:10px 12px;
  font-weight:900;
  cursor:pointer;
}
.urdu-mode{font-family:Tahoma,Arial,sans-serif}
.urdu-mode .mainnav{direction:rtl}

.verified-filter-bar{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:12px;
  margin-bottom:30px;
  padding:18px;
  background:var(--soft);
  border-left:7px solid var(--accent);
}
.verified-filter-bar input,.verified-filter-bar select{
  min-height:50px;
  border:2px solid var(--line);
  padding:10px 13px;
  background:#fff;
}

.funding-progress-card{border-top-color:var(--accent)}
.funding-numbers{
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin-bottom:12px;
}
.funding-progress-bar{
  height:18px;
  background:#e0e6e0;
  overflow:hidden;
}
.funding-progress-bar span{
  display:block;
  height:100%;
  background:var(--green);
}
.package-estimate-total{
  margin-top:18px;
  padding-top:14px;
  border-top:2px solid var(--line);
  text-align:right;
}
.case-qr-badge{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:3px;
  margin-bottom:15px;
}
.case-qr-badge span{
  display:grid;
  place-items:center;
  height:28px;
  background:#111;
  color:#fff;
  font-size:9px;
  letter-spacing:.08em;
}
.package-row{grid-template-columns:2fr 1fr 1fr 1fr}

.transparency-dashboard{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-bottom:20px;
}
.transparency-dashboard>div{
  background:var(--green-dark);
  color:#fff;
  padding:26px;
}
.transparency-dashboard strong{
  display:block;
  font-size:34px;
  color:var(--accent);
}
.transparency-dashboard span{font-size:14px}
.transparency-disclaimer{font-size:13px;color:var(--muted)}

.reach-section{background:var(--cream)}
.reach-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:55px;
  align-items:center;
}
.reach-grid h2{
  font-family:Georgia,serif;
  font-size:clamp(38px,4.5vw,58px);
  line-height:1.05;
}
.pakistan-map-card{
  background:#fff;
  border:1px solid var(--line);
  padding:30px;
  min-height:470px;
  display:grid;
  place-items:center;
}
.map-silhouette{
  width:270px;
  height:390px;
  position:relative;
  background:linear-gradient(145deg,#0c7541,#07552f);
  clip-path:polygon(48% 0,62% 8%,67% 22%,78% 35%,71% 48%,80% 62%,68% 74%,61% 100%,45% 90%,32% 78%,24% 62%,16% 45%,21% 29%,35% 17%);
}
.map-dot{
  position:absolute;
  width:16px;height:16px;border-radius:50%;
  background:var(--accent);
  border:3px solid #fff;
  box-shadow:0 0 0 4px rgba(244,180,0,.3);
}
.dot-lahore{top:42%;left:63%}
.dot-karachi{top:82%;left:42%}
.dot-islamabad{top:30%;left:57%}
.dot-peshawar{top:25%;left:39%}
.dot-quetta{top:58%;left:28%}

.public-donation-ticker{
  display:flex;
  background:#0f271b;
  color:#fff;
  min-height:42px;
  overflow:hidden;
}
.ticker-label{
  flex:0 0 auto;
  background:var(--accent);
  color:#111;
  padding:11px 16px;
  font-weight:900;
  z-index:2;
}
.ticker-track{overflow:hidden;flex:1}
.ticker-items{
  display:flex;
  width:max-content;
  animation:tickerMove 30s linear infinite;
}
.ticker-items span{
  padding:11px 28px;
  white-space:nowrap;
  border-right:1px solid rgba(255,255,255,.2);
}
@keyframes tickerMove{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

@media(max-width:900px){
  .verified-filter-bar{grid-template-columns:1fr}
  .transparency-dashboard{grid-template-columns:1fr 1fr}
  .reach-grid{grid-template-columns:1fr}
  .package-row{grid-template-columns:1fr 1fr}
}
@media(max-width:580px){
  .transparency-dashboard{grid-template-columns:1fr}
  .package-row{grid-template-columns:1fr}
  .funding-numbers{flex-direction:column;gap:4px}
  .pakistan-map-card{min-height:380px}
  .map-silhouette{width:220px;height:320px}
}




/* v13 Roman Urdu language mode */
.roman-urdu-mode{
  direction:ltr;
  text-align:left;
  font-family:Arial,Helvetica,sans-serif;
}
.roman-urdu-mode h1,
.roman-urdu-mode h2,
.roman-urdu-mode h3,
.roman-urdu-mode h4,
.roman-urdu-mode p,
.roman-urdu-mode a,
.roman-urdu-mode button,
.roman-urdu-mode label,
.roman-urdu-mode input,
.roman-urdu-mode select,
.roman-urdu-mode textarea,
.roman-urdu-mode span,
.roman-urdu-mode strong,
.roman-urdu-mode small{
  font-family:Arial,Helvetica,sans-serif!important;
}
.roman-urdu-mode .section-kicker{
  letter-spacing:.09em;
}
.roman-urdu-mode input,
.roman-urdu-mode select,
.roman-urdu-mode textarea{
  direction:ltr;
  text-align:left;
}
.roman-urdu-mode .mainnav{
  direction:ltr;
}


/* v15 desktop header spacing fix */
@media(min-width:861px){
  .header-main{
    min-height:84px;
    gap:18px;
  }

  .brand{
    flex:0 0 auto;
    font-size:22px;
    gap:10px;
  }

  .brand img{
    width:52px;
    height:52px;
  }

  .mainnav{
    flex:1 1 auto;
    min-width:0;
    justify-content:flex-end;
    gap:14px;
  }

  .mainnav a{
    flex:0 0 auto;
    white-space:nowrap;
    font-size:13px;
    line-height:1.15;
    padding:30px 0;
  }

  .mainnav .nav-donate{
    padding:13px 16px;
    min-width:86px;
    text-align:center;
  }

  .language-toggle{
    flex:0 0 auto;
    white-space:nowrap;
    padding:10px 12px;
    font-size:13px;
  }

  .roman-urdu-mode .mainnav{
    gap:12px;
  }

  .roman-urdu-mode .mainnav a{
    font-size:12.5px;
    line-height:1.25;
  }

  .roman-urdu-mode .brand{
    font-size:21px;
  }
}

/* Switch to mobile navigation sooner on narrower desktop/tablet widths */
@media(min-width:861px) and (max-width:1180px){
  .menu-toggle{
    display:block;
  }

  .mainnav{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:84px;
    background:#fff;
    flex-direction:column;
    align-items:stretch;
    padding:20px;
    border-bottom:1px solid var(--line);
    box-shadow:0 14px 30px rgba(0,0,0,.08);
  }

  .mainnav.open{
    display:flex;
  }

  .mainnav a{
    padding:12px 0;
    font-size:15px;
  }

  .mainnav .nav-donate{
    text-align:center;
  }

  .language-toggle{
    width:100%;
    text-align:center;
  }
}


/* v16 operations platform */
.ops-shell{padding:54px 0 80px;background:#f4f6f3;min-height:70vh}
.ops-topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:24px}
.ops-topbar h1{font-family:Georgia,serif;font-size:46px;margin:6px 0}
.ops-topbar p{color:var(--muted);margin:0}
.ops-actions{display:flex;gap:10px;flex-wrap:wrap}
.ops-nav{display:flex;gap:4px;flex-wrap:wrap;background:var(--green-dark);padding:8px;margin-bottom:24px}
.ops-nav a{color:#fff;text-decoration:none;padding:12px 16px;font-weight:800}
.ops-nav a:hover{background:var(--green)}
.ops-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:24px}
.ops-stat-grid>div{background:#fff;border-top:6px solid var(--accent);padding:22px}
.ops-stat-grid strong{display:block;font-size:34px;color:var(--green)}
.ops-stat-grid span{color:var(--muted);font-weight:700}
.ops-panel{background:#fff;border:1px solid var(--line);padding:26px;margin-bottom:24px}
.ops-panel h2{font-family:Georgia,serif;font-size:30px;margin-top:0}
.ops-panel-head{display:flex;justify-content:space-between;align-items:center}
.ops-two-column{display:grid;grid-template-columns:420px 1fr;gap:24px;align-items:start}
.ops-filter-bar{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px;background:#fff;padding:18px;margin-bottom:20px}
.ops-filter-bar input,.ops-filter-bar select{min-height:48px;border:2px solid var(--line);padding:10px}
.ops-editor{max-width:1000px;margin:auto}
.inline-adjust{display:grid;grid-template-columns:70px 70px 110px 90px auto;gap:5px}
.inline-adjust input,.inline-adjust select{min-width:0;padding:6px;border:1px solid var(--line)}
.inline-adjust button{background:var(--green);color:#fff;border:0;padding:6px 10px}
.low-stock-row{background:#fff0ee}
.package-template-card{border:1px solid var(--line);border-left:6px solid var(--green);padding:18px;margin-bottom:14px}
.package-template-card h3{margin:0 0 8px;font-family:Georgia,serif;font-size:24px}
.package-template-card>div{display:flex;justify-content:space-between;margin:12px 0}
.delivery-card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.delivery-card{background:#fff;border-top:6px solid var(--green);padding:22px;display:grid;gap:12px}
.delivery-card h3{font-family:Georgia,serif;font-size:26px;margin:0}
.delivery-card label{display:grid;gap:6px;font-weight:700}
.delivery-card input,.delivery-card select,.delivery-card textarea{padding:10px;border:1px solid var(--line)}
.ops-login-card{max-width:560px;margin:auto}
@media(max-width:1050px){.ops-two-column{grid-template-columns:1fr}.delivery-card-grid{grid-template-columns:1fr 1fr}.ops-stat-grid{grid-template-columns:1fr 1fr}.ops-filter-bar{grid-template-columns:1fr 1fr}.inline-adjust{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.ops-topbar{flex-direction:column}.ops-stat-grid,.delivery-card-grid,.ops-filter-bar{grid-template-columns:1fr}.ops-nav{flex-direction:column}.inline-adjust{grid-template-columns:1fr}}

/* v17 grouped navigation */
@media(min-width:861px){
  .header-main{min-height:84px;gap:18px}
  .brand{flex:0 0 auto;font-size:22px}
  .brand img{width:52px;height:52px}
  .mainnav{flex:1 1 auto;min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:12px}
  .mainnav>a,.nav-group-toggle{white-space:nowrap;font-size:14px;font-weight:800}
  .mainnav>a{padding:31px 0}
  .nav-group{position:relative;flex:0 0 auto}
  .nav-group-toggle{display:flex;align-items:center;gap:6px;min-height:84px;border:0;background:transparent;cursor:pointer}
  .nav-dropdown{position:absolute;top:74px;right:0;width:235px;background:#fff;border:1px solid var(--line);border-top:5px solid var(--accent);box-shadow:0 18px 42px rgba(0,0,0,.16);padding:10px;display:none;z-index:200}
  .nav-group.open .nav-dropdown{display:block}
  .nav-dropdown a{display:block;padding:12px 13px;text-decoration:none;font-weight:750;border-bottom:1px solid var(--line)}
  .nav-dropdown a:last-child{border-bottom:0}
  .nav-dropdown a:hover{background:var(--soft);color:var(--green)}
  .language-toggle{flex:0 0 auto;white-space:nowrap;font-size:13px}
  .mainnav .nav-donate{flex:0 0 auto;padding:14px 18px;min-width:90px;text-align:center}
}
@media(min-width:861px) and (max-width:1080px){
  .menu-toggle{display:block}
  .mainnav{display:none;position:absolute;left:0;right:0;top:84px;background:#fff;padding:18px 20px;border-bottom:1px solid var(--line);box-shadow:0 14px 30px rgba(0,0,0,.08);flex-direction:column;align-items:stretch}
  .mainnav.open{display:flex}
  .mainnav>a{padding:12px 0}
  .nav-group,.language-toggle,.mainnav .nav-donate{width:100%}
  .nav-group-toggle{width:100%;min-height:48px;justify-content:space-between}
  .nav-dropdown{position:static;width:100%;border:0;border-left:4px solid var(--accent);box-shadow:none;padding:0 0 0 14px}
}
@media(max-width:860px){
  .nav-group{width:100%}
  .nav-group-toggle{width:100%;display:flex;justify-content:space-between;align-items:center;min-height:48px;border:0;background:#fff;padding:0;font-weight:800}
  .nav-dropdown{display:none;padding-left:14px;border-left:4px solid var(--accent)}
  .nav-group.open .nav-dropdown{display:block}
  .nav-dropdown a{display:block;padding:10px 8px;text-decoration:none;border-bottom:1px solid var(--line)}
}


/* v18 real Pakistan service map */
.real-map-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 310px;
  gap:24px;
  align-items:stretch;
}
.feed-pakistan-map{
  width:100%;
  min-height:610px;
  border:1px solid var(--line);
  box-shadow:0 10px 34px rgba(10,40,20,.09);
  background:#e9efe8;
  z-index:1;
}
.map-legend-panel{
  background:#fff;
  border-top:7px solid var(--accent);
  padding:28px;
  box-shadow:0 10px 34px rgba(10,40,20,.08);
  align-self:stretch;
}
.map-legend-panel h3{
  font-family:Georgia,serif;
  font-size:28px;
  margin:0 0 22px;
}
.map-legend-panel>div{
  display:flex;
  align-items:center;
  gap:11px;
  margin:14px 0;
}
.legend-dot{
  width:17px;
  height:17px;
  border-radius:50%;
  border:3px solid #fff;
  box-shadow:0 0 0 1px rgba(0,0,0,.15);
}
.legend-dot.service{background:#07552f}
.legend-dot.distribution{background:#14A44D}
.legend-dot.partner{background:#6b4aa0}
.legend-dot.volunteer{background:#167aa8}
.map-counts{
  display:block!important;
  background:var(--soft);
  padding:18px;
  margin:24px 0!important;
}
.map-counts strong{
  display:block;
  font-size:40px;
  line-height:1;
  color:var(--green);
}
.map-counts span{
  display:block;
  margin-top:7px;
  color:var(--muted);
}
.map-empty-message{
  margin-top:18px;
  background:#fff8df;
  border-left:6px solid var(--accent);
  padding:16px 18px;
}
.location-admin-card{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  border:1px solid var(--line);
  padding:15px;
  margin-bottom:11px;
}
.location-admin-card>div{
  display:grid;
  gap:3px;
}
.location-admin-card span,
.location-admin-card small{
  color:var(--muted);
}
.danger-link{
  border:0;
  background:transparent;
  color:#a52b20;
  font-weight:800;
  cursor:pointer;
}
.leaflet-popup-content{
  font-family:Arial,Helvetica,sans-serif;
  line-height:1.45;
}
.leaflet-popup-content strong{
  color:var(--green);
  font-size:16px;
}
@media(max-width:900px){
  .real-map-layout{grid-template-columns:1fr}
  .feed-pakistan-map{min-height:500px}
}
@media(max-width:580px){
  .feed-pakistan-map{min-height:430px}
  .map-legend-panel{padding:22px}
}


/* v19 staff and volunteer ID card maker */
.id-card-admin-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
}
.id-card-admin-item{
  background:#fff;
  border:1px solid var(--line);
  border-top:6px solid var(--green);
  padding:22px;
  display:grid;
  grid-template-columns:110px 1fr;
  gap:20px;
  align-items:center;
}
.id-card-admin-photo{
  width:110px;
  height:130px;
  background:var(--soft);
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid var(--line);
}
.id-card-admin-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.id-card-admin-photo span{
  font-size:44px;
  font-weight:900;
  color:var(--green);
}
.id-card-admin-info h2{
  font-family:Georgia,serif;
  font-size:26px;
  margin:10px 0 4px;
}
.id-card-admin-info p,
.id-card-admin-info small{
  color:var(--muted);
}
.id-card-admin-actions{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  margin-top:15px;
}
.id-maker-layout{
  display:grid;
  grid-template-columns:390px minmax(0,1fr);
  gap:32px;
  align-items:start;
}
.id-card-preview-wrap{
  display:grid;
  gap:16px;
  justify-items:center;
}
.staff-id-card{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  width:100%;
  max-width:760px;
}
.staff-id-front,
.staff-id-back{
  width:100%;
  aspect-ratio:85.6/54;
  background:#fff;
  border:1px solid #cfd7d0;
  box-shadow:0 18px 50px rgba(0,0,0,.15);
  overflow:hidden;
  position:relative;
}
.staff-id-front{
  border-top:10px solid var(--accent);
}
.staff-id-header{
  background:var(--green-dark);
  color:#fff;
  min-height:74px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 18px;
}
.staff-id-header img{
  width:48px;
  height:48px;
  border-radius:50%;
}
.staff-id-header strong,
.staff-id-header span{
  display:block;
}
.staff-id-header strong{
  font-size:21px;
}
.staff-id-header span{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.staff-id-body{
  display:grid;
  grid-template-columns:112px 1fr;
  gap:17px;
  padding:18px;
}
.staff-id-photo{
  width:112px;
  height:132px;
  background:var(--soft);
  border:4px solid #fff;
  box-shadow:0 0 0 1px var(--line);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.staff-id-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.staff-id-photo span{
  font-size:48px;
  font-weight:900;
  color:var(--green);
}
.staff-id-details{
  min-width:0;
  align-self:center;
}
.staff-id-role{
  display:inline-block;
  background:var(--accent);
  padding:4px 8px;
  font-size:10px;
  font-weight:900;
  letter-spacing:.1em;
}
.staff-id-details h2{
  font-family:Georgia,serif;
  font-size:25px;
  line-height:1.05;
  margin:10px 0 6px;
}
.staff-id-details p{
  margin:0 0 12px;
  color:var(--muted);
}
.staff-id-details>strong{
  color:var(--green);
  font-size:13px;
}
.staff-id-footer{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  background:var(--green);
  color:#fff;
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:8px 16px;
  font-size:9px;
}
.staff-id-back{
  padding:20px;
  border-bottom:10px solid var(--green);
}
.staff-id-back-heading{
  display:flex;
  justify-content:space-between;
  gap:14px;
  border-bottom:3px solid var(--accent);
  padding-bottom:10px;
}
.staff-id-back-heading strong{
  color:var(--green-dark);
}
.staff-id-back-heading span{
  font-size:12px;
  font-weight:900;
}
.staff-id-verification-box{
  display:grid;
  grid-template-columns:105px 1fr;
  gap:15px;
  align-items:center;
  margin:17px 0;
}
.staff-id-qr{
  width:100px;
  height:100px;
}
.staff-id-qr img,
.staff-id-qr canvas{
  max-width:100%!important;
  height:auto!important;
}
.staff-id-verification-box p{
  font-size:8px;
  word-break:break-all;
  color:var(--muted);
}
.staff-id-back-info{
  font-size:10px;
  line-height:1.4;
}
.staff-id-back-info p{
  margin:5px 0;
}
.staff-id-signature-line{
  position:absolute;
  right:20px;
  bottom:23px;
  width:135px;
  border-top:1px solid #222;
  padding-top:4px;
  text-align:center;
  font-size:8px;
}
.id-card-print-note{
  background:#fff8df;
  border-left:5px solid var(--accent);
  padding:13px 16px;
}
.id-verify-section{
  background:var(--soft);
}
.id-verify-card{
  background:#fff;
  border-top:9px solid var(--green);
  padding:42px;
  text-align:center;
  box-shadow:var(--shadow);
}
.id-verify-card.invalid{
  border-top-color:#b43c2f;
}
.id-verify-icon{
  width:70px;
  height:70px;
  border-radius:50%;
  margin:0 auto 18px;
  display:grid;
  place-items:center;
  background:var(--green);
  color:#fff;
  font-size:38px;
  font-weight:900;
}
.id-verify-card.invalid .id-verify-icon{
  background:#b43c2f;
}
.id-verify-person{
  display:grid;
  grid-template-columns:130px 1fr;
  gap:24px;
  max-width:530px;
  margin:28px auto;
  text-align:left;
  align-items:center;
}
.id-verify-person img{
  width:130px;
  height:150px;
  object-fit:cover;
}
.id-valid-message,
.id-invalid-message{
  padding:17px;
  font-weight:800;
  margin-top:20px;
}
.id-valid-message{
  background:#e5f4e7;
  color:var(--green);
}
.id-invalid-message{
  background:#ffe6e2;
  color:#8e2017;
}
.id-verify-privacy{
  color:var(--muted);
  font-size:13px;
  margin-top:24px;
}
@media(max-width:950px){
  .id-maker-layout{
    grid-template-columns:1fr;
  }
  .staff-id-card{
    max-width:520px;
    grid-template-columns:1fr;
  }
}
@media(max-width:700px){
  .id-card-admin-grid{
    grid-template-columns:1fr;
  }
  .id-card-admin-item{
    grid-template-columns:85px 1fr;
  }
  .id-card-admin-photo{
    width:85px;
    height:105px;
  }
  .id-verify-person{
    grid-template-columns:1fr;
    text-align:center;
  }
  .id-verify-person img{
    margin:auto;
  }
}
@media print{
  body *{
    visibility:hidden!important;
  }
  #printable-id-card,
  #printable-id-card *{
    visibility:visible!important;
  }
  #printable-id-card{
    position:absolute;
    left:0;
    top:0;
    width:100%;
    max-width:none;
    display:flex;
    gap:8mm;
    padding:8mm;
    background:#fff;
  }
  .staff-id-front,
  .staff-id-back{
    width:85.6mm;
    height:54mm;
    flex:0 0 85.6mm;
    box-shadow:none;
    print-color-adjust:exact;
    -webkit-print-color-adjust:exact;
  }
}


/* v20 balanced ID card correction */
.staff-id-front{border-top:8px solid var(--accent)}
.staff-id-header{min-height:72px;padding:10px 18px}
.staff-id-body{
  grid-template-columns:126px minmax(0,1fr);
  gap:18px;
  padding:12px 18px 42px;
  align-items:start;
}
.staff-id-photo{
  width:126px;
  height:150px;
  margin-top:-4px;
  border:4px solid #fff;
  border-radius:4px;
  box-shadow:0 0 0 2px var(--accent),0 8px 18px rgba(0,0,0,.12);
}
.staff-id-photo img{object-position:center 18%}
.staff-id-role-ribbon{
  position:absolute;
  top:78px;
  right:0;
  min-width:128px;
  max-width:48%;
  background:var(--accent);
  color:#151515;
  padding:7px 16px 7px 22px;
  font-size:10px;
  line-height:1;
  font-weight:900;
  letter-spacing:.08em;
  text-align:center;
  z-index:3;
  clip-path:polygon(12px 0,100% 0,100% 100%,0 100%);
}
.staff-id-details{align-self:start;padding-top:48px}
.staff-id-details h2{
  font-family:Arial,Helvetica,sans-serif;
  font-size:23px;
  line-height:1.06;
  margin:0 0 5px;
  max-width:100%;
  overflow-wrap:anywhere;
  color:#111;
}
.staff-id-position{
  margin:0 0 14px!important;
  color:var(--green)!important;
  font-weight:800;
  font-size:15px;
}
.staff-id-number{
  border-top:2px solid var(--accent);
  padding-top:9px;
  display:grid;
  gap:2px;
}
.staff-id-number span{
  font-size:9px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.07em;
}
.staff-id-number strong{
  color:var(--green);
  font-size:13px;
  overflow-wrap:anywhere;
}
.id-maker-form{align-self:start}
.id-maker-form h2{margin-top:0}
@media(max-width:1180px){
  .id-maker-layout{grid-template-columns:360px minmax(0,1fr)}
  .staff-id-card{grid-template-columns:1fr;max-width:470px}
}
@media(max-width:950px){
  .id-maker-layout{grid-template-columns:1fr}
}
@media print{
  .staff-id-role-ribbon{print-color-adjust:exact;-webkit-print-color-adjust:exact}
}


/* v21 ID card print and serving-city correction */
.staff-id-body{
  padding-top:8px;
  padding-bottom:38px;
}
.staff-id-photo{
  height:142px;
  margin-top:-2px;
}
.staff-id-details{
  padding-top:40px;
}
.staff-id-details h2{
  font-size:21px;
  line-height:1.02;
  margin-bottom:4px;
}
.staff-id-position{
  margin-bottom:9px!important;
}
.staff-id-city{
  border-top:2px solid var(--accent);
  padding-top:7px;
  margin-bottom:8px;
  display:grid;
  gap:2px;
}
.staff-id-city span{
  font-size:9px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.06em;
}
.staff-id-city strong{
  color:var(--green);
  font-size:13px;
}
.staff-id-number{
  padding-top:7px;
}
@media print{
  body *{display:none!important}
}


/* v22 balanced ID card front */
.staff-id-front{
  min-height:250px;
}

.staff-id-body{
  grid-template-columns:136px minmax(0,1fr);
  gap:20px;
  padding:8px 18px 42px;
  align-items:start;
}

.staff-id-photo{
  width:136px;
  height:145px;
  margin-top:0;
  flex-shrink:0;
}

.staff-id-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 12%;
}

.staff-id-details{
  align-self:start;
  padding-top:30px;
  min-width:0;
}

.staff-id-details h2{
  font-size:22px;
  line-height:1.02;
  margin:0 0 12px;
  color:#111;
  overflow-wrap:anywhere;
}

.staff-id-role-ribbon{
  top:78px;
  right:0;
  min-width:138px;
  max-width:46%;
  padding:8px 18px 8px 24px;
  font-size:10px;
}

.staff-id-city{
  border-top:2px solid var(--accent);
  padding-top:7px;
  margin-bottom:8px;
  display:grid;
  gap:1px;
}

.staff-id-city span,
.staff-id-number span{
  font-size:8px;
  line-height:1.1;
}

.staff-id-city strong,
.staff-id-number strong{
  font-size:12px;
  line-height:1.15;
}

.staff-id-number{
  border-top:1px solid var(--line);
  padding-top:6px;
}

.staff-id-footer{
  min-height:31px;
  padding:8px 16px;
  align-items:center;
  font-size:9px;
  z-index:5;
}

@media(max-width:1180px){
  .staff-id-card{
    max-width:500px;
  }
}

@media print{
  .staff-id-front{
    min-height:0;
  }
}


/* v23 ID card header/footer height correction */
.staff-id-front,
.staff-id-back{
  aspect-ratio:85.6/54;
}

.staff-id-front{
  border-top-width:6px;
  min-height:0;
}

.staff-id-header{
  min-height:54px;
  height:54px;
  padding:7px 14px;
  gap:9px;
}

.staff-id-header img{
  width:38px;
  height:38px;
}

.staff-id-header strong{
  font-size:17px;
  line-height:1;
}

.staff-id-header span{
  font-size:8px;
  line-height:1.2;
}

.staff-id-role-ribbon{
  top:59px;
  min-width:120px;
  padding:6px 14px 6px 20px;
  font-size:9px;
}

.staff-id-body{
  grid-template-columns:124px minmax(0,1fr);
  gap:16px;
  padding:7px 16px 31px;
}

.staff-id-photo{
  width:124px;
  height:126px;
  margin-top:0;
}

.staff-id-details{
  padding-top:24px;
}

.staff-id-details h2{
  font-size:20px;
  margin-bottom:8px;
}

.staff-id-city{
  padding-top:5px;
  margin-bottom:6px;
}

.staff-id-number{
  padding-top:5px;
}

.staff-id-city strong,
.staff-id-number strong{
  font-size:11px;
}

.staff-id-footer{
  height:25px;
  min-height:25px;
  padding:0 14px;
  font-size:8px;
  line-height:1;
}

.staff-id-back{
  padding:14px 16px 24px;
  border-bottom-width:6px;
}

.staff-id-back-heading{
  padding-bottom:7px;
}

.staff-id-verification-box{
  grid-template-columns:88px 1fr;
  gap:12px;
  margin:10px 0;
}

.staff-id-qr{
  width:84px;
  height:84px;
}

.staff-id-qr img,
.staff-id-qr canvas{
  width:84px!important;
  height:84px!important;
}

.staff-id-back-info{
  font-size:8px;
  line-height:1.25;
}

.staff-id-signature-line{
  bottom:17px;
}


/* v24 exact PDF card export */
@media print{
  body *{
    visibility:visible!important;
    display:initial;
  }
}
.ops-actions button[disabled]{
  opacity:.65;
  cursor:wait;
}


/* v25 ID-card role control and header alignment */
.staff-id-header > div{
  transform:translateY(-2px);
}

.staff-id-header img{
  transform:translateY(-1px);
}

.staff-id-role-ribbon{
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  min-height:26px;
  padding-top:0;
  padding-bottom:0;
}

.id-maker-form select#id-role{
  font-weight:700;
}


/* v26 transactional email preview */
.email-admin-layout{
  display:grid;
  grid-template-columns:310px minmax(0,1fr);
  gap:24px;
  align-items:start;
  margin-bottom:26px;
}
.email-template-list{
  background:#fff;
  border:1px solid var(--line);
  max-height:860px;
  overflow:auto;
}
.email-template-list h2{
  position:sticky;
  top:0;
  z-index:2;
  margin:0;
  padding:20px;
  background:var(--green-dark);
  color:#fff;
  font-family:Georgia,serif;
}
.email-template-list a{
  display:block;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  text-decoration:none;
}
.email-template-list a:hover,
.email-template-list a.active{
  background:#fff8df;
  border-left:5px solid var(--accent);
}
.email-template-list strong,
.email-template-list small{
  display:block;
}
.email-template-list small{
  margin-top:4px;
  color:var(--muted);
}
.email-preview-toolbar{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  background:#fff;
  border:1px solid var(--line);
  padding:16px 18px;
}
.email-preview-toolbar strong,
.email-preview-toolbar span{
  display:block;
}
.email-preview-toolbar span{
  margin-top:5px;
  color:var(--muted);
  font-size:13px;
}
.email-preview-frame{
  display:block;
  width:100%;
  min-height:820px;
  border:1px solid var(--line);
  border-top:0;
  background:#eef2ed;
}
@media(max-width:900px){
  .email-admin-layout{grid-template-columns:1fr}
  .email-template-list{max-height:360px}
  .email-preview-toolbar{flex-direction:column;align-items:flex-start}
}
