/* =====================================================================
   ECN – one stylesheet for the whole site  (design A: calm & civic)
   Replaces post-page.css and photos.css.
   Colours are set once here; change a value and the whole site follows.
   ===================================================================== */

:root {
  --navy: #0F2D52;         /* header, footer, headings */
  --navy-dark: #0B2240;
  --navy-soft: #E8EEF6;
  --box-header: #E3E9F0;   /* heading bar of a box: the box colour, a little darker */
  --link: #0F4C8A;
  --green: #12823F;        /* buttons and "you are here" */
  --green-dark: #0E6B34;
  --green-soft: #E9F4EE;
  --green-text: #0B4F27;
  --page: #F3F5F8;         /* page background */
  --card: #FFFFFF;         /* cards */
  --subtle: #F6F8FA;       /* boxes inside cards */
  --line: #E1E6ED;
  --field: #C9D1DB;
  --dot: #C9D1DB;
  --ink: #1E2733;          /* body text */
  --muted: #5B6778;
  --on-navy: #DCE5F0;
  --on-navy-muted: #9FB2CB;
  --red: #B42318;

  --font: "Noto Sans Ethiopic", "Nyala", "Abyssinica SIL", system-ui, sans-serif;
  --radius: 14px;
  --radius-small: 10px;
  --width: 1120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
}
img, video, iframe { max-width: 100%; }
img { display: block; height: auto; margin: 0 auto; }
video { display: block; height: auto; margin: 16px auto; border-radius: var(--radius-small); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid #5B9BD5; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.4; font-weight: 700; }
hr { width: 50%; border: 0; border-top: 1px solid var(--line); margin: 24px auto; }
center, .center { display: block; text-align: center; }
.muted { color: var(--muted); }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--navy); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 22px;
  background: var(--green); color: #fff;
  border: 2px solid var(--green); border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.button:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.button-outline { background: var(--card); color: var(--green-dark); border-color: var(--line); }
.button-outline:hover { background: var(--green-soft); color: var(--green-text); border-color: var(--green-soft); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; }
.site-header-inner { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.flags { display: flex; gap: 6px; }
.flags svg { display: block; border-radius: 3px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 24px; font-weight: 700; }
.brand-sub { font-size: 13px; color: #B9C8DC; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav a { display: block; padding: 8px 16px; border-radius: 8px; color: var(--on-navy); text-decoration: none; }
.main-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.main-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 600; }

/* Phone menu: works with HTML only (<details>), no JavaScript */
.phone-menu { display: none; margin-left: auto; position: relative; }
.phone-menu summary {
  list-style: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.12); color: #fff;
}
.phone-menu summary::-webkit-details-marker { display: none; }
.phone-menu[open] summary { background: rgba(255, 255, 255, 0.22); }
.phone-menu nav {
  position: absolute; right: 0; top: 52px; width: 230px;
  display: flex; flex-direction: column; padding: 8px;
  background: var(--card); border-radius: var(--radius-small);
  box-shadow: 0 10px 30px rgba(15, 45, 82, 0.25);
}
.phone-menu nav a { padding: 10px 14px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.phone-menu nav a:hover { background: var(--subtle); }
.phone-menu nav a[aria-current="page"] { background: var(--green-soft); color: var(--green-dark); font-weight: 600; }

/* ---------- Home: top photo ---------- */
.hero-band { background: var(--navy); padding-bottom: 24px; }
.hero-photo {
  width: 100%; height: clamp(200px, 30vw, 360px);
  object-fit: cover; object-position: center;
  border-radius: 12px; background: #1A3D66;
}
.hero-tagline { margin: 12px 0 0; text-align: center; color: var(--on-navy); font-size: 15px; line-height: 1.6; }

/* ---------- Home: "recently added" ---------- */
.featured {
  margin-top: 28px; padding: 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.featured-image { flex: 1 1 320px; display: block; }
.featured-image img { width: 100%; aspect-ratio: 900 / 573; object-fit: cover; border-radius: var(--radius-small); }
.featured-text { flex: 1 1 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.featured-label {
  display: inline-block; padding: 2px 12px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-dark); font-size: 14px; font-weight: 600;
}
.featured h2 { margin: 0; font-size: 30px; }
.featured p { margin: 0 0 8px; color: var(--muted); }

/* ---------- Page layout: sidebar + content ---------- */
.page {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  grid-template-areas: "side main";
  gap: 28px; align-items: start;
  margin-top: 28px;
}
.post-read { grid-area: main; min-width: 0; }
.sidenav { grid-area: side; display: flex; flex-direction: column; gap: 20px; }

/* ---------- Main text card ---------- */
.post-read {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 36px;
}
.post-read h1 { margin: 0 0 12px; font-size: 32px; }
.post-read h1 [class^="flaticon-"]::before, .post-read h1 [class*=" flaticon-"]::before { display: none; }
.post-read h2 { font-size: 24px; margin: 28px 0 8px; }
.post-read h3 { font-size: 20px; margin: 24px 0 6px; }
.post-read p { margin: 0 0 16px; }
.post-read ul, .post-read ol { padding-left: 24px; }

.post-date {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 16px; font-size: 14px; color: var(--muted);
}
.post-date i { color: var(--link); }
img.post-image { width: 100%; margin: 4px 0 24px; border-radius: var(--radius-small); }

/* Large first letter */
.big-letter, .big-blue {
  float: left; margin: 6px 10px 0 0;
  font-size: 56px; line-height: 1; font-weight: 700;
  color: var(--navy);
}

/* Sub-headings used inside articles */
.post-title-with-border, .para-title {
  display: block; margin: 12px 0 4px;
  font-size: 22px; font-weight: 700; line-height: 1.45;
  color: var(--navy);
}
.post-title-with-border::after {
  content: ""; display: block; width: 40px; height: 3px; margin-top: 6px;
  background: var(--green); border-radius: 2px;
}

blockquote {
  margin: 24px 0; padding: 16px 20px;
  background: var(--subtle); border: 1px solid var(--line); border-radius: var(--radius-small);
}
blockquote [class^="flaticon-"] { color: var(--green); }
p.poem {
  margin: 24px auto; padding: 20px; text-align: center;
  background: var(--subtle); border: 1px solid var(--line); border-radius: var(--radius-small);
}
.mark-green {
  display: inline-block; padding: 2px 12px; border-radius: 999px;
  background: var(--green-soft); color: var(--green-dark); font-weight: 600;
}
.important-words { color: var(--navy); font-weight: 700; }
.icon-size { font-size: 56px; color: var(--green); }

/* Boxes with a heading bar */
.about-block, .important-box {
  display: block; margin: 0 auto 24px; padding: 0 20px 18px;
  background: var(--subtle); border: 1px solid var(--line); border-radius: var(--radius-small); overflow: hidden;
}
.important-box { text-align: center; background: #FFF8E6; }
.about-block-header, .important-box-header {
  display: block; margin: 0 -20px 14px; padding: 8px 20px;
  background: var(--box-header); color: var(--navy); font-size: 18px; font-weight: 700; text-align: center;
}
.important-box-header { background: #F6EBC9; }
.important-line {
  display: block; margin: 0 auto 16px; padding: 12px 16px;
  background: var(--navy); color: #fff; text-align: center; border-radius: var(--radius-small);
}
.post-block { display: block; margin: 8px 0 16px; padding: 16px 20px; background: var(--subtle); border: 1px solid var(--line); border-radius: var(--radius-small); }

/* Home page: the three blocks, one under the other, full width (as in the original) */
.home-box-row { margin: 32px 0 8px; }
.home-boxes {
  margin: 0 0 28px;
  background: var(--subtle); border: 1px solid var(--line); border-radius: var(--radius-small); overflow: hidden;
}
.home-boxes-header {
  display: block; padding: 10px 20px; text-align: center;
  background: var(--box-header); color: var(--navy); font-size: 19px; font-weight: 700; line-height: 1.5;
  border-bottom: 1px solid var(--line);
}
.home-boxes img { max-width: calc(100% - 32px); margin: 20px auto 0; border-radius: 8px; }
.post-read .home-boxes p { margin: 0; padding: 16px 28px 20px; }

/* Membership form (Google Forms) */
.ecn-form { text-align: center; }
.ecn-form iframe { width: 100%; max-width: 640px; border: 0; border-radius: var(--radius-small); background: #fff; }

/* Older "teaser" boxes */
.teaser-parent { display: flex; flex-wrap: wrap; gap: 16px; }
.teaser-parent > div { flex: 1 1 240px; background: var(--subtle); border: 1px solid var(--line); border-radius: var(--radius-small); }
.teaser-botton { display: block; margin: 16px auto; padding: 6px 20px; text-align: center; border: 1px solid var(--line); border-radius: 8px; }

/* Old page navigation (in case it is still on a page) */
.page-navigation-parent { display: flex; justify-content: space-between; margin: 16px 0; }
.page-navigation-child { display: inline-block; padding: 8px 22px; background: var(--green); border-radius: 8px; }
.page-navigation-child a { color: #fff; text-decoration: none; }

/* Previous / next (made automatically for the job guide) */
.page-steps { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 32px 0 8px; }

/* ---------- Photo galleries (CSS only, radio buttons) ---------- */
.slider-parent { margin: 8px 0 20px; padding: 14px; background: var(--subtle); border: 1px solid var(--line); border-radius: var(--radius); }
#slider { max-width: 820px; margin: 0 auto; }
#slider input { display: none; }
#overflow { width: 100%; overflow: hidden; border-radius: var(--radius-small); }
#slides .inner { width: 1000%; line-height: 0; transition: margin-left 0.8s cubic-bezier(0.77, 0, 0.175, 1); }
#slides .inner::after { content: ""; display: table; clear: both; }
#slides article { width: 10%; float: left; }
#slides img { width: 100%; height: auto; }
#active { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 10px; }
#active label {
  width: 30px; height: 30px; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
#active label::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--dot); transition: background 0.2s, width 0.2s; }
#active label:hover::before { background: var(--muted); }
#slide1:checked ~ #active label:nth-child(1)::before,
#slide2:checked ~ #active label:nth-child(2)::before,
#slide3:checked ~ #active label:nth-child(3)::before,
#slide4:checked ~ #active label:nth-child(4)::before,
#slide5:checked ~ #active label:nth-child(5)::before,
#slide6:checked ~ #active label:nth-child(6)::before,
#slide7:checked ~ #active label:nth-child(7)::before,
#slide8:checked ~ #active label:nth-child(8)::before,
#slide9:checked ~ #active label:nth-child(9)::before,
#slide10:checked ~ #active label:nth-child(10)::before { background: var(--navy); width: 22px; }
#slide1:checked ~ #slides .inner { margin-left: 0; }
#slide2:checked ~ #slides .inner { margin-left: -100%; }
#slide3:checked ~ #slides .inner { margin-left: -200%; }
#slide4:checked ~ #slides .inner { margin-left: -300%; }
#slide5:checked ~ #slides .inner { margin-left: -400%; }
#slide6:checked ~ #slides .inner { margin-left: -500%; }
#slide7:checked ~ #slides .inner { margin-left: -600%; }
#slide8:checked ~ #slides .inner { margin-left: -700%; }
#slide9:checked ~ #slides .inner { margin-left: -800%; }
#slide10:checked ~ #slides .inner { margin-left: -900%; }
p.photos { margin: 0 0 16px; padding: 14px 18px; text-align: center; background: var(--subtle); border: 1px solid var(--line); border-radius: var(--radius-small); }

/* Swipe gallery (flexday.php) */
.slider-wrapper { margin: 8px 0 20px; }
.slider-wrapper .slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: var(--radius-small); }
.slider-wrapper .slider img { flex: 0 0 100%; scroll-snap-align: start; object-fit: cover; }
.slider-nav { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.slider-nav a { width: 12px; height: 12px; border-radius: 999px; background: var(--dot); }
.slider-nav a:hover { background: var(--navy); }

/* ---------- Sidebar ---------- */
.side-menu {
  padding: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
/* All sidebar headings look the same: bold navy with a green underline */
.sidenav-header, .side-box h2 {
  display: inline-block; margin: 0 0 10px; padding-bottom: 4px;
  font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.5;
  border-bottom: 3px solid var(--green);
}
.sidenav-header { margin: 6px 12px 8px; }
.side-menu ul { margin: 0; padding: 0; list-style: none; }
.side-menu a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: 16px; line-height: 1.6;
}
.side-menu a:hover { background: var(--subtle); }
.side-menu a.active, .side-menu a[aria-current="page"] { background: var(--green-soft); color: var(--green-dark); font-weight: 600; }
.side-box {
  padding: 18px 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 15px; line-height: 1.8;
}
.side-box p { margin: 0 0 8px; }
.side-box p:last-child { margin: 0; }
.side-box .muted { font-size: 14px; line-height: 1.7; }

/* ---------- Comments (Commentics) ---------- */
.comments { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.comments .cmtx_container { padding: 0; font-family: var(--font); color: var(--ink); }
body .comments h1, body .comments h2, body .comments h3,
body .comments .cmtx_form_heading, body .comments .cmtx_comments_heading {
  margin: 0 0 12px; color: var(--navy); font-size: 22px; font-weight: 700;
}
body .comments form, body .comments .cmtx_form {
  padding: 20px; background: var(--subtle); border: 1px solid var(--line); border-radius: 12px;
}
body .comments textarea,
body .comments input[type="text"],
body .comments input[type="email"],
body .comments input[type="url"],
body .comments select {
  width: 100%; max-width: 100%;
  padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--card); border: 1px solid var(--field); border-radius: 8px;
  text-align: left;
}
body .comments textarea:focus,
body .comments input:focus,
body .comments select:focus { outline: 3px solid #BFD6EE; outline-offset: 0; border-color: var(--link); }
body .comments input[type="submit"],
body .comments input[type="button"],
body .comments button {
  min-height: 44px; padding: 8px 28px; cursor: pointer;
  font: inherit; font-weight: 600; color: #fff;
  background: var(--green); border: 0; border-radius: 8px;
}
body .comments input[type="submit"]:hover,
body .comments input[type="button"]:hover,
body .comments button:hover { background: var(--green-dark); }
.cmtx_quick_reply_agree, .cmtx_quick_reply_link { display: none; }

/* ---------- Above footer + footer ---------- */
.message-above-footer {
  margin: 40px 0 0; padding: 18px 24px; text-align: center;
  background: var(--green-soft); color: var(--green-text); border-radius: 12px;
  font-size: 18px; font-weight: 500; line-height: 1.6;
}
.site-footer { margin-top: 40px; background: var(--navy); color: var(--on-navy); font-size: 15px; line-height: 1.85; }
.site-footer a { color: #fff; }
.footer-columns {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px;
  padding-top: 44px; padding-bottom: 24px;
}
.site-footer h2 { margin: 0 0 10px; font-size: 17px; color: #fff; }
.site-footer p { margin: 0; }
.site-footer .muted { color: var(--on-navy-muted); }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 8px;
  color: #fff; text-decoration: none;
}
.pill:hover { background: rgba(255, 255, 255, 0.08); }
.footer-bottom {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding-top: 20px; padding-bottom: 32px; text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15); color: var(--on-navy-muted); font-size: 14px;
}
.footer-name { font-size: 20px; font-weight: 600; color: #fff; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 800px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  .main-nav, .brand-sub { display: none; }
  .phone-menu { display: block; }
  .page { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side"; gap: 24px; margin-top: 20px; }
  .post-read { padding: 24px 18px; }
  .post-read h1 { font-size: 26px; }
  .featured { padding: 14px; gap: 16px; }
  .featured h2 { font-size: 24px; }
  .hero-band { padding-bottom: 16px; }
  .hero-tagline { font-size: 14px; }
  .hero-photo { border-radius: 10px; }
  .big-letter, .big-blue { font-size: 46px; }
  .post-read .home-boxes p { padding: 14px 18px 18px; }
  .home-boxes img { margin-top: 14px; }
  .message-above-footer { font-size: 17px; }
  .slider-parent { padding: 8px; }
  #active { gap: 0; }
  #active label { width: 26px; height: 30px; }
}

/* Visitors who switched off animations in their phone/computer settings */
@media (prefers-reduced-motion: reduce) {
  #slides .inner { transition: none !important; }
}

/* Printing: just the text */
@media print {
  .site-header, .sidenav, .site-footer, .message-above-footer, .hero-band, .featured, .comments, .page-steps { display: none !important; }
  .page { display: block; }
  .post-read { border: 0; padding: 0; }
}
