/* ==========================================================================
   EPNG — european petroleum negotiators group
   Shared stylesheet.  Edit this one file to restyle the whole site.
   Brand colour (green): #129255   Body text (grey): #555 / #666
   ========================================================================== */

:root {
  --green:       #129255;
  --green-dark:  #0c6e3f;
  --green-tint:  #f0f7f2;
  --ink:         #444444;
  --grey:        #666666;
  --grey-light:  #8a8a8a;
  --line:        #e2e2e2;
  --bg:          #ffffff;
  --maxwidth:    980px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Verdana, Geneva, Tahoma, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

/* ---- Layout shell ------------------------------------------------------- */
.wrap { max-width: var(--maxwidth); margin: 0 auto; padding: 0 22px; }

/* ---- Header / brand ----------------------------------------------------- */
.site-header { padding: 26px 0 0; }
.brand { display: block; max-width: 470px; margin: 0 auto; }
.brand img, .brand svg { display: block; width: 100%; height: auto; }

/* ---- Navigation --------------------------------------------------------- */
.nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 22px;
}
.nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 4px;
}
.nav a {
  display: block;
  padding: 13px 15px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grey);
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.nav a:hover { color: var(--green); }
.nav a.active { color: var(--green); border-bottom-color: var(--green); }

/* hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  width: 100%;
  background: none;
  border: 0;
  padding: 14px 4px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  cursor: pointer;
  text-align: center;
}

/* ---- Page body ---------------------------------------------------------- */
main { padding: 38px 0 10px; }

h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--green);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
h1 + .sub { color: var(--grey-light); margin: 0 0 26px; font-size: 14px; }

h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 19px;
  color: var(--green-dark);
  margin: 34px 0 10px;
}

p { margin: 0 0 16px; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }

.lead { font-size: 16.5px; color: var(--grey); }

/* two-column intro (text + image) */
.split { display: flex; gap: 38px; align-items: flex-start; }
.split .col-text { flex: 1 1 auto; }
.split .col-img  { flex: 0 0 300px; max-width: 300px; }
.split .col-img img { width: 100%; height: auto; display: block; border: 1px solid var(--line); }

/* ---- Cards / event boxes ------------------------------------------------ */
.card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  background: var(--green-tint);
  padding: 22px 26px;
  margin: 0 0 22px;
}
.card .when { font-size: 22px; font-weight: 700; color: var(--green-dark); font-family: Arial, sans-serif; }
.card .host { font-size: 15px; color: var(--grey); margin-top: 4px; }

/* ---- Tables (programme, members) --------------------------------------- */
table.data { width: 100%; border-collapse: collapse; margin: 8px 0 24px; }
table.data th, table.data td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
table.data th {
  background: var(--green);
  color: #fff;
  font-family: Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}
table.data tr:nth-child(even) td { background: #fafbfa; }
table.data td.year { color: var(--grey-light); white-space: nowrap; }
table.data td.num { color: var(--grey-light); white-space: nowrap; font-size: 13px; }
table.data.events th { position: sticky; top: 0; }
.vacancy { color: var(--grey-light); font-style: italic; }

/* ---- Member companies grid --------------------------------------------- */
.members {
  columns: 3 200px;
  column-gap: 30px;
  margin: 10px 0 20px;
}
.members li {
  list-style: none;
  padding: 5px 0;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
  break-inside: avoid;
}
.members { padding-left: 0; }

/* ---- Committee grid ----------------------------------------------------- */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 26px;
  margin: 14px 0 28px;
  padding: 0;
}
.people li { list-style: none; text-align: center; }
.people img {
  width: 120px; height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--green-tint);
  margin-bottom: 10px;
}
.people .name { font-weight: 700; color: var(--ink); font-size: 14.5px; display: block; }
.people .role { color: var(--grey-light); font-size: 13px; }
.people .initials {
  width: 120px; height: 120px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--green-tint);
  border: 3px solid #dcebe0;
  color: var(--green);
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 38px;
  display: flex; align-items: center; justify-content: center;
}

.honorary { background: var(--green-tint); border: 1px solid var(--line); padding: 18px 24px; }
.honorary li { list-style: none; }
.honorary ul { padding-left: 0; margin: 0; }

/* ---- Contact ------------------------------------------------------------ */
.contact-box { border: 1px solid var(--line); border-top: 4px solid var(--green); padding: 24px 28px; max-width: 460px; }
.contact-box .nm { font-weight: 700; color: var(--green-dark); font-size: 16px; }

.quote {
  border-left: 4px solid var(--green);
  padding: 4px 0 4px 20px;
  margin: 26px 0;
  color: var(--grey);
  font-style: italic;
}

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 50px;
  padding: 26px 0 40px;
  text-align: center;
  font-size: 12.5px;
  color: var(--grey-light);
}
.site-footer a { color: var(--grey); }

/* ==========================================================================
   MOBILE
   ========================================================================== */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-inner.open { max-height: 600px; }
  .nav a { text-align: center; border-bottom: 1px solid var(--line); padding: 15px; }
  .nav a.active { border-bottom-color: var(--line); background: var(--green-tint); }

  .split { flex-direction: column; gap: 24px; }
  .split .col-img { flex-basis: auto; max-width: 100%; align-self: center; }
  .members { columns: 1; }
  h1 { font-size: 25px; }
  body { font-size: 15.5px; }
}
