@import url('../../Default/Css/Default.css');

/* ############################################################################  
   ## 
   ##  ThreeCols1
   ##
   ############################################################################ 
    
   | Header                               |
   |______________________________________|
   | SubHeader                            |
   |______________________________________|
   | PageTop                              | (TrailNav, PageFunctions)
   |______________________________________|
   |          |               |           |
   | Tertiary | Primary       | Secondary |
   |          |               |           |
   |          |               |           |
   |          |               |           |
   |__________|_______________|___________|
   | PageBottom                           | (PageFunctions)
   |______________________________________|
   | Footer                               |
   |                                      |

    <TemplateWrapper>
        <Template>
            <AccessibilityToolbar />
            <Header />
            <SubHeader />
            <PageTop>
                <TrailNav />
                <PageFunctionsTop />
            </PageTop>
            <Content>
                <Page>
                    <PageContent>
                        <Primary />
                        <Secondary />
                    </PageContent>
                </Page>
                <Tertiary />
            </Content>
            <PageBottom>
                <PageFunctionsBottom />
            </PageBottom>
            <Footer />
        </Template>
    </TemplateWrapper>
*/

/* ############################################################################
   ## 
   ##  Custom Design Options
   ##  ADD/CHANGE RULES HERE (colors, styling, etc.)
   ##
   ##  - Note that some rules are overridden by fixed design elements below.
   ##  - Change column and page widths and other options in Variables.css.
   ##
   ######################################################################### */

#Page {
}

    #PageTop {
    }

    #PageContent {
    }
    
        #Primary {
        }
            
            #Primary #PrimaryContent {
            }

        #Secondary {
        }

            #Secondary #SecondaryContent {
            }

    #PageBottom {
    }

@media screen and (max-width: 1200px) {

    /* Place custom responsive rules here. */

}

/* ############################################################################
   ## 
   ##  Fixed Design Elements
   ## 
   ##  DON'T CHANGE unless you want to re-test templates in all browsers.
   ## 
   ##  - Modify column widths in Variables.css. 
   ##  - Modify colors and styling in the section above.
   ##  - If you do make changes BE SURE to align all changes across
   ##    OneCol1.css, TwoCols1.css, TwoCols2.css, ThreeCols1.css and templates 
   ##    based on these: they were all tested together as a single collection.
   ##
   ######################################################################### */

#Content {
    position: relative;
    display: flex;
    box-sizing: border-box;
    width: 100%;
    max-width: var(--site-page-maxwidth-mid);
    margin-left: auto;
    margin-right: auto;
    gap: var(--site-page-col-gutter);
}

    #Page {
        position: relative;
        box-sizing: border-box;
        width: calc(100% - var(--site-page-tertiary-col-width));
    }

        #PageContent {
            display: flex;
            position: relative;
            box-sizing: border-box;
            width: 100%;
            gap: var(--site-page-col-gutter);
        }
        
            #Primary {
                position: relative;
                box-sizing: border-box;
                width: calc(calc(100% - var(--site-page-secondary-col-width)) - var(--site-page-col-gutter));
            }

                #Primary #PageTitle {
                    /* margin-right: calc(var(--site-page-secondary-col-width) * -1); */ /* Do this if you want the page title to fill the screen width if it's very long, but note it would overlap the SecondaryContent area so be sure to give #SecondaryContent enough vertical room to move out of the way. */
                }

            #Secondary {
                position: relative;
                box-sizing: border-box;
                margin-top: var(--site-page-secondary-col-margin-top); /* Make room for wide page titles here if needed. */
                width: var(--site-page-secondary-col-width);
            }
    
    #Tertiary {
        position: relative;
        box-sizing: border-box;
        margin-top: var(--site-page-tertiary-col-margin-top);;
        margin-bottom: var(--site-box-margin-bottom);
        width: var(--site-page-tertiary-col-width);
        order: -1; /* -1  puts it on the left, everything else puts it on the right. */
    }

    #PageBottom {
        width: calc(calc(100% + var(--site-page-tertiary-col-width)) + var(--site-page-col-gutter));
        margin-left: calc(calc(var(--site-page-tertiary-col-width) + var(--site-page-col-gutter)) * -1);
    }

@media screen and (max-width: 1500px) {
    /* This breakpoint matches #Content width, not --site-breakpoint-large. */

    #Content {
        padding-left: var(--site-padding);
        padding-right: var(--site-padding);
    }

}

@media screen and (max-width: 1200px) {

    #Page {
        width: 100%;
    }

        #PageContent {
            display: block;
        }

            #Primary {
                width: 100%;
            }

                #Primary #PageTitle {
                    margin-right: auto;
                }

            #Secondary {
                margin-top: 0;
                width: 100%;
            }

    #Tertiary {
        display: none;
        /* But if it was displayed... */
        margin-top: 0;
        width: 100%;
        order: initial;
    }

    #PageBottom {
        width: 100%;
        margin-left: auto;
    }

}

@media screen and (max-width: 600px) {

    #Content {
        padding-left: var(--site-padding-thin);
        padding-right: var(--site-padding-thin);
    }

}