/* ---------- CES site header ---------- */
:root {
  --ces-ink: #101c16;
  --ces-green: #1d4e3a;
  --ces-leaf: #7a8f3a;
  --ces-paper: #f6f8f3;
}

#header {
  position: relative;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(122, 143, 58, .14), transparent 55%),
    linear-gradient(135deg, #ffffff 0%, var(--ces-paper) 55%, #e6efe7 100%);
  border-bottom: 4px solid var(--ces-green);
  box-shadow: 0 2px 10px rgba(16, 28, 22, .10);
}
/* thin leaf-coloured accent under the green line */
#header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 4px;
  background: linear-gradient(90deg, var(--ces-leaf), transparent 70%);
  pointer-events: none;
}

#header .region-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}
/* hide the empty page-title <h1> that sits in the header region */
#header .region-header h1:empty,
#header .block-page-title-block:empty { display: none; }
#header .block-page-title-block { margin: 0; }

.site-branding {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
}
.site-branding__logo {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
  transition: transform .25s ease;
}
.site-branding__logo:hover,
.site-branding__logo:focus { transform: scale(1.04) rotate(-1deg); }
.site-branding__logo img {
  display: block;
  height: 96px;
  width: auto;
}

.site-branding__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 18px;
  border-left: 3px solid var(--ces-leaf);
}
.site-branding__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  color: var(--ces-ink);
  text-decoration: none;
}
.site-branding__name:hover,
.site-branding__name:focus { color: var(--ces-green); }
.site-branding__sub {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(.72rem, 1.3vw, .95rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--ces-green);
}
.site-branding__slogan {
  font-size: .85rem;
  font-style: italic;
  color: #55635a;
}

/* tidy gap between header and the menu bar */
#navigation { margin-top: 0; }

@media (max-width: 640px) {
  #header .region-header { padding: 10px 14px; }
  .site-branding { gap: 12px; }
  .site-branding__logo img { height: 64px; }
  .site-branding__text { padding-left: 12px; }
  .site-branding__sub { letter-spacing: .12em; }
}
