/* Cloudhouse Guardian docs theme - matches the production Flare site palette. */
[data-md-color-scheme="default"] {
  --md-primary-fg-color:        #0D2839;  /* navy - header, footer, nav chrome */
  --md-primary-fg-color--light: #1B3B50;
  --md-primary-fg-color--dark:  #02242E;
  --md-accent-fg-color:         #3DDA85;  /* green - hover/active accents */
  --md-accent-fg-color--transparent: rgba(61, 218, 133, 0.10);
  --md-default-bg-color:        #FAF9F6;  /* cream page background */
  --md-typeset-a-color:         #17A35F;  /* readable green for body links */
}

/* Green section headings, navy sub-headings - the on-brand "pop of green". */
.md-typeset h1,
.md-typeset h2 { color: #0D8F4F; font-weight: 700; }
.md-typeset h3,
.md-typeset h4 { color: #0D2839; font-weight: 700; }

/* Yellow spotlight accent, used sparingly (e.g. nav title underline). */
.md-header__title { font-weight: 600; }

/* ---- Home page: replicate the production Guardian dashboard ---- */
.ch-hero {
  background: linear-gradient(rgba(13,40,57,0.74), rgba(2,36,46,0.84)),
              url('../images/hero.png') center / cover no-repeat;
  border-radius: 10px;
  margin: 0 0 2rem;
  padding: 4.5rem 1.5rem;
  text-align: center;
}
.md-typeset .ch-hero h1,
.ch-hero h1 { color: #FFFFFF; font-size: 2.4rem; line-height: 1.15;
              max-width: 52rem; margin: 0 auto .6rem; }
.ch-hero p  { color: #DCE6E2; font-size: 1.15rem; max-width: 52rem;
              margin: 0 auto 1.6rem; }
.ch-hero .headerlink { display: none; }  /* hide the heading permalink ¶ */
.md-typeset .ch-cta,
.ch-cta {
  display: inline-block; background: #3DDA85; color: #02242E;
  font-weight: 700; padding: .75rem 1.7rem; border-radius: 28px;
  text-decoration: none; box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: background .25s ease, transform .25s ease;
}
.ch-cta:hover { background: #2FC473; transform: translateY(-1px); color: #02242E; }

/* Tile grid: the markdown list becomes the grid; each link is a tile. */
.md-typeset .ch-tiles ul {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin: 1.5rem 0; padding: 0; list-style: none;
}
.md-typeset .ch-tiles li { margin: 0; }
@media (max-width: 50rem) { .md-typeset .ch-tiles ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 30rem) { .md-typeset .ch-tiles ul { grid-template-columns: 1fr; } }
.md-typeset .ch-tiles li > a {
  display: flex; align-items: center; justify-content: center; text-align: center;
  height: 100%; min-height: 5.5rem; padding: 1rem;
  background: #0D2839; color: #FFFFFF;
  font-weight: 700; font-size: 1.1rem; text-decoration: none; border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.12);
  transition: background .25s cubic-bezier(.25,.8,.25,1),
              transform .25s cubic-bezier(.25,.8,.25,1), box-shadow .25s ease;
}
.md-typeset .ch-tiles li > a:hover {
  background: #3DDA85; color: #02242E;
  box-shadow: 0 6px 16px rgba(0,0,0,0.22); transform: translateY(-2px);
}
.md-typeset .ch-section { text-align: center; color: #0D8F4F; margin: 2.5rem 0 0; }
