/* MeroKalam.com official asset. Unauthorized copying or republication is not permitted. */
/* ═══════════════════════════════════════════════════
   Nepal Bank Finder by District — tool-specific CSS only
   Base tokens, nav, footer handled by main.css + mk-shared.css
═══════════════════════════════════════════════════ */

/* ── Tool colour palette ── */
:root {
  --bk-red:   #c0392b;
  --bk-green: #1e7e4a;
  --bk-blue:  #2c5f8a;
  --bk-bg:    #f5f3ef;
  --bk-surf:  #fff;
  --bk-surf2: #f0ede8;
  --bk-bord:  #ddd8d0;
  --bk-muted: #7a7268;
}

/* Warm cream body override */
body { background: linear-gradient(160deg, #faf8f4 0%, #f3efe8 100%) !important; }

/* Widen the page for the tool */
.page { max-width: 1080px !important; padding-top: 0 !important; }

/* ── Header ── */
.header {
  position: relative; overflow: hidden; max-width: 1060px;
  margin: 0 auto .08rem; padding: .75rem 2rem 1.35rem;
  background: #f8fafc; border: 1px solid rgba(191,219,254,.95); border-radius: 1.25rem;
  box-shadow: 0 18px 45px rgba(15,23,42,.08), 0 3px 10px rgba(37,99,235,.06);
  text-align: center;
}
.header > div:first-child { display: none !important; }
.header h1 {
  display: block; width: 100%; max-width: none;
  font-size: clamp(2.25rem, 4.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.02;
  margin: 0 0 .8rem;
  /* inherits mk-shared blue gradient */
}
.header p { width: 100%; max-width: none; font-size: 1rem; color: #334155; line-height: 1.82; text-align: center; margin: 0 !important; }
.ne { font-family: 'Noto Sans Devanagari', sans-serif; }

@media(max-width:640px) {
  .page { width: 100%; max-width: 100% !important; padding-left: .75rem !important; padding-right: .75rem !important; overflow-x: hidden; }
  .header { padding: 1.35rem 1.15rem 1.25rem; border-radius: 1rem; margin-bottom: .08rem; }
  .header h1 { font-size: clamp(1.85rem, 9vw, 2.35rem); line-height: 1.05; margin-bottom: .75rem; }
  .header p { max-width: 100%; font-size: .95rem; line-height: 1.72; }
}
@media(max-width:380px) {
  .page { padding-left: .65rem !important; padding-right: .65rem !important; }
  .header h1 { font-size: clamp(1.7rem, 9vw, 2.05rem); }
  .header p { font-size: .9rem; }
}

.stats-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.stat-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--bk-surf); border: 1px solid var(--bk-bord);
  border-radius: 99px; padding: 5px 12px; font-size: 11px; font-weight: 600;
}
.stat-pill .num { font-family: 'DM Mono', monospace; font-size: 13px; }
.pill-a .num { color: var(--bk-red); }
.pill-b .num { color: var(--bk-green); }

.loc-badge {
  display: none; align-items: center; gap: 6px;
  background: rgba(30,126,74,.1); color: var(--bk-green);
  border: 1px solid rgba(30,126,74,.2); border-radius: 99px;
  padding: 4px 12px; font-size: 11px; font-weight: 600; margin-top: 8px;
}

/* ── Tabs ── */
.class-tabs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 auto 14px;
  background: var(--bk-surf); border: 1px solid var(--bk-bord);
  border-radius: 12px; padding: 5px; width: 100%; max-width: 1060px;
}
.tab-btn {
  padding: 8px 18px; border: none; background: none;
  font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; border-radius: 8px; transition: all .2s;
  color: var(--bk-muted); display: flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
}
.tab-badge {
  font-size: 10px; font-family: 'DM Mono', monospace;
  padding: 2px 7px; border-radius: 99px;
}
.bdg-a { background: rgba(192,57,43,.12); color: var(--bk-red);   font-weight: 800; }
.bdg-b { background: rgba(30,126,74,.12);  color: var(--bk-green); font-weight: 800; }
.tab-btn:not([data-active]):hover { background: #eff6ff; color: #2563eb; }
.tab-btn[data-active=a],
.tab-btn[data-active=b] { background: #2563eb; color: #fff; }
.tab-btn[data-active=a] .tab-badge { background: #fff; color: var(--bk-red);   }
.tab-btn[data-active=b] .tab-badge { background: #fff; color: var(--bk-green); }

/* ── Filter section ── */
.search-section {
  background: var(--bk-surf); border: 1px solid var(--bk-bord);
  border-radius: 12px; padding: 18px 20px; margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.filter-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end;
}
@media(max-width:680px){ .filter-grid{ grid-template-columns:1fr 1fr; } .fstep-actions{ grid-column:1/-1; } }
@media(max-width:420px){ .filter-grid{ grid-template-columns:1fr; } }
.fstep { display: flex; flex-direction: column; gap: 6px; }
.step-lbl {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: #1a1814;
}
.step-num {
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
}
.sn-a, .sn-b { background: #2563eb; }
.step-ne { font-family: 'Noto Sans Devanagari', sans-serif; font-weight: 400; font-size: 11px; color: var(--bk-muted); }
.step-opt { font-size: 9px; color: var(--bk-muted); background: var(--bk-surf2); padding: 2px 6px; border-radius: 99px; border: 1px solid var(--bk-bord); }
.action-btns { display: flex; gap: 8px; }
.inp-wrap { position: relative; }
.inp-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--bk-muted); pointer-events: none; }

/* Override mk-shared select styles for tool */
.search-section select {
  width: 100%; background: var(--bk-surf2); border: 1px solid var(--bk-bord) !important;
  border-radius: 8px !important; color: #1a1814; font-family: inherit;
  font-size: 13px; padding: 10px 12px 10px 32px !important;
  outline: none; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%237a7268' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  background-color: var(--bk-surf2); cursor: pointer;
}
.search-section select:focus {
  border-color: var(--bk-red) !important;
  box-shadow: 0 0 0 3px rgba(192,57,43,.1) !important;
  background-color: #fff;
}

.btn-search {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border: none; border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: filter .2s, transform .15s; color: #fff;
}
.btn-search:hover { filter: brightness(.88); transform: translateY(-1px); }
.btn-search:active { transform: none; }
.bs-a, .bs-b { background: linear-gradient(135deg, #2563eb, #0891b2); }

.btn-near {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: var(--bk-blue); color: #fff;
  border: none; border-radius: 8px;
  font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: filter .2s, transform .15s;
}
.btn-near:hover { filter: brightness(.88); transform: translateY(-1px); }
.btn-near:active { transform: none; }
.btn-near.loading { opacity: .7; pointer-events: none; }

/* ── Branch panel ── */
.branch-panel {
  display: none; background: var(--bk-surf); border: 1px solid var(--bk-bord);
  border-radius: 12px; margin-bottom: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.branch-panel.visible { display: block; }
.bpanel-hd {
  color: #fff; padding: 14px 18px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.bpanel-hd.a { background: linear-gradient(135deg, #922b21, #c0392b); }
.bpanel-hd.b { background: linear-gradient(135deg, #145a32, #1e7e4a); }
.bpanel-title { font-size: 14px; font-weight: 700; line-height: 1.3; }
.bpanel-meta  { font-size: 11px; opacity: .65; font-family: 'DM Mono', monospace; margin-top: 2px; }
.panel-close {
  background: rgba(255,255,255,.2); border: none; color: #fff;
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  font-size: 13px; display: flex; align-items: center; justify-content: center;
  transition: background .2s; flex-shrink: 0; margin-top: 1px;
}
.panel-close:hover { background: rgba(255,255,255,.35); }
.branch-list {
  padding: 14px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 10px; max-height: 440px; overflow-y: auto; scrollbar-width: thin;
}
@media(max-width:480px){ .branch-list{ grid-template-columns: 1fr; } }
.branch-item {
  border: 1px solid var(--bk-bord); border-radius: 10px; padding: 13px 14px;
  display: flex; gap: 10px; background: var(--bk-bg); transition: box-shadow .2s;
}
.branch-item:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.branch-icon { width: 32px; height: 32px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.branch-details { flex: 1; min-width: 0; }
.branch-name    { font-size: 13px; font-weight: 700; line-height: 1.3; }
.branch-tag     { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; color: #fff; margin: 3px 0 4px; }
.branch-address { font-size: 11px; color: var(--bk-muted); line-height: 1.5; }
.branch-phone   { font-size: 11px; color: var(--bk-blue); font-family: 'DM Mono', monospace; margin-top: 2px; }
.branch-acts    { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.mlink {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; text-decoration: none;
  padding: 3px 9px; border-radius: 99px; border: 1px solid; transition: all .2s;
}
.mlink.r { color: var(--bk-red);  border-color: rgba(192,57,43,.25); }
.mlink.r:hover { background: var(--bk-red);  color: #fff; }
.mlink.b { color: var(--bk-blue); border-color: rgba(44,95,138,.25); }
.mlink.b:hover { background: var(--bk-blue); color: #fff; }
.no-data {
  grid-column: 1/-1; padding: 24px 28px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  color: var(--bk-muted);
}
.no-data .ico { font-size: 26px; }
.no-data p    { font-size: 13px; line-height: 1.6; margin: 0; color: #374151; }
.no-data a    { color: var(--bk-red); font-weight: 700; text-decoration: none; }
.no-data a:hover { text-decoration: underline; }
.no-data .maps-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px; padding: 8px 16px;
  background: var(--bk-red); color: #fff !important; border-radius: 8px;
  font-size: 12px; font-weight: 700; text-decoration: none !important;
  transition: filter .2s;
}
.no-data .maps-btn:hover { filter: brightness(.88); }

/* ── Nearby panel ── */
.nearby-panel {
  display: none; background: var(--bk-surf); border: 1px solid var(--bk-bord);
  border-radius: 12px; margin-bottom: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.nearby-panel.visible { display: block; }
.nearby-hd { background: var(--bk-blue); color: #fff; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; }
.nearby-hd h2 { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 7px; border: none !important; padding: 0 !important; color: #fff !important; -webkit-text-fill-color: #fff !important; margin: 0 !important; }
.nearby-list { padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 8px; max-height: 300px; overflow-y: auto; }
@media(max-width:480px){ .nearby-list{ grid-template-columns: 1fr; } }
.nearby-item { border: 1px solid var(--bk-bord); border-radius: 8px; padding: 11px 13px; display: flex; gap: 9px; }
.n-dot  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.n-name { font-size: 12px; font-weight: 700; }
.n-sub  { font-size: 10px; color: var(--bk-muted); margin-top: 2px; }
.n-link { display: inline-flex; align-items: center; gap: 3px; margin-top: 5px; font-size: 10px; font-weight: 700; color: var(--bk-blue); text-decoration: none; }
.n-link:hover { color: var(--bk-red); }
.status-msg { padding: 18px; text-align: center; font-size: 13px; color: var(--bk-muted); }

/* ── Source bar ── */
.source-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--bk-surf); border: 1px solid var(--bk-bord);
  border-radius: 12px; margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}
.source-bar .count { font-size: 13px; color: #1a1814; }
.source-bar .src   { font-size: 11px; color: var(--bk-muted); }

/* ── Bank cards grid ── */
.banks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 14px; }
@media(max-width:640px){ .banks-grid{ grid-template-columns: 1fr 1fr; } }
@media(max-width:400px){ .banks-grid{ grid-template-columns: 1fr; } }
.bank-card {
  background: var(--bk-surf); border: 1px solid var(--bk-bord); border-radius: 12px;
  overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
}
.bank-card:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,0,0,.1); }
.card-hd {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--bk-bord);
}
.bank-logo { width: 40px; height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; color: #fff; flex-shrink: 0; }
.bank-info  { flex: 1; min-width: 0; }
.bank-name  { font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bank-meta  { font-size: 10px; color: var(--bk-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cls-badge  { font-size: 9px; font-weight: 700; padding: 3px 7px; border-radius: 99px; white-space: nowrap; flex-shrink: 0; }
.cls-a { background: rgba(192,57,43,.1); color: var(--bk-red); }
.cls-b { background: rgba(30,126,74,.1);  color: var(--bk-green); }
.card-stats  { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 12px 16px; gap: 4px; }
.sv { font-family: 'DM Mono', monospace; font-size: 15px; font-weight: 500; }
.sl { font-size: 9px; color: var(--bk-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .05em; }
.card-footer { padding: 8px 16px 13px; display: flex; gap: 7px; }
.btn-find {
  flex: 1; padding: 8px; color: #fff; border: none; border-radius: 7px;
  font-family: inherit; font-size: 11px; font-weight: 700; cursor: pointer;
  transition: filter .2s; display: flex; align-items: center; justify-content: center; gap: 4px;
}
.btn-find:hover { filter: brightness(.85); }
.bf-a { background: var(--bk-red); }
.bf-b { background: var(--bk-green); }
.btn-web {
  padding: 8px 12px; background: var(--bk-surf2); color: var(--bk-muted);
  border: 1px solid var(--bk-bord); border-radius: 7px;
  font-family: inherit; font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; gap: 4px; text-decoration: none;
}
.btn-web:hover { background: var(--bk-bord); color: #1a1814; }
.empty-state { grid-column: 1/-1; text-align: center; padding: 40px 20px; color: var(--bk-muted); }

@keyframes fadeDown { from{opacity:0;transform:translateY(-14px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeUp   { from{opacity:0;transform:translateY(14px)}  to{opacity:1;transform:translateY(0)} }
@keyframes spin     { to{transform:rotate(360deg)} }
.spinner { width:14px;height:14px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;flex-shrink:0; }

.header                         { animation: fadeDown .5s ease both; }
.class-tabs, .search-section    { animation: fadeUp  .5s ease .05s both; }
.banks-grid                     { animation: fadeUp  .5s ease .1s  both; }

/* ═══ Article / SEO section ═══ */
.divider { border: none; border-top: 1.5px solid #e8e2d8; margin: 2.5rem 0 1.75rem; }
.article { line-height: 1.8; color: #374151; }
.article h2 { font-size: 1.3rem; font-weight: 800; color: #1e293b; margin: 1.75rem 0 .65rem; line-height: 1.3; border-left: none !important; padding-left: 0 !important; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 1rem; font-weight: 700; color: #1e293b; margin: 1.25rem 0 .4rem; }
.article p  { margin-bottom: .9rem; font-size: .93rem; }
.article ul, .article ol { padding-left: 1.4rem; margin-bottom: .9rem; }
.article li { font-size: .93rem; margin-bottom: .35rem; }
.article strong { color: #1e293b; }
.article a  { color: var(--bk-red); }

.art-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: .75rem; margin: 1.25rem 0; }
.art-stat-box  { background: #fffdf8; border: 1px solid #e8e0d0; border-radius: .85rem; padding: .9rem; text-align: center; }
.art-stat-box .sn { font-family: 'DM Mono', monospace; font-size: 1.45rem; font-weight: 800; color: #c0392b; display: block; line-height: 1.1; }
.art-stat-box .sn.green { color: #1e7e4a; }
.art-stat-box .sn.blue  { color: #2c5f8a; }
.art-stat-box .sl { font-size: .72rem; color: #64748b; margin-top: .25rem; display: block; line-height: 1.4; }

.callout-box { border-radius: .75rem; padding: .85rem 1.1rem; margin: 1rem 0; font-size: .88rem; display: flex; gap: .6rem; align-items: flex-start; }
.callout-box.info    { background: #eff6ff; border-left: 3px solid #2c5f8a; color: #1e40af; }
.callout-box.success { background: #f0fdf4; border-left: 3px solid #16a34a; color: #14532d; }
.callout-box.warn    { background: #fffbeb; border-left: 3px solid #d97706; color: #78350f; }
.callout-box p { margin: 0; color: inherit !important; font-size: .88rem; line-height: 1.7 !important; }
.callout-box strong { color: inherit !important; }
.callout-icon { font-size: 1.1rem; flex-shrink: 0; }

.tbl-scroll { overflow-x: auto; border: 1px solid #e8e2d8; border-radius: .75rem; margin: .75rem 0; -webkit-overflow-scrolling: touch; }
.banks-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.banks-table th { background: #faf7f2; padding: .42rem .75rem; text-align: left; font-weight: 700; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: #64748b; border-bottom: 2px solid #e8e2d8; }
.banks-table td { padding: .38rem .75rem; border-bottom: 1px solid #f5f0e8; color: #374151; font-size: .81rem; }
.banks-table td:first-child { font-weight: 700; color: #1e293b; }
.banks-table tr:last-child td { border-bottom: none; }
.banks-table .ticker { font-family: 'DM Mono', monospace; font-size: .78rem; color: var(--bk-red); }
.banks-table .branches-num { font-family: 'DM Mono', monospace; }

.section-label-art { font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; margin-bottom: .65rem; }
.related-tools h2 { font-size: 1.1rem !important; font-weight: 700 !important; color: #1e293b !important; margin-bottom: .75rem !important; border-left: none !important; padding-left: 0 !important; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: .65rem; }
.rel-link { display: block; padding: .65rem 1rem; background: #fffdf8; border: 1px solid #e8e0d0; border-radius: .75rem; font-size: .82rem; font-weight: 600; color: #374151; text-decoration: none; transition: all .15s; }
.rel-link:hover { border-color: var(--bk-red); color: var(--bk-red); background: #fdf1f0; }

/* SWIFT codes reference table */
.swift-table-wrap {
  margin: 1rem 0 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--bk-bord);
  border-radius: 10px;
  background: var(--bk-surf);
}
.swift-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.swift-table thead th {
  background: var(--bk-surf2);
  text-align: left;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bk-muted);
  border-bottom: 1px solid var(--bk-bord);
}
.swift-table tbody td {
  padding: 9px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.swift-table tbody tr:last-child td {
  border-bottom: none;
}
.swift-table tbody tr:hover {
  background: rgba(192, 57, 43, 0.03);
}
.swift-table code {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bk-blue);
  background: var(--bk-surf2);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  user-select: all;
}
.swift-table td:last-child {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--bk-muted);
  letter-spacing: 0.04em;
}
@media (max-width: 640px) {
  .swift-table { font-size: 0.85rem; }
  .swift-table thead th,
  .swift-table tbody td { padding: 8px 10px; }
}
