/* ===============================================
    Brand palette, sampled from public/imgs/logo.png
      navy   #003450   "MACNIS" lettering
      green  #008425   "PHARMA" lettering and leaf
      orange #fd9200   sun
      yellow #feca00   sun centre
    Every homepage stylesheet takes its colours (and its section spacing) from here.
------------------------*/

:root {
    --brand-navy: #003450;
    --brand-navy-rgb: 0, 52, 80;
    --brand-green: #008425;
    --brand-green-rgb: 0, 132, 37;
    --brand-orange: #fd9200;
    --brand-orange-rgb: 253, 146, 0;
    --brand-yellow: #feca00;
    --brand-yellow-rgb: 254, 202, 0;

    /* orange is too light for small text (2.2:1 on white); this deeper one stays above 4.5:1 on every section tint */
    --brand-orange-text: #9a4f00;

    /* the logo green, deepened for small text on the mint and sky sections (white gives 6.6:1) */
    --brand-green-text: #006b1f;

    --brand-ink: #0a2433;
    --brand-muted: #566a78;
    --brand-line: rgba(var(--brand-navy-rgb), .12);

    --brand-green-tint: #e6f3e9;
    --brand-bg: #edf3f6;
    --brand-bg-soft: #f4f8fa;

    /* section colours: tints of the logo's own navy, green, yellow and orange */
    --brand-sky: #dcebf4;
    --brand-mint: #d9efdf;
    --brand-cream: #fff1cc;
    --brand-peach: #ffe5c4;
    --brand-green-deep: #00661f;

    /* the short names the page components use, so they work on any page */
    --mp-ink: var(--brand-ink);
    --mp-navy: var(--brand-navy);
    --mp-green: var(--brand-green);
    --mp-accent: var(--brand-orange);
    --mp-accent-dark: var(--brand-orange-text);
    --mp-line: var(--brand-line);
    --mp-muted: var(--brand-muted);

    /* vertical padding of every homepage section */
    --sec-y: 60px;
}

@media (max-width: 991.98px) {

    :root {
        --sec-y: 48px;
    }
}

@media (max-width: 575.98px) {

    :root {
        --sec-y: 40px;
    }
}


/* Theme pieces that show on the homepage, re-coloured to match
------------------------*/

#totop.top-visible {
    background-color: var(--brand-green);
}

#totop.top-visible:hover {
    background-color: var(--brand-orange);
    color: var(--brand-navy);
}

/* the theme's blue-dots GIF becomes a ring in the logo's orange and green */
#status {
    background-image: none;
}

#status:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border: 4px solid rgba(var(--brand-navy-rgb), .12);
    border-top-color: var(--brand-orange);
    border-right-color: var(--brand-green);
    border-radius: 50%;
    animation: brand-spin .85s linear infinite;
}

@keyframes brand-spin {
    to {
        transform: rotate(360deg);
    }
}
