/* ===========================================================================
   numgeo-ACT documentation — colour scheme & styling
   Adapted from the numgeo documentation stylesheet so that numgeo-ACT shares
   the same visual identity. Brand colour: rgb(160, 90, 44) (numgeo brown).
   =========================================================================== */

:root {
    --md-primary-fg-color:        rgb(160, 90, 44);
    --md-primary-fg-color--light: rgb(160, 90, 44);
    --md-primary-fg-color--dark:  rgb(160, 90, 44);
    --md-primary-bg-color:        hsla(0, 0%, 100%, 1);
    --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7);

    --md-accent-fg-color:               rgb(160, 90, 44);
    --md-accent-fg-color--transparent:  rgba(160, 90, 44, 0.25);
    --md-accent-bg-color:               hsla(0, 0%, 100%, 1);
    --md-accent-bg-color--light:        hsla(0, 0%, 100%, 0.7);
}

/* Slightly smaller admonitions, exactly as on the numgeo site */
.md-typeset .admonition {
    font-size: 0.9em;
}

/* Larger page titles, exactly as on the numgeo site */
.md-typeset h1 {
    font-size: 2.25em;
}

/* In dark mode, keep the header brown rather than pure black so the brand
   identity is preserved when the user toggles the colour scheme.            */
[data-md-color-scheme="slate"] {
    --md-primary-fg-color:        rgb(160, 90, 44);
    --md-primary-fg-color--light: rgb(160, 90, 44);
    --md-primary-fg-color--dark:  rgb(120, 66, 32);
}

/* ===========================================================================
   Landing-page (home) components
   These re-use the brand colour variables above so they blend with the theme
   in both light and dark mode.
   =========================================================================== */

/* Hero block ------------------------------------------------------------- */
.act-hero {
    text-align: center;
    margin: 1.0rem 0 2.0rem 0;
}
.act-hero img.act-logo {
    max-width: 460px;
    width: 70%;
    height: auto;
    margin: 0 auto 0.6rem auto;
}
.act-hero .act-tagline {
    font-size: 1.15rem;
    line-height: 1.5;
    max-width: 46rem;
    margin: 0.4rem auto 1.2rem auto;
    color: var(--md-default-fg-color--light);
}

/* Call-to-action buttons (use the Material .md-button base) -------------- */
.act-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin: 1.0rem 0 0 0;
}

/* Video showcase --------------------------------------------------------- */
.act-video {
    margin: 1.5rem auto;
    max-width: 980px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    border: 1px solid var(--md-default-fg-color--lightest);
}
.act-video video {
    display: block;
    width: 100%;
    height: auto;
}
.act-video-caption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--md-default-fg-color--light);
    margin-top: 0.5rem;
}

/* Feature grid (cards) --------------------------------------------------- */
.act-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.0rem;
    margin: 1.5rem 0;
}
.act-card {
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 6px;
    padding: 1.0rem 1.1rem;
    background: var(--md-default-bg-color);
    transition: border-color 120ms, box-shadow 120ms, transform 120ms;
}
.act-card:hover {
    border-color: var(--md-accent-fg-color);
    box-shadow: 0 2px 10px rgba(160, 90, 44, 0.12);
    transform: translateY(-2px);
}
.act-card h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1.0rem;
    color: var(--md-primary-fg-color);
}
.act-card p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--md-default-fg-color--light);
}

/* A thin brand-coloured rule used to separate home-page sections --------- */
.act-rule {
    border: none;
    height: 3px;
    width: 64px;
    margin: 2.2rem auto 1.4rem auto;
    border-radius: 3px;
    background: var(--md-primary-fg-color);
}

/* Centre helper ---------------------------------------------------------- */
.act-center { text-align: center; }

/* ---- Element-test figures (numgeo modelling) ------------------------------ */
figure.act-fig-wrap {
  margin: 1.2rem 0;
  text-align: center;
}
.act-fig {
  width: 100%;
  max-width: 820px;
  height: auto;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 6px;
  background: #ffffff;
  padding: 0.4rem 0.6rem;
}
figure.act-fig-wrap > figcaption {
  font-size: 0.82em;
  color: var(--md-default-fg-color--light);
  margin-top: 0.5rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
/* keep figures readable in dark mode: white plate already set above */
