@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap");

/* AMCCO portal skin.
 * Loaded on every website page via the web_include_css hook, so pages we do
 * not template ourselves (Issues, My Account) stop being blank white.
 * Motifs here are deliberately NOT the botanicals used on Projects and My
 * Plots: surveyor contour lines, a gold acacia and a plot-grid stamp, so the
 * stock pages read as their own thing rather than a copy.
 */

:root {
    --amcco-green: #1a4121;
    --amcco-red: #d72028;
    --amcco-gold: #b07d12;
    --amcco-teal: #0f5f57;
}

/* Fraunces carries the brand voice on headings and names; Inter keeps every
   number, date, label and status - it is built for small dense data and
   Fraunces is not. */
:root {
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

.my-account-header,
main h1,
main .page-header h1,
.page_content > h1:first-child,
.page_content > h2:first-child {
    font-family: var(--font-display);
    letter-spacing: 0;
}

html body {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100'%3E%3Cg fill='none' stroke='%23b07d12' stroke-opacity='0.16' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M60 98 L60 52'/%3E%3Cpath d='M60 62 L44 50'/%3E%3Cpath d='M60 58 L76 46'/%3E%3Cpath d='M18 44 C30 28 50 22 60 30 C70 22 90 28 102 44 C86 40 70 40 60 44 C50 40 34 40 18 44Z'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 100'%3E%3Cg fill='none' stroke='%231a4121' stroke-opacity='0.13' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M6 20 H134 M6 50 H134 M6 80 H134'/%3E%3Cpath d='M20 6 V94 M56 6 V94 M92 6 V94 M128 6 V94'/%3E%3Cpath d='M20 20 L56 50 M92 50 L128 80'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23d72028' stroke-opacity='0.12' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='50' cy='50' r='6'/%3E%3Cellipse cx='50' cy='30' rx='8' ry='15'/%3E%3Cellipse cx='50' cy='70' rx='8' ry='15'/%3E%3Cellipse cx='30' cy='50' rx='15' ry='8'/%3E%3Cellipse cx='70' cy='50' rx='15' ry='8'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 200'%3E%3Cg fill='none' stroke='%230f5f57' stroke-opacity='0.11' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M0 150 C80 120 150 170 220 140 C290 110 360 150 420 120'/%3E%3Cpath d='M0 168 C80 138 150 188 220 158 C290 128 360 168 420 138'/%3E%3Cpath d='M0 132 C80 102 150 152 220 122 C290 92 360 132 420 102'/%3E%3Cpath d='M0 114 C80 84 150 134 220 104 C290 74 360 114 420 84'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(rgba(26, 65, 33, 0.055) 1px, transparent 1px),
        linear-gradient(180deg, rgba(15, 95, 87, 0.09) 0, rgba(15, 95, 87, 0.02) 190px, transparent 330px),
        radial-gradient(760px 320px at 97% 4%, rgba(176, 125, 18, 0.09), transparent 58%),
        radial-gradient(680px 300px at 2% 8%, rgba(215, 32, 40, 0.045), transparent 55%);
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, no-repeat, no-repeat, no-repeat;
    background-position:
        right 4% top 15%,
        left 3% bottom 24%,
        right 12% bottom 34%,
        center bottom 4%,
        0 0, 0 0, 0 0, 0 0;
    background-size:
        128px 107px, 150px 107px, 78px 78px,
        1180px 420px, 24px 24px, auto, auto, auto;
    background-attachment: fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed;
    /* the website bundle sets body white at equal specificity and its colour
       was still landing on some stock pages; this is the one declaration that
       has to win outright */
    background-color: #f3f6f4 !important;
}

/* stock portal panels sit white-on-white; give them a card edge and a warm
   hairline so Issues and My Account look composed */
.account-info,
.web-list-container,
.page-card,
.web-form-container,
.page_content .card,
main .form-section {
    background: #fff;
    border: 1px solid #e5eae6;
    border-top: 3px solid var(--amcco-teal);
    border-radius: 0.85rem;
    box-shadow: 0 3px 14px rgba(15, 95, 87, 0.07);
}

.account-info { padding: 0.25rem 1.25rem 0.5rem 1.25rem; }
.web-list-container { padding: 0.35rem 1rem 0.75rem 1rem; }
.web-list-container table { background: transparent; margin-bottom: 0; }

/* stock page headings get the same accent rule our own pages use */
main h1,
main .page-header h1,
.page_content > h1:first-child,
.page_content > h2:first-child,
.my-account-header {
    position: relative;
    padding-bottom: 0.45rem;
}

main h1::after,
main .page-header h1::after,
.page_content > h1:first-child::after,
.page_content > h2:first-child::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 54px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--amcco-green), var(--amcco-gold));
}

@media (max-width: 767.98px) {
    html body {
        background-image:
            radial-gradient(rgba(26, 65, 33, 0.05) 1px, transparent 1px),
            linear-gradient(180deg, rgba(15, 95, 87, 0.08) 0, transparent 240px);
        background-repeat: repeat, no-repeat;
        background-position: 0 0, 0 0;
        background-size: 20px 20px, auto;
        background-attachment: fixed, fixed;
    }
}
