/* ==========================================================================
   Tanzania Association of Accountants (TAA) — taamuhasibu.or.tz
   --------------------------------------------------------------------------
   Design language is taken from the subject rather than from a template.
   Accountancy's own visual vocabulary is the ruled ledger: hairlines, columns
   that balance, figures set in a monospaced face so they line up. So the page
   is built from rules and balanced pairs, not from floating cards, and every
   eyebrow label sits against a rule the way a ledger heading does.

   Palette is drawn from the association's crest: the cerulean of the shield,
   a deep navy for authority, and a single gold accent reserved for the one
   thing on each screen we want acted on.
   ========================================================================== */

:root{
  /* From the crest */
  --blue:#1F8FC4;          /* shield cerulean */
  --blue-deep:#12658F;
  --blue-wash:#EAF4FA;
  --navy:#0B2A45;          /* authority, headings, footer */
  --navy-soft:#16405F;
  --gold:#B8862B;          /* the single accent — CTAs and emphasis only */
  --gold-wash:#FBF4E4;

  /* Ground */
  --paper:#FCFBF8;
  --paper-2:#F5F3EE;
  --ink:#111E29;
  --ink-2:#48606F;
  --ink-3:#7C8F9C;
  --rule:#E2DFD7;          /* the ledger hairline */
  --rule-strong:#CFCBC0;
  --white:#fff;

  --display:'Source Serif 4', Georgia, 'Times New Roman', serif;
  --body:'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --max:1180px;
  --nav-h:76px;
  --shadow:0 18px 48px rgba(11,42,69,.13);
  --shadow-sm:0 4px 16px rgba(11,42,69,.07);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--nav-h) + 16px)}
body{
  margin:0;font-family:var(--body);color:var(--ink);background:var(--paper);
  line-height:1.65;-webkit-font-smoothing:antialiased;overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:var(--blue-deep);text-decoration:none}
h1,h2,h3,h4{font-family:var(--display);font-weight:600;line-height:1.15;margin:0;color:var(--navy);
            letter-spacing:-.015em}
p{margin:0 0 1rem}
.container{width:min(var(--max),92%);margin-inline:auto}

/* Figures line up like a ledger column wherever they appear. */
.num{font-family:var(--mono);font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}

/* --- The eyebrow: a mono label against a rule, as in a ledger heading ----- */
.eyebrow{
  display:flex;align-items:center;gap:.75rem;font-family:var(--mono);
  font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:var(--blue-deep);
  font-weight:500;margin-bottom:1rem;
}
.eyebrow::after{content:"";flex:1;height:1px;background:var(--rule);max-width:120px}
.eyebrow--light{color:rgba(255,255,255,.75)}
.eyebrow--light::after{background:rgba(255,255,255,.28)}
.eyebrow--center{justify-content:center}
.eyebrow--center::before{content:"";flex:1;height:1px;background:var(--rule);max-width:70px}
.eyebrow--center::after{max-width:70px}

/* --- Buttons -------------------------------------------------------------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-family:var(--body);font-weight:600;font-size:.95rem;
  padding:.85rem 1.6rem;border-radius:2px;border:1px solid transparent;
  cursor:pointer;transition:.18s ease;white-space:nowrap;text-align:center;
}
.btn--gold{background:var(--gold);color:#fff;border-color:var(--gold)}
.btn--gold:hover{background:#9d711f;border-color:#9d711f;color:#fff}
.btn--navy{background:var(--navy);color:#fff;border-color:var(--navy)}
.btn--navy:hover{background:var(--navy-soft);color:#fff}
.btn--ghost{background:transparent;color:var(--navy);border-color:var(--rule-strong)}
.btn--ghost:hover{border-color:var(--navy);background:var(--white)}
.btn--onDark{background:transparent;color:#fff;border-color:rgba(255,255,255,.45)}
.btn--onDark:hover{background:rgba(255,255,255,.12);border-color:#fff;color:#fff}
.btn--sm{padding:.55rem 1.05rem;font-size:.85rem}
.btn--lg{padding:1rem 2rem;font-size:1rem}

/* --- Utility bar ---------------------------------------------------------- */
.util{background:var(--navy);color:rgba(255,255,255,.82);font-size:.82rem}
.util__inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;
             min-height:38px;flex-wrap:wrap}
.util a{color:rgba(255,255,255,.82)}
.util a:hover{color:#fff}
.util__contacts{display:flex;gap:1.35rem;align-items:center;flex-wrap:wrap}
.util__contacts span{display:inline-flex;align-items:center;gap:.4rem}
.util__right{display:flex;align-items:center;gap:.9rem}
.lang{display:inline-flex;align-items:center;gap:.3rem;font-family:var(--mono);font-size:.72rem;
      letter-spacing:.08em}
.lang button{background:none;border:0;color:rgba(255,255,255,.6);font:inherit;cursor:pointer;padding:.15rem .25rem}
.lang button.on{color:#fff;text-decoration:underline;text-underline-offset:3px}
.lang span{opacity:.35}

/* --- Navigation ----------------------------------------------------------- */
.nav{position:sticky;top:0;z-index:60;background:rgba(252,251,248,.94);
     backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid var(--rule);
     transition:box-shadow .25s ease}
.nav.scrolled{box-shadow:var(--shadow-sm)}
.nav__inner{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;
            height:var(--nav-h);width:min(1300px,94%);margin-inline:auto}
.brand{display:flex;align-items:center;gap:.7rem;flex-shrink:0}
.brand img{height:52px;width:auto}
.brand__txt{display:flex;flex-direction:column;line-height:1.1}
.brand__txt b{font-family:var(--display);font-size:1.12rem;color:var(--navy);letter-spacing:-.02em}
.brand__txt small{font-family:var(--mono);font-size:.6rem;letter-spacing:.16em;color:var(--blue-deep);
                  text-transform:uppercase}

.nav__links{display:flex;align-items:center;gap:clamp(.35rem,1.1vw,1.1rem)}
.nav__links>a:not(.btn){font-size:.9rem;font-weight:600;color:var(--ink-2);white-space:nowrap;
                        padding:.45rem .2rem;position:relative}
.nav__links>a:not(.btn)::after{content:"";position:absolute;left:.2rem;right:.2rem;bottom:.15rem;
                               height:2px;background:var(--gold);transform:scaleX(0);
                               transform-origin:left;transition:transform .22s ease}
.nav__links>a:not(.btn):hover{color:var(--navy)}
.nav__links>a:not(.btn):hover::after,.nav__links>a.active::after{transform:scaleX(1)}
.nav__links>a.active{color:var(--navy)}
.nav__sep{width:1px;height:22px;background:var(--rule);flex-shrink:0}
.nav__toggle{display:none;flex-direction:column;gap:5px;background:none;border:0;cursor:pointer;padding:8px}
.nav__toggle span{width:24px;height:2px;background:var(--navy);border-radius:2px;transition:.28s}
.nav__toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav__toggle.open span:nth-child(2){opacity:0}
.nav__toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.nav__scrim{position:fixed;inset:0;background:rgba(11,42,69,.45);opacity:0;visibility:hidden;
            transition:.3s;z-index:55}
.nav__scrim.open{opacity:1;visibility:visible}

/* --- Hero ----------------------------------------------------------------- */
.hero{position:relative;background:var(--navy);color:#fff;overflow:hidden;
      min-height:min(86vh,720px);display:flex;align-items:center}
.hero__bg{position:absolute;inset:0}
.hero__bg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
              opacity:0;transition:opacity 1.6s ease;transform:scale(1.04)}
.hero__bg img.on{opacity:.28}
.hero__bg::after{content:"";position:absolute;inset:0;
  background:linear-gradient(105deg,rgba(11,42,69,.96) 0%,rgba(11,42,69,.86) 45%,rgba(18,101,143,.62) 100%)}
.hero__inner{position:relative;z-index:2;padding:5rem 0 4.5rem;max-width:800px}
.hero h1{color:#fff;font-size:clamp(2.5rem,6vw,4.4rem);line-height:1.04;letter-spacing:-.03em;
         margin-bottom:1.25rem}
.hero h1 em{font-style:italic;color:#7FCBEE}
.hero__lead{font-size:clamp(1.02rem,1.5vw,1.2rem);color:rgba(255,255,255,.86);max-width:60ch;
            margin-bottom:2rem}
.hero__cta{display:flex;gap:.9rem;flex-wrap:wrap;margin-bottom:3rem}
.hero__motto{display:inline-flex;align-items:center;gap:.7rem;font-family:var(--mono);
             font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;
             color:#7FCBEE;margin-bottom:1.4rem}
.hero__motto::before{content:"";width:34px;height:1px;background:#7FCBEE}

/* The balance: two pans of a scale, expressed as a ruled stat row. */
.hero__ledger{display:grid;grid-template-columns:repeat(4,1fr);gap:0;
              border-top:1px solid rgba(255,255,255,.22);padding-top:1.4rem;max-width:720px}
.hero__ledger div{padding-right:1rem;border-right:1px solid rgba(255,255,255,.14)}
.hero__ledger div:last-child{border-right:0}
.hero__ledger b{display:block;font-family:var(--mono);font-size:1.6rem;color:#fff;font-weight:500;
                letter-spacing:-.02em;line-height:1.1}
.hero__ledger span{font-size:.76rem;color:rgba(255,255,255,.62);line-height:1.35;display:block;margin-top:.3rem}

.hero__dots{position:absolute;bottom:1.6rem;left:50%;transform:translateX(-50%);z-index:3;
            display:flex;gap:.5rem}
.hero__dots button{width:26px;height:3px;border:0;background:rgba(255,255,255,.3);cursor:pointer;padding:0}
.hero__dots button.on{background:var(--gold)}

/* --- Section scaffolding -------------------------------------------------- */
.section{padding:clamp(4rem,8vw,6.5rem) 0}
.section--paper{background:var(--paper-2)}
.section--navy{background:var(--navy);color:rgba(255,255,255,.84)}
.section--navy h2,.section--navy h3{color:#fff}
.section__head{max-width:64ch;margin-bottom:3rem}
.section__head--center{margin-inline:auto;text-align:center}
.section h2{font-size:clamp(1.85rem,3.4vw,2.7rem);margin-bottom:1rem}
.section__lead{font-size:1.05rem;color:var(--ink-2)}
.section--navy .section__lead{color:rgba(255,255,255,.72)}

/* --- About + values ------------------------------------------------------- */
.about{display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(2rem,5vw,4.5rem);align-items:start}
.about__body p{font-size:1.06rem;color:var(--ink-2);max-width:60ch}
.about__body .drop::first-letter{font-family:var(--display);font-size:3.6rem;float:left;line-height:.82;
  padding:.12em .12em 0 0;color:var(--blue-deep);font-weight:600}
.est{display:inline-flex;align-items:baseline;gap:.6rem;margin-top:1.5rem;padding-top:1.25rem;
     border-top:1px solid var(--rule)}
.est b{font-family:var(--mono);font-size:2.1rem;color:var(--navy);font-weight:500;letter-spacing:-.02em}
.est span{font-size:.86rem;color:var(--ink-3);max-width:26ch;line-height:1.4}

/* Values as ledger rows — ruled, numbered, balanced. */
.values{border-top:1px solid var(--rule)}
.values li{display:grid;grid-template-columns:auto 1fr;gap:1rem;align-items:baseline;
           padding:.95rem 0;border-bottom:1px solid var(--rule);list-style:none}
.values{margin:0;padding:0}
.values .n{font-family:var(--mono);font-size:.72rem;color:var(--blue);letter-spacing:.08em}
.values .v{font-family:var(--display);font-size:1.12rem;color:var(--navy);font-weight:600}

/* --- Pillars -------------------------------------------------------------- */
.pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-top:1px solid var(--rule)}
.pillar{padding:2.2rem 2rem 2.2rem 0;border-right:1px solid var(--rule)}
.pillar:last-child{border-right:0}
.pillar:not(:first-child){padding-left:2rem}
.pillar__ico{width:44px;height:44px;display:grid;place-items:center;background:var(--blue-wash);
             color:var(--blue-deep);margin-bottom:1.1rem;border-radius:2px}
.pillar h3{font-size:1.2rem;margin-bottom:.55rem}
.pillar p{font-size:.95rem;color:var(--ink-2);margin:0}

/* --- Membership ----------------------------------------------------------- */
.mem{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--rule);
     border:1px solid var(--rule)}
.mem__card{background:var(--white);padding:2.1rem 2rem;display:flex;flex-direction:column;
           transition:background .2s ease}
.mem__card:hover{background:var(--blue-wash)}
.mem__no{font-family:var(--mono);font-size:.7rem;letter-spacing:.16em;color:var(--blue);margin-bottom:.9rem}
.mem__card h3{font-size:1.3rem;margin-bottom:.7rem}
.mem__card ul{margin:0 0 1.4rem;padding:0;list-style:none}
.mem__card li{position:relative;padding-left:1.35rem;font-size:.94rem;color:var(--ink-2);
              margin-bottom:.5rem;line-height:1.55}
.mem__card li::before{content:"";position:absolute;left:0;top:.62em;width:7px;height:7px;
                      border:1px solid var(--blue);border-radius:1px}
.mem__card .btn{align-self:flex-start;margin-top:auto}

/* --- Training / CPD ------------------------------------------------------- */
.train{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
.train__item{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.14);
             padding:1.8rem;border-radius:2px}
.train__item h3{font-size:1.1rem;margin-bottom:.5rem}
.train__item p{font-size:.93rem;color:rgba(255,255,255,.7);margin:0}

/* --- Events --------------------------------------------------------------- */
.events{border-top:1px solid var(--rule)}
.event{display:grid;grid-template-columns:auto 1fr auto;gap:2rem;align-items:center;
       padding:1.6rem 0;border-bottom:1px solid var(--rule);transition:.2s}
.event:hover{background:var(--white);padding-inline:1rem}
.event__date{font-family:var(--mono);text-align:center;min-width:74px}
.event__date b{display:block;font-size:1.9rem;color:var(--navy);font-weight:500;line-height:1}
.event__date span{font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:var(--blue-deep)}
.event__body h3{font-size:1.15rem;margin-bottom:.2rem}
.event__body p{font-size:.9rem;color:var(--ink-3);margin:0}

/* --- News ----------------------------------------------------------------- */
.news{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem}
.news__item{background:var(--white);border:1px solid var(--rule);display:flex;flex-direction:column;
            transition:.22s}
.news__item:hover{box-shadow:var(--shadow-sm);transform:translateY(-3px)}
.news__media{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--paper-2)}
.news__media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.news__item:hover .news__media img{transform:scale(1.05)}
.news__body{padding:1.3rem 1.4rem 1.5rem}
.news__date{font-family:var(--mono);font-size:.7rem;letter-spacing:.1em;color:var(--blue-deep);
            text-transform:uppercase;margin-bottom:.5rem;display:block}
.news__body h3{font-size:1.02rem;line-height:1.35}

/* --- Leadership ----------------------------------------------------------- */
.leaders{display:grid;grid-template-columns:repeat(2,1fr);gap:1.6rem;margin-bottom:3.5rem}
.leader{display:grid;grid-template-columns:132px 1fr;gap:1.5rem;align-items:center;
        background:var(--white);border:1px solid var(--rule);padding:1.5rem}
.leader img{width:132px;height:150px;object-fit:cover;object-position:top center;background:var(--paper-2)}
.leader__ph{width:132px;height:150px;display:grid;place-items:center;background:var(--blue-wash);
            color:var(--blue);font-family:var(--display);font-size:2.4rem}
.leader__role{font-family:var(--mono);font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;
              color:var(--gold);margin-bottom:.4rem}
.leader h3{font-size:1.22rem;margin-bottom:.3rem}
.leader p{font-size:.9rem;color:var(--ink-3);margin:0}

.council{display:grid;grid-template-columns:repeat(5,1fr);gap:1.1rem}
.cm{text-align:center}
.cm img{width:100%;aspect-ratio:1/1.12;object-fit:cover;object-position:top center;
        border:1px solid var(--rule);background:var(--paper-2);filter:grayscale(.28);transition:.3s}
.cm:hover img{filter:grayscale(0)}
.cm b{display:block;font-size:.83rem;color:var(--navy);margin-top:.65rem;line-height:1.35;font-weight:600}
.cm span{font-family:var(--mono);font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;
         color:var(--ink-3)}

/* --- Members-area call to action ------------------------------------------ */
.portal{background:linear-gradient(120deg,var(--navy) 0%,var(--blue-deep) 100%);color:#fff;
        position:relative;overflow:hidden}
.portal::after{content:"";position:absolute;right:-90px;top:-90px;width:340px;height:340px;
               border:1px solid rgba(255,255,255,.13);border-radius:50%}
.portal::before{content:"";position:absolute;right:10px;bottom:-140px;width:260px;height:260px;
                border:1px solid rgba(255,255,255,.09);border-radius:50%}
.portal__inner{display:grid;grid-template-columns:1.1fr .9fr;gap:3rem;align-items:center;
               position:relative;z-index:2}
.portal h2{color:#fff;font-size:clamp(1.8rem,3.2vw,2.5rem);margin-bottom:1rem}
.portal p{color:rgba(255,255,255,.8);margin-bottom:1.8rem}
.portal__list{list-style:none;margin:0;padding:0;display:grid;gap:.75rem}
.portal__list li{display:flex;gap:.7rem;align-items:flex-start;font-size:.95rem;
                 color:rgba(255,255,255,.86)}
.portal__list i{color:#7FCBEE;flex-shrink:0;margin-top:.2rem}

/* --- Partners ------------------------------------------------------------- */
.partners{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center}
.partners a{border:1px solid var(--rule);background:var(--white);padding:.85rem 1.4rem;
            font-size:.88rem;font-weight:600;color:var(--ink-2);transition:.2s;border-radius:2px}
.partners a:hover{border-color:var(--blue);color:var(--navy)}

/* --- Contact -------------------------------------------------------------- */
.contact{display:grid;grid-template-columns:1fr 1.1fr;gap:clamp(2rem,5vw,4rem);align-items:start}
.cinfo{list-style:none;margin:0;padding:0;border-top:1px solid var(--rule)}
.cinfo li{display:grid;grid-template-columns:34px 1fr;gap:1rem;padding:1.15rem 0;
          border-bottom:1px solid var(--rule);align-items:start}
.cinfo i{color:var(--blue-deep);font-size:1.1rem;margin-top:.15rem}
.cinfo b{display:block;font-family:var(--mono);font-size:.68rem;letter-spacing:.14em;
         text-transform:uppercase;color:var(--ink-3);margin-bottom:.2rem}
.cinfo a,.cinfo span{color:var(--ink);font-size:.98rem}
.map{border:1px solid var(--rule);width:100%;height:100%;min-height:340px;filter:grayscale(.35)}

/* --- Footer --------------------------------------------------------------- */
.footer{background:var(--navy);color:rgba(255,255,255,.62);padding:4rem 0 0;font-size:.9rem}
.footer__grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:2.5rem;padding-bottom:3rem}
.footer h4{color:#fff;font-family:var(--mono);font-size:.7rem;letter-spacing:.16em;
           text-transform:uppercase;margin-bottom:1.1rem;font-weight:500}
.footer ul{list-style:none;margin:0;padding:0;display:grid;gap:.55rem}
.footer a{color:rgba(255,255,255,.62)}
.footer a:hover{color:#fff}
.footer__brand{display:flex;gap:.85rem;align-items:flex-start;margin-bottom:1rem}
.footer__brand img{height:56px;width:auto}
.footer__motto{font-family:var(--mono);font-size:.68rem;letter-spacing:.2em;color:#7FCBEE;
               text-transform:uppercase;margin-top:.6rem}
.footer__bottom{border-top:1px solid rgba(255,255,255,.12);padding:1.35rem 0;
                display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.83rem}
.footer__social{display:flex;gap:.6rem}
.footer__social a{width:34px;height:34px;display:grid;place-items:center;
                  border:1px solid rgba(255,255,255,.2);border-radius:2px}
.footer__social a:hover{background:rgba(255,255,255,.1);border-color:#fff}

/* --- Reveal on scroll ----------------------------------------------------- */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s ease}
.reveal.in{opacity:1;transform:none}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width:1080px){
  .nav__links{position:fixed;inset:0 0 0 auto;width:min(84%,340px);background:var(--paper);
    flex-direction:column;align-items:stretch;justify-content:flex-start;padding:96px 26px 40px;
    gap:.25rem;transform:translateX(100%);transition:transform .3s ease;box-shadow:var(--shadow);
    z-index:58;overflow-y:auto}
  .nav__links.open{transform:translateX(0)}
  .nav__links>a:not(.btn){font-size:1rem;padding:.85rem .2rem;border-bottom:1px solid var(--rule)}
  .nav__links>a:not(.btn)::after{display:none}
  .nav__links .btn{width:100%;margin-top:.6rem}
  .nav__sep{display:none}
  .nav__toggle{display:flex;z-index:62}
  .nav{backdrop-filter:none;background:var(--paper)}
  .about,.contact,.portal__inner{grid-template-columns:1fr}
  .council{grid-template-columns:repeat(4,1fr)}
  .news{grid-template-columns:repeat(2,1fr)}
  .footer__grid{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
  /* Keep the phone number, drop the address and email: on a phone, tapping to
     call is the action; a postal address is not. */
  .util__contacts span:nth-child(1),
  .util__contacts span:nth-child(3){display:none}
  .hero__ledger{grid-template-columns:repeat(2,1fr);gap:1.1rem 0}
  .hero__ledger div{border-right:0;padding-right:0}
  .hero__ledger div:nth-child(odd){border-right:1px solid rgba(255,255,255,.14);padding-right:1rem}
  .pillars,.mem,.train,.news,.leaders{grid-template-columns:1fr}
  .pillar{border-right:0;border-bottom:1px solid var(--rule);padding:1.8rem 0}
  .pillar:not(:first-child){padding-left:0}
  .council{grid-template-columns:repeat(3,1fr)}
  .event{grid-template-columns:auto 1fr;gap:1.2rem}
  .event .btn{display:none}
  .leader{grid-template-columns:100px 1fr;gap:1.1rem;padding:1.1rem}
  .leader img,.leader__ph{width:100px;height:116px}
  .footer__grid{grid-template-columns:1fr;gap:2rem}
}
@media (max-width:460px){
  .council{grid-template-columns:repeat(2,1fr)}
  .brand__txt b{font-size:.98rem}
  .brand img{height:44px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important}
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none}
}
@media print{ .nav,.util,.hero__dots,.nav__toggle{display:none} }

/* ==========================================================================
   Polish
   --------------------------------------------------------------------------
   Additions, not a redesign. Each one had to earn its place against the
   ledger language already established: measured, ruled, quiet. Anything that
   would have made the page feel like a startup landing page was left out.
   ========================================================================== */

/* Selection in the association's own blue rather than the browser's. */
::selection{background:var(--blue);color:#fff}

/* A ruler across the top: how far through the document you are. The subject is
   measurement, so a progress rule belongs here in a way a spinner would not. */
.progress{position:fixed;top:0;left:0;height:2px;width:0;background:var(--gold);
          z-index:70;transition:width .1s linear}

/* Focus: visible, branded, and never removed. */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,
textarea:focus-visible,.btn:focus-visible{
  outline:2px solid var(--gold);outline-offset:3px;border-radius:1px}

/* Hero: the slide drifts almost imperceptibly, so the page feels alive without
   anything actually moving under the reader's eye. */
.hero__bg img.on{animation:drift 22s ease-out forwards}
@keyframes drift{from{transform:scale(1.04)}to{transform:scale(1.12)}}

/* The ledger figures count up once, when they first come into view. */
.hero__ledger b{font-variant-numeric:tabular-nums}

/* Cards lift a little and the rule beneath the heading draws itself. */
.mem__card{position:relative;overflow:hidden}
.mem__card::after{content:"";position:absolute;left:2rem;right:2rem;bottom:0;height:2px;
                  background:var(--blue);transform:scaleX(0);transform-origin:left;
                  transition:transform .35s ease}
.mem__card:hover::after{transform:scaleX(1)}

.pillar__ico{transition:background .25s ease,color .25s ease,transform .25s ease}
.pillar:hover .pillar__ico{background:var(--navy);color:#fff;transform:translateY(-2px)}

/* Council portraits come up to full colour on hover; the grid stays calm. */
.cm{transition:transform .25s ease}
.cm:hover{transform:translateY(-3px)}

/* News images fade in as they decode, rather than snapping in. */
.news__media img,.cm img,.leader img{opacity:0;transition:opacity .5s ease,transform .5s ease}
.news__media img.ready,.cm img.ready,.leader img.ready{opacity:1}

/* Events: the date column gets a rule that fills on hover — a ledger tick. */
.event{position:relative}
.event::before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;
               background:var(--gold);transform:scaleY(0);transform-origin:top;
               transition:transform .3s ease}
.event:hover::before{transform:scaleY(1)}

/* Back to top: appears once the reader is well down the page. */
.totop{position:fixed;right:20px;bottom:20px;width:46px;height:46px;border:0;border-radius:50%;
       background:var(--navy);color:#fff;font-size:1.1rem;cursor:pointer;z-index:65;
       display:grid;place-items:center;opacity:0;visibility:hidden;transform:translateY(10px);
       transition:.28s ease;box-shadow:var(--shadow-sm)}
.totop.on{opacity:1;visibility:visible;transform:none}
.totop:hover{background:var(--gold)}

/* Install prompt — offered once, dismissible, never nagging. */
.install{position:fixed;left:50%;bottom:20px;transform:translate(-50%,120%);z-index:66;
         background:#fff;border:1px solid var(--rule);box-shadow:var(--shadow);
         padding:.85rem 1rem;display:flex;align-items:center;gap:.9rem;border-radius:4px;
         width:min(94%,430px);transition:transform .35s ease}
.install.on{transform:translate(-50%,0)}
.install img{height:34px;width:auto;flex-shrink:0}
.install div{flex:1;min-width:0}
.install b{display:block;font-size:.9rem;color:var(--navy)}
.install span{font-size:.78rem;color:var(--ink-3)}
.install .x{background:none;border:0;color:var(--ink-3);font-size:1.2rem;cursor:pointer;padding:0 .2rem}

/* ---- Mobile: touch targets, spacing, and the things that only show up on a
   real phone ------------------------------------------------------------- */
@media (max-width:760px){
  /* 44px is the smallest comfortable tap target; several links were under it. */
  .nav__links>a:not(.btn){min-height:48px;display:flex;align-items:center}
  .util a{min-height:44px;display:inline-flex;align-items:center;padding:0 .2rem}
  .lang button{min-height:44px;min-width:34px;display:inline-flex;align-items:center;justify-content:center}
  .btn{padding:.9rem 1.4rem}
  .btn--lg{width:100%;justify-content:center}
  .hero__cta{flex-direction:column;align-items:stretch;gap:.7rem}
  .hero__inner{padding:3.5rem 0 3.5rem}
  .hero{min-height:auto}
  .section{padding:3.2rem 0}
  .section__head{margin-bottom:2rem}
  .cinfo li{grid-template-columns:28px 1fr;gap:.75rem}
  .map{min-height:260px}
  .totop{right:14px;bottom:14px;width:42px;height:42px}
  /* The utility bar's address is the first thing on a phone and takes a line
     to itself for no benefit; the phone number is what someone taps. */
  .util__inner{justify-content:center}
  .footer__brand img{height:46px}
}
@media (max-width:420px){
  .hero h1{font-size:2.05rem}
  .brand__txt small{display:none}
  .mem__card,.news__body,.leader{padding:1.15rem}
  .mem__card::after{left:1.15rem;right:1.15rem}
  .container{width:92%}
  .event{gap:.9rem}
  .event__date b{font-size:1.5rem}
}

@media (prefers-reduced-motion:reduce){
  .hero__bg img.on{animation:none}
  .progress{transition:none}
  .news__media img,.cm img,.leader img{opacity:1}
}

/* Installed as an app: no browser chrome, so the sticky bar needs the safe
   area on notched phones. */
@media (display-mode:standalone){
  .util{padding-top:env(safe-area-inset-top)}
  body{padding-bottom:env(safe-area-inset-bottom)}
}
