/* Gram Panchayat Karajagi — site styles */
:root {
  --cream: #fff7e8;
  --paper: #fffdf8;
  --tint: #fbefd9;
  --maroon: #8a1c1c;
  --maroon-d: #5c0f0f;
  --saffron: #f08a1c;
  --saffron-d: #c4650a;
  --green: #1f7a3a;
  --green-d: #145a29;
  --ink: #2a1a12;
  --muted: #6b5847;
  --line: #ead8bb;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(92, 15, 15, .10);
  --wrap: 1180px;
  --head: "Baloo 2", "Mukta", system-ui, sans-serif;
  --body: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--body); color: var(--ink); background: var(--cream); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--maroon); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; color: var(--maroon-d); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; margin-top: 1.75rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--maroon); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .6em 1.3em; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--saffron { background: var(--saffron); color: #2a1200; box-shadow: 0 4px 14px rgba(240, 138, 28, .35); }
.btn--saffron:hover { background: #f59a35; }
.btn--maroon { background: var(--maroon); color: #fff; }
.btn--maroon:hover { background: var(--maroon-d); }
.btn--wa { background: #1f9d55; color: #fff; }
.btn--wa:hover { background: #178346; }
.btn--ghost { border-color: rgba(255, 255, 255, .75); color: #fff; background: rgba(255, 255, 255, .08); }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); }
.btn--light { background: #fff; color: var(--maroon-d); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Top strip + header */
.topstrip { background: var(--maroon-d); color: #f7e3c4; font-size: .875rem; }
.topstrip__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 34px; }
.topstrip__phone { color: #fff; text-decoration: none; display: inline-flex; gap: .35em; align-items: center; white-space: nowrap; }
.header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 4px solid transparent; border-image: linear-gradient(90deg, var(--saffron) 0 33%, #fff 33% 66%, var(--green) 66%) 1; box-shadow: 0 2px 12px rgba(0, 0, 0, .06); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; min-width: 0; }
.brand img { width: 72px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__text strong { font: 800 1.35rem/1.1 var(--head); color: var(--maroon); }
.brand__text small { color: var(--green-d); font-weight: 600; font-size: .85rem; }
.navtoggle { display: none; background: none; border: 0; color: var(--maroon); padding: .5rem; cursor: pointer; }
.navtoggle .ico { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { padding: .5rem .8rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.nav a:hover { background: var(--tint); color: var(--maroon); }
.nav a[aria-current="page"] { color: var(--maroon); background: var(--tint); }
.nav .nav__cta { background: var(--maroon); color: #fff; margin-left: .35rem; }
.nav .nav__cta:hover { background: var(--maroon-d); color: #fff; }

/* Ticker */
.ticker { background: #fff3dc; border-bottom: 1px solid var(--line); font-size: .95rem; }
.ticker__in { display: flex; align-items: center; gap: .75rem; min-height: 40px; }
.ticker__label { flex: none; display: inline-flex; align-items: center; gap: .35em; background: var(--saffron); color: #2a1200; font-weight: 700; padding: .15rem .7rem; border-radius: 6px; }
.ticker__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__move { display: inline-flex; gap: 3rem; white-space: nowrap; padding-left: 100%; animation: tick 28s linear infinite; }
.ticker__track:hover .ticker__move { animation-play-state: paused; }
.ticker__item em { color: var(--muted); font-style: normal; }
@keyframes tick { to { transform: translateX(-100%); } }

/* Hero — the office photo is the centrepiece */
.hero { position: relative; background: var(--maroon-d); }
.hero__media { margin: 0; position: relative; }
.hero__media img { width: 100%; height: min(86vh, 56.25vw); min-height: 420px; object-fit: cover; object-position: 50% 30%; }
.hero__panel { position: absolute; inset: auto 0 0 0; padding: 7rem 0 4.5rem; background: linear-gradient(180deg, rgba(60, 8, 8, 0) 0%, rgba(60, 8, 8, .72) 45%, rgba(48, 6, 6, .92) 100%); color: #fff; }
.hero__content { position: relative; }
.hero__badge { display: inline-block; background: var(--saffron); color: #2a1200; font-weight: 700; font-size: .85rem; padding: .15rem .75rem; border-radius: 999px; margin-bottom: .5rem; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.8rem); margin: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.hero__tag { font: 700 clamp(1.2rem, 1rem + 1vw, 1.75rem)/1.3 var(--head); color: #ffd79a; margin: .2rem 0 .35rem; }
.hero__place { display: flex; align-items: center; gap: .35em; margin: 0 0 1.25rem; color: #f3e2cc; }
.hero__btns { display: flex; flex-wrap: wrap; gap: .65rem; }

/* Stats */
.stats { position: relative; z-index: 2; margin-top: -2.75rem; }
.stats__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border-top: 4px solid var(--saffron); }
.stats__grid li { padding: 1.1rem .75rem; text-align: center; border-right: 1px solid var(--line); }
.stats__grid li:last-child { border-right: 0; }
.stats__grid strong { display: block; font: 800 clamp(1.4rem, 1.1rem + 1vw, 2rem)/1.1 var(--head); color: var(--maroon); }
.stats__grid span { color: var(--muted); font-size: .92rem; font-weight: 600; }
.stats__note { text-align: right; font-size: .8rem; color: var(--muted); margin: .4rem .25rem 0; }

/* Sections */
.section { padding: clamp(3rem, 2rem + 4vw, 5rem) 0; }
.section--tint { background: var(--tint); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2rem; }
.section-head p { color: var(--muted); }
.section-head--light h2 { color: #fff; }
.eyebrow { display: inline-block; font-weight: 700; color: var(--green); letter-spacing: .02em; margin-bottom: .25rem; }
.eyebrow::before, .eyebrow::after { content: "✦"; color: var(--saffron); margin: 0 .45em; font-size: .75em; }

.page-head { background: linear-gradient(120deg, var(--maroon-d), var(--maroon) 70%, #a2321a); color: #fff; padding: 2.5rem 0 2.25rem; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: linear-gradient(90deg, var(--saffron) 0 33%, #fff 33% 66%, var(--green) 66%); }
.page-head h1 { color: #fff; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); margin: 0; }
.page-head p { color: #f6dcc0; margin: .25rem 0 0; }
.crumbs { font-size: .9rem; color: #f2cfa8; margin-bottom: .35rem; }
.crumbs a { color: #fff; }

/* Welcome */
.welcome__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.welcome h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.1rem); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.facts li { display: flex; gap: .9rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 12px; padding: .85rem 1rem; }
.facts .ico { width: 2rem; height: 2rem; color: var(--saffron-d); }
.facts strong { display: block; color: var(--maroon-d); font-size: 1.08rem; }
.facts span { color: var(--muted); font-size: .92rem; }

/* People */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.people--lead { grid-template-columns: repeat(auto-fit, minmax(200px, 250px)); justify-content: center; }
.person { background: var(--paper); border-radius: var(--radius); padding: 1.25rem 1rem; text-align: center; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(92, 15, 15, .05); }
.person img, .person__avatar { width: 112px; height: 112px; border-radius: 50%; margin: 0 auto .75rem; object-fit: cover; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--saffron); }
.person__avatar { display: grid; place-items: center; background: linear-gradient(135deg, var(--maroon), #b4471d); color: #fff; font: 700 2.4rem/1 var(--head); }
.person__avatar--sm { width: 64px; height: 64px; font-size: 1.5rem; box-shadow: 0 0 0 2px var(--saffron); margin: 0 auto .5rem; }
.person strong { display: block; color: var(--ink); line-height: 1.3; }
.person span { color: var(--green-d); font-weight: 600; font-size: .95rem; }
.person em { display: block; font-style: normal; color: var(--muted); font-size: .85rem; }
.people-group + .people-group { margin-top: 2.25rem; }
.people-group h3 { text-align: center; margin-bottom: 1rem; }

/* Service tiles */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.tile { display: flex; align-items: center; gap: .8rem; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tile:hover { border-color: var(--saffron); transform: translateY(-2px); box-shadow: var(--shadow); }
.tile__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #fff0db; color: var(--saffron-d); flex: none; }
.tile__ico .ico { width: 26px; height: 26px; }

.svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.svc li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.svc h3 { margin: .35rem 0 0; }
.svc p { margin: 0; color: var(--muted); }
.svc .badges { margin-top: auto; padding-top: .5rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.badge { font-size: .8rem; font-weight: 700; padding: .1rem .6rem; border-radius: 999px; background: #e5f3e9; color: var(--green-d); }
.badge--saffron { background: #fff0db; color: var(--saffron-d); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.panel--accent { border-left: 6px solid var(--saffron); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.portals { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.portals a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-radius: 10px; background: var(--cream); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.portals a:hover { border-color: var(--green); }
.portals strong { display: block; color: var(--green-d); }
.portals span { color: var(--muted); font-size: .92rem; }

/* Work cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 2px 12px rgba(92, 15, 15, .06); display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--tint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__noimg { display: grid; place-items: center; height: 100%; color: #d8b98f; }
.card__noimg .ico { width: 64px; height: 64px; }
.card__body { padding: 1rem 1.1rem 1.2rem; }
.card__body h3 { color: var(--ink); font-size: 1.12rem; }
.card__meta { margin: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .92rem; }
.card__meta div { display: flex; gap: .3rem; }
.card__meta dt { color: var(--muted); }
.card__meta dt::after { content: ":"; }
.card__meta dd { margin: 0; font-weight: 600; }
.status { position: absolute; top: .75rem; left: .75rem; font-size: .82rem; font-weight: 700; padding: .15rem .7rem; border-radius: 999px; }
.status--done { background: var(--green); color: #fff; }
.status--ongoing { background: var(--saffron); color: #2a1200; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.75rem; }
.filters button { font: 600 .95rem var(--body); min-height: 42px; padding: .35rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* Gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.gallery--preview { grid-template-columns: repeat(4, 1fr); }
.gallery li[hidden] { display: none; }
.gallery a { display: block; position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--tint); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 1.5rem .7rem .55rem; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff; font-size: .9rem; line-height: 1.3; }

.empty { text-align: center; padding: 3rem 1rem; background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty .ico { width: 56px; height: 56px; color: #d8b98f; margin: 0 auto .75rem; }

/* Notices */
.notices { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.notice { background: var(--paper); border-left: 5px solid var(--saffron); border-radius: 10px; padding: 1rem 1.2rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); }
.notice time { display: block; font-size: .88rem; color: var(--green-d); font-weight: 700; }
.notice strong { font-size: 1.08rem; }
.notice p { margin: .35rem 0 0; color: var(--muted); }

/* Officials */
.officials { background: var(--paper); }
.officials__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; text-align: center; }
.officials__list li { padding: .75rem; }
.officials__list strong { display: block; line-height: 1.3; }
.officials__list span { color: var(--muted); font-size: .88rem; }

/* About page */
.prose { max-width: 760px; }
.prose p { font-size: 1.08rem; }
.history { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.history__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.quote { margin: 1.25rem 0 0; padding: 1rem 1.25rem; background: #fff0db; border-left: 5px solid var(--saffron); border-radius: 0 10px 10px 0; font-weight: 600; color: var(--maroon-d); }
.datatable { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.datatable th, .datatable td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.datatable th { width: 42%; color: var(--muted); font-weight: 600; }
.datatable td { font-weight: 600; }
.vm { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.vm li { background: var(--paper); border-radius: var(--radius); padding: 1.25rem; border-top: 4px solid var(--green); }
.vm li:nth-child(2) { border-top-color: var(--saffron); }
.vm li:nth-child(3) { border-top-color: var(--maroon); }
.neighbours { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: .75rem 0 0; }
.neighbours li { background: var(--paper); border: 1px solid var(--line); padding: .2rem .8rem; border-radius: 999px; font-weight: 600; }

/* Contact + footer */
.contact { background: linear-gradient(160deg, var(--maroon-d), var(--maroon)); color: #fff; padding: clamp(3rem, 2rem + 4vw, 5rem) 0; }
.contact .eyebrow { color: #ffd79a; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact__list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .85rem; }
.contact__list li { display: flex; gap: .75rem; align-items: flex-start; }
.contact__list .ico { width: 1.4rem; height: 1.4rem; color: #ffd79a; margin-top: .15rem; }
.contact__list a { color: #fff; }
.contact__list small { color: #f2cfa8; }
.contact__btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.25rem; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; background: #3c0a0a; }
.map iframe { display: block; width: 100%; height: 260px; border: 0; }
.map__link { position: absolute; right: .6rem; bottom: .6rem; display: inline-flex; gap: .35em; align-items: center; background: #fff; color: var(--maroon-d); font-weight: 700; padding: .45rem .9rem; border-radius: 999px; text-decoration: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: .85rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.form h3 { margin: 0; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }

.form input, .form select, .form textarea { font: inherit; font-weight: 400; width: 100%; min-height: 46px; padding: .55rem .8rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(240, 138, 28, .2); }
.form .hp { position: absolute; left: -9999px; }
.form__status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form__status.ok { color: var(--green); }
.form__status.err { color: #b42318; }

.footer { background: #2b0909; color: #e9d3b8; }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: 2.75rem 16px 2rem; }
.footer__brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer__brand img { width: 72px; background: #fff; border-radius: 10px; padding: 3px; }
.footer__brand strong { display: block; font: 700 1.3rem var(--head); color: #fff; }
.footer__brand span { display: block; }
.footer__brand em { display: block; font-style: normal; color: #ffd79a; margin-top: .5rem; font-weight: 600; }
.footer__links { display: flex; flex-direction: column; gap: .35rem; }
.footer__links h4 { color: #fff; font-size: 1.05rem; margin-bottom: .35rem; }
.footer__links a { color: #e9d3b8; text-decoration: none; }
.footer__links a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.footer__bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 1rem; padding-bottom: 1rem; }

.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #1f9d55; color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.wa-float .ico { width: 30px; height: 30px; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(15, 4, 4, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem 16px 1.5rem; }
.lb[hidden] { display: none; }
.lb img { max-height: 78vh; max-width: 100%; border-radius: 8px; }
.lb p { color: #fff; margin: .85rem 0 0; text-align: center; }
.lb button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.6rem; line-height: 1; }
.lb .lb__close { top: 12px; right: 12px; }
.lb .lb__prev { left: 12px; top: 50%; }
.lb .lb__next { right: 12px; top: 50%; }

/* Responsive */
@media (max-width: 980px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .stats__grid li:nth-child(3n) { border-right: 0; }
  .stats__grid li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .welcome__grid, .contact__grid, .history, .two-col { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .gallery--preview { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .navtoggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 3px solid var(--saffron); box-shadow: 0 12px 24px rgba(0, 0, 0, .12); padding: .5rem 16px 1rem; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .nav__cta { margin: .75rem 0 0; text-align: center; border-radius: 999px; border: 0; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .topstrip__in > span { font-size: .78rem; }
  .brand img { width: 56px; }
  .brand__text strong { font-size: 1.15rem; }
  .brand__text small { font-size: .78rem; }
  /* On phones the photo is shown whole, with the title below it */
  .hero__media img { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .hero__panel { position: static; padding: 1.5rem 0 4rem; background: linear-gradient(180deg, var(--maroon-d), #3a0909); }
  .hero__btns .btn { flex: 1 1 auto; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stats__grid li:nth-child(2n) { border-right: 0; }
  .stats__grid li:nth-child(3n) { border-right: 1px solid var(--line); }
  .stats__grid li:nth-child(2n) { border-right: 0; }
  .stats__grid li:nth-last-child(-n+2) { border-bottom: 0; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { flex-direction: column; text-align: center; gap: .5rem; padding: .9rem .6rem; font-size: .95rem; }
  .people { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .person { padding: 1rem .6rem; }
  .person img, .person__avatar { width: 88px; height: 88px; }
  .person__avatar { font-size: 1.9rem; }
  .officials__list { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .footer__in { grid-template-columns: 1fr; }
  .datatable th { width: 46%; }
  .wa-float { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ticker__move { padding-left: 0; white-space: normal; flex-wrap: wrap; gap: .5rem 2rem; }
}

/* fixes: label rows, avatar text colour */
.form label > span { color: var(--ink); }
.form label b { color: var(--maroon); }
.person .person__avatar, .officials__list .person__avatar { color: #fff; font: 700 2.4rem/1 var(--head); display: grid; }
.officials__list .person__avatar--sm { font-size: 1.5rem; }
@media (max-width: 720px) { .person .person__avatar { font-size: 1.9rem; } }
