@charset "utf-8";
/* ============================================================
   ESUDO v3 — design layer. Loaded AFTER style.css + esudo-2026.css.

   Every colour here is sampled from the ESUDO emblem: the deep
   blue of the roundel, the gold of the ring, and the five figure
   colours (red, green, orange, sky, black). The five figures are
   different people inside one circle — that is the organisation's
   whole idea, so those colours carry information on this page
   rather than decorating it. They appear as the header rule and
   as the programme bars. Nowhere else.
   ============================================================ */

/* ---------------- tokens ---------------- */
:root{
  --ink:#003c80;        /* emblem blue, sampled from the roundel — headings, dark grounds */
  --ink-deep:#002a5a;   /* deepest ground: topbar, footer */
  --blue:#003c80;       /* legacy token names remapped so old pages follow */
  --blue2:#002a5a;
  --paper:#fcfaf5;      /* warm paper — page ground */
  --band:#f0eadb;       /* gold-tinted band, from the ring */
  --rule:#dcd3bf;       /* hairline */
  --body:#414b5c;       /* body text, blue-grey */
  --muted:#6c7789;
  --gold:#ffb90f;       /* the ring, brightened */
  --t1:#d8232a;         /* figure red */
  --t2:#1e8449;         /* figure green */
  --t3:#ff9a0f;         /* figure orange */
  --t4:#208cc4;         /* figure sky, sampled */
  --bg:#f0eadb;
  --white:#fff;
  --radius:4px;
  --shadow:none;
  --measure:64ch;
}

/* ---------------- global type + ground ---------------- */
body{
  font-family:"Noto Sans","Noto Sans Tamil","Noto Sans Sinhala",system-ui,Arial,sans-serif;
  background:var(--paper);color:var(--body);
  font-size:16.5px;line-height:1.55;-webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4,.brand b,.stat b,.kpi b{
  font-family:Archivo,"Noto Sans",system-ui,Arial,sans-serif;
  color:var(--ink);font-weight:700;letter-spacing:-.021em;
}
h1{line-height:1}
h2{line-height:1.08}
p{max-width:var(--measure)}
:focus-visible{outline:3px solid var(--t4);outline-offset:2px}

/* ---------------- legacy shell, tightened ---------------- */
.section{padding:60px 0}
.section h2{font-size:clamp(25px,2.7vw,36px);margin:0 0 10px}
.section-head{margin-bottom:24px}
.eyebrow{text-transform:none!important;letter-spacing:0!important;font-size:13px;font-weight:600;color:var(--t2)!important}
.card{border-radius:var(--radius);box-shadow:none;border:1px solid var(--rule);background:#fff}
.btn{background:var(--ink);box-shadow:none;border-radius:3px;font-weight:600;padding:11px 18px;letter-spacing:0}
.btn.gold{background:var(--gold);color:#241a02!important}
.btn.light{background:#fff;color:var(--ink)!important}
.btn:hover{filter:brightness(1.12)}
.btn.gold:hover,.btn.light:hover{filter:brightness(.94)}
.badge{background:transparent;color:var(--t2);padding:0;text-transform:none;letter-spacing:0;font-size:12.5px;font-weight:600;border-radius:0}
.stats-grid,.form-card,.table-wrap,.kpi{box-shadow:none}
.topbar{background:var(--ink-deep)}
footer{background:var(--ink-deep)}

/* ============================================================
   HEADER + NAV
   The emblem already carries the organisation's name in Tamil,
   Sinhala and English around its ring, so the header repeats it
   once in English only. Dropping the other two lines is what
   gives the nav room to breathe.
   ============================================================ */
.header{border-bottom:1px solid var(--rule);background:rgba(252,250,245,.97);box-shadow:none}
/* Woven selvedge: the five figure colours repeat at a fixed pitch so the
   rule reads as thread, not as a full-width warning bar. */
.header:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;
  background:repeating-linear-gradient(90deg,
    var(--t1) 0 30px,var(--t2) 30px 60px,var(--t3) 60px 90px,var(--t4) 90px 120px,#141414 120px 150px)}
.nav{height:84px}

/* Brand lockup: emblem with ESUDO under it, then the organisation name
   in Tamil / Sinhala / English, one line each, never wrapping. Sizes are
   measured per breakpoint against the space the nav leaves, not guessed. */
.brand{align-items:center}
.brand small.bn{display:block;white-space:nowrap;max-width:none;margin:0;
  line-height:1.32;color:var(--ink);letter-spacing:0;font-weight:600}
/* Everything that sizes the lockup stays above 600px. Below that, the
   measured calc() sizes in esudo-2026.css own it and must not be touched. */
@media(min-width:601px){
  .brand{gap:13px}
  .brand-mark img{width:52px;height:52px;flex:0 0 52px}
  .brand-mark b{font-family:Archivo,sans-serif;font-size:13px;letter-spacing:.06em;color:var(--ink)}
  .brand small.bn-ta{font-size:10.5px}
  .brand small.bn-si{font-size:10.7px}
  .brand small.bn-en{font-size:11.5px}
}

/* Nav: the old hover slid a blue-to-gold gradient bar out from the left.
   This is a plain gold rule that wipes in under the label, and the label
   itself takes a faint tint so the target is obvious before the wipe. */
.header .nav nav{gap:2px;font-size:15px;font-weight:600}
.header .nav nav a:not(.nav-cta){padding:9px 12px;color:var(--body);border-radius:3px;
  transition:background .15s ease,color .15s ease}
.header .nav nav a:not(.nav-cta):after{left:12px;right:12px;bottom:3px;height:2px;border-radius:0;
  background:var(--gold);transform:scaleX(0);transform-origin:left;transition:transform .17s ease}
.header .nav nav a:not(.nav-cta):hover{color:var(--ink);background:rgba(0,60,128,.06)}
.header .nav nav a:not(.nav-cta):hover:after,
.header .nav nav a.is-active:after{right:12px;transform:scaleX(1)}
.header .nav nav a.is-active{color:var(--ink)}
.header .nav nav a.nav-cta{background:var(--gold);color:#241a02!important;padding:11px 18px;
  border-radius:3px;font-weight:700;font-size:14.5px;letter-spacing:0;box-shadow:none;
  margin-left:12px;transition:background .15s ease}
.header .nav nav a.nav-cta:hover{background:#bf8d1e;transform:none;box-shadow:none}
.menu{color:var(--ink)}
.topbar .tb-tag{display:none}

/* ============================================================
   HOMEPAGE
   ============================================================ */

/* ---------- lead story ---------- */
.lead{position:relative;min-height:clamp(430px,66vh,600px);display:flex;align-items:flex-end;overflow:hidden;background:var(--ink-deep)}
.lead-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 28%}
.lead-scrim{position:absolute;inset:0;
  background:linear-gradient(100deg,rgba(0,42,90,.95) 0%,rgba(0,42,90,.84) 38%,rgba(0,42,90,.32) 74%,rgba(0,42,90,.12) 100%)}
.lead-copy{position:relative;z-index:2;padding:54px 0 46px;color:#fff}
.lead-kicker{display:flex;align-items:center;gap:9px;margin:0 0 14px;font-size:13.5px;font-weight:600;color:#e8dcbc;max-width:none}
.lead-kicker i{width:22px;height:3px;background:var(--gold);flex:0 0 auto}
.lead h1{color:#fff;font-size:clamp(31px,5.5vw,60px);margin:0 0 16px;letter-spacing:-.03em}
.lead-text{color:#ccd7e6;font-size:clamp(15.5px,1.4vw,18px);max-width:52ch;margin:0}
.lead-acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.act{display:inline-block;padding:12px 20px;font-weight:600;font-size:15px;background:var(--gold);color:#241a02;border-radius:3px}
.act:hover{filter:brightness(.94)}
.act.ghost{background:transparent;color:#fff;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.55)}
.act.ghost:hover{background:rgba(255,255,255,.12);filter:none}
.act.solid{background:var(--ink);color:#fff}
.act.solid:hover{filter:brightness(1.15)}

/* ---------- measure strip ---------- */
.measure{background:var(--band);border-bottom:1px solid var(--rule)}
.measure-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.measure-grid div{padding:18px 0 20px;border-left:1px solid var(--rule)}
.measure-grid div:first-child{border-left:0}
.measure-grid div:not(:first-child){padding-left:22px}
.measure b{display:block;font-family:Archivo,sans-serif;font-size:clamp(26px,3vw,38px);color:var(--ink);line-height:1;letter-spacing:-.03em}
.measure span{display:block;margin-top:5px;font-size:13.5px;color:var(--muted)}

/* ---------- programmes ---------- */
.prog{padding:62px 0 66px}
.prog-head{margin-bottom:30px}
.prog-head h2{font-size:clamp(25px,3.1vw,40px);margin:0 0 12px;max-width:19ch}
.prog-head p{font-size:17px;max-width:58ch;margin:0}
.prog-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;
  column-gap:44px;border-top:1px solid var(--rule)}
.prog-list li{border-bottom:1px solid var(--rule)}
.prog-list a{display:grid;grid-template-columns:3px 1fr;gap:16px;padding:16px 0;align-items:stretch}
.prog-list a:hover b{color:var(--t2)}
.prog-list i{display:block;background:var(--t1)}
.prog-list li:nth-child(5n+2) i{background:var(--t2)}
.prog-list li:nth-child(5n+3) i{background:var(--t3)}
.prog-list li:nth-child(5n+4) i{background:var(--t4)}
.prog-list li:nth-child(5n+5) i{background:#141414}
.prog-list b{display:block;font-family:Archivo,sans-serif;font-size:18px;color:var(--ink);letter-spacing:-.015em;margin-bottom:2px}
.prog-list b+span{display:block;font-size:15px;color:var(--muted);max-width:44ch}

/* ---------- where communities meet (dark) ---------- */
.meet{background:var(--ink);color:#c2cfe2;padding:64px 0 68px}
.meet h2{color:#fff;font-size:clamp(25px,3.1vw,40px);margin:0 0 12px;max-width:17ch}
.meet-sub{font-size:17px;color:#a4b4cb;max-width:58ch;margin:0 0 30px}
.meet-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:26px 34px;align-items:start}
.meet-side{display:flex;flex-direction:column;gap:22px}
.meet-lead{display:block}
.meet-lead img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:var(--radius);margin-bottom:16px}
.meet-lead h3{color:#fff;font-size:clamp(20px,2vw,27px);margin:8px 0;letter-spacing:-.025em}
.meet-lead p{color:#a4b4cb;font-size:15.5px;margin:0;max-width:52ch}
.meet-item{display:grid;grid-template-columns:132px 1fr;gap:16px;align-items:start;align-content:start}
.meet-item img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius)}
.meet-item h3{color:#fff;font-size:17.5px;margin:2px 0 0;letter-spacing:-.015em;line-height:1.25}
.meet-tag{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;color:#e8dcbc}
.meet-tag i{width:16px;height:3px;background:var(--gold);flex:0 0 auto}
.meet-grid a:hover h3{color:var(--gold)}
.meet-allstories{align-self:flex-start;margin-top:2px;font-size:14.5px;font-weight:600;color:#fff;
  border-bottom:2px solid var(--gold);padding-bottom:2px}
.meet-allstories:hover{color:var(--gold)}
.meet-more{display:inline-block;margin-top:14px;font-size:15px;font-weight:600;color:#fff;border-bottom:2px solid var(--gold);padding-bottom:2px}

/* ---------- in the field ---------- */
.field{padding:62px 0 66px;background:var(--band)}
.field-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:26px;flex-wrap:wrap}
.field-head h2{font-size:clamp(25px,3.1vw,38px);margin:0;max-width:20ch}
.field-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.field-grid article a{display:block}
.field-grid img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:var(--radius);margin-bottom:14px}
.field-grid h3{font-size:19px;margin:7px 0 6px;letter-spacing:-.018em;line-height:1.25}
.field-grid p{font-size:15px;color:var(--muted);margin:0;max-width:40ch}
.field-grid a:hover h3{color:var(--t2)}
.f-tag{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;color:var(--t2)}
.f-tag i{width:16px;height:3px;background:var(--t2);flex:0 0 auto}

/* ---------- newsroom ---------- */
.news{padding:62px 0 70px}
.news-wrap{display:grid;grid-template-columns:1fr 316px;gap:56px}
.news-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;
  border-bottom:2px solid var(--ink);padding-bottom:10px}
.news-head h2{font-size:clamp(22px,2.4vw,30px);margin:0}
.news-head a{font-size:14.5px;font-weight:600;color:var(--t2)}
.news-head a:hover{color:var(--ink)}
.feed{list-style:none;margin:0;padding:0}
.feed li{border-bottom:1px solid var(--rule)}
.feed a{display:grid;grid-template-columns:118px 1fr;gap:20px;padding:18px 0;align-items:start}
.feed img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--radius)}
.feed h3{font-size:18.5px;margin:5px 0;letter-spacing:-.018em;line-height:1.3}
.feed p{font-size:14.5px;color:var(--muted);margin:0;max-width:56ch}
.feed a:hover h3{color:var(--t2)}
.feed-meta{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;color:var(--t1)}
.feed-meta i{width:16px;height:3px;background:var(--t1);flex:0 0 auto}
.feed-date{margin-left:auto;font-weight:400;color:var(--muted);flex:0 0 auto}
.feed li:nth-child(even) .feed-meta{color:var(--t4)}
.feed li:nth-child(even) .feed-meta i{background:var(--t4)}

.aside-block{border-top:2px solid var(--ink);padding-top:16px;margin-bottom:30px}
.aside-block h3{font-size:19px;margin:0 0 8px;letter-spacing:-.018em}
.aside-block p{font-size:14.5px;color:var(--muted);margin:0 0 16px}
.aside-block .act{font-size:14.5px;padding:10px 17px}
.aside-dark{background:var(--ink);padding:22px;border-radius:var(--radius);border-top:0}
.aside-dark h3{color:#fff}
.aside-dark p{color:#a4b4cb}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  *,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}

/* The band between the hamburger appearing (900px) and a comfortable
   desktop (1150px) is the tightest zone on the site: a seven-item nav
   plus a three-line brand lockup. Both step down together here. */
@media(min-width:601px) and (max-width:1150px){
  .brand{gap:10px}
  .brand-mark img{width:44px;height:44px;flex:0 0 44px}
  .brand-mark b{font-size:11.5px}
  .brand small.bn-ta{font-size:8.6px}
  .brand small.bn-si{font-size:8.8px}
  .brand small.bn-en{font-size:9.6px}
  .header .nav nav{font-size:14px;gap:0}
  .header .nav nav a:not(.nav-cta){padding:9px 8px}
  .header .nav nav a:not(.nav-cta):after{left:8px;right:8px}
  .header .nav nav a:not(.nav-cta):hover:after,
  .header .nav nav a.is-active:after{right:8px}
  .header .nav nav a.nav-cta{padding:10px 14px;font-size:13.5px;margin-left:8px}
}

/* 901-1010 is where the full nav and the lockup are closest together;
   measured spare was exactly 0, so buy back a little. */
@media(min-width:601px) and (max-width:1010px){
  .header .nav nav{font-size:13.5px}
  .header .nav nav a:not(.nav-cta){padding:9px 6px}
  .header .nav nav a:not(.nav-cta):after{left:6px;right:6px}
  .header .nav nav a:not(.nav-cta):hover:after,
  .header .nav nav a.is-active:after{right:6px}
  .header .nav nav a.nav-cta{padding:10px 12px;font-size:13px;margin-left:6px}
}

/* Phone sizing for the three brand lines.
   esudo-2026.css sizes these for weight 400, and switches to a FIXED
   9/9.2/10.5px at 360 and below. At weight 600 the glyphs are wider, so
   both clip. These divisors were measured on the live page at weight 600
   (worst case 33.8 / 32.5 / 26.8 at 320px) with headroom added, and the
   11px cap keeps them sane on a 600px viewport. The 136px reserve covers
   the mark, the gaps and the 40px menu button. */
@media(max-width:600px){
  .brand small.bn-ta{font-size:min(11px,calc((100vw - 136px) / 34.2))}
  .brand small.bn-si{font-size:min(11px,calc((100vw - 136px) / 33))}
  .brand small.bn-en{font-size:min(11px,calc((100vw - 136px) / 27.4))}
}

/* 880-960 is the single tightest width on the site: measured spare was 0,
   so the lockup takes one more step down and stops touching the nav. */
@media(min-width:880px) and (max-width:960px){
  .brand-mark img{width:40px;height:40px;flex:0 0 40px}
  .brand-mark b{font-size:10.5px}
  .brand small.bn-ta{font-size:8px}
  .brand small.bn-si{font-size:8.2px}
  .brand small.bn-en{font-size:9px}
}

/* ---------- tablet ---------- */
@media(max-width:900px){
  .nav nav{gap:0}
  .nav nav>a{padding:12px 4px}
  .nav nav>a:after{left:4px;right:4px;bottom:6px}
  .nav-cta{margin-left:0;margin-top:10px;text-align:center}
  .news-wrap{grid-template-columns:1fr;gap:38px}
  .meet-grid{grid-template-columns:1fr;gap:22px}
    .field-grid{grid-template-columns:1fr 1fr}
  .field-grid article:last-child{display:none}
  .meet-side{gap:18px}
}

/* ---------- phone ---------- */
@media(max-width:600px){
  body{font-size:16px}
  .nav{height:70px}
  .brand img{width:46px;height:46px}
  .brand .brand-mark b{font-size:19px}
  .lead{min-height:0}
  .lead-copy{padding:112px 0 32px}
  .lead-scrim{background:linear-gradient(180deg,rgba(0,42,90,.42) 0%,rgba(0,42,90,.74) 45%,rgba(0,42,90,.96) 100%)}
  .lead h1{font-size:clamp(28px,8.2vw,38px)}
  .lead-text{font-size:15.5px}
  .lead-acts{gap:8px}
  .act{padding:11px 16px;font-size:14.5px}
  .measure-grid{grid-template-columns:1fr 1fr}
  .measure-grid div{padding:14px 0 15px;border-left:0}
  .measure-grid div:nth-child(2n){border-left:1px solid var(--rule);padding-left:18px}
  .measure-grid div:nth-child(n+3){border-top:1px solid var(--rule)}
  .prog,.field,.news{padding:44px 0 46px}
  .meet{padding:46px 0 48px}
  .prog-list{grid-template-columns:1fr}
  .prog-head h2,.meet h2,.field-head h2{max-width:none}
  .field-grid{grid-template-columns:1fr;gap:24px}
  .field-grid article:last-child{display:block}
  .meet-item{grid-template-columns:104px 1fr;gap:13px}
  .feed a{grid-template-columns:92px 1fr;gap:14px;padding:15px 0}
  .feed-meta{font-size:11.5px;gap:6px}
  .feed-meta i{width:12px}
  .feed h3{font-size:17px}
  .feed p{display:none}
  .news-wrap{gap:34px}
}

/* grid and flex children default to min-width:auto and refuse to
   shrink, which is what pushes content off a 360px phone */
.prog-list>*,.meet-grid>*,.field-grid>*,.news-wrap>*,.feed a>*,.meet-item>*{min-width:0}

/* ============================================================
   INNER PAGES — about / services / posts / post / members /
   contact / complaint / membership. Same language as the home
   page: flat grounds, hairlines, one woven rule, no shadows.
   ============================================================ */

/* Page head: a flat ink band instead of the navy gradient, with the
   same woven rule that closes the site header. */
.page-hero{position:relative;background:var(--ink);color:#c2cfe2;padding:42px 0 46px}
.page-hero:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;
  background:repeating-linear-gradient(90deg,
    var(--t1) 0 30px,var(--t2) 30px 60px,var(--t3) 60px 90px,var(--t4) 90px 120px,#141414 120px 150px)}
.page-hero h1{color:#fff;font-size:clamp(28px,4vw,46px);margin:0;letter-spacing:-.028em}
.page-hero p{color:#a4b4cb;margin:12px 0 0;font-size:17px;max-width:56ch}
.page-hero .eyebrow{display:flex;align-items:center;gap:9px;margin:0 0 12px;
  font-size:13.5px;color:#e8dcbc!important}
.page-hero .eyebrow:before{content:"";width:22px;height:3px;background:var(--gold);flex:0 0 auto}

/* The rounded blue icon tile was the most template-like thing on these
   pages. The glyph stays, the tile goes. */
.card .icon{display:block;width:auto;height:auto;margin:0 0 14px;padding:0;
  background:transparent;border-radius:0;color:var(--t2);font-size:inherit}
.card .icon svg,.card .icon .ico-svg{width:28px;height:28px;display:block;margin:0 auto 0 0}
.card{padding:24px}
.card h3{font-size:19px;margin:0 0 7px;letter-spacing:-.018em}
.card p{font-size:15.5px}
.grid-3{gap:20px}
.grid-2{gap:20px}
.split{gap:32px}

/* About: the emblem is artwork, not a badge — no white disc, no shadow. */
.hero-logo{background:transparent;padding:0;border-radius:0;box-shadow:none;
  max-width:min(340px,100%);margin:auto}

/* Contact panel */
.feature-panel{background:var(--ink);border-radius:var(--radius);padding:30px}
.feature-panel h2{color:#fff}
.feature-panel p{color:#b9c7dc}
.feature-panel b{color:#fff}

/* Forms */
.form-card{border:1px solid var(--rule);border-radius:var(--radius);padding:26px;background:#fff}
label{font-weight:600;font-size:13px;color:var(--ink);margin-bottom:5px}
input,select,textarea{border:1px solid #cdc6b4;border-radius:3px;background:#fff;padding:12px 13px}
input:focus,select:focus,textarea:focus{outline:3px solid rgba(32,140,196,.25);border-color:var(--t4)}
.searchbox input{flex:1 1 auto;min-width:0}
.notice{background:#fdf6e3;color:#6b5312;border-radius:0;border-left:3px solid var(--gold);padding:14px 16px}
.flash{padding:13px}
.flash.success{background:#e8f5ec;color:#14603a;border-left:3px solid var(--t2)}
.flash.error{background:#fdecec;color:#8f1d22;border-left:3px solid var(--t1)}
.member-result{border-left:3px solid var(--t2);border-radius:0}

/* Posts index + article */
.post-card{border-radius:var(--radius);overflow:hidden}
.post-media{border-radius:0}
.post-body{padding:20px}
.article h1{font-size:clamp(28px,3.6vw,44px);letter-spacing:-.028em;margin:10px 0 6px}
.article-media{border-radius:var(--radius)}
.article-date{font-size:14px}
.article-lead{font-size:18px;color:var(--ink)}
.related-card{border-radius:var(--radius)}
.pagination a{border-radius:3px;border-color:var(--rule)}
.row-featured{color:var(--t1);font-weight:600;font-size:12.5px}

/* Services: the one page where the icon set earns its place, so the
   cards become a plain three-up with a rule over each. */
.p-services .grid-3{gap:0 28px}
.p-services .card{border:0;border-top:2px solid var(--ink);border-radius:0;
  background:transparent;padding:18px 0 22px}

/* About: vision / mission / values share one rule rather than three boxes. */
.p-about .grid-3{gap:0 30px}
.p-about .card{border:0;border-top:2px solid var(--ink);border-radius:0;
  background:transparent;padding:18px 0 22px}

@media(max-width:900px){
  .p-services .grid-3,.p-about .grid-3{gap:0 22px}
}
@media(max-width:600px){
  .page-hero{padding:30px 0 32px}
  .page-hero p{font-size:15.5px}
  .section{padding:44px 0}
  .card{padding:20px}
  .form-card{padding:20px}
  .p-services .card,.p-about .card{padding:16px 0 18px}
}

/* ============================================================
   BRAND LOCKUP — grows in tiers as the viewport gives it room.
   Each step was measured against the nav; see the audit note.
   ============================================================ */
@media(min-width:1011px) and (max-width:1150px){
  .brand{gap:12px}
  .brand-mark img{width:48px;height:48px;flex:0 0 48px}
  .brand-mark b{font-size:12px}
  .brand small.bn-ta{font-size:9.6px}
  .brand small.bn-si{font-size:9.8px}
  .brand small.bn-en{font-size:10.6px}
}
/* Starts at 1200, not 1151: a media query matches on innerWidth, which
   includes the scrollbar, so at a 1151px window only ~1132px is usable and
   this tier left the brand touching the nav. */
@media(min-width:1200px){
  .nav{height:88px}
  .brand{gap:15px}
  .brand-mark img{width:56px;height:56px;flex:0 0 56px}
  .brand-mark b{font-size:14px}
  .brand small.bn-ta{font-size:11.2px}
  .brand small.bn-si{font-size:11.4px}
  .brand small.bn-en{font-size:12.2px}
}
@media(min-width:1281px){
  .nav{height:94px}
  .brand{gap:16px}
  .brand-mark img{width:62px;height:62px;flex:0 0 62px}
  .brand-mark b{font-size:15px}
  .brand small.bn-ta{font-size:12.2px}
  .brand small.bn-si{font-size:12.4px}
  .brand small.bn-en{font-size:13.2px}
}
@media(min-width:1440px){
  .nav{height:100px}
  .brand-mark img{width:68px;height:68px;flex:0 0 68px}
  .brand-mark b{font-size:16px}
  .brand small.bn-ta{font-size:13px}
  .brand small.bn-si{font-size:13.2px}
  .brand small.bn-en{font-size:14px}
}

/* ============================================================
   SOCIAL ICONS — the brand colours were only applied on hover.
   They are the default state now; hover just lifts and brightens.
   An icon with no URL set stays a muted placeholder so it still
   reads as "not linked yet".
   ============================================================ */
.s-ico{border-color:transparent}
.s-ico svg{fill:#fff}
.s-ico.s-facebook {background:#1877f2}
.s-ico.s-x        {background:#000;border-color:rgba(255,255,255,.28)}
.s-ico.s-instagram{background:linear-gradient(45deg,#f09433 0%,#dc2743 55%,#bc1888 100%)}
.s-ico.s-tiktok   {background:#010101;border-color:rgba(255,255,255,.28)}
.s-ico.s-youtube  {background:#ff0000}
.s-ico.s-whatsapp {background:#25d366}
.s-ico.s-linkedin {background:#0a66c2}
.s-ico:hover{transform:translateY(-2px);filter:brightness(1.12)}
.s-ico.is-pending,.s-ico.is-pending:hover{
  background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.16);
  opacity:.55;filter:none;transform:none}
.s-ico.is-pending svg,.s-ico.is-pending:hover svg{fill:#dbe4f2}

/* ============================================================
   APPLICATION FORMS (membership / volunteer)
   ============================================================ */
.app-wrap{display:grid;grid-template-columns:1fr 316px;gap:56px;align-items:start}
.app-tabs{display:flex;gap:0;border-bottom:2px solid var(--ink);margin-bottom:26px}
.app-tabs a{padding:11px 18px;font-weight:600;font-size:15px;color:var(--muted);position:relative}
.app-tabs a.is-active{color:var(--ink);background:var(--band)}
.app-tabs a:hover{color:var(--ink)}
.appform-note{font-size:14.5px;color:var(--muted);max-width:62ch;margin:0 0 24px;
  padding-left:14px;border-left:3px solid var(--t3)}
.appform fieldset{border:0;border-top:1px solid var(--rule);margin:0 0 26px;padding:20px 0 0}
.appform legend{font-family:Archivo,sans-serif;font-weight:700;font-size:17px;color:var(--ink);
  letter-spacing:-.015em;padding:0 10px 0 0}
.f-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 22px}
.f-full{grid-column:1/-1}
.f-legend{display:block;font-weight:600;font-size:13px;color:var(--ink);margin-bottom:6px}
.f-hint{font-size:12.5px;color:var(--muted);margin:6px 0 0;max-width:none}
.f-hint.is-ok{color:var(--t2);font-weight:600}
.f-hint.is-bad{color:var(--t1);font-weight:600}
.f-err{display:block;font-size:12.5px;font-weight:600;color:var(--t1);margin-top:6px}
.f-formerr{background:#fdecec;color:#8f1d22;border-left:3px solid var(--t1);padding:13px 16px;margin:0 0 20px}
.appform input.is-bad,.appform select.is-bad,.appform textarea.is-bad{border-color:var(--t1);background:#fffafa}
.f-checks{display:flex;flex-wrap:wrap;gap:8px 18px;padding:4px 0}
.f-check{display:flex;align-items:flex-start;gap:9px;font-weight:400;font-size:15px;
  color:var(--body);margin:0;cursor:pointer}
.f-check input{width:auto;flex:0 0 auto;margin:2px 0 0;padding:0}
.f-checks.is-bad{outline:2px solid var(--t1);outline-offset:6px}
.f-consent{margin:6px 0 22px;padding:16px;background:var(--band);border-left:3px solid var(--gold);font-size:14.5px}
.f-consent.is-bad{outline:2px solid var(--t1);outline-offset:0}
#photo-preview{width:96px;height:96px;object-fit:cover;border-radius:var(--radius);
  margin-top:10px;border:4px solid #fff;box-shadow:0 0 0 1px rgba(0,42,90,.16)}
/* style.css sets img{display:block}, and an author rule beats the UA
   [hidden]{display:none}, so the empty preview box showed before a file
   was chosen. This puts it back. */
#photo-preview[hidden]{display:none}
.appform-submit{margin-top:4px}
.app-steps{margin:0;padding-left:20px;font-size:14.5px;color:var(--muted)}
.app-steps li{margin-bottom:7px}
.app-aside .aside-block:last-child{margin-bottom:0}

/* ============================================================
   MEMBER CHECK + MAP
   ============================================================ */
.mem-wrap{display:grid;grid-template-columns:1fr 316px;gap:56px;align-items:start}
.mem-search{margin-bottom:26px}
.mem-search .searchbox{margin-top:6px}
.mem-card{display:grid;grid-template-columns:140px 1fr;gap:24px;align-items:start;
  border-top:2px solid var(--ink);padding-top:22px;margin-bottom:22px}
.mem-photo{width:140px;height:140px;object-fit:cover;border-radius:var(--radius);border:1px solid var(--rule)}
.mem-photo-none{display:grid;place-items:center;background:var(--band);color:var(--ink);
  font-family:Archivo,sans-serif;font-size:54px;font-weight:700}
.mem-verified{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;color:var(--t2)}
.mem-verified:before{content:"";width:16px;height:3px;background:var(--t2)}
.mem-body h2{font-size:clamp(21px,2.4vw,30px);margin:8px 0 14px;letter-spacing:-.025em}
.mem-facts{display:grid;grid-template-columns:auto 1fr;gap:8px 20px;margin:0;font-size:15px}
.mem-facts dt{color:var(--muted);font-size:13px}
.mem-facts dd{margin:0;color:var(--ink);font-weight:600}
.mem-privacy{font-size:13px;color:var(--muted);margin:16px 0 0}
.mem-join{font-size:15px;color:var(--muted);margin-top:22px}
.mem-join a{color:var(--t2);font-weight:600}
.mem-count b{font-family:Archivo,sans-serif;font-size:21px;color:var(--ink)}
#members-map{height:460px;border-radius:var(--radius);border:1px solid var(--rule);background:var(--band)}
.map-note{font-size:13px;color:var(--muted);margin:12px 0 0;max-width:70ch}
.map-section .field-head{margin-bottom:20px}
.leaflet-container{font-family:"Noto Sans",sans-serif}

/* The sidebar costs 316px + a 56px gap. Below ~1024 that leaves the form
   too narrow for two-up fields, so the aside drops underneath instead. */
@media(max-width:1023.98px){
  .app-wrap,.mem-wrap{grid-template-columns:1fr;gap:34px}
}
@media(max-width:600px){
  .f-grid{grid-template-columns:1fr;gap:16px}
  .app-tabs a{flex:1 1 0;text-align:center;padding:11px 8px;font-size:14px}
  .mem-card{grid-template-columns:96px 1fr;gap:16px}
  .mem-photo{width:96px;height:96px}
  .mem-photo-none{font-size:38px}
  .mem-facts{grid-template-columns:1fr;gap:2px 0}
  .mem-facts dd{margin-bottom:10px}
  #members-map{height:340px}
}

/* ============================================================
   ADMIN — applications queue and record view
   ============================================================ */
.adm-tally{font-size:14px;color:var(--muted)}
.adm-tally b{color:var(--t1);font-family:Archivo,sans-serif;font-size:18px}
.adm-filters{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
.adm-filters input{flex:1 1 220px;min-width:0}
.adm-filters select,.adm-filters input{width:auto;padding:9px 11px}
.adm-members td{vertical-align:top}
.adm-thumb img,.adm-noimg{width:46px;height:46px;border-radius:3px;object-fit:cover;display:block}
.adm-noimg{display:grid;place-items:center;background:var(--band);color:var(--ink);
  font-family:Archivo,sans-serif;font-weight:700}
.adm-noimg-lg{width:150px;height:150px;font-size:56px}
.adm-decide{display:flex;gap:6px}
.btn.adm-ok{background:var(--t2)}
.btn.adm-no{background:transparent;color:var(--t1)!important;box-shadow:inset 0 0 0 1px var(--t1)}
.btn.adm-ok,.btn.adm-no{padding:8px 13px;font-size:13px}
.adm-sent{color:var(--t2);font-weight:600;font-size:13px}
.adm-view{display:grid;grid-template-columns:1fr 320px;gap:30px;align-items:start;margin-top:20px}
.adm-ident{display:flex;gap:20px;align-items:flex-start;margin-bottom:20px}
.adm-ident img{border-radius:var(--radius);object-fit:cover}
.adm-ident h2{margin:8px 0 6px;font-size:21px}
.adm-block{background:#fff;border:1px solid var(--rule);border-radius:var(--radius);padding:18px 20px;margin-bottom:14px}
.adm-block h3{margin:0 0 12px;font-size:16px}
.adm-block dl{display:grid;grid-template-columns:170px 1fr;gap:7px 16px;margin:0;font-size:14.5px}
.adm-block dt{color:var(--muted);font-size:13px}
.adm-block dd{margin:0}
.adm-view-side .kpi{display:block}
.adm-view-side textarea{min-height:90px;margin-bottom:12px}
.adm-view-side .btn{width:100%;margin-bottom:8px}
.adm-smallnote{font-size:12.5px;margin:6px 0 0}
@media(max-width:900px){
  .adm-view{grid-template-columns:1fr}
  .adm-block dl{grid-template-columns:1fr;gap:2px}
  .adm-block dd{margin-bottom:10px}
}

/* ============================================================
   HEADER: two calls to action.
   "Join With Us" is the primary one and carries the gold; the
   complaint button sits beside it as an outline so the header
   has one loud element, not two.
   ============================================================ */
.header .nav nav a.nav-join{background:var(--gold);color:#241a02!important}
.header .nav nav a.nav-join:hover{background:#e0a000}
.header .nav nav a.nav-complaint{background:transparent;color:var(--ink)!important;
  box-shadow:inset 0 0 0 1.5px var(--ink);margin-left:8px}
.header .nav nav a.nav-complaint:hover{background:var(--ink);color:#fff!important}
@media(min-width:601px) and (max-width:1150px){
  .header .nav nav a.nav-join,
  .header .nav nav a.nav-complaint{padding:9px 11px;font-size:12.5px;margin-left:6px}
}
@media(max-width:900px){
  .header .nav nav a.nav-join,
  .header .nav nav a.nav-complaint{margin:10px 0 0;text-align:center;font-size:15px;padding:13px 18px}
}

/* ============================================================
   HEADER FIT, with two calls to action.
   Six nav links + two buttons + a three-line trilingual lockup
   do not fit between ~900 and ~1280px: measured spare went to
   -57px and the Sinhala line clipped. So the menu collapses to
   the hamburger until 1200px, and the full nav only appears
   where there is genuinely room for it.
   ============================================================ */
@media(max-width:1239.98px){
  .menu{display:block}
  .header .nav nav{display:none;position:absolute;top:100%;left:0;right:0;
    background:var(--paper);border-bottom:1px solid var(--rule);
    padding:12px 0 18px;flex-direction:column;align-items:stretch;gap:2px;
    box-shadow:0 18px 40px rgba(0,42,90,.13);z-index:30}
  .header .nav nav.open{display:flex}
  .header .nav nav a:not(.nav-cta){padding:12px 16px;font-size:16px;border-radius:0}
  .header .nav nav a:not(.nav-cta):after{left:16px;right:16px;bottom:8px}
  .header .nav nav a:not(.nav-cta):hover:after,
  .header .nav nav a.is-active:after{right:16px}
  .header .nav nav a.nav-join,
  .header .nav nav a.nav-complaint{margin:10px 16px 0;text-align:center;font-size:15px;padding:13px 18px}
}

/* Full nav from 1240px up: a media query matches on innerWidth, so at a
   1200px window the scrollbar still leaves only ~1181px to lay out in. */
@media(min-width:1240px){
  .nav{height:88px}
  .brand{gap:13px}
  .brand-mark img{width:52px;height:52px;flex:0 0 52px}
  .brand-mark b{font-size:13px}
  .brand small.bn-ta{font-size:10.5px}
  .brand small.bn-si{font-size:10.7px}
  .brand small.bn-en{font-size:11.5px}
  .header .nav nav{gap:0;font-size:13.5px}
  .header .nav nav a:not(.nav-cta){padding:9px 8px}
  .header .nav nav a:not(.nav-cta):after{left:8px;right:8px}
  .header .nav nav a:not(.nav-cta):hover:after,
  .header .nav nav a.is-active:after{right:8px}
  .header .nav nav a.nav-join,
  .header .nav nav a.nav-complaint{padding:10px 13px;font-size:12.5px;margin-left:7px}
}
@media(min-width:1440px){
  .nav{height:96px}
  .brand{gap:16px}
  .brand-mark img{width:62px;height:62px;flex:0 0 62px}
  .brand-mark b{font-size:15px}
  .brand small.bn-ta{font-size:12.2px}
  .brand small.bn-si{font-size:12.4px}
  .brand small.bn-en{font-size:13.2px}
  .header .nav nav{font-size:14.5px}
  .header .nav nav a:not(.nav-cta){padding:9px 11px}
  .header .nav nav a.nav-join,
  .header .nav nav a.nav-complaint{padding:11px 16px;font-size:13.5px;margin-left:9px}
}
@media(min-width:1650px){
  .nav{height:102px}
  .brand-mark img{width:68px;height:68px;flex:0 0 68px}
  .brand-mark b{font-size:16px}
  .brand small.bn-ta{font-size:13px}
  .brand small.bn-si{font-size:13.2px}
  .brand small.bn-en{font-size:14px}
}

/* Complaint button in red: it is the urgent, serious action on the site. */
.header .nav nav a.nav-complaint{background:var(--t1);color:#fff!important;box-shadow:none}
.header .nav nav a.nav-complaint:hover{background:#b01a20;color:#fff!important}

/* ============================================================
   MENU BUTTON — a drawn icon rather than the ☰ character, which
   renders differently (or as a box) across devices. Swaps to a
   cross while the menu is open.
   ============================================================ */
.menu{display:none;width:44px;height:44px;padding:0;border:1px solid var(--rule);border-radius:3px;
  background:#fff;color:var(--ink);cursor:pointer;place-items:center;flex:0 0 auto}
.menu svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;display:block}
.menu .menu-close{display:none}
.menu[aria-expanded="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.menu[aria-expanded="true"] .menu-open{display:none}
.menu[aria-expanded="true"] .menu-close{display:block}
@media(max-width:1239.98px){ .menu{display:grid} }

/* ============================================================
   PHOTOGRAPHS — a thin white margin and a hairline, so images
   sit on the page as prints rather than bleeding into the band
   behind them. Works on the paper and on the dark grounds.
   ============================================================ */
.meet-lead img,.meet-item img,.field-grid img,.feed img,
.post-media,.article-media,.related-card img,.mem-photo,.lead-img-frame{
  border:4px solid #fff;
  box-shadow:0 0 0 1px rgba(0,42,90,.16);
  background:#fff;
}
.meet-lead img,.meet-item img{box-shadow:0 0 0 1px rgba(255,255,255,.28)}
.post-card .post-media{border-width:0 0 4px 0}
.mem-photo{border-width:4px}
@media(max-width:600px){
  .meet-lead img,.meet-item img,.field-grid img,.feed img,
  .post-media,.article-media,.related-card img,.mem-photo{border-width:3px}
}

@media(max-width:600px){
  .menu{width:40px;height:40px}
  .menu svg{width:20px;height:20px}
}

/* ============================================================
   NAV HOVER, rebuilt.
   The old one did two things at once: a muddy blue-grey box
   behind the label and a gold bar wiping in from the left.
   Now there is one idea. The header already closes on a woven
   thread rule; hovering a link lights up the segment of that
   rule directly beneath the word. The label darkens, nothing
   slides, nothing is tinted. Active keeps its segment in gold.
   ============================================================ */
@media(min-width:1240px){
  .header .nav nav{align-items:stretch}
  .header .nav nav a:not(.nav-cta){
    display:flex;align-items:center;
    padding-top:0;padding-bottom:0;
    border-radius:0;background:transparent;
    transition:color .13s ease}
  .header .nav nav a:not(.nav-cta):after{
    left:0;right:0;bottom:0;height:3px;
    background:transparent;transform:none;border-radius:0;
    transition:background-color .13s ease}
  .header .nav nav a:not(.nav-cta):hover{background:transparent;color:var(--ink)}
  .header .nav nav a:not(.nav-cta):hover:after{background:var(--ink);right:0}
  .header .nav nav a.is-active{color:var(--ink)}
  .header .nav nav a.is-active:after{background:var(--gold);right:0}
  .header .nav nav a.nav-cta{align-self:center}
}

/* In the dropdown the same idea reads better turned on its side:
   a gold thread down the leading edge of the row being touched. */
@media(max-width:1239.98px){
  .header .nav nav a:not(.nav-cta):after{
    left:0;right:auto;top:0;bottom:0;width:3px;height:auto;
    background:transparent;transform:none;border-radius:0;
    transition:background-color .13s ease}
  .header .nav nav a:not(.nav-cta):hover,
  .header .nav nav a.is-active{background:var(--band);color:var(--ink)}
  .header .nav nav a:not(.nav-cta):hover:after,
  .header .nav nav a.is-active:after{background:var(--gold);right:auto}
}

/* ============================================================
   APPLICATION PAGE LAYOUT — fix.
   .app-wrap is a two-column grid; the tabs, the form and the
   aside were three separate children, so the grid dropped the
   form into the 316px sidebar column and squeezed every field
   to 147px. Tabs and form are now one column.
   ============================================================ */
.app-main{min-width:0}
.app-wrap>*,.app-main>*,.f-grid>*,.appform fieldset{min-width:0}
.appform,.appform fieldset,.f-grid{max-width:100%}

/* File inputs do not honour width:100% reliably and carry a wide
   intrinsic "Choose file / No file chosen" label, so they clip. */
.appform input[type=file]{
  width:100%;max-width:100%;padding:10px 12px;background:var(--band);
  border:1px dashed #b9b09a;border-radius:3px;font-size:14px;cursor:pointer}
.appform input[type=file]::file-selector-button{
  font:inherit;font-weight:600;margin-right:12px;padding:7px 13px;cursor:pointer;
  background:var(--ink);color:#fff;border:0;border-radius:3px}
.appform input[type=file]:hover{border-color:var(--ink)}

/* ============================================================
   NAV HOVER, take three.
   An underline just reads as a hyperlink. The nav links already
   run the full height of the header, so they behave as segments
   of a bar instead: hovering fills the segment with the warm
   band, the current page sits filled in solid ink. No rule, no
   underline, no slide — just the block you are pointing at.
   ============================================================ */
@media(min-width:1240px){
  .header .nav nav a:not(.nav-cta):after{content:none}
  .header .nav nav a:not(.nav-cta){
    background:transparent;color:var(--body);
    transition:background-color .14s ease,color .14s ease}
  .header .nav nav a:not(.nav-cta):hover{background:var(--band);color:var(--ink)}
  .header .nav nav a.is-active,
  .header .nav nav a.is-active:hover{background:var(--ink);color:#fff}
}

/* Dropdown rows get the same treatment, with the gold thread down
   the leading edge marking the row you are on. */
@media(max-width:1239.98px){
  .header .nav nav a:not(.nav-cta):hover{background:var(--band);color:var(--ink)}
  .header .nav nav a.is-active{background:var(--ink);color:#fff}
  .header .nav nav a.is-active:after{background:var(--gold)}
}

/* ============================================================
   HERO SLIDER
   Slides are stacked and cross-faded; only the copy moves, and
   only on the slide coming in. The chrome is deliberately quiet:
   a thin progress line along the bottom edge, small dots, and
   arrows that only appear on devices with a pointer.
   ============================================================ */
.lead{position:relative;overflow:hidden}
.lead-slide{position:absolute;inset:0;opacity:0;visibility:hidden;
  transition:opacity .55s ease,visibility 0s linear .55s;
  display:flex;align-items:flex-end}
.lead-slide.is-active{position:relative;opacity:1;visibility:visible;
  transition:opacity .55s ease,visibility 0s}
.lead-slide.is-active .lead-copy{animation:leadIn .6s cubic-bezier(.2,.7,.3,1) both}
@keyframes leadIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.lead-slide h1{overflow-wrap:break-word}

.lead-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:4;
  width:44px;height:44px;display:none;place-items:center;cursor:pointer;
  background:rgba(0,42,90,.45);border:1px solid rgba(255,255,255,.35);border-radius:0;
  color:#fff;padding:0;transition:background .15s ease}
.lead-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;
  stroke-linecap:round;stroke-linejoin:round}
.lead-nav:hover{background:var(--ink)}
.lead-prev{left:14px}
.lead-next{right:14px}
@media(hover:hover) and (min-width:901px){ .lead-nav{display:grid} }

.lead-dots{position:absolute;left:0;right:0;bottom:22px;z-index:4;
  display:flex;justify-content:center;gap:8px}
.lead-dot{width:26px;height:4px;padding:0;border:0;border-radius:0;cursor:pointer;
  background:rgba(255,255,255,.4);transition:background .15s ease}
.lead-dot:hover{background:rgba(255,255,255,.7)}
.lead-dot.is-active{background:var(--gold)}

.lead-progress{position:absolute;left:0;right:0;bottom:0;height:3px;z-index:4;
  background:rgba(255,255,255,.18)}
.lead-progress i{display:block;height:100%;width:0;background:var(--gold)}
.lead-progress i.run{animation:leadBar linear forwards}
@keyframes leadBar{from{width:0}to{width:100%}}

@media(max-width:600px){
  .lead-dots{bottom:14px}
  .lead-dot{width:20px;height:3px}
}
@media (prefers-reduced-motion:reduce){
  .lead-slide,.lead-slide.is-active{transition:none}
  .lead-slide.is-active .lead-copy{animation:none}
  .lead-progress{display:none}
}

/* ============================================================
   HERO: lighter, vertical scrim and centred copy.
   The old scrim was a heavy diagonal that buried the photograph.
   This one runs straight down and stays nearly clear across the
   top two thirds, so the picture reads; the type sits centred at
   the bottom where the gradient is doing its work. A soft shadow
   on the text keeps it legible over a bright frame.
   ============================================================ */
.lead-scrim{
  background:linear-gradient(180deg,
    rgba(0,32,72,.10) 0%,
    rgba(0,32,72,.08) 50%,
    rgba(0,32,72,.40) 70%,
    rgba(0,32,72,.80) 89%,
    rgba(0,32,72,.92) 100%)}

.lead-copy{text-align:center;padding:54px 0 64px}
.lead-kicker{justify-content:center}
.lead-text{margin-left:auto;margin-right:auto}
.lead-acts{justify-content:center}
.lead h1,.lead-text,.lead-kicker{text-shadow:0 2px 16px rgba(0,22,50,.55)}
.lead-slide{align-items:flex-end}

@media(max-width:600px){
  .lead-scrim{
    background:linear-gradient(180deg,
      rgba(0,32,72,.12) 0%,
      rgba(0,32,72,.10) 46%,
      rgba(0,32,72,.50) 66%,
      rgba(0,32,72,.88) 87%,
      rgba(0,32,72,.95) 100%)}
  .lead-copy{padding:104px 0 52px}
}

/* ============================================================
   HERO, final pass.

   The story photographs are 1000x730 (1.37:1) and the hero box
   was 3.06:1, so 55% of every picture was thrown away and heads
   were cut. The box is taller now (about 2.1:1) and the crop is
   anchored at 42% of the image height, which keeps both the
   faces near the top and the hands near the bottom in frame.

   The headline sits on a gold panel, so it no longer needs a
   dark wash behind it to stay readable — which is what lets the
   scrim drop to a light black veil and the photo come through.
   ============================================================ */
.lead{min-height:clamp(500px,72vh,640px);align-items:stretch}
/* The active slide must fill the section. .lead is a flex row with
   align-items:flex-end, so a relatively-positioned slide of content height
   was pushed to the bottom and the section background showed as a blue band
   above the photograph. */
.lead-slide.is-active{width:100%;min-height:100%}
.lead-img{object-position:center 35%}

/* A light black veil, not a heavy blue one. */
.lead-scrim{
  background:linear-gradient(180deg,
    rgba(0,0,0,0)    0%,
    rgba(0,0,0,0)    50%,
    rgba(0,0,0,.16)  66%,
    rgba(0,0,0,.50)  84%,
    rgba(0,0,0,.72) 100%)}

/* Headline in the button gold. No panel behind it — the shadow is what
   keeps it readable where the photograph underneath is bright. */
.lead h1{
  display:block;
  background:transparent;
  color:var(--gold);
  padding:0;
  line-height:1.04;
  text-shadow:0 2px 4px rgba(0,0,0,.6),0 4px 22px rgba(0,0,0,.65)}
.lead-text{text-shadow:0 1px 3px rgba(0,0,0,.85),0 2px 18px rgba(0,0,0,.75)}
.lead-kicker{text-shadow:0 2px 10px rgba(0,0,0,.7)}

@media(max-width:600px){
  .lead{min-height:0}
  .lead-scrim{
    background:linear-gradient(180deg,
      rgba(0,0,0,0)    0%,
      rgba(0,0,0,0)    40%,
      rgba(0,0,0,.24) 60%,
      rgba(0,0,0,.62) 82%,
      rgba(0,0,0,.80) 100%)}
  .lead h1{padding:0;line-height:1.08}
}

/* ============================================================
   HERO COPY LEGIBILITY.
   The photograph is deliberately left clear, so the text needs
   its own contrast rather than a filter over the whole frame:
   a soft elliptical pool of shade sitting only behind the copy,
   fading to nothing well before the edges of the picture.
   ============================================================ */
.lead-copy{
  background:radial-gradient(ellipse 125% 108% at 50% 60%,
    rgba(0,0,0,.58) 0%,
    rgba(0,0,0,.42) 38%,
    rgba(0,0,0,.18) 62%,
    rgba(0,0,0,0)   80%)}
.lead h1{text-shadow:0 2px 5px rgba(0,0,0,.75),0 6px 26px rgba(0,0,0,.6)}
.lead-text{color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.9),0 2px 16px rgba(0,0,0,.8)}
@media(max-width:600px){
  .lead-copy{background:radial-gradient(ellipse 150% 100% at 50% 64%,
    rgba(0,0,0,.62) 0%,rgba(0,0,0,.45) 42%,rgba(0,0,0,.2) 68%,rgba(0,0,0,0) 86%)}
}

/* ============================================================
   HEADER RULE — the repeating five-colour thread was meant to
   read as woven cloth, but at 2px tall it just looks like a row
   of little coloured squares sitting on top of the photograph.
   One solid gold line instead.
   ============================================================ */
.header:after,
.page-hero:after{
  background:var(--gold);
  height:3px}

/* ============================================================
   HERO — shadow into all four corners, so the picture is framed
   rather than flatly washed. The centre stays clear; each corner
   falls off on its own radius, and the bottom still ramps for
   the type.
   ============================================================ */
.lead-scrim{
  background:
    radial-gradient(circle at 0    0,    rgba(0,0,0,.52), rgba(0,0,0,0) 40%),
    radial-gradient(circle at 100% 0,    rgba(0,0,0,.52), rgba(0,0,0,0) 40%),
    radial-gradient(circle at 0    100%, rgba(0,0,0,.58), rgba(0,0,0,0) 44%),
    radial-gradient(circle at 100% 100%, rgba(0,0,0,.58), rgba(0,0,0,0) 44%),
    linear-gradient(180deg,
      rgba(0,0,0,0)    0%,
      rgba(0,0,0,0)    50%,
      rgba(0,0,0,.14) 67%,
      rgba(0,0,0,.46) 85%,
      rgba(0,0,0,.68) 100%)}

@media(max-width:600px){
  .lead-scrim{
    background:
      radial-gradient(circle at 0    0,    rgba(0,0,0,.45), rgba(0,0,0,0) 46%),
      radial-gradient(circle at 100% 0,    rgba(0,0,0,.45), rgba(0,0,0,0) 46%),
      radial-gradient(circle at 0    100%, rgba(0,0,0,.55), rgba(0,0,0,0) 50%),
      radial-gradient(circle at 100% 100%, rgba(0,0,0,.55), rgba(0,0,0,0) 50%),
      linear-gradient(180deg,
        rgba(0,0,0,0)   0%,
        rgba(0,0,0,0)   42%,
        rgba(0,0,0,.22) 62%,
        rgba(0,0,0,.58) 83%,
        rgba(0,0,0,.76) 100%)}
}

/* ---------- public member profile (/members search result) ---------- */
.mem-profile{background:#fff;border:1px solid var(--rule);border-top:3px solid var(--ink);border-radius:var(--radius);padding:26px}
.mem-profile-head{display:grid;grid-template-columns:168px 1fr;gap:26px;align-items:center;
  padding-bottom:22px;margin-bottom:22px;border-bottom:1px solid var(--rule)}
.mem-profile .mem-photo{width:168px;height:168px}
.mem-profile h2{font-size:clamp(23px,2.6vw,32px);margin:8px 0 6px;letter-spacing:-.025em}
.mem-position{font-family:Archivo,sans-serif;font-weight:700;font-size:17px;color:var(--ink);margin:0;
  display:inline-block;background:var(--gold);padding:5px 12px;border-radius:3px}
.mem-verified.is-waiting{color:#8a5a00}
.mem-verified.is-waiting:before{background:var(--t3)}
.mem-profile .mem-facts{grid-template-columns:170px 1fr}
.mem-quals{margin-top:20px;padding-top:18px;border-top:1px solid var(--rule)}
.mem-quals ul{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.mem-quals li{background:var(--band);color:var(--ink);font-size:14px;font-weight:600;padding:6px 12px;border-radius:3px}
@media(max-width:600px){
  .mem-profile{padding:18px 16px}
  .mem-profile-head{grid-template-columns:1fr;gap:14px;justify-items:center;text-align:center;padding-bottom:18px;margin-bottom:18px}
  .mem-profile .mem-photo{width:150px;height:150px}
  .mem-profile .mem-verified{justify-content:center}
  .mem-profile .mem-facts{grid-template-columns:1fr}
  .mem-search .searchbox input{font-size:16px;min-height:50px}
}

/* ---------- member details register (/member-details, admin/register*) ---------- */
.reg-wrap{max-width:860px}
.reg-hero-ta{font-family:"Noto Sans Tamil",sans-serif;font-weight:600;font-size:18px;margin:0 0 8px}
.f-ta{font-family:"Noto Sans Tamil",sans-serif;font-weight:500;font-size:12.5px;color:var(--muted);margin-left:6px;white-space:nowrap}
.appform legend .f-ta{font-size:13.5px}
.f-ta-block{display:block;font-family:"Noto Sans Tamil",sans-serif;font-size:13.5px;color:var(--muted);margin-top:6px}
.f-opt{font-weight:400;color:var(--muted)}
/* a list box that works with one tap on a phone: a scrolling list of ticks */
.f-listbox{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;max-height:236px;overflow-y:auto;
  border:1px solid #cdc6b4;border-radius:3px;background:#fff;padding:13px 14px}
.f-listbox.is-bad{border-color:var(--t1);background:#fffafa}
#reg-photo-preview,.reg-photo-now{width:96px;height:96px;object-fit:cover;border-radius:var(--radius);
  margin:10px 0 0;border:4px solid #fff;box-shadow:0 0 0 1px rgba(0,42,90,.16)}
.reg-photo-now{margin:0 0 10px}
#reg-photo-preview[hidden]{display:none}
/* honeypot: off-screen rather than display:none, which some bots skip */
.reg-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.reg-actions{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;margin:16px 0 0}
.btn.reg-ghost{background:transparent;color:var(--ink)!important;box-shadow:inset 0 0 0 1px var(--ink)}
.reg-rowact{white-space:nowrap}
.reg-rowact a{display:block}
.reg-rowact form{margin:0}
.reg-del{background:none;border:0;padding:0;color:var(--t1);font:inherit;cursor:pointer}
.reg-del:hover{text-decoration:underline}
.badge.reg-new{background:#fff3d6;color:#7a5200}
.badge.reg-verified{background:#e8f5ec;color:#14603a}
.reg-admin{max-width:860px;margin-top:20px}
/* Ticks are sized for a finger everywhere, not only on phones. */
.regform .f-check input{width:20px;height:20px;margin:1px 0 0;accent-color:var(--ink)}
.regform .f-listbox .f-check{align-items:center}

/* ---- phones: this form is filled in on a phone far more often than a desk.
   One column, 16px controls (anything smaller makes iOS zoom the page on
   focus), 50px touch targets, and each section as its own card so a long
   form reads as five short ones. ---- */
@media(max-width:600px){
  .p-member-details .page-hero{padding:22px 0 24px}
  .p-member-details .page-hero h1{font-size:27px}
  .p-member-details .page-hero p{font-size:15px;margin-top:8px}
  .reg-hero-ta{font-size:16px;margin:4px 0 0}
  .p-member-details .section{padding:18px 0 34px}
  .reg-wrap{width:100%;padding:0 12px}

  .regform .appform-note{font-size:14px;margin:0 0 14px}
  .regform fieldset{border:1px solid var(--rule);border-radius:6px;background:#fff;padding:4px 14px 16px;margin:0 0 14px}
  .regform legend{font-size:16.5px;padding:0 8px;margin-left:-8px}
  .regform legend .f-ta{font-size:13px}
  .regform .f-grid{gap:15px}
  .regform label,.regform .f-legend{font-size:14.5px;margin-bottom:6px}
  .f-ta{display:block;margin:1px 0 0;white-space:normal;font-size:13px}
  /* the Tamil half of a section title sits under the English, never split across the card edge */
  .regform legend{max-width:100%}
  .regform legend .f-ta{display:block;margin:2px 0 0}

  .regform input:not([type=checkbox]):not([type=file]),
  .regform select,.regform textarea{font-size:16px;min-height:50px;padding:12px 13px;width:100%}
  .regform textarea{min-height:104px}
  .regform input[type=file]{font-size:15px;padding:12px;width:100%}
  .regform input[type=file]::file-selector-button{padding:11px 14px;font-size:15px;margin-right:10px}
  .regform .f-hint{font-size:13px}
  .regform .f-err{font-size:13.5px}
  #reg-photo-preview,.reg-photo-now{width:120px;height:120px}

  /* the list box stops scrolling inside the page (a scroll area inside a
     scrolling page traps the thumb) and becomes full-width tap rows */
  .f-listbox{grid-template-columns:1fr;gap:0;max-height:none;overflow:visible;padding:0 12px}
  .regform .f-listbox .f-check{padding:13px 2px;min-height:50px;font-size:15.5px;border-bottom:1px solid var(--rule)}
  .regform .f-listbox .f-check:last-child{border-bottom:0}
  .regform .f-check input{width:24px;height:24px;margin:0}

  .regform .f-consent{padding:14px;margin:4px 0 16px;font-size:15px;align-items:flex-start}
  .regform .f-consent input{margin-top:1px}
  .f-ta-block{font-size:13.5px}
  .regform .appform-submit{display:block;width:100%;min-height:54px;font-size:16.5px;text-align:center}
  .reg-admin .btn{width:100%;min-height:50px;font-size:16px}
}
