/* Public pages of the Sewa Sankalp Portal (loaded after app.css). */
body.pub { display: flex; flex-direction: column; }
body.pub main.public { flex: 1; width: 100%; }

/* Palette of the Sewa Sankalp public pages: Government of Assam navy, saffron and green on a sky-white ground (after the Mission Sadbhavana banner). */
:root { --navy: #0b2a6f; --navy-2: #143a8a; --saffron-b: #f4831f; --green-b: #138808; --sky: #eaf4ff; --gamosa: #c8102e; }

.pubbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 8px 18px; background: #fff; color: var(--navy); border-bottom: 1px solid #dfe7f5; position: sticky; top: 0; z-index: 5; }
.pubbrand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; line-height: 1.15; }
.pubbrand::before { content: ''; width: 26px; height: 33px; background: url('/img/emblem.png') center / contain no-repeat; }
.pubbrand strong { display: block; color: var(--navy); font-size: 1.05rem; letter-spacing: .01em; }
.pubbrand small { color: #5b6675; font-size: 0.7rem; letter-spacing: .08em; text-transform: uppercase; }
.pubnav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; justify-content: center; }
.pubnav a { color: var(--navy); text-decoration: none; padding: 7px 12px; border-radius: 999px; font-size: 0.92rem; font-weight: 600; border-bottom: 2px solid transparent; }
.pubnav a.on { border-bottom-color: var(--saffron-b); border-radius: 0; }
.pubnav a:hover { background: var(--sky); }
.pubtools { display: flex; align-items: center; gap: 10px; }
.pubtools select { width: auto; margin: 0; padding: 5px 10px; font-size: 0.85rem; background: #fff; color: var(--navy); border: 1px solid #c6d4ee; border-radius: 999px; }
.stafflink { color: var(--navy); font-size: 0.8rem; font-weight: 600; text-decoration: none; border: 1px solid var(--navy); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.stafflink:hover { background: var(--navy); color: #fff; }
@media (max-width: 720px) {
  .pubbar { padding: 8px 12px; gap: 6px 10px; }
  .pubbrand { flex: 1 1 auto; order: 0; }
  .pubbrand strong { font-size: 0.95rem; white-space: nowrap; }
  .pubbrand small { display: none; }
  .pubtools { order: 1; }
  .pubtools select { padding: 4px 8px; font-size: 0.8rem; }
  .stafflink { padding: 4px 10px; font-size: 0.75rem; }
  .pubnav { order: 2; flex: 1 0 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 0; margin: 0 -12px; padding: 0 12px; scrollbar-width: none; }
  .pubnav::-webkit-scrollbar { display: none; }
  .pubnav a { white-space: nowrap; padding: 6px 10px; font-size: 0.88rem; }
}

/* hero: sky-white, emblem and Government of Assam, title in navy with a saffron last word, date pill, the Chief Minister at right, tricolour wave below */
.hero2 { position: relative; overflow: hidden; color: var(--navy); text-align: left; padding: 0;
  background: radial-gradient(900px 420px at 15% 0%, #ffffff 0%, rgba(255,255,255,0) 60%), radial-gradient(700px 380px at 85% 10%, #d6e9ff 0%, rgba(214,233,255,0) 65%), linear-gradient(180deg, #f6fbff 0%, var(--sky) 55%, #d9ebff 100%); }
.hero2 .gamosa { height: 10px; background:
  repeating-linear-gradient(90deg, var(--gamosa) 0 5px, transparent 5px 9px, var(--gamosa) 9px 11px, transparent 11px 20px) 0 0 / 20px 4px repeat-x,
  repeating-linear-gradient(90deg, transparent 0 10px, var(--gamosa) 10px 12px, transparent 12px 20px) 0 6px / 20px 4px repeat-x, #fff; border-bottom: 2px solid var(--gamosa); }
.hero-in { max-width: 1180px; margin: 0 auto; padding: 22px 18px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 520px); gap: 20px; align-items: end; }
.hero-txt { padding: 6px 0 96px; }
.goa { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.goa img { height: 54px; width: auto; }
.goa .as { display: block; font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.goa .en { display: block; font-size: 0.78rem; letter-spacing: .14em; color: #3b4660; font-weight: 700; text-transform: uppercase; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 0.82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--navy-2); }
.kicker i { display: inline-block; width: 46px; height: 6px; border-radius: 3px; background: linear-gradient(180deg, var(--saffron-b) 0 33%, #fff 33% 66%, var(--green-b) 66%); box-shadow: 0 0 0 1px rgba(11,42,111,.12); }
.hero2 h1 { margin: 10px 0 8px; font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1; font-weight: 900; letter-spacing: -0.02em; color: var(--navy); }
.hero2 h1 .last { color: var(--saffron-b); }
.hero2 p { margin: 10px 0 0; max-width: 560px; color: #2c3550; font-size: 1.05rem; }
.datepill { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 9px 18px 9px 14px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 0.98rem; box-shadow: 0 6px 18px rgba(11,42,111,.25); }
.datepill svg { flex: none; }
.hero2 .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; justify-content: flex-start; }
.hero2 .cta .btn { padding: 12px 24px; font-size: 1rem; background: var(--saffron-b); border-color: var(--saffron-b); color: #fff; }
.hero2 .cta .btn.ghost { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.hero2 .cta .btn.ghost:hover { background: var(--navy); color: #fff; }
.people { margin: 0; position: relative; align-self: end; justify-self: end; width: 100%; max-width: 520px; padding: 44px 0 62px; }
.people img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 10px 18px rgba(11,42,111,.18)); }
.people figcaption { position: absolute; left: 50%; transform: translateX(-50%); top: 6px; background: rgba(11,42,111,.9); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; white-space: nowrap; }
.hero2 .wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 110px; display: block; }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; gap: 0; }
  .hero-txt { padding-bottom: 12px; text-align: center; }
  .goa, .hero2 .cta { justify-content: center; }
  .hero2 p { margin-left: auto; margin-right: auto; }
  .people { justify-self: center; max-width: 360px; padding: 34px 0 46px; }
  .people img { max-height: 280px; }
  .people figcaption { font-size: 0.72rem; }
  .hero2 .wave { height: 70px; }
}

/* counters band: navy, gold figures, directly under the green of the wave */
.band { background: linear-gradient(180deg, var(--navy) 0%, #071d4f 100%); color: #fff; padding: 26px 18px 22px; text-align: center; }
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; max-width: 1100px; margin: 0 auto; }
.counter { background: rgba(255,255,255,.06); border: 1px solid rgba(255, 213, 138, .28); border-radius: 14px; padding: 14px 10px; }
.counter strong { display: block; font-size: clamp(1.6rem, 4vw, 2.3rem); color: var(--gold-soft); line-height: 1.1; font-weight: 800; }
.counter span { font-size: 0.82rem; color: #dfe6f7; }
.band .updated { display: block; margin-top: 12px; color: #aebadb; font-size: 0.78rem; }

/* scheme tiles in the manner of beneficiary-scheme posters: picture, name, one-line benefit, Central or State */
main.public h2 { color: var(--navy); }
.schemegrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.scheme { border-radius: 16px; border-color: #dfe7f5; }
.scheme .pic { height: 140px; background: linear-gradient(135deg, var(--navy-2), var(--saffron-b)); position: relative; }
.scheme .pic::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--saffron-b) 0 33%, #fff 33% 66%, var(--green-b) 66%); }
.scheme .txt strong { color: var(--navy); font-size: 1rem; }
.scheme .txt .lvl { display: inline-block; margin-top: 8px; font-size: 0.7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--sky); color: var(--navy); }

main.public section { margin-bottom: 26px; }
main.public h2 { margin-bottom: 4px; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
a.scheme { text-decoration: none; color: inherit; transition: transform .12s, border-color .12s; }
a.scheme:hover { transform: translateY(-2px); border-color: var(--saffron); }
.scheme .pic { display: grid; place-items: center; padding: 10px; text-align: center; }
.scheme .pic span { color: #fff; font-weight: 700; font-size: 1.05rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }

.happening { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.happening .card + .card { margin-top: 0; }
@media (max-width: 900px) { .happening { grid-template-columns: 1fr; } }
#map svg { width: 100%; height: auto; display: block; }
#map .land { fill: #f3ead6; stroke: #cdbf9f; stroke-width: 1.2; }
#map .dot { fill: rgba(232, 115, 26, 0.72); stroke: #fff; stroke-width: 1.5; cursor: pointer; transition: fill .12s; }
#map .dot.idle { fill: #b9b2a2; }
#map .dot.open { fill: var(--green); }
#map .dot:hover, #map .dot:focus { fill: var(--saffron-dark); outline: none; }
#map .dot.sel { fill: var(--indigo); stroke: var(--gold); stroke-width: 3; }
.dpanel { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; min-height: 60px; }
.dpanel h4 { margin: 14px 0 4px; font-size: 0.85rem; color: var(--muted); }
.minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin-top: 8px; }
.minis div { background: var(--cream); border-radius: 10px; padding: 8px 10px; }
.minis strong { display: block; font-size: 1.25rem; color: var(--indigo); line-height: 1.15; }
.minis span { font-size: 0.74rem; color: var(--muted); }
.camplist { margin: 0 0 8px; padding-left: 18px; font-size: 0.9rem; }
.tablewrap.tall { max-height: 560px; overflow-y: auto; }
table.list tr.sel td { background: #fff1dc; }
/* photographs from the camps */
.photostrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.photostrip figure { margin: 0; scroll-snap-align: start; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.photostrip img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eee8da; }
.photostrip figcaption { padding: 8px 10px; font-size: 0.82rem; line-height: 1.35; }
.photostrip figcaption small { display: block; color: var(--muted); }
.dpanel .photogrid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); margin-top: 6px; }
.dpanel .photogrid figcaption { font-size: 0.72rem; }
#daily svg { width: 100%; height: auto; display: block; }
#daily .bar { fill: var(--saffron); }
#daily .bar:hover { fill: var(--indigo); }
#daily .tick { font-size: 10px; fill: var(--muted); }

/* camp finder, scheme page, status check */
.narrow { max-width: 760px; margin: 0 auto; }
.campcard { display: grid; gap: 4px; }
.campcard .when { color: var(--muted); font-size: 0.9rem; }
.schemehead { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: center; }
.schemehead .pic { height: 150px; border-radius: 12px; background: linear-gradient(135deg, var(--indigo-2), var(--saffron)); background-size: cover; background-position: center; }
@media (max-width: 640px) { .schemehead { grid-template-columns: 1fr; } }
.pre { white-space: pre-wrap; margin: 6px 0 0; }
.statusbox { border-left: 5px solid var(--saffron); }
.statusbox.done { border-left-color: var(--green); }
.statusbox .big { font-size: 1.35rem; font-weight: 700; color: var(--indigo); }
