/* Malabar Patrols website. Navy + lime + SOS red. Mobile first. */
:root {
  --navy-950: #060e19; --navy-900: #0a1626; --navy-850: #0d1c31; --navy-800: #10233d; --navy-700: #173257; --navy-600: #22446f;
  --line-dark: rgba(255,255,255,.09); --ink-on-dark: #e8eef7; --muted-on-dark: #9fb0c8;
  --lime: #3cc63f; --lime-600: #2a9f30; --lime-soft: rgba(60,198,63,.14);
  --sos: #e5352b; --sos-600: #c62820; --sos-soft: rgba(229,53,43,.14);
  --bg: #f4f6f9; --card: #ffffff; --ink: #0d1726; --muted: #56627a; --line: #e2e7ef; --soft: #eef2f7;
  --radius: 18px; --radius-sm: 12px; --shadow: 0 10px 30px -12px rgba(9,22,40,.25); --shadow-lg: 0 30px 60px -25px rgba(4,12,24,.55);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --wrap: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.lime { color: var(--lime); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--navy-900); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 6px; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 700; margin-bottom: 14px; font-family: var(--display); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* buttons */
.btn { --b: var(--navy-800); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-family: var(--display); font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .92rem; border-radius: 10px; }
.btn-lime { background: linear-gradient(180deg, #43cf46, #2ea832); color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.25); box-shadow: 0 8px 22px -10px rgba(46,168,50,.9), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-lime:hover { background: linear-gradient(180deg, #4fda52, #34b538); }
.btn-sos { background: var(--sos); color: #fff; box-shadow: 0 8px 22px -10px rgba(229,53,43,.9); }
.btn-sos:hover { background: #f0433a; }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { background: transparent; color: var(--ink-on-dark); border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: var(--lime); color: #fff; }
.btn-outline-light { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy-600); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.arr { width: 18px; height: 2px; background: currentColor; position: relative; display: inline-block; }
.arr::after { content: ''; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }

/* top bar + header */
.topbar { background: var(--navy-950); color: var(--muted-on-dark); font-size: .84rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; }
.tb-place { display: inline-flex; align-items: center; gap: 6px; }
.tb-nums { display: flex; gap: 18px; align-items: center; }
.tb-nums a { text-decoration: none; color: var(--muted-on-dark); }
.tb-nums b { color: #fff; font-weight: 700; }
.tb-nums a:hover b { color: var(--lime); }
.tb-all { color: var(--lime) !important; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10,22,38,.94); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line-dark); }
.header-in { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex: none; }
.brand-txt { display: flex; flex-direction: column; font-family: var(--display); font-weight: 800; line-height: .98; font-size: 1.28rem; letter-spacing: .01em; }
.brand-tag { display: none; color: var(--muted-on-dark); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; padding-left: 16px; margin-left: 4px; border-left: 1px solid var(--line-dark); max-width: 190px; line-height: 1.5; }
.nav { display: none; }
.nav a { color: var(--ink-on-dark); text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; }
.nav > a { padding: 8px 2px; }
.nav > a:hover { color: #fff; }
.nav > a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--lime); }
.nav-actions { display: flex; gap: 10px; }
.header-sos { margin-left: auto; }
.menu-btn { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-dark); background: transparent; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.menu-btn span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-900); padding: 12px 16px 22px; border-bottom: 1px solid var(--line-dark); gap: 2px; box-shadow: var(--shadow-lg); }
.nav.open > a { padding: 13px 6px; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
.nav.open > a[aria-current="page"]::after { display: none; }
.nav.open > a[aria-current="page"] { color: var(--lime); }
.nav.open .nav-actions { flex-direction: column; margin-top: 14px; }
.nav.open .nav-actions .btn { min-height: 50px; }
@media (min-width: 1100px) {
  .nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
  .menu-btn { display: none; }
  .header-sos { margin-left: 0; }
}
@media (min-width: 1380px) { .brand-tag { display: block; } }
@media (max-width: 560px) { .hide-sm { display: none; } .tb-place { display: none; } .topbar-in { justify-content: center; } }

/* hero */
.hero { position: relative; color: #fff; background: var(--navy-900); overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 40%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,14,25,.94) 0%, rgba(6,14,25,.78) 38%, rgba(6,14,25,.25) 75%, rgba(6,14,25,.5) 100%), linear-gradient(0deg, rgba(6,14,25,.95) 0%, rgba(6,14,25,0) 35%); }
.hero-in { display: grid; gap: 34px; padding: 64px 0 56px; align-items: center; }
.hero h1 .lime { display: block; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d4deeb; max-width: 560px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .eyebrow { color: #cfd9e6; letter-spacing: .5em; }
@media (min-width: 980px) { .hero-in { grid-template-columns: 1.25fr .9fr; padding: 92px 0 84px; } }

/* quick actions card */
.qa { background: rgba(10,22,38,.78); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 22px; backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); }
.qa-title { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
.qa-title svg { color: var(--lime); width: 24px; height: 24px; }
.qa a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; text-decoration: none; margin-top: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); transition: transform .15s, border-color .15s, background .15s; }
.qa a:hover { transform: translateX(3px); border-color: rgba(255,255,255,.3); }
.qa a .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.08); }
.qa a .ic svg { width: 22px; height: 22px; }
.qa a b { display: block; font-family: var(--display); font-size: 1.04rem; }
.qa a small { color: #b9c6d8; font-size: .85rem; }
.qa a .chev { margin-left: auto; width: 18px; height: 18px; color: #c9d4e3; }
.qa .qa-sos { background: linear-gradient(135deg, #e5352b, #b5231b); border-color: transparent; }
.qa .qa-sos small { color: #ffe0dd; }
.qa .qa-sos .ic { background: rgba(255,255,255,.18); }
.qa .qa-wa { background: linear-gradient(135deg, #1f8f4a, #14703a); border-color: transparent; }
.qa .qa-wa small { color: #d4f5e0; }
.qa .qa-wa .ic { background: rgba(255,255,255,.18); }

/* pillars strip */
.pillars { background: var(--navy-850); color: #fff; border-top: 1px solid var(--line-dark); }
.pillars-in { display: grid; grid-template-columns: repeat(2, 1fr); }
.pillar { display: flex; gap: 14px; align-items: center; padding: 20px 12px; text-decoration: none; border-bottom: 1px solid var(--line-dark); transition: background .15s; }
.pillar:hover { background: rgba(255,255,255,.03); }
.pillar svg { width: 34px; height: 34px; color: var(--lime); stroke-width: 1.6; }
.pillar b { display: block; font-family: var(--display); font-size: .98rem; }
.pillar small { color: var(--muted-on-dark); font-size: .82rem; line-height: 1.35; display: block; }
@media (min-width: 900px) { .pillars-in { grid-template-columns: repeat(5, 1fr); } .pillar { border-bottom: 0; border-right: 1px solid var(--line-dark); padding: 24px 20px; } .pillar:last-child { border-right: 0; } }

/* sections + cards */
.section { padding: 72px 0; }
.section-sm { padding: 44px 0; }
.section-dark { background: var(--navy-900); color: var(--ink-on-dark); }
.section-dark .muted, .section-dark p { color: var(--muted-on-dark); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head p { max-width: 640px; margin: 0; }
.grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .g4 { grid-template-columns: repeat(4, 1fr); } .g-home { grid-template-columns: 1.05fr 1.25fr .95fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 0 rgba(10,22,38,.03); }
.card-dark { background: var(--navy-800); border-color: var(--line-dark); color: var(--ink-on-dark); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-title h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.card-title h3 svg { color: var(--lime-600); width: 22px; height: 22px; }
.card-dark .card-title h3 svg { color: var(--lime); }
.link-more { font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--navy-600); display: inline-flex; gap: 8px; align-items: center; }
.card-dark .link-more { color: var(--lime); }
.link-more:hover { text-decoration: underline; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .fi { width: 52px; height: 52px; border-radius: 14px; background: var(--lime-soft); color: var(--lime-600); display: grid; place-items: center; flex: none; }
.feature .fi svg { width: 26px; height: 26px; stroke-width: 1.8; }
.section-dark .feature .fi { color: var(--lime); }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .96rem; }
.section-dark .feature p { color: var(--muted-on-dark); }
.tile-link { display: flex; align-items: center; gap: 16px; text-decoration: none; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cfd8e4; }
.tile-link .fi { width: 54px; height: 54px; border-radius: 14px; background: var(--navy-800); color: var(--lime); display: grid; place-items: center; flex: none; }
.tile-link .fi svg { width: 26px; height: 26px; stroke-width: 1.8; }
.tile-link b { font-family: var(--display); font-size: 1.08rem; display: block; }
.tile-link small { color: var(--muted); display: block; line-height: 1.4; }
.tile-link .chev { margin-left: auto; color: var(--muted); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-dark); border-radius: var(--radius-sm); overflow: hidden; }
.stat { background: var(--navy-800); padding: 18px 14px; text-align: center; }
.stat svg { width: 26px; height: 26px; color: var(--lime); margin: 0 auto 8px; stroke-width: 1.7; }
.stat b { display: block; font-family: var(--display); font-size: 1.9rem; color: #fff; line-height: 1.1; }
.stat span { color: var(--muted-on-dark); font-size: .84rem; line-height: 1.3; display: block; margin-top: 4px; }
.stats-note { color: var(--muted-on-dark); font-size: .8rem; margin-top: 10px; }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(60,198,63,.2); }

/* map */
.map { height: 300px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line-dark); background: #0b1a2c; position: relative; }
.map-lg { height: 460px; }
.leaflet-container { font-family: var(--font); }
.map-overlay { position: absolute; right: 12px; bottom: 12px; z-index: 500; }

/* news list */
.news-item { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.news-item:last-child { border-bottom: 0; }
.news-item img, .news-item .ph { width: 112px; height: 84px; border-radius: 10px; object-fit: cover; background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); display: grid; place-items: center; color: var(--lime); }
.news-item .ph svg { width: 30px; height: 30px; }
.news-item h4 { margin: 4px 0; font-size: 1.02rem; line-height: 1.3; }
.news-item p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item time { font-size: .8rem; color: var(--muted); }
.badge { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; font-family: var(--display); }
.b-alert { background: var(--sos); color: #fff; }
.b-news { background: #2563eb; color: #fff; }
.b-tip { background: var(--lime); color: var(--navy-950); }
.b-update { background: #0e9f6e; color: #fff; }
.empty { border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 22px; text-align: center; color: var(--muted); font-size: .95rem; }
.empty b { display: block; color: var(--ink); font-family: var(--display); margin-bottom: 4px; }

/* events */
.event { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.event:last-child { border-bottom: 0; }
.date-box { width: 64px; min-height: 66px; border-radius: 12px; background: var(--navy-800); color: #fff; text-align: center; padding: 8px 4px; flex: none; font-family: var(--display); }
.date-box b { display: block; font-size: 1.6rem; line-height: 1; }
.date-box span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); font-weight: 700; }
.event h4 { margin: 0 0 4px; font-size: 1.04rem; }
.event .meta { font-size: .86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* join card */
.join-card { position: relative; overflow: hidden; border-radius: var(--radius); color: #fff; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; background: var(--navy-800) center/cover; isolation: isolate; }
.join-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6,14,25,.95), rgba(6,14,25,.2)); }
.join-card h3 { font-size: 1.7rem; margin-bottom: 6px; }
.join-card p { color: #d5dfec; }

/* page hero */
.page-hero { position: relative; background: var(--navy-900); color: #fff; padding: 64px 0 56px; overflow: hidden; isolation: isolate; }
.page-hero.has-img::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,14,25,.96) 0%, rgba(6,14,25,.8) 50%, rgba(6,14,25,.45) 100%); }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 820px; }
.page-hero p { color: #c9d5e5; max-width: 680px; font-size: 1.1rem; margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted-on-dark); margin-bottom: 16px; }
.crumbs a { color: var(--lime); text-decoration: none; }

/* prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--navy-600); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px; background: var(--lime-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a9f30' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.steps { counter-reset: s; display: grid; gap: 18px; }
.step { counter-increment: s; position: relative; padding-left: 64px; }
.step::before { content: counter(s); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 14px; background: var(--lime); color: var(--navy-950); font-family: var(--display); font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; }
.section-dark .step::before { box-shadow: 0 0 0 6px rgba(60,198,63,.12); }
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); }
.section-dark .step p { color: var(--muted-on-dark); }

/* emergency numbers */
.num-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .num-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .num-grid { grid-template-columns: repeat(3, 1fr); } }
.num { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; text-decoration: none; transition: border-color .15s, transform .15s; }
.num:hover { border-color: var(--navy-600); transform: translateY(-1px); }
.num .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--navy-700); flex: none; }
.num.urgent .ic { background: var(--sos-soft); color: var(--sos); }
.num .ic svg { width: 22px; height: 22px; }
.num b { font-family: var(--display); font-size: 1.32rem; display: block; line-height: 1.15; letter-spacing: .01em; }
.num span { color: var(--muted); font-size: .9rem; line-height: 1.3; display: block; }
.num small { color: var(--muted); font-size: .76rem; }
.src { font-size: .8rem; color: var(--muted); }

/* forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
label.f { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
label.f small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], textarea, select {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(34,68,111,.12); }
textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy-700); flex: none; }
.hp { position: absolute; left: -5000px; height: 0; overflow: hidden; }
.form-msg { border-radius: 12px; padding: 14px 16px; font-weight: 500; display: none; }
.form-msg.ok { display: block; background: #e9f9d4; color: #2f5508; border: 1px solid #c7ec93; }
.form-msg.err { display: block; background: #fde8e6; color: #8a1c14; border: 1px solid #f7c1bb; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .93rem; cursor: pointer; transition: all .15s; }
.chip span svg { width: 18px; height: 18px; color: var(--navy-600); }
.chip input:checked + span { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.chip input:checked + span svg { color: var(--lime); }
.chip input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-family: var(--display); cursor: pointer; font-size: .95rem; color: var(--ink); }
.tab[aria-selected="true"] { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.panel[hidden] { display: none; }
.rec { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--soft); }
.rec-btn { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--sos); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; box-shadow: 0 8px 18px -8px rgba(229,53,43,.8); }
.rec-btn svg { width: 24px; height: 24px; }
.rec-btn.on { animation: recpulse 1.2s infinite; }
@keyframes recpulse { 50% { box-shadow: 0 0 0 10px rgba(229,53,43,.15); } }
.rec audio { height: 40px; max-width: 100%; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 640px) { .amounts { grid-template-columns: repeat(6, 1fr); } }
.amounts .chip span { width: 100%; justify-content: center; }

/* SOS demo */
.sos-ring { width: 210px; height: 210px; margin: 0 auto; position: relative; display: grid; place-items: center; }
.sos-ring::before, .sos-ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--sos); opacity: .25; animation: sosr 2s infinite; }
.sos-ring::after { animation-delay: 1s; }
@keyframes sosr { from { transform: scale(.85); opacity: .35; } to { transform: scale(1.35); opacity: 0; } }
.sos-ring div { width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff5a4f, #c8241b 70%); border: 7px solid rgba(255,255,255,.85); display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: 2.8rem; letter-spacing: .08em; position: relative; z-index: 1; box-shadow: 0 20px 40px -15px rgba(229,53,43,.9); }
.phone-frame { width: 300px; max-width: 100%; margin: 0 auto; border-radius: 40px; padding: 14px; background: #05080d; box-shadow: var(--shadow-lg), inset 0 0 0 2px #1d2633; }
.phone-screen { border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, #0f2238, #0a1626); color: #fff; padding: 26px 18px 22px; min-height: 520px; display: flex; flex-direction: column; gap: 14px; }
.ps-head small { color: var(--lime); letter-spacing: .2em; font-weight: 700; font-size: .7rem; }
.ps-head b { display: block; font-family: var(--display); font-size: 1.3rem; }
.ps-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ps-tabs span { font-size: .72rem; padding: 6px 10px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.ps-hint { text-align: center; font-size: .8rem; color: var(--muted-on-dark); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; background: var(--soft); position: relative; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: .8rem; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); }

/* partners + quote */
.partners { display: grid; gap: 18px; align-items: center; }
@media (min-width: 900px) { .partners { grid-template-columns: auto 1fr 1fr 1fr 1.4fr; } }
.partner { display: flex; gap: 14px; align-items: center; }
.partner .pl { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--navy-700); flex: none; }
.partner .pl svg { width: 26px; height: 26px; stroke-width: 1.7; }
.partner b { display: block; font-family: var(--display); }
.partner small { color: var(--muted); }
.quote { font-family: var(--display); font-style: italic; font-size: 1.08rem; color: var(--navy-700); border-left: 3px solid var(--lime); padding-left: 16px; margin: 0; }

/* CTA band + footer */
.cta-band { background: radial-gradient(1200px 300px at 85% 0%, rgba(60,198,63,.12), transparent), var(--navy-850); color: #fff; padding: 56px 0; border-top: 1px solid var(--line-dark); }
.cta-in { display: grid; gap: 24px; align-items: center; }
.cta-in h2 { max-width: 720px; }
.cta-in p { color: var(--muted-on-dark); margin: 0; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
@media (min-width: 900px) { .cta-in { grid-template-columns: 1fr auto; } }
.site-footer { background: var(--navy-950); color: var(--muted-on-dark); padding: 56px 0 96px; font-size: .94rem; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr 1fr; }
.f-brand { grid-column: 1 / -1; }
.f-brand p { max-width: 380px; margin-top: 16px; }
.site-footer h3 { color: #fff; font-size: .98rem; margin-bottom: 14px; }
.site-footer a { display: block; text-decoration: none; color: var(--muted-on-dark); padding: 3px 0; }
.site-footer a:hover { color: var(--lime); }
.f-contact a { display: inline; color: #fff; }
.f-urgent { grid-column: 1 / -1; }
.f-big { font-family: var(--display); font-weight: 800; font-size: 2rem; color: #fff !important; line-height: 1.1; padding: 0 !important; }
.f-urgent span { display: block; margin-bottom: 10px; font-size: .85rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; } .f-brand, .f-urgent { grid-column: auto; } }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; border-top: 1px solid var(--line-dark); margin-top: 40px; padding-top: 22px; font-size: .84rem; }
.footer-bottom a { display: inline; margin-left: 18px; }
.footer-bottom a:first-child { margin-left: 0; }
.quickbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(6,14,25,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line-dark); padding-bottom: env(safe-area-inset-bottom); }
.quickbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 10px; color: #dfe7f2; text-decoration: none; font-size: .74rem; font-weight: 600; }
.quickbar svg { width: 22px; height: 22px; }
.quickbar .qb-sos { color: #fff; background: var(--sos); }
@media (min-width: 900px) { .quickbar { display: none; } .site-footer { padding-bottom: 40px; } }

/* post page */
.post-body p { font-size: 1.08rem; }
.post-img { border-radius: var(--radius); margin-bottom: 28px; width: 100%; max-height: 460px; object-fit: cover; }
.notice { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--sos-soft); color: #7d1a13; border: 1px solid #f6c7c2; }
.notice svg { width: 22px; height: 22px; color: var(--sos); margin-top: 2px; }
.notice.info { background: #eaf2ff; color: #173a7a; border-color: #cddffb; }
.notice.info svg { color: #2563eb; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* fixes after the first visual check */
.card:not(.card-dark) { color: var(--ink); }
.section-dark .card:not(.card-dark) p, .section-dark .card:not(.card-dark) .muted { color: var(--muted); }
.g-home { align-items: start; }
.site-footer .brand { display: flex; }
.map .leaflet-tile-pane { filter: invert(1) hue-rotate(195deg) brightness(.92) contrast(.9) saturate(.6); }
.map .leaflet-control-attribution { background: rgba(10,22,38,.75); color: #9fb0c8; }
.map .leaflet-control-attribution a { color: #c9e98f; }

/* wordmark from the patrol's own banner: MALABAR (white) / PATROLS (gold) / NEIGHBOURHOOD WATCH / SECTOR POLICING */
:root { --gold: #f4c31b; }
.wordmark { display: inline-grid; justify-items: center; font-family: 'Orbitron', var(--display); line-height: 1; color: #fff; }
.wm-top { font-weight: 900; font-size: 1.32rem; letter-spacing: .14em; }
.wm-main { font-weight: 900; font-size: 1.32rem; letter-spacing: .14em; color: var(--gold); }
.wm-sub { font-family: var(--display); font-weight: 700; font-size: .44rem; letter-spacing: .32em; text-transform: uppercase; color: #fff;
  border-top: 1px solid rgba(244,195,27,.7); border-bottom: 1px solid rgba(244,195,27,.7); padding: 2px 6px; margin: 4px 0 2px; width: 100%; text-align: center; }
.wm-sub2 { border: 0; margin: 2px 0 0; padding: 0; color: #d9e1ec; }
.brand .crest { display: block; flex: none; }
.brand .crest img { display: block; height: var(--crest-h, 66px); width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
@media (max-width: 560px) { .wm-top, .wm-main { font-size: 1.08rem; letter-spacing: .1em; } .wm-sub { font-size: .38rem; } } 
.site-footer .wordmark { align-self: center; }

/* the crest is exactly as tall as the wordmark next to it (MALABAR PATROLS + its two lines) */
.brand { --crest-h: 70px; align-items: center; }
@media (max-width: 560px) { .brand { --crest-h: 61px; } }

/* small phones (<= 420 px): crest, wordmark, SOS and menu must fit in one row, or the page renders wider than the
   screen and the bottom quick bar starts below it (seen on a 360 px Samsung, 8 Nov 2026) */
html, body { overflow-x: clip; }
@media (max-width: 420px) {
  .header-in { gap: 10px; min-height: 70px; }
  .brand { gap: 8px; --crest-h: 54px; }
  .wm-top, .wm-main { font-size: .98rem; letter-spacing: .08em; }
  .wm-sub { font-size: .34rem; letter-spacing: .24em; padding: 2px 3px; }
  .header-sos { min-height: 40px; padding: 0 12px; gap: 7px; font-size: .9rem; }
  .menu-btn { width: 42px; height: 42px; flex: none; }
}
@media (max-width: 340px) {
  .brand { --crest-h: 46px; }
  .wm-top, .wm-main { font-size: .86rem; letter-spacing: .06em; }
  .header-sos .dot { display: none; }
}

/* two-column page layouts (form + sidebar): one column on phones and tablets, the split only on wide screens */
.split { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .split { grid-template-columns: var(--split, minmax(0, 1.5fr) minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .section { padding: 44px 0; }
  .card { padding: 18px; }
  .page-hero { padding: 40px 0 36px; }
  .notice { padding: 14px; gap: 10px; }
  .chip span { padding: 10px 14px; font-size: .9rem; }
  .hero-btns .btn { flex: 1 1 auto; }
  .num b { font-size: 1.18rem; }
}
.tile-link > span { min-width: 0; }
.tile-link b, .num b, .num span { overflow-wrap: anywhere; }
