/* Jain Panchang Abroad (templates/panchang_abroad.php) + the diaspora
   strip on overseas city pages. Builds on panchang-city.css (.jpc-*). */
.jain-flag { display: inline-flex; flex: none; width: 34px; height: 6px; border-radius: 3px; overflow: hidden; vertical-align: middle; box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); }
.jain-flag i { flex: 1; }
.jain-flag i:nth-child(1) { background: #e53935; } .jain-flag i:nth-child(2) { background: #ffc928; } .jain-flag i:nth-child(3) { background: #fff; }
.jain-flag i:nth-child(4) { background: #009432; } .jain-flag i:nth-child(5) { background: #1a1a24; }

.jpa-hero { position: relative; padding-bottom: 26px; }
.jpa-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, #e53935 0 20%, #ffc928 20% 40%, #fff 40% 60%, #009432 60% 80%, #1a1a24 80%); }
.jpa-eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; color: #ffd56a; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.jpa-lead { margin: 0 0 18px; max-width: 46em; color: #f6e3c8; font-size: 16px; line-height: 1.55; }

/* live world clocks */
.jpa-clocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.jpa-clock { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  color: #fff !important; text-decoration: none !important; backdrop-filter: blur(6px); transition: background .15s, transform .15s; }
.jpa-clock:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.jpa-clock__city { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #e2c275; }
.jpa-clock__now { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.jpa-clock__now small { font-size: 12px; font-weight: 700; color: #f6e3c8; }
.jpa-clock__row { font-size: 13px; color: #f6e3c8; }
.jpa-clock__row b { color: #fff; font-variant-numeric: tabular-nums; }
.jpa-clock__next { margin-top: 4px; align-self: flex-start; padding: 2px 9px; border-radius: 999px; background: #ffd56a; color: #5c0f17; font-size: 11.5px; font-weight: 800; }

.jpa-hubs { display: flex; flex-wrap: wrap; gap: 6px; }
.jpa-hubs a { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff !important;
  font-size: 13.5px; font-weight: 600; text-decoration: none !important; }
.jpa-hubs a:hover, .jpa-hubs a.is-on { background: #fff; color: #7a1620 !important; }

.jpa-dst { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: #fff8e6; border: 1px solid #f0d9a0; color: #6b4a00; font-size: 14.5px; }
.jpa-dst .bi { color: #b8860b; font-size: 18px; margin-top: 1px; }

.jpa-region__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.jpa-region__head h2 { margin: 0; }
.jpa-more { color: #7a1620; font-weight: 700; font-size: 14px; white-space: nowrap; text-decoration: none; }
.jpa-table th[scope=row] a { color: #2a1d1b; font-weight: 700; text-decoration: none; }
.jpa-table th[scope=row] a:hover { color: #7a1620; text-decoration: underline; }
.jpa-table small { display: block; font-size: 11.5px; font-weight: 500; color: #9b8b85; }
.jpa-table td small { display: inline; }
.jpa-small { margin-top: -6px; margin-bottom: 16px; }

/* guide */
.jpa-guide__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.jpa-guide article { padding: 14px 16px; border-radius: 14px; background: #fbf7f2; border: 1px solid #f0e8de; }
.jpa-guide h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 16px; color: #2a1d1b; }
.jpa-guide h3 .bi { color: #b8860b; }
.jpa-guide p { margin: 0; color: #5a4a45; font-size: 14px; line-height: 1.55; }
.jpa-guide a { color: #7a1620; font-weight: 600; }

/* services */
.jpa-svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.jpa-svc__card { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto 1fr; column-gap: 12px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid #ece3d9;
  color: #2a1d1b !important; text-decoration: none !important; transition: border-color .15s, transform .15s, box-shadow .15s; }
.jpa-svc__card:hover { border-color: #7a1620; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(92, 15, 23, .08); }
.jpa-svc__card .bi { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #f7e9ea; color: #7a1620; font-size: 19px; }
.jpa-svc__card:nth-child(2) .bi { background: #e3f5e9; color: #0b7a33; }
.jpa-svc__card:nth-child(3) .bi { background: #fdf3d8; color: #a87400; }
.jpa-svc__card:nth-child(4) .bi { background: #ececf2; color: #1a1a24; }
.jpa-svc__card:nth-child(5) .bi { background: #e3f5e9; color: #128c3e; }
.jpa-svc__card:nth-child(6) .bi { background: #fdeede; color: #c25510; }
.jpa-svc__card b { font-size: 15px; }
.jpa-svc__card span { font-size: 13px; color: #6b5a55; line-height: 1.45; }

/* community */
.jpa-comm { background: linear-gradient(170deg, #f1fbf4 0%, #fff 45%); border-color: #d6eedd; }
.jpa-comm__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 12px; }
.jpa-comm__head h2 { margin: 0; }
.jpa-k { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8a6508; }
.jpa-threads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.jpa-threads a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #e3efe6;
  color: #2a1d1b !important; font-weight: 600; font-size: 14.5px; text-decoration: none !important; }
.jpa-threads a:hover { border-color: #0b7a33; }
.jpa-threads em { flex: none; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #fdf0e0; color: #a3530b; }

/* diaspora strip on an overseas city page */
.jpa-strip { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: start; }
.jpa-strip__links { display: flex; flex-wrap: wrap; gap: 8px; }
.jpa-strip__note { margin: 0 0 8px; color: #5a4a45; font-size: 14.5px; line-height: 1.55; }
.jpa-local { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 14px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: 13.5px; }

@media (max-width: 900px) {
  .jpa-clocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jpa-guide__grid, .jpa-svc { grid-template-columns: 1fr 1fr; }
  .jpa-strip { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .jpa-guide__grid, .jpa-svc { grid-template-columns: 1fr; }
  .jpa-clock__now { font-size: 19px; }
  .jpa-region__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .jpa-table th, .jpa-table td { padding: 8px 7px; font-size: 13.5px; }
}
