/* Contribute: shared styles for every page of hyderabad.urbanobservatory.in/contribute/. House tokens from DESIGN-SYSTEM.md. */
:root {
  --canvas: #FFFFFF; --band: #FAFAFB; --surface: #FFFFFF; --surface-2: #F3F4F6;
  --border: #E5E7EB; --border-2: #D1D5DB; --ink: #111827; --text-2: #374151; --muted: #6B7280; --disabled: #9CA3AF;
  --r-card: 4px; --r-ctl: 4px; --ctl-h: 36px; --measure: 680px;
  --shadow-float: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
  --font-ui: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --d30: #B7CDE4; --d60: #7FA6CE; --d90: #3F76B0; --d140: #123F70;  /* blue ramp, light = shallow */
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.6 var(--font-ui); -webkit-font-smoothing: antialiased; }
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; width: 100%; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
button { font: inherit; color: inherit; }


/* header (same as the other sites) */
.obs-header { position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .obs-header { padding: 0 48px; } }
.obs-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.obs-logo { display: block; width: 36px; height: 36px; flex: none; }
.obs-logo svg { width: 100%; height: 100%; display: block; }
.obs-word { font: 400 13.5px/1 'Outfit', 'Helvetica Neue', sans-serif; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.obs-nav { display: none; align-self: stretch; gap: 28px; }
.obs-nav a { display: flex; align-items: center; padding-top: 2px; font: 400 15px/1 var(--font-ui); color: var(--text-2); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.obs-nav a:hover { color: var(--ink); }
.obs-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.obs-burger { display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; color: var(--ink); cursor: pointer; padding: 0; }
.obs-burger span { display: block; width: 20px; height: 1.5px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.obs-menu { position: absolute; right: 16px; top: 60px; min-width: 200px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); padding: 6px; display: grid; }
.obs-menu[hidden] { display: none; }
.obs-menu a { padding: 11px 12px; border-radius: var(--r-ctl); font: 400 15px/1 var(--font-ui); color: var(--text-2); text-decoration: none; }
.obs-menu a:hover { background: var(--band); color: var(--ink); }
.obs-menu a[aria-current="page"] { color: var(--ink); font-weight: 900; }
.obs-live { display: inline-flex; align-items: center; gap: 6px; }
.obs-live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #4A9447; flex: none; }
.obs-live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #4A9447; animation: obs-live-pulse 1.8s ease-out infinite; }
@keyframes obs-live-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.8); opacity: 0; } }
.obs-live-bar { margin-left: auto; font: 700 14px/1 var(--font-ui); color: var(--ink); text-decoration: none; white-space: nowrap; flex: none; }
.obs-header .obs-live-bar + .obs-burger { margin-left: -4px; }
@media (min-width: 1024px) { .obs-nav { display: flex; } .obs-burger, .obs-menu, .obs-live-bar { display: none !important; } }
@media (max-width: 420px) { .obs-word { font-size: 10.5px; letter-spacing: .08em; } .obs-logo { width: 28px; height: 28px; } .obs-brand, .obs-header { gap: 8px; } }

/* footer */
.obs-footer { margin-top: 56px; padding: 16px 24px 18px; border-top: 1px solid var(--border); background: #fff; }
@media (min-width: 768px) { .obs-footer { margin-top: 72px; padding: 18px 48px 20px; } }
.obs-footer-fine { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.obs-footer-fine > span { flex: 1 1 520px; }
.obs-footer-fine a { color: var(--text-2); }
.obs-footer-fine a.obs-footer-disclaimer { font: 700 13.5px/1.2 var(--font-ui); color: var(--ink); text-decoration: none; white-space: nowrap; }

/* page shell */
.wrap { max-width: 1280px; margin: 0 auto; padding: 40px 24px 0; }
@media (min-width: 768px) { .wrap { padding: 48px 48px 0; } }
.eyebrow { font: 900 11px/1.3 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
h1 { font: 700 30px/1.2 var(--font-ui); letter-spacing: -.005em; margin: 0 0 10px; }
@media (max-width: 767px) { h1 { font-size: 26px; } }
.lede { font-size: 17px; line-height: 1.7; color: var(--text-2); max-width: var(--measure); margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--ctl-h); padding: 0 16px;
  border-radius: var(--r-ctl); font: 700 14px/1 var(--font-ui); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s ease, border-color .2s ease; }
.btn-primary { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn-primary:hover { background: #1F2937; }
.btn-primary:disabled { background: var(--surface-2); border-color: var(--border); color: var(--disabled); cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--border-2); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--ink); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(2px); }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }

/* chips (house filter chips) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 400 14px/1 var(--font-ui); padding: 9px 14px; border: 1px solid var(--border-2); border-radius: var(--r-ctl);
  background: #fff; cursor: pointer; transition: background .2s ease; }
.chip:hover { background: var(--band); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .n { color: var(--disabled); margin-left: 4px; }
.chip[aria-pressed="true"] .n { color: #D1D5DB; }

/* map bits */
.maplibregl-ctrl-group { border-radius: var(--r-ctl) !important; box-shadow: none !important; border: 1px solid var(--border-2); }
.maplibregl-ctrl-attrib { font: 11px var(--font-ui); }
.halo { text-shadow: 0 0 4px #fff, 0 0 8px #fff, 0 0 8px #fff; }

@media (prefers-reduced-motion: reduce) { *, .obs-live-dot::after { animation: none !important; transition: none !important; } }
