/* ==========================================================================
   Ghanergy Power Limited — Website Stylesheet
   Derived from: Ghanergy Document Style & Format Standard v2.2 (August 2026)
   All colours, typography and rules below map directly to that standard.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Brand tokens — exact values from the Ghanergy palette
   -------------------------------------------------------------------------- */
:root {
  /* Greens */
  --gh-green-dark:   #1B5E20;  /* H1, table header rows, primary brand */
  --gh-green-mid:    #2E8B2A;  /* H2, sub-header rows */
  --gh-green-light:  #4CB848;  /* bullet markers, header rule, accents */
  --gh-green-pale:   #F4FAF4;  /* alternating table rows */

  /* Golds */
  --gh-gold:         #E0A345;  /* subtitle rule, callout borders, footer rule */
  --gh-gold-dark:    #7A5010;  /* callout titles, confidential label */
  --gh-gold-pale:    #FDF2DC;  /* callout background */

  /* Neutrals */
  --gh-black:        #1A1A1A;  /* body text */
  --gh-grey-mid:     #4A4A4A;  /* H3, footer text, secondary body */
  --gh-grey-light:   #D0D0D0;  /* borders */
  --gh-white:        #FFFFFF;

  /* Web-only derived surfaces (tints of palette colours, no new hues) */
  --gh-surface:      #F4FAF4;  /* page background = Pale Green */
  --gh-rule:         #E4E9E4;  /* hairline dividers */

  /* Typography — Arial exclusively, per standard §4.1 */
  --gh-font: Arial, "Helvetica Neue", Helvetica, sans-serif;

  /* Layout */
  --gh-measure: 1120px;
  --gh-radius: 18px;
  --gh-shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
  --gh-shadow-lg: 0 24px 64px rgba(26, 26, 26, 0.28);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--gh-font);
  background: var(--gh-surface);
  color: var(--gh-black);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--gh-green-dark); }

/* Visible keyboard focus — required for accessible institutional use */
/* Focus ring uses Dark Gold, not Gold. Gold (#E0A345) measures about 2.2:1
   against the pale green page background — below the 3:1 WCAG 2.2 minimum for
   non-text indicators. Dark Gold (#7A5010) is about 7:1. Both are palette
   colours, so the brand is unchanged. */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gh-gold-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

.gh-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gh-green-dark);
  color: var(--gh-white);
  padding: 12px 20px;
  z-index: 10000;
  text-decoration: none;
  font-weight: 700;
}
.gh-skip-link:focus { left: 0; }

.gh-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Typography — standard §4.2 heading hierarchy
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--gh-font);
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

h1 { font-size: clamp(30px, 4.4vw, 44px); color: var(--gh-green-dark); }
h2 { font-size: clamp(22px, 2.6vw, 28px); color: var(--gh-green-mid); margin-top: 0; }
h3 { font-size: clamp(17px, 1.7vw, 19px); color: var(--gh-grey-mid); }
h4 { font-size: 16px; color: var(--gh-grey-mid); }

p { margin: 0 0 16px 0; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--gh-black); }

.gh-lead {
  font-size: clamp(17px, 1.9vw, 19px);
  line-height: 1.75;
  color: var(--gh-grey-mid);
  max-width: 920px;
  margin: 0 auto;
}

.gh-muted { color: var(--gh-grey-mid); }
.gh-small { font-size: 15px; line-height: 1.8; color: var(--gh-grey-mid); }

/* Gold rule beneath page titles — standard §8, cover subtitle rule */
.gh-rule-gold {
  width: 92px;
  height: 4px;
  background: var(--gh-gold);
  border: 0;
  margin: 0 auto 28px auto;
}

/* --------------------------------------------------------------------------
   4. Lists — standard §9.1 green square bullets (#4CB848)
   -------------------------------------------------------------------------- */
.gh-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 16px 0;
}
.gh-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  line-height: 1.8;
}
.gh-list li::before {
  content: "\25AA";               /* ▪ small filled square */
  position: absolute;
  left: 4px;
  top: -1px;
  color: var(--gh-green-light);
  font-size: 18px;
  line-height: 1.75;
}
.gh-list li:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.gh-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 3vw, 40px);
  background: var(--gh-white);
  /* Light-green rule mirrors the running-header border, standard §7.1 */
  border-bottom: 3px solid var(--gh-green-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Brand lockup: the Ghanergy letterhead banner, then a divider, then the
   collaborator mark. The label keeps the relationship explicit — co-branding a
   masthead without one reads as joint ownership of the site. */
.gh-nav__brands {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 20px);
  min-width: 0;
}
.gh-nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}
.gh-nav__logo {
  height: clamp(46px, 6vw, 76px);
  width: auto;
  display: block;
  flex-shrink: 0;
}

.gh-nav__divider {
  width: 1px;
  align-self: stretch;
  min-height: 42px;
  background: var(--gh-grey-light);
  flex-shrink: 0;
}

.gh-nav__partner { display: flex; align-items: center; text-decoration: none; }
.gh-nav__partner-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gh-grey-mid);
  margin-bottom: 5px;
  white-space: nowrap;
}
.gh-nav__partner-logo {
  height: clamp(30px, 3.4vw, 42px);
  width: auto;
  display: block;
}

/* Below 520px the lockup crowds the menu button — drop the label first,
   then the collaborator mark, so the Ghanergy brand always survives. */
@media (max-width: 620px) { .gh-nav__partner-label { display: none; } }
@media (max-width: 460px) {
  .gh-nav__divider, .gh-nav__partner { display: none; }
}

.gh-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  flex-wrap: wrap;
}

.gh-nav__links a {
  text-decoration: none;
  color: var(--gh-green-dark);
  font-weight: 600;
  font-size: 15px;
  padding-bottom: 3px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.gh-nav__links a:hover { border-bottom-color: var(--gh-green-light); }

/* Drafting note attached to a proposed clause — visibly not part of the clause
   itself, so a reader never mistakes a proposal for a settled term. */
.gh-clause__note {
  display: block;
  margin-top: 10px;
  padding: 10px 14px;
  border-left: 3px solid var(--gh-gold);
  background: var(--gh-gold-pale);
  color: var(--gh-gold-dark);
  font-size: 15px;
  line-height: 1.6;
}

/* Restricted items — a visitor should know a credential prompt is coming
   rather than meeting an unexplained browser password box. */
/* Padlock on the password-protected items. Sized in em so it tracks the nav
   font, and stroked in currentColor so it follows the link on hover. */
.gh-nav__lock {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 5px;
  vertical-align: -0.09em;
  fill: none;
  stroke: var(--gh-gold-dark);
  /* 2.6 on a 24 viewBox is ~1.3px at nav size — thinner strokes disappear
     on non-retina screens. */
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gh-nav__restricted:hover .gh-nav__lock { stroke: var(--gh-green-dark); }

/* Active item: dark-green text with a gold rule. Gold is never used as
   text colour — it does not meet contrast requirements. */
.gh-nav__links a[aria-current="page"] {
  font-weight: 700;
  border-bottom-color: var(--gh-gold);
}

.gh-nav__toggle {
  display: none;
  background: var(--gh-white);
  border: 2px solid var(--gh-green-dark);
  color: var(--gh-green-dark);
  border-radius: 8px;
  padding: 9px 12px;
  font: 700 14px/1 var(--gh-font);
  cursor: pointer;
}

@media (max-width: 900px) {
  .gh-nav { flex-wrap: wrap; }
  .gh-nav__toggle { display: block; }
  .gh-nav__links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    padding-top: 8px;
  }
  .gh-nav__links.is-open { display: flex; }
  .gh-nav__links a {
    width: 100%;
    padding: 13px 4px;
    border-bottom: 1px solid var(--gh-rule);
    font-size: 16px;
  }
  .gh-nav__links a[aria-current="page"] {
    border-bottom-color: var(--gh-gold);
    border-left: 4px solid var(--gh-gold);
    padding-left: 12px;
  }
}

/* --------------------------------------------------------------------------
   6. Layout
   -------------------------------------------------------------------------- */
.gh-main {
  max-width: var(--gh-measure);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(16px, 3vw, 24px);
}
.gh-main--narrow { max-width: 1000px; }

.gh-hero { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.gh-hero h1 { margin-bottom: 18px; }

.gh-section { margin-bottom: 28px; }

/* Content card */
.gh-panel {
  background: var(--gh-white);
  padding: clamp(22px, 3.4vw, 36px);
  border-radius: var(--gh-radius);
  box-shadow: var(--gh-shadow);
  margin-bottom: 28px;
}

/* Dark brand panel — Dark Green, the primary brand colour */
.gh-panel--dark {
  background: var(--gh-green-dark);
  color: var(--gh-white);
  box-shadow: none;
}
.gh-panel--dark h2,
.gh-panel--dark h3 { color: var(--gh-white); }
.gh-panel--dark p { color: var(--gh-green-pale); }
.gh-panel--dark .gh-list li::before { color: var(--gh-green-light); }
/* Plain links inside a dark panel go white — but NOT buttons, which carry
   their own background. Without :not(.gh-btn) this rule (0,1,1) outranks
   .gh-btn--onDark (0,1,0) and renders white text on a white button. */
.gh-panel--dark a:not(.gh-btn) { color: var(--gh-white); }

.gh-panel--center { text-align: center; }

/* Callout box — standard §6, exact specification */
.gh-callout {
  background: var(--gh-gold-pale);
  border-top: 2px solid var(--gh-gold);
  border-left: 2px solid var(--gh-gold);
  border-bottom: 1px solid var(--gh-gold);
  border-right: 1px solid var(--gh-gold);
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 28px;
}
.gh-callout__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gh-gold-dark);
  margin: 0 0 8px 0;
}
.gh-callout p { color: var(--gh-grey-mid); font-size: 16px; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   7. Grids
   -------------------------------------------------------------------------- */
.gh-grid {
  display: grid;
  gap: 22px;
  margin-bottom: 28px;
}
.gh-grid--stats  { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.gh-grid--cards  { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.gh-grid--people { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }

/* Stat tile — gold top accent */
.gh-stat {
  background: var(--gh-white);
  padding: 24px;
  border-radius: var(--gh-radius);
  border-top: 4px solid var(--gh-gold);
  box-shadow: var(--gh-shadow);
}
.gh-stat__value {
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 700;
  color: var(--gh-green-dark);
  line-height: 1.2;
}
.gh-stat__label {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gh-grey-mid);
}

/* Feature card used inside panels */
.gh-feature h3 { color: var(--gh-green-dark); margin-bottom: 8px; }
.gh-feature p { font-size: 16px; line-height: 1.75; color: var(--gh-grey-mid); margin-bottom: 0; }

/* Standalone process card with gold accent */
.gh-card {
  background: var(--gh-white);
  padding: 28px;
  border-radius: var(--gh-radius);
  border-top: 4px solid var(--gh-gold);
  box-shadow: var(--gh-shadow);
}
.gh-card h3 { color: var(--gh-green-dark); margin-top: 0; }
.gh-card p { font-size: 16px; line-height: 1.75; color: var(--gh-grey-mid); margin-bottom: 0; }

/* People */
.gh-person {
  background: var(--gh-white);
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: 20px;
  box-shadow: var(--gh-shadow);
  text-align: center;
}
.gh-person__photo {
  width: clamp(104px, 12vw, 140px);
  height: clamp(104px, 12vw, 140px);
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gh-gold);
  display: block;
  margin: 0 auto 18px auto;
}
.gh-person__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--gh-green-dark);
  margin: 0 0 2px 0;
  line-height: 1.3;
}
.gh-person__role {
  font-size: 15px;
  color: var(--gh-gold-dark);
  font-weight: 700;
  margin: 4px 0 14px 0;
}
.gh-person__bio { font-size: 15px; line-height: 1.7; color: var(--gh-grey-mid); }

/* --------------------------------------------------------------------------
   7b. Process flow diagram
   -------------------------------------------------------------------------- */
.gh-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 26px 0 0 0;
}
.gh-flow__step {
  position: relative;
  background: var(--gh-green-pale);
  border-top: 3px solid var(--gh-gold);
  border-radius: 12px;
  padding: 18px 12px 16px;
  text-align: center;
}
.gh-flow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gh-green-dark);
  color: var(--gh-white);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.gh-flow__icon { display: block; margin: 0 auto 10px auto; width: 38px; height: 38px; }
.gh-flow__icon path,
.gh-flow__icon circle,
.gh-flow__icon rect,
.gh-flow__icon line,
.gh-flow__icon polyline,
.gh-flow__icon polygon {
  fill: none;
  stroke: var(--gh-green-dark);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gh-flow__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gh-green-dark);
  line-height: 1.3;
  margin-bottom: 5px;
}
.gh-flow__note { font-size: 12.5px; line-height: 1.45; color: var(--gh-grey-mid); }

/* Gold chevron between steps — only while the row is unbroken */
@media (min-width: 1000px) {
  .gh-flow__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -12px;
    width: 9px;
    height: 9px;
    border-top: 2.5px solid var(--gh-gold);
    border-right: 2.5px solid var(--gh-gold);
    transform: translateY(-50%) rotate(45deg);
  }
}
@media (max-width: 999px) { .gh-flow { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .gh-flow { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* Outputs strip beneath the flow */
.gh-flow__outputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gh-rule);
}
.gh-flow__output { font-size: 13.5px; line-height: 1.5; color: var(--gh-grey-mid); }
.gh-flow__output strong { display: block; color: var(--gh-gold-dark); font-size: 13px; }

/* --------------------------------------------------------------------------
   7c. Mass balance — inputs to outputs
   -------------------------------------------------------------------------- */
.gh-balance {
  display: grid;
  grid-template-columns: 1fr auto 1.35fr;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}
.gh-balance__side { display: grid; gap: 12px; }

.gh-balance__card {
  background: var(--gh-white);
  border: 1px solid var(--gh-grey-light);
  border-left: 4px solid var(--gh-gold);
  border-radius: 10px;
  padding: 14px 16px;
}
.gh-balance__card--in {
  background: var(--gh-green-dark);
  border-color: var(--gh-green-dark);
  border-left-color: var(--gh-gold);
}
.gh-balance__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gh-gold-dark);
  margin-bottom: 5px;
}
.gh-balance__card--in .gh-balance__label { color: var(--gh-gold); }
.gh-balance__value {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  color: var(--gh-green-dark);
  line-height: 1.25;
}
.gh-balance__card--in .gh-balance__value { color: var(--gh-white); }
.gh-balance__sub { font-size: 12.5px; line-height: 1.5; color: var(--gh-grey-mid); margin-top: 4px; }
.gh-balance__card--in .gh-balance__sub { color: var(--gh-green-pale); }

.gh-balance__arrow {
  font-size: 26px;
  line-height: 1;
  color: var(--gh-gold);
  text-align: center;
}
.gh-balance__note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gh-rule);
  font-size: 12.5px;
  color: var(--gh-grey-mid);
}

@media (max-width: 780px) {
  .gh-balance { grid-template-columns: 1fr; gap: 12px; }
  .gh-balance__arrow { transform: rotate(90deg); }
}

/* --------------------------------------------------------------------------
   7d. Figures — photographs with caption and attribution
   -------------------------------------------------------------------------- */
.gh-figure { margin: 24px 0 0 0; }
.gh-figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  border: 1px solid var(--gh-grey-light);
}
.gh-figure figcaption {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--gh-grey-mid);
  margin-top: 8px;
}
.gh-figure figcaption strong { color: var(--gh-gold-dark); }
.gh-figure__credit { display: block; font-size: 11.5px; margin-top: 3px; }
.gh-figure__credit a { color: var(--gh-grey-mid); }

.gh-figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.gh-figure-grid .gh-figure { margin-top: 0; }

/* --------------------------------------------------------------------------
   7e. Pull quote
   -------------------------------------------------------------------------- */
.gh-quote {
  margin: 26px 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--gh-gold);
}
.gh-quote p {
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.7;
  color: var(--gh-green-dark);
  font-style: italic;
  margin-bottom: 12px;
}
.gh-quote cite {
  display: block;
  font-style: normal;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gh-gold-dark);
}

/* --------------------------------------------------------------------------
   7f. Dataroom — document index and legal clauses
   -------------------------------------------------------------------------- */
.gh-docs { display: grid; gap: 10px; margin-top: 20px; }

.gh-doc {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 16px;
  background: var(--gh-green-pale);
  border-left: 3px solid var(--gh-gold);
  border-radius: 8px;
}
.gh-doc__ref {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--gh-gold-dark);
  flex-shrink: 0;
  min-width: 42px;
}
.gh-doc__name { font-size: 15px; color: var(--gh-black); font-weight: 700; }
.gh-doc__meta { font-size: 12.5px; color: var(--gh-grey-mid); margin-top: 2px; }
.gh-doc__status {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.gh-doc__status--available { background: var(--gh-green-dark); color: var(--gh-white); }
.gh-doc__status--pending   { background: var(--gh-gold-pale); color: var(--gh-gold-dark); }

/* Numbered legal clauses */
.gh-clauses { counter-reset: clause; margin-top: 8px; }
.gh-clause { counter-increment: clause; margin-bottom: 20px; }
.gh-clause > h3 {
  font-size: 16px;
  color: var(--gh-green-dark);
  margin-bottom: 6px;
}
.gh-clause > h3::before {
  content: counter(clause) ".";
  color: var(--gh-gold-dark);
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}
.gh-clause p { font-size: 15px; line-height: 1.7; color: var(--gh-grey-mid); }

/* Draft banner — must be impossible to mistake for settled text */
.gh-draft {
  background: var(--gh-gold-pale);
  border: 2px solid var(--gh-gold);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 28px;
}
.gh-draft__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gh-gold-dark);
  margin-bottom: 8px;
}
.gh-draft p { font-size: 14.5px; line-height: 1.65; color: var(--gh-grey-mid); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */
.gh-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.gh-btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--gh-font);
  text-align: center;
}

.gh-btn--primary {
  background: var(--gh-green-dark);
  color: var(--gh-white);
  border-color: var(--gh-green-dark);
}
.gh-btn--primary:hover { background: var(--gh-green-mid); border-color: var(--gh-green-mid); }

/* Secondary uses the callout treatment: pale gold fill, gold border,
   dark gold text — accessible, unlike white-on-gold. */
.gh-btn--secondary {
  background: var(--gh-gold-pale);
  color: var(--gh-gold-dark);
  border-color: var(--gh-gold);
}
.gh-btn--secondary:hover { background: #F9E7C6; }

.gh-btn--onDark {
  background: var(--gh-white);
  color: var(--gh-green-dark);
  border-color: var(--gh-white);
}
.gh-btn--onDark:hover { background: var(--gh-green-pale); }

/* --------------------------------------------------------------------------
   9. Data tables — standard §5.1
   -------------------------------------------------------------------------- */
.gh-table-wrap { overflow-x: auto; margin-bottom: 28px; }

.gh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--gh-white);
}
.gh-table th {
  background: var(--gh-green-dark);
  color: var(--gh-white);
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--gh-green-dark);
}
.gh-table td {
  padding: 12px 14px;
  border: 1px solid var(--gh-grey-light);
  color: var(--gh-black);
  vertical-align: top;
}
.gh-table tbody tr:nth-child(odd)  { background: var(--gh-green-pale); }
.gh-table tbody tr:nth-child(even) { background: var(--gh-white); }
.gh-table td:first-child { font-weight: 700; }

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.gh-footer {
  background: var(--gh-white);
  /* Gold top rule mirrors the running-footer border, standard §7.2 */
  border-top: 3px solid var(--gh-gold);
  padding: 20px clamp(16px, 3vw, 24px) 22px;
  text-align: center;
  color: var(--gh-grey-mid);
  font-size: 12.5px;
  line-height: 1.5;
}
/* Tight stacking — the base 16px paragraph margin is far too loose here.
   Note the `auto` on the horizontal margins: this rule is (0,1,1) and would
   otherwise override the `margin: … auto` on any width-constrained child,
   pinning it to the left instead of centring it. */
.gh-footer p {
  margin: 0 auto 4px auto;
  max-width: var(--gh-measure);
}
.gh-footer p:last-child { margin-bottom: 0; }

.gh-footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  max-width: var(--gh-measure);
  margin: 0 auto 10px auto;
}
.gh-footer__links a {
  color: var(--gh-green-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}
.gh-footer__links a:hover { text-decoration: underline; }

.gh-footer__org { color: var(--gh-black); }
.gh-footer__date { font-weight: 700; color: var(--gh-gold-dark); letter-spacing: 0.03em; }

/* Selector includes the element so it outranks `.gh-footer p` (0,1,1). */
.gh-footer p.gh-footer__legal {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--gh-grey-mid);
  max-width: 780px;
  margin: 9px auto 7px auto;
  text-wrap: balance;   /* even line lengths, so the block reads as centred */
}

/* --------------------------------------------------------------------------
   12. Print
   -------------------------------------------------------------------------- */
@media print {
  body { background: var(--gh-white); font-size: 10pt; }
  .gh-nav, .gh-actions, .gh-skip-link { display: none !important; }
  .gh-panel, .gh-stat, .gh-card, .gh-person { box-shadow: none; border: 1px solid var(--gh-grey-light); }
  .gh-panel--dark { background: var(--gh-white); color: var(--gh-black); border: 1px solid var(--gh-green-dark); }
  .gh-panel--dark h2, .gh-panel--dark p { color: var(--gh-black); }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: var(--gh-grey-mid); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}


/* --------------------------------------------------------------------------
   Utility classes
   Promoted from repeated inline style attributes so presentation lives in the
   stylesheet, per the house standard.
   -------------------------------------------------------------------------- */
.gh-panel--bare { padding-top: 0; padding-bottom: 0; background: none; box-shadow: none; }
.gh-h2--centred { text-align: center; margin-bottom: 24px; }

.gh-actions--left { justify-content: flex-start; }
.gh-flush { margin-bottom: 0; }
.gh-flush-top { margin-top: 0; }
.gh-note-basis {
  margin-top: 12px;
  margin-bottom: 0;
}
.gh-note-rule {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--gh-rule);
  margin-bottom: 0;
}
.gh-note-italic { font-style: italic; margin-bottom: 18px; }
.gh-lead-narrow { max-width: 760px; margin: 20px auto 0 auto; }
.gh-measure-640 { max-width: 640px; margin: 0 auto; }
.gh-spaced { margin-bottom: 26px; }
.gh-h3--green { color: var(--gh-green-dark); margin-top: 26px; }
.gh-rule-gold--short { width: 48px; height: 2px; margin-bottom: 20px; }
.gh-sign-name { font-weight: 700; color: var(--gh-green-dark); margin-bottom: 4px; }
.gh-sign-note { margin-top: 14px; color: var(--gh-grey-mid); }
.gh-mt-12 { margin-top: 12px; }
.gh-mt-24 { margin-top: 24px; }
.gh-mb-6 { margin-bottom: 6px; }
.gh-mb-18 { margin-bottom: 18px; }
.gh-mb-36 { margin-bottom: 36px; }
.gh-note-18 { margin-top: 18px; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Measure — line length on running prose
   --------------------------------------------------------------------------
   Body copy is capped at roughly 72 characters. On a wide screen the panel
   is about 1,000px, which at 17px Arial runs to about 120 characters a line;
   past about 75 the eye starts losing its place on the return sweep and the
   text reads as a wall.

   Prose only. Tables, card grids, the process flow, the balance panel and the
   stat row keep the full panel width — their own columns already do the job a
   measure does, and narrowing them would break the layout.

   Text stays left-aligned, ragged right. It is not justified: browsers break
   lines greedily rather than optimising the paragraph, so justification buys
   a straight right edge at the cost of uneven word spacing, and WCAG 2.1
   SC 1.4.8 asks that text is not justified. See Style Standard v2.2 §4.4.
   -------------------------------------------------------------------------- */
:root { --gh-prose: 620px; }

.gh-panel > p,
.gh-panel > .gh-list,
.gh-clause > p,
.gh-figure figcaption {
  max-width: var(--gh-prose);
}

.gh-quote p { max-width: calc(var(--gh-prose) - 40px); }

/* A lead paragraph carries slightly more width, so the size hierarchy still
   reads when it sits directly above body copy. */
.gh-lead,
.gh-panel > p.gh-lead { max-width: 720px; }

/* Centred panels: keep the narrowed prose centred rather than left-hugging. */
.gh-panel--center > p,
.gh-panel--center > .gh-list,
.gh-hero > p {
  margin-left: auto;
  margin-right: auto;
}
