/* Nepal Flood Relief — bar + modal. Temporary: to retire, delete this file,
   assets/js/relief-notice.js, their two tags and the markup in index.html.
   relief-notice.js overrides `top` and sets --relief-bar-h at runtime; the
   values below only cover first paint and no-JS. */
.relief-bar { position: fixed; top: 84px; left: 0; right: 0; z-index: 999;
  background: linear-gradient(90deg, #F5B92B, #EBA614 52%, #E09A0D);
  border-bottom: 1px solid rgba(0,13,45,.16); }
.relief-bar ~ .hero-v2 { padding-top: calc(80px + var(--relief-bar-h, 54px)); }
.relief-bar-inner { max-width: 1200px; margin: 0 auto; padding: 9px 24px;
  display: flex; align-items: center; gap: 14px; }
.relief-bar-icon { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: #000d2d; color: #F5B92B;
  display: flex; align-items: center; justify-content: center; }
.relief-bar-icon svg, .relief-bar-btn svg { width: 15px; height: 15px; }
.relief-bar-text { margin: 0; flex: 1; min-width: 0; font-size: .9rem;
  line-height: 1.3; color: #2A1D02; }
.relief-bar-btn { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  background: #000d2d; color: #fff; border: 0; border-radius: 50px; padding: 7px 16px;
  font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: background .2s ease; }
.relief-bar-btn:hover { background: #003484; }

/* Modal */
.relief-modal { position: fixed; inset: 0; z-index: 2000; padding: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,13,45,.55); backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s; }
.relief-modal.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.relief-modal-card { position: relative; width: 100%; max-width: 760px;
  max-height: calc(100vh - 48px); overflow-y: auto; background: #fff;
  border-radius: 20px; box-shadow: 0 24px 70px rgba(0,13,45,.32); }
.relief-modal-head { padding: 22px 56px 20px 28px; border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, #F5B92B, #EBA614 52%, #E09A0D); }
.relief-modal-eyebrow { display: inline-block; background: rgba(0,13,45,.9);
  color: #F5B92B; font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 11px; border-radius: 50px; margin-bottom: 12px; }
.relief-modal-title { margin: 0; font-size: 1.45rem; line-height: 1.2;
  font-weight: 700; letter-spacing: -.02em; color: #1A1200; }
.relief-modal-close { position: absolute; top: 16px; right: 16px; width: 32px;
  height: 32px; border: 0; border-radius: 50%; background: rgba(0,13,45,.1);
  color: #1A1200; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.relief-modal-close svg { width: 15px; height: 15px; }
.relief-modal-body { padding: 24px 28px 28px; }
.relief-modal-body p { margin: 0 0 14px; font-size: .93rem; line-height: 1.62; color: #4D4D53; }
.relief-closing { margin: 0 !important; padding-top: 16px;
  border-top: 1px solid rgba(0,13,45,.08); font-weight: 600; color: #0F0F11 !important; }
.relief-help-title { margin: 20px 0 10px; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #000d2d; }
.relief-steps { margin: 0 0 22px; padding: 0; list-style: none; counter-reset: relief-step; }
.relief-steps li { counter-increment: relief-step; position: relative;
  padding-left: 34px; margin-bottom: 11px; font-size: .9rem; line-height: 1.55; color: #4D4D53; }
.relief-steps li::before { content: counter(relief-step); position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: #FDF0D2; color: #8A6100;
  font-size: .74rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }

/* Donation method picker + QR posters */
.relief-methods, .relief-qr-grid { display: grid; grid-template-columns: 1fr 1fr; }
.relief-methods { gap: 10px; margin-bottom: 18px; }
.relief-qr-grid { gap: 12px; margin-bottom: 14px; }
.relief-qr-grid-single { grid-template-columns: minmax(0, 360px); justify-content: center; }
.relief-method { position: relative; text-align: center; padding: 14px 12px;
  background: #fff; border: 1.5px solid rgba(0,13,45,.12); border-radius: 12px;
  font: inherit; cursor: pointer; transition: border-color .2s ease; }
.relief-method.is-active { border-color: #000d2d; background: #FCFDFF; }
.relief-method.is-active::after { content: '\2713'; position: absolute; top: -9px; right: -9px;
  width: 20px; height: 20px; border-radius: 50%; background: #000d2d; color: #fff;
  font-size: .7rem; display: flex; align-items: center; justify-content: center; }
.relief-method-name { display: block; font-size: .8rem; font-weight: 600;
  line-height: 1.4; color: #003484; }
.relief-method-via { display: block; margin-top: 5px; font-size: .7rem; color: #4D4D53; }
.relief-qr { margin: 0; text-align: center; padding: 16px; background: #FBFBFC;
  border: 1px solid rgba(0,13,45,.08); border-radius: 14px; }
.relief-qr img { display: block; width: 100%; max-width: 310px; height: auto;
  margin: 0 auto 12px; border-radius: 8px; background: #fff; }
.relief-qr-caption { margin: 0; font-size: .74rem; line-height: 1.45; color: #4D4D53; }
.relief-qr-caption strong { display: block; font-size: .8rem; color: #0F0F11; }
.relief-note { margin: 0 0 20px !important; font-size: .76rem !important; text-align: center; }

@media (max-width: 768px) {
  .relief-bar { top: 56px; } .relief-bar-text { font-size: .8rem; }
  .relief-bar-inner { padding: 8px 16px; gap: 10px; }
  .relief-bar-btn { font-size: .76rem; padding: 6px 13px; }
}
@media (max-width: 520px) {
  .relief-methods, .relief-qr-grid, .relief-qr-grid-single { grid-template-columns: 1fr; }
  .relief-modal { padding: 12px; } .relief-modal-title { font-size: 1.2rem; }
  .relief-modal-head { padding: 18px 50px 16px 20px; }
  .relief-modal-body { padding: 20px 20px 24px; }
}
