/* ==========================================================================
   NECOS. Ntinda Entrepreneurs Co-operative Society Limited
   Global stylesheet, version 2 (2026 refresh).

   This file is assembled by scripts/build-css.mjs from three parts:
     src/styles/core.css        tokens, layout, type, components (this file)
     src/styles/legacy-tools.css  planner, chips, forms, AGM staff tools,
                                  carried over unchanged from version 1
     src/styles/responsive.css  breakpoints and print, applied last
   Edit those, never public/assets/css/necos.css, which is overwritten.

   Design rules that must not drift:
     - The brand palette is unchanged: navy, green, near black, grey, white.
       Mist is not a new colour. It is the brand navy at about 7% on white,
       used as the page ground so white cards sit forward without shadows.
     - Vertical rhythm is built on 8px increments.
     - No gradients, no glassmorphism, no drop shadows, no bounce easing.
     - Green is an accent. It is never used for text on a light ground,
       where it measures 1.75:1. On navy it measures 8.56:1 and is used freely.
   ========================================================================== */


/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
  /* Brand palette, exact */
  --navy:        #0C2749;
  --navy-hover:  #081B33;
  --green:       #9ED193;
  --near-black:  #191919;
  --grey:        #C6C5C4;
  --white:       #FFFFFF;

  /* Grounds derived from the navy */
  --page-bg:     #EEF2F6;   /* Navy mist, the page ground */
  --card-bg:     #FFFFFF;
  --hairline:    #DCE3EB;   /* Borders on mist and on white */
  --stage-bg:    #E3E9F0;   /* Picture frames before the picture loads */
  --on-navy-rule: rgba(255, 255, 255, 0.16);

  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text:    "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px;
  --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px; --s16: 128px;

  --section-pad: var(--s12);

  --shell: 1200px;
  --gutter: 32px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);   /* a calm ease-out */
  --dur: 280ms;
}


/* ==========================================================================
   2. BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--navy);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

::selection { background: var(--green); color: var(--navy); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: var(--white);
  padding: var(--s2) var(--s3);
  font-family: var(--font-display); font-weight: 600;
}
.skip-link:focus { left: 0; }


/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); position: relative; }
.section--white { background: var(--white); }
.section--tight { padding-block: var(--s8); }

.section--navy { background: var(--navy); color: var(--white); overflow: hidden; }
.section--navy h2, .section--navy h3, .section--navy p { color: var(--white); }

/* Navy on green measures 8.56:1 */
.section--green { background: var(--green); color: var(--navy); }
.section--green h2, .section--green h3, .section--green p,
.section--green li, .section--green .lead { color: var(--navy); }
.section--green .feature-list li { border-bottom-color: rgba(12, 39, 73, 0.2); }
.section--green .feature-list li::before { background: var(--navy); }
.section--green .link-underline { border-bottom-color: var(--navy); }
.section--green .related { border-top-color: rgba(12, 39, 73, 0.2); }

.rule { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s8); align-items: center; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.cols-2 > *, .cols-3 > *, .cols-4 > * { min-width: 0; }
.align-start { align-items: start; }

.measure { max-width: 62ch; }

/* The large faint monogram behind navy blocks. Decorative, so it is hidden
   from assistive technology and never takes a click. */
.watermark {
  position: absolute;
  pointer-events: none;
  width: min(62vw, 720px);
  height: auto;
  right: -12%;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  opacity: 0.07;
}

/* The woven band from the brand guidelines, laid as a divider. */
.band {
  height: 12px;
  background-image: url("../img/necos-band.svg");
  background-repeat: repeat-x;
  background-size: auto 100%;
}
.band--light { background-image: url("../img/necos-band-light.svg"); }


/* ==========================================================================
   4. TYPE
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--near-black);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }

.display {
  font-size: clamp(44px, 6.6vw, 88px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
}

.section-title {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.statement-large {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: var(--near-black);
  margin: 0;
}

.sub-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--near-black);
  margin: 0 0 var(--s2);
}

.lead { font-size: clamp(19px, 1.9vw, 22px); line-height: 1.55; color: var(--navy); }

/* Small uppercase labels */
.label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 var(--s2);
}

/* The kicker: a small uppercase label above a heading. Plain type, with
   nothing drawn in front of it. */
.kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 var(--s3);
}
.kicker--on-dark { color: var(--green); }

.stat {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
  display: block;
  margin: 0 0 var(--s1);
}

.muted { color: var(--navy); opacity: 0.72; }

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--hairline);
  font-size: 17px;
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 21px;
  width: 12px; height: 3px;
  border-radius: 2px;
  background: var(--green);
}


/* ==========================================================================
   5. BUTTONS AND LINKS
   ========================================================================== */

a { color: var(--navy); }

.section a:not([class]) { text-decoration-thickness: 2px; text-underline-offset: 3px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 18px 30px;
  border-radius: 999px;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease),
              color 180ms var(--ease), transform 180ms var(--ease);
}
.btn::after {
  content: "→";
  font-weight: 600;
  transition: transform 180ms var(--ease);
}
.btn:hover { background: var(--navy-hover); border-color: var(--navy-hover); }
.btn:hover::after { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
button.btn::after { content: none; }

.btn--outline { background: transparent; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

/* Green button, for navy grounds only */
.btn--green { background: var(--green); border-color: var(--green); color: var(--navy); }
.btn--green:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); border-color: var(--white); color: var(--navy); }

.section--navy .btn:not(.btn--green):not(.btn--ghost-light) { background: var(--white); border-color: var(--white); color: var(--navy); }

.link-underline {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--green);
  transition: border-color var(--dur) var(--ease);
}
.link-underline:hover { border-bottom-color: var(--navy); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--navy a:focus-visible, .section--navy button:focus-visible,
.page-head a:focus-visible, .hero a:focus-visible,
.footer a:focus-visible, .skip-link:focus-visible { outline-color: var(--green); }


/* ==========================================================================
   6. HEADER
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  padding-bottom: 12px;
  transition: transform 300ms var(--ease);
}
.header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 12px;
  background-image: url("../img/necos-band.svg");
  background-repeat: repeat-x;
  background-size: auto 100%;
  pointer-events: none;
}
.header--hidden { transform: translateY(-100%); }

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-height: 84px;
}
.header__controls { display: flex; align-items: center; gap: var(--s3); flex: none; }

.logo { display: inline-flex; align-items: center; text-decoration: none; padding: var(--s1) 0; }
.logo__lockup { width: 150px; height: auto; flex: none; }
.logo--light .logo__lockup { width: 176px; }

.nav { display: flex; align-items: center; margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }

.nav__link {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
  white-space: nowrap;
}
.nav__link:hover { background: var(--page-bg); }
.nav__link[aria-current="page"] { background: var(--navy); color: var(--white); }

.nav__toggle {
  display: none;
  align-items: center;
  gap: var(--s1);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}
.nav__toggle-bars { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
.nav__toggle-bars span { display: block; height: 2px; background: var(--navy); border-radius: 1px; }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--page-bg);
  border-radius: 999px;
}
.lang__btn {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
  white-space: nowrap;
}
.lang__btn[aria-pressed="true"] { background: var(--white); font-weight: 800; box-shadow: inset 0 -2px 0 var(--green); }
.lang__sep { display: none; }


/* ==========================================================================
   7. FOOTER
   ========================================================================== */

.footer {
  background: var(--navy-hover);
  color: var(--white);
  font-size: 16px;
}
.footer > .shell { padding-block: var(--s10) var(--s5); }

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--s8);
  padding-bottom: var(--s6);
  border-bottom: 1px solid var(--on-navy-rule);
}
.footer__intro { max-width: 34ch; margin-top: var(--s3); opacity: 0.82; font-size: 18px; }

.footer h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 var(--s3);
}

.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 12px; }
.footer a { color: var(--white); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease); }
.footer a:hover { border-bottom-color: var(--green); }

.footer__branch { margin-bottom: var(--s3); line-height: 1.5; }
.footer__branch strong { font-family: var(--font-display); font-weight: 700; display: block; }
.footer__branch span { opacity: 0.82; font-size: 15px; }

.social { display: flex; flex-wrap: wrap; gap: var(--s1); list-style: none; margin: var(--s4) 0 0; padding: 0; }
.footer .social__link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--on-navy-rule);
  border-radius: 999px;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease);
}
.footer .social__link:hover { background: var(--green); border-color: var(--green); color: var(--navy); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  justify-content: space-between;
  padding-top: var(--s4);
  font-size: 15px;
  opacity: 0.82;
}
.footer__bottom p { margin: 0; }
.footer__reg strong { font-family: var(--font-display); font-weight: 700; color: var(--green); }


/* ==========================================================================
   8. PICTURES
   ========================================================================== */

.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--stage-bg);
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.frame:hover img { transform: scale(1.03); }
.frame--16x9 { aspect-ratio: 16 / 9; }
.frame--4x3  { aspect-ratio: 4 / 3; }

/* The campaign posters carry their own words, so they are never cropped.
   They sit whole on a mist mount instead. */
.poster {
  border-radius: var(--radius-lg);
  background: var(--page-bg);
  padding: clamp(16px, 2.4vw, 32px);
  overflow: hidden;
}
.poster img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  transition: transform 700ms var(--ease);
}
.poster:hover img { transform: scale(1.02); }
.section--white .poster { background: var(--page-bg); }
.section:not(.section--white) .poster { background: var(--white); }
.section--green .poster { background: rgba(255, 255, 255, 0.55); }


/* ==========================================================================
   9. HOME HERO
   ========================================================================== */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding-block: var(--s12) calc(var(--s16) + var(--s4));
}
.hero .watermark { right: -18%; width: min(80vw, 900px); opacity: 0.06; }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s8);
  align-items: center;
}
.hero__title { color: var(--white); }
.hero__title .accent { color: var(--green); }
.hero__text { color: var(--white); opacity: 0.86; margin: var(--s4) 0 var(--s5); max-width: 44ch; }
.hero__actions { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }

.hero__media { position: relative; }
.hero__media .frame { border: 6px solid rgba(255,255,255,0.08); }

/* The registration badge that overlaps the photo */
.badge {
  position: absolute;
  left: calc(var(--s4) * -1);
  bottom: calc(var(--s4) * -1);
  display: flex;
  align-items: center;
  gap: var(--s2);
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius);
  padding: 16px 20px;
  max-width: 300px;
}
.badge img { width: 40px; height: 40px; flex: none; }
.badge__label { display: block; font-size: 13px; line-height: 1.35; opacity: 0.8; }
.badge__value { display: block; font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }

/* Key figures, lifted out of the hero onto the mist */
.figures {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--s16) * -1 + var(--s2));
}
.figures__card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
}
.figure { padding: var(--s5) var(--s4); border-left: 1px solid var(--hairline); }
.figure:first-child { border-left: 0; }
.figure__value {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--navy);
  margin: 0 0 12px;
}
.figure__value::after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--green);
  margin-top: 14px;
}
.figure__unit {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.6;
  margin-bottom: 8px;
}
.figure__label { font-size: 15px; line-height: 1.4; margin: 0; opacity: 0.8; }
.figures__source { font-size: 14px; opacity: 0.65; margin: var(--s2) 0 0; text-align: right; }


/* ==========================================================================
   10. INSIDE PAGE HEAD
   ========================================================================== */

.page-head {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding-block: var(--s12) var(--s10);
}
.page-head__inner { position: relative; }
.page-head__title {
  color: var(--white);
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.page-head__intro {
  margin-top: var(--s4);
  max-width: 60ch;
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.55;
  color: var(--white);
  opacity: 0.86;
}


/* ==========================================================================
   11. SECTION HEADS, STATEMENTS, CARDS
   ========================================================================== */

.section-head { margin-bottom: var(--s8); max-width: 820px; }
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s8);
  align-items: end;
}
.section-head__text { margin: 0; max-width: 52ch; font-size: 19px; opacity: 0.85; }
.section-head:not(.section-head--split) .section-head__text { margin-top: var(--s3); }

/* Vision and mission, as two halves of one statement */
.pledge {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.pledge__half { padding: clamp(32px, 4.5vw, 64px); }
.pledge__half + .pledge__half { border-left: 1px solid var(--hairline); }
.pledge__half--navy { background: var(--navy); }
.pledge__half--navy .kicker { color: var(--green); }
.pledge__half--navy .pledge__text { color: var(--white); }
.pledge__text {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--near-black);
  margin: 0;
}

/* Reasons to trust, numbered */
.reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); counter-reset: reason; }
.reason { counter-increment: reason; border-top: 2px solid var(--navy); padding-top: var(--s3); }
.reason::before {
  content: counter(reason, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: var(--s3);
}
.reason__value { font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 12px; text-wrap: balance; }
.reason__note { font-size: 16px; margin: 0; opacity: 0.85; }

/* Product rows on the home page: poster on one side, words on the other,
   alternating as they go down. */
.offer { display: grid; gap: var(--s12); counter-reset: offer; }
.offer__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s10);
  align-items: center;
  counter-increment: offer;
}
.offer__row:nth-child(even) .offer__media { order: 2; }
.offer__index {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--navy);
  opacity: 0.5;
  margin: 0 0 var(--s2);
}
.offer__title { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: var(--s3); }
.offer__text { font-size: 19px; max-width: 46ch; margin-bottom: var(--s4); }
.offer__tags { display: flex; flex-wrap: wrap; gap: var(--s1); list-style: none; margin: 0 0 var(--s5); padding: 0; }
.offer__tags li {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  background: var(--page-bg);
  border-radius: 999px;
  padding: 8px 14px;
}
.offer__tags .price { font-weight: 800; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--s4);
}

/* Branch card */
.branch-card { display: flex; flex-direction: column; gap: var(--s1); height: 100%; transition: border-color 200ms var(--ease), transform 200ms var(--ease); }
.branch-card__name { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 var(--s1); }
.branch-card__badge {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--green);
  color: var(--navy);
  border-radius: 999px;
  padding: 4px 10px;
}
.branch-card__address { font-size: 17px; line-height: 1.55; margin: var(--s1) 0 0; }
.branch-card__hours { font-size: 15px; opacity: 0.75; margin: 0; }
.branch-card__tel {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  margin-top: auto;
  padding-top: var(--s3);
  border-top: 1px solid var(--hairline);
}
.card.is-selected { border-color: var(--navy); outline: 2px solid var(--navy); }

/* Land types */
.land { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.land__card { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5); }
.land__title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.land__price {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  padding-top: var(--s3);
  border-top: 1px solid var(--hairline);
}

/* Location tiles */
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); list-style: none; margin: 0; padding: 0; }
.place { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: var(--s4); position: relative; overflow: hidden; }
.place__name { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--white); }
.place__area { margin: 0; color: var(--green); font-weight: 600; }

/* Member organisations */
.org { background: rgba(255,255,255,0.55); border-radius: var(--radius); padding: var(--s5); }
.org__mark { font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); margin: 0 0 var(--s1); line-height: 1; }
.org__name { font-size: 19px; font-weight: 700; margin: 0 0 var(--s1); }
.org__motto { font-size: 17px; font-style: italic; margin: 0 0 var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid rgba(12, 39, 73, 0.2); }

/* Tables (land, finances) */
.land-table { width: 100%; border-collapse: collapse; text-align: left; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.land-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: var(--s3);
}
.land-table th, .land-table td { padding: 18px var(--s3); border-bottom: 1px solid var(--hairline); vertical-align: top; font-size: 17px; }
.land-table tr:last-child td { border-bottom: 0; }
.land-table th { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.04em; color: var(--white); background: var(--navy); }
.land-table td:first-child { font-family: var(--font-display); font-weight: 700; color: var(--near-black); }
.land-table .price { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fin-table td:not(:first-child), .fin-table th:not(:first-child) { text-align: right; }

/* Headline numbers on the reports page */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.kpi { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius); padding: var(--s4); }
.kpi .stat::after { content: ""; display: block; width: 32px; height: 3px; border-radius: 2px; background: var(--green); margin-top: 14px; }
.kpi p:last-child { font-size: 16px; opacity: 0.8; }

/* Related links at the foot of a section */
.related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  padding-top: var(--s5);
  border-top: 1px solid var(--hairline);
  margin-top: var(--s10);
}
.related__label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-right: var(--s1);
}
.related a {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--white);
  transition: border-color 180ms var(--ease);
}
.related a:hover { border-color: var(--navy); }
.section--green .related a { background: rgba(255,255,255,0.6); border-color: transparent; }


/* ==========================================================================
   12. TEAM
   ========================================================================== */

.team-group + .team-group { margin-top: var(--s12); }
.team-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s1) var(--s4);
  padding-bottom: var(--s3);
  margin-bottom: var(--s5);
  border-bottom: 1px solid var(--hairline);
}
.team-group__title { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.team-group__intro { margin: 0; max-width: 48ch; opacity: 0.8; }

.team-grid { display: grid; gap: var(--s3); list-style: none; margin: 0; padding: 0; }
.team-grid--large { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.team-grid--small { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

.person {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 260ms var(--ease), border-color 260ms var(--ease);
}
@media (hover: hover) {
  .person:hover { transform: translateY(-4px); border-color: var(--navy); }
  .person:hover .person__photo img { transform: scale(1.04); }
}

.person__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--navy);
  overflow: hidden;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }

/* No photo yet: initials over the monogram */
.person__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/necos-monogram-light.svg") no-repeat 130% 120% / 85%;
  opacity: 0.12;
}
.person__photo:has(img)::before { content: none; }
.person__initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.4vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--green);
}

.person__body { padding: 18px 20px 22px; border-top: 3px solid var(--green); }
.person__name { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--near-black); margin: 0 0 4px; }
.person__role { font-size: 15px; margin: 0; opacity: 0.75; }
.person__bio { font-size: 15px; margin: 12px 0 0; }

.team-grid--small .person__name { font-size: 16px; }
.team-grid--small .person__body { padding: 14px 16px 18px; }
.team-grid--small .person__initials { font-size: clamp(32px, 3.2vw, 44px); }


/* ==========================================================================
   13. ACCORDIONS
   Panels ship open. The html-js class, set in <head>, is the only thing
   that lets the CSS collapse them.
   ========================================================================== */

.accordion { display: grid; gap: 12px; }
.accordion--numbered { counter-reset: acc; }

.accordion__item {
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: border-color 200ms var(--ease);
}
.accordion__item:has(.accordion__trigger[aria-expanded="true"]) { border-color: var(--navy); }
.accordion__heading { margin: 0; }

.accordion__trigger {
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  padding: 26px var(--s4);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  color: var(--near-black);
}
.accordion--numbered .accordion__item:not(.is-filtered-out) { counter-increment: acc; }
.accordion--numbered .accordion__trigger::before {
  content: counter(acc, decimal-leading-zero);
  flex: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--navy);
  opacity: 0.45;
  min-width: 26px;
}
.accordion__title { flex: 1; font-size: clamp(19px, 1.9vw, 23px); font-weight: 700; line-height: 1.3; letter-spacing: -0.012em; }

.accordion__icon {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--page-bg);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.accordion__icon::before, .accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--navy);
  border-radius: 1px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.accordion__icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.accordion__icon::after  { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.accordion__trigger:hover .accordion__icon { background: var(--hairline); }
.accordion__trigger[aria-expanded="true"] .accordion__icon { background: var(--green); transform: rotate(180deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.accordion__panel { overflow: hidden; }
.html-js .accordion__panel {
  height: 0;
  opacity: 0;
  visibility: hidden;
  transition: height var(--dur) var(--ease), opacity var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.html-js .accordion__panel[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transition: height var(--dur) var(--ease), opacity var(--dur) var(--ease), visibility 0s;
}
.accordion__panel-inner { padding: 0 var(--s4) var(--s4) calc(var(--s4) + 26px + var(--s3)); }
.accordion:not(.accordion--numbered) .accordion__panel-inner { padding-left: var(--s4); }
.accordion__desc { font-size: 17px; margin: 0 0 var(--s3); max-width: 68ch; }
.accordion__split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: start; }
.accordion__split > * { min-width: 0; }


/* ==========================================================================
   14. CLOSING CTA
   ========================================================================== */

.cta .watermark { right: -10%; opacity: 0.06; }
.cta__grid { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--s8); align-items: center; }
.cta__title { font-size: clamp(32px, 4vw, 52px); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; color: var(--white); max-width: 16ch; }
.cta__text { margin: var(--s3) 0 var(--s5); max-width: 50ch; opacity: 0.86; font-size: 19px; }
.cta__branches { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cta__branch {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px var(--s2);
  padding: 18px 22px;
  border: 1px solid var(--on-navy-rule);
  border-radius: var(--radius);
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.cta__branch:hover { border-color: var(--green); }
.cta__branch-name { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.cta__branch-addr { grid-column: 1; font-size: 14px; opacity: 0.7; }
.cta__branch-tel {
  grid-column: 2; grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}
.cta__branch-tel:hover { text-decoration: underline; text-underline-offset: 4px; }


/* ==========================================================================
   15. REVEAL ON SCROLL
   site.js adds .can-reveal to <html> only once it is running, so if the
   script never loads nothing is ever hidden.
   ========================================================================== */

.can-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.can-reveal .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .can-reveal .reveal { opacity: 1; transform: none; }
}


/* Carried over unchanged from version 1: tools, chips, forms (section 11b, 12). */
/* ==========================================================================
   11b. INTERACTIVE TOOLS
   The savings planner, the loan finder, the branch picker and the expand all
   control. Each is built from the same materials as the rest of the site:
   a hairline border, a 12px radius, no shadow, green used only to mark state.
   ========================================================================== */

/* A tool sits in a bordered panel, the same weight as a card */
.tool {
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--s4);
}

.tool__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--near-black);
  margin: 0 0 var(--s1);
}

.tool__note {
  font-size: 15px;
  color: var(--navy);
  opacity: 0.75;
  margin: var(--s3) 0 0;
}

/* --- Savings planner --- */
.planner__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  margin-top: var(--s3);
}

/* The three figures the planner works out */
.planner__result {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--hairline);
}

.planner__figure { border-top: 2px solid var(--green); padding-top: var(--s2); }

.planner__amount {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
  display: block;
  line-height: 1.2;
}

.planner__period {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  opacity: 0.75;
  display: block;
  margin-top: 4px;
}

/* --- Filter and picker chips --- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-bottom: var(--s5);
}

.chip {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  cursor: pointer;
  transition: border-color 150ms var(--ease),
              background-color 150ms var(--ease),
              color 150ms var(--ease);
}
.chip:hover { border-color: var(--navy); }

/* The chosen filter is filled navy, so the state does not rest on colour
   alone but on a clear figure and ground reversal. */
.chip[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.chip__count {
  font-weight: 500;
  opacity: 0.65;
  margin-left: 6px;
}

/* Products hidden by a filter */
.is-filtered-out { display: none; }

/* Message shown when a filter matches nothing */
.filter__empty {
  font-size: 17px;
  padding: var(--s4) 0;
  margin: 0;
}

/* --- Expand all control --- */
.accordion__controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--s2);
}

.text-btn {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--green);
  padding: 4px 0;
  cursor: pointer;
  transition: border-color 150ms var(--ease);
}
.text-btn:hover { border-bottom-color: var(--navy); }

/* --- Branch picker --- */
/* The chosen branch card is marked with a navy edge, not a colour wash */
.branch-card { transition: border-color 200ms var(--ease); }
.card.is-selected { border-color: var(--navy); }
.card.is-selected .branch-card__name { border-bottom-color: var(--navy); }


/* ==========================================================================
   12. FORMS
   ========================================================================== */

.form { display: grid; gap: var(--s4); }

.field { display: flex; flex-direction: column; gap: var(--s1); }

.field label {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-text);
  font-size: 17px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 14px var(--s2);
  width: 100%;
  transition: border-color var(--dur) var(--ease);
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--grey); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--navy); }

.field textarea { resize: vertical; min-height: 144px; }

.field__hint {
  font-size: 14px;
  color: var(--navy);
  opacity: 0.7;
}


/* Carried over unchanged from version 1: AGM staff tools, form status, financial table (15 to 18). */
/* ==========================================================================
   15. AGM NOTICE COMPOSER
   A staff tool, used only by agm-notice.html. Every selector below is
   scoped to a class that appears on no other page, so nothing here can
   move a pixel anywhere else on the site. It borrows the existing type
   scale, palette and spacing rather than introducing a second language.
   ========================================================================== */

/* The two columns sit top aligned. The form is tall and the document grows
   as it is filled, so bottom alignment would see the notice drift. */
.agm-tool { align-items: start; }

/* --- The document ----------------------------------------------------
   Drawn as a sheet of paper on the page background, so the Secretary can
   see the shape of what will print. --- */
.agm-doc {
  position: sticky;
  top: var(--s10);
}

.agm-doc__page {
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--s6);
}

.agm-doc__org {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--navy);
  margin: 0;
}

.agm-doc__reg {
  font-size: 13px;
  color: var(--navy);
  opacity: 0.72;
  margin: 4px 0 var(--s5);
}

.agm-doc__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--near-black);
  border-top: 2px solid var(--green);
  padding-top: var(--s3);
  margin: 0 0 var(--s3);
}

.agm-doc__issued {
  font-size: 14px;
  color: var(--navy);
  opacity: 0.72;
  margin: 0 0 var(--s4);
}

.agm-doc__lede {
  font-size: 16px;
  margin: 0 0 var(--s4);
  max-width: 60ch;
}

/* Date, time and venue as a definition list: the label is data, not
   decoration, so it stays a real dt. */
.agm-doc__rows { margin: 0 0 var(--s5); }

.agm-doc__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--s2);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--hairline);
}

.agm-doc__row dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.agm-doc__row dd {
  margin: 0;
  font-size: 16px;
  color: var(--near-black);
}

.agm-doc__subtitle {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 var(--s2);
}

.agm-doc__agenda {
  margin: 0 0 var(--s5);
  padding-left: var(--s3);
}

.agm-doc__agenda li {
  font-size: 16px;
  padding: 6px 0;
  line-height: 1.5;
}

.agm-doc__notes {
  font-size: 16px;
  margin: 0 0 var(--s5);
  white-space: pre-line;
  max-width: 60ch;
}

.agm-doc__sign {
  border-top: 1px solid var(--hairline);
  padding-top: var(--s3);
}

.agm-doc__sign p {
  margin: 0;
  font-size: 16px;
}

.agm-doc__role {
  color: var(--navy);
  opacity: 0.72;
  font-size: 14px;
}

/* Untyped fields show their label in grey so the Secretary can see what is
   still missing. These never print. */
.is-placeholder { color: var(--navy); opacity: 0.34; }

/* --- Actions ---------------------------------------------------------- */
.agm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid var(--hairline);
}

.agm-actions__status {
  min-height: 22px;
  margin: var(--s2) 0 0;
  font-size: 14px;
}

.agm-note { margin-top: var(--s6); max-width: 72ch; }

@media (max-width: 960px) {
  .agm-doc { position: static; }
  .agm-doc__page { padding: var(--s4); }
}

/* --- Printing the notice ---------------------------------------------
   Everything except the document is removed, and the sheet loses its card
   styling so it prints as a plain page. This is print only: nothing here
   changes how any screen looks. --- */
@media print {
  /* Every rule here is scoped to .agm-page, the class on the body of
     agm-notice.html. Without that scope the layout rules below would
     change how the rest of the site prints, hiding the page head on
     every other page. */

  .agm-page .page-head,
  .agm-page .agm-tool__form,
  .agm-page .agm-actions,
  .agm-page .agm-actions__status,
  .agm-page .agm-note,
  .agm-page #tool-heading { display: none !important; }

  .agm-page .section { padding: 0 !important; }
  .agm-page .shell { max-width: none; padding: 0; }
  .agm-page .cols-2 { display: block; }

  .agm-page .agm-doc { position: static; }

  .agm-page .agm-doc__page {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: none;
  }

  .agm-page .agm-doc__title { font-size: 18pt; }
  .agm-page .agm-doc__lede,
  .agm-page .agm-doc__row dd,
  .agm-page .agm-doc__agenda li,
  .agm-page .agm-doc__notes { font-size: 11pt; }

  /* A page break inside the agenda or across the signature would look
     careless on a formal notice. */
  .agm-page .agm-doc__rows,
  .agm-page .agm-doc__agenda,
  .agm-page .agm-doc__sign { break-inside: avoid; }

  .agm-page .is-placeholder { visibility: hidden; }
}


/* ==========================================================================
   16. FORM SUBMISSION
   Two small additions used by the contact form and the AGM attendance form.
   Both are scoped to class names that appear nowhere else.
   ========================================================================== */

/* The honeypot. Taken out of the layout and out of the accessibility tree,
   so a person never sees it and a screen reader never announces it, but an
   automated submitter still finds it in the markup and fills it in. Not
   display:none, because some submitters skip hidden fields. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Status line under a form. The palette has no red or amber by design, so
   state is carried by weight and by the accent green rather than by
   introducing a colour the rest of the site never uses. */
.form-status {
  min-height: 22px;
  margin: var(--s2) 0 0;
  font-size: 15px;
  color: var(--navy);
  opacity: 0.72;
}

.form-status[data-state="ok"] {
  opacity: 1;
  font-weight: 600;
  color: var(--navy);
  border-left: 3px solid var(--green);
  padding-left: var(--s2);
}

.form-status[data-state="error"] {
  opacity: 1;
  font-weight: 600;
  border-left: 3px solid var(--navy);
  padding-left: var(--s2);
}


/* ==========================================================================
   17. AGM MINUTES DOCUMENT
   Additions to the document preview for the minutes composer. Scoped to
   .agm-doc, which exists only on the two staff tool pages.
   ========================================================================== */

.agm-doc__quorum {
  font-size: 16px;
  font-weight: 600;
  color: var(--near-black);
  margin: 0 0 var(--s5);
}

/* A numbered MIN item: heading, then the note beneath it. */
.agm-doc__min { margin: 0 0 var(--s4); }

.agm-doc__min-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin: 0 0 6px;
}

.agm-doc__min-body {
  font-size: 16px;
  margin: 0;
  white-space: pre-line;
  max-width: 62ch;
}

/* Resolutions table. Same hairline treatment as the land table, so the
   document reads as part of the same family. */
.agm-doc__res {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin: 0 0 var(--s5);
}

.agm-doc__res th,
.agm-doc__res td {
  padding: var(--s2) var(--s2) var(--s2) 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  font-size: 15px;
}

.agm-doc__res th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
}

.agm-doc__res td:first-child,
.agm-doc__res th:first-child { width: 34px; }

.agm-doc__next {
  font-size: 16px;
  margin: 0 0 var(--s5);
}

/* A narrow phone cannot hold a five column table. Rather than let it push
   the page sideways, it scrolls inside its own box. */
@media (max-width: 720px) {
  .agm-doc__res { display: block; overflow-x: auto; white-space: nowrap; }
}

@media print {
  .agm-page .agm-doc__min-title { font-size: 11pt; }
  .agm-page .agm-doc__min-body,
  .agm-page .agm-doc__quorum,
  .agm-page .agm-doc__next { font-size: 11pt; }
  .agm-page .agm-doc__res { display: table; white-space: normal; font-size: 10pt; }
  .agm-page .agm-doc__res th,
  .agm-page .agm-doc__res td { font-size: 10pt; padding: 4pt 6pt 4pt 0; }
  .agm-page .agm-doc__min { break-inside: avoid; }
}


/* ==========================================================================
   18. FINANCIAL TABLE, STACKED VIEW
   The land table hides its header row on small screens and stacks each row
   into a block. That reads fine when the columns are self-explanatory, but
   a year-on-year table would show two bare figures with nothing to say
   which year is which. These cells carry the year as a data-label and print
   it in front of the number once the header is gone. Scoped to .fin-table,
   which appears on one table on one page.
   ========================================================================== */

@media (max-width: 620px) {
  .fin-table td[data-label]::before {
    content: attr(data-label) " ";
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--navy);
    opacity: 0.7;
    margin-right: 6px;
  }
}


/* ==========================================================================
   VERSION 2 ADJUSTMENTS TO THE CARRIED-OVER TOOLS
   The planner, chips and forms keep their behaviour; these bring their
   shapes in line with the rounder, bolder language of the refresh.
   ========================================================================== */

.tool { border-radius: var(--radius-lg); padding: var(--s5); }
.tool__title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.planner__figure { background: var(--page-bg); border-top: 0; border-radius: var(--radius); padding: var(--s3); }
.planner__amount { font-weight: 800; }
.planner { background: var(--page-bg); border: 0; }
.planner .planner__figure { background: var(--white); }

.chip { border-radius: 999px; padding: 12px 20px; font-weight: 600; }
.chips { margin-bottom: var(--s4); }

.field input, .field select, .field textarea { border-radius: var(--radius-sm); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; box-shadow: inset 0 0 0 1px var(--navy); }

.form-card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: var(--s5); }

.agm-doc__page { border-radius: var(--radius-lg); }

.dial {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--navy);
  color: var(--green);
  border-radius: var(--radius);
  padding: 12px 22px;
  margin-top: var(--s1);
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s10); }
  .hero__media { max-width: 640px; }
  .badge { left: var(--s3); }

  .nav__toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    padding: var(--s2) 0 var(--s4);
    z-index: 2;
    display: block;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 280ms var(--ease), opacity 280ms var(--ease), visibility 0s linear 280ms;
  }
  .nav[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 280ms var(--ease), opacity 280ms var(--ease), visibility 0s;
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  .nav .nav__link {
    color: var(--white);
    border-radius: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--on-navy-rule);
    font-size: 18px;
  }
  .nav .nav__link:hover { background: transparent; color: var(--green); }
  .nav .nav__link[aria-current="page"] { background: transparent; color: var(--green); }
  .nav a:focus-visible { outline-color: var(--green); }
  .header__controls { margin-left: auto; }
}

@media (max-width: 960px) {
  :root { --section-pad: var(--s10); }

  .cols-2, .cols-3, .section-head--split, .accordion__split,
  .offer__row, .cta__grid, .pledge, .land { grid-template-columns: minmax(0, 1fr); }
  .cols-2, .offer__row { gap: var(--s6); }
  .offer__row:nth-child(even) .offer__media { order: 0; }
  .offer { gap: var(--s10); }

  .pledge__half + .pledge__half { border-left: 0; border-top: 1px solid var(--hairline); }

  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
  .figures__card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure:nth-child(3) { border-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--hairline); }

  .kpis, .places { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--s6); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --section-pad: var(--s8); --gutter: 20px; }
  body { font-size: 17px; }

  .header__inner { gap: var(--s2); min-height: 72px; }
  .logo__lockup { width: 120px; }
  .nav__toggle-text { display: none; }
  .nav__toggle { padding: 10px; min-width: 44px; min-height: 44px; justify-content: center; }
  .header__controls { gap: var(--s1); }
  .lang__btn { font-size: 12px; padding: 10px 9px; min-height: 40px; }

  .hero { padding-block: var(--s8) calc(var(--s16) + var(--s2)); }
  .hero__actions .btn { width: 100%; }
  .badge { position: relative; left: auto; bottom: auto; margin: calc(var(--s4) * -1) var(--s2) 0; }

  .reasons { grid-template-columns: minmax(0, 1fr); }
  .figure { padding: var(--s3) var(--s2); }
  .figures__source { text-align: left; }

  .page-head { padding-block: var(--s8) var(--s6); }

  .accordion__trigger { padding: 20px var(--s2); gap: var(--s2); }
  .accordion__panel-inner,
  .accordion:not(.accordion--numbered) .accordion__panel-inner { padding: 0 var(--s2) var(--s3); }
  .accordion__icon { width: 34px; height: 34px; }

  .card, .tool, .form-card, .land__card, .org { padding: var(--s3); }
  .planner__fields, .planner__result { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .chip { font-size: 14px; padding: 12px 16px; min-height: 44px; }

  .team-grid--large, .team-grid--small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .person__body { padding: 14px 14px 16px; }
  .person__name { font-size: 16px; }

  .land-table thead { display: none; }
  .land-table tr { display: block; padding: var(--s2) var(--s2); border-bottom: 1px solid var(--hairline); }
  .land-table td { display: block; border: 0; padding: 2px 0; text-align: left !important; }
  .fin-table td[data-label]::before {
    content: attr(data-label) " ";
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    opacity: 0.6;
    margin-right: 6px;
  }

  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .related { margin-top: var(--s8); }
  .related__label { width: 100%; }
}

@media print {
  .header, .footer, .nav, .frame, .poster, .skip-link, .watermark, .band, .cta { display: none !important; }
  body { background: var(--white); font-size: 12pt; }
  .page-head, .hero { background: none; color: var(--near-black); padding: 0 0 12pt; }
  .page-head__title, .page-head__intro, .kicker--on-dark { color: var(--near-black); }
  .html-js .accordion__panel { height: auto !important; opacity: 1 !important; visibility: visible !important; }
  .can-reveal .reveal { opacity: 1 !important; transform: none !important; }
}

.social-inline { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); }
