@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---------------------------------------------------------------
   Site colours. Green is the accent for this site (the accents
   sub-site has its own red in accents/Shared/modern.css).
   --------------------------------------------------------------- */
:root {
  /* palette: teal / cream / lime (after gogreennext.eu) */
  --teal:   #153E3D;
  --cream:  #F2EEEA;
  --lime:   #9CC938;
  --site-green:    #2f7d1c;                  /* link/heading green on light backgrounds */
  --site-green-bg: var(--teal);              /* navbar background */
  --site-nav-text: #ffffff;
  --site-hover:    #1d5410;
  --site-tint:     rgba(10, 122, 31, 0.07);
  --site-footer:   var(--teal);
  --band-cream:    var(--cream);
  --band-text:     #1d2b2a;
  --radius:        14px;
}
.quarto-dark {
  --site-green:    #9CC938;
  --site-green-bg: #0d2a29;
  --site-nav-text: #e6f4cf;
  --site-hover:    #c4e57a;
  --site-footer:   #0d2a29;
  --band-cream:    #1b2524;
  --band-text:     #e8eeee;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: .95rem;
  line-height: 1.55;
}
h1, h2, h3, h4, .navbar-brand, .nav-link {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  letter-spacing: -0.01em;
}
h1, .title { font-weight: 700; color: var(--site-green); }
h2 { margin-top: 2.2rem; font-weight: 650; }

a { color: var(--site-green); text-underline-offset: 0.18em; }
a:hover { color: var(--site-hover); }

.column-margin, .margin-aside, .sidenote { font-size: 0.8rem; opacity: 0.75; }

/* header bar */
.navbar {
  background-color: var(--site-green-bg) !important;
  border-bottom: none;
}
.navbar .navbar-brand, .navbar .nav-link, .navbar .navbar-title {
  color: var(--site-nav-text) !important;
  font-size: 1rem;
  font-weight: 400;
}
.navbar .navbar-brand, .navbar .navbar-title { font-weight: 400; font-size: 1.1rem; }
.navbar .nav-link:hover, .navbar .navbar-brand:hover { color: #fff !important; opacity: .8; }
.navbar .nav-link.active { box-shadow: inset 0 -3px 0 var(--lime); }

/* footer */
.nav-footer { background-color: var(--site-footer); border-top: none; color: rgba(255,255,255,.8); padding: 1.5rem 0; }
.nav-footer a { color: rgba(255,255,255,.85); }
.nav-footer a:hover { color: #fff; }

/* home page: photo + link "pills" */
.quarto-about-trestles .about-image { border-radius: 50%; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.quarto-about-trestles .about-entity { padding-bottom: 1rem; }
.about-link {
  color: var(--site-green);
  border: 1px solid var(--site-green);
  border-radius: 999px;
  background-color: transparent;
  padding: .3rem .9rem;
  font-size: .9rem;
  transition: background-color .15s, color .15s, transform .15s;
}
.about-link:hover {
  background-color: var(--site-green);
  border-color: var(--site-green);
  color: #fff;
  transform: translateY(-1px);
}
.quarto-dark .about-link:hover { color: #0b2a0b; }

/* cards / images / tables */
img { border-radius: 6px; }
table { font-size: .95rem; }
blockquote { border-left: 3px solid var(--site-green); padding-left: 1rem; }

/* page title band */
#title-block-header { border-bottom: 3px solid var(--site-green); margin-bottom: 1.5rem; }
.quarto-title .description { opacity: .8; }

/* ---------------------------------------------------------------
   Home page: full-width coloured bands (teal / cream / lime / teal)
   --------------------------------------------------------------- */
.page-layout-custom #quarto-content, .page-layout-custom main.content { padding: 0; margin: 0; max-width: none; }
.band { width: 100%; padding: 4rem 1.5rem; }
.band-inner { max-width: 1060px; margin: 0 auto; }
.band-teal  { background: var(--teal); color: #f2f7ee; }
.band-cream { background: var(--band-cream); color: var(--band-text); }
.band-lime  { background: var(--lime); color: #12301a; }
.band-teal a { color: var(--lime); }
.band-teal a:hover { color: #fff; }
.band-title { margin: 0 0 1rem; font-size: 1.6rem; border: none; color: inherit; }
.band-cream .band-title { color: var(--site-green); }
.band h2, .band h3 { color: inherit; }
.band-teal h2, .band-teal h1 { color: #fff; }

/* hero */
.hero { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.hero-photo { width: 170px; height: 170px; object-fit: cover; border-radius: 50%; border: 5px solid var(--lime); box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.hero-text { flex: 1 1 22rem; }
.band .hero-title { font-size: 2rem; line-height: 1.2; margin: 0 0 .2rem; color: #fff; }
.band .hero-tag { color: var(--lime); font-weight: 500; font-size: .95rem; letter-spacing: .03em; margin-bottom: 1rem; }
.hero-text p { font-size: 1rem; line-height: 1.6; max-width: 44rem; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.pill { display: inline-block; padding: .35rem .95rem; border: 1px solid var(--lime); border-radius: 999px; color: var(--lime) !important; font-size: .9rem; text-decoration: none; transition: background-color .15s, color .15s, transform .15s; }
.pill:hover { background: var(--lime); color: var(--teal) !important; transform: translateY(-1px); }

/* cards on bands */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.card3 { background: #fff; color: #1d2b2a; border-radius: var(--radius); padding: 1.4rem 1.5rem; border-top: 5px solid var(--lime); box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.card3 h3 { font-size: 1.1rem; margin: 0 0 .6rem; color: var(--teal); }
.card3 h3 .bi { margin-right: .35rem; color: var(--site-green); }
.card3 p { font-size: .96rem; margin: 0; }
.card3 a { color: var(--site-green); }
.quarto-dark .card3 { background: #243231; color: #e8eeee; }
.quarto-dark .card3 h3 { color: #e8f6c8; }
.card3.on-lime { border-top-color: var(--teal); }

/* buttons */
.btn-solid, .btn-lime { display: inline-block; padding: .55rem 1.3rem; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .15s, opacity .15s; }
.btn-solid { background: var(--teal); color: #fff !important; }
.btn-lime  { background: var(--lime); color: var(--teal) !important; }
.btn-solid:hover, .btn-lime:hover { transform: translateY(-1px); opacity: .9; }
.closing { text-align: center; }
.closing p { margin: .5rem 0 1.25rem; }

@media (max-width: 600px) {
  .band { padding: 2.5rem 1.1rem; }
  .hero { justify-content: center; text-align: center; }
  .pills { justify-content: center; }
  .band .hero-title { font-size: 1.7rem; }
}

/* home page uses its own hero, so hide the automatic title block */
.page-layout-custom #title-block-header { display: none; }
