
body
{
    font-family: Arial, Helvetica, sans-serif;
    background:#f5f5f5;
    margin:0;
    padding:0;
}

p,
li
{
    font-size:13px;
}

a
{
    color:#000000;
    text-decoration:none;
}

a:hover
{
    color:#ff6600;
    text-decoration:none;
}

/* Header */

#header
{
    width:1000px;
    margin:auto;
    display:flex;
    background:#344E81;
    color:white;
}

#headerimage
{
    position:relative;
    width:576px;
    height:131px;
    background-image:url('../images/header.jpg');
    background-repeat:no-repeat;
    background-position:left top;
}

#headertitle
{
    flex:1;
    padding:0 20px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    position:relative;
}

#headertitle h1
{
    margin:0;
    font-size:32px;
}

#headertitle p
{
    margin-top:10px;
    font-size:16px;
    font-style:italic;
}

#facebook
{
    position:absolute;
    right:20px;
    bottom:15px;
}

#facebook img
{
    width:32px;
    height:32px;
    border:0;
    display:block;
}

/* Menu */

#menu
{
    width:1000px;
    margin:auto;
    background:#23395d;
    padding:4px 0;
}

#mobilemenubutton
{
    display:none;
}

#mainmenu
{
    display:block;
}

#menu a
{
    color:white;
    text-decoration:none;
    padding:12px 20px;
}

#menu a:hover
{
    color:white;
    background:#344E81;
}

.dropdown
{
    position:relative;
    display:inline-block;
}

.dropdown > a
{
    color:white;
    text-decoration:none;
    padding:12px 20px;
    display:block;
}

.dropdown > a:hover
{
    color:white;
    background:#344E81;
}

.dropdown-content
{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    background:#344E81;
    min-width:220px;
    z-index:1000;
}

.dropdown-content a
{
    display:block;
    padding:10px 15px;
    color:white;
    text-decoration:none;
}

.dropdown-content a:hover
{
    background:#eeeeee;
    color:#344E81;
}

#menu .dropdown-content a:hover
{
    background:#344E81;
    color:#e1e2e6;
}

.menuarrow
{
    font-size:8px;
    vertical-align:middle;
}

.dropdown-sub
{
    position:relative;
}

.dropdown-sub-content
{
    display:none;
    position:absolute;
    left:100%;
    top:0;
    min-width:300px;
    background:#344E81;
    z-index:1001;
}

.dropdown-sub-content a
{
    display:block;
}

@media screen and (min-width:801px)
{
    .dropdown:hover .dropdown-content
    {
        display:block;
    }

    .dropdown-sub:hover .dropdown-sub-content
    {
        display:block;
    }
}

/* Main layout */

#content
{
    width:1000px;
    margin:auto;
    background:white;
    padding:0;
    min-height:500px;
}

#homepage
{
    display:grid;
    grid-template-columns:25% 50% 21%;
    gap:2%;
    padding:20px 0;
}

/* Imported WordPress image alignment classes */

.alignleft
{
    float:left;
    margin:5px 15px 10px 0;
}

.alignright
{
    float:right;
    margin:5px 0 10px 15px;
}

.aligncenter
{
    display:block;
    margin:10px auto;
}

.articlecard img
{
    max-width:100%;
    height:auto;
}

.articlecard ul
{
    clear:both;
}

/* Boxes */

.sidebox,
.articlecard,
.accordionbox
{
    border:1px solid #cccccc;
    margin-bottom:15px;
    background:#ffffff;
}

.sidebox h3,
.accordionbox h3
{
    margin:0;
    padding:7px;
    background:#344E81;
    color:white;
    font-size:16px;
}

.sidebox p,
.accordioncontent,
.articlecard
{
    padding:10px;
}

/* Search box */

.sitesearch
{
    width:calc(100% - 20px);
    margin:10px;
    padding:6px;
    box-sizing:border-box;
    border:1px solid #cccccc;
    background:#e8e8e8;
    font-size:14px;
}

#sitesearchresults
{
    margin:0 10px 10px 10px;
    display:none;
}

.searchsummary
{
    margin:6px 0 0 0;
    font-size:14px;
    font-weight:normal;
    color:#333333;
}

/* Latest news */

.newsstar
{
    color:#344E81;
    font-weight:bold;
}

.latestnews
{
    margin:0;
    padding:10px 10px 10px 20px;
    list-style:none;
}

.latestnews li
{
    margin-bottom:6px;
    font-size:13px;
}

/* Articles */

.articlecard
{
    font-size:13px;
}

.articlecard strong
{
    font-size:13px;
}

.articlecard h2
{
    margin-top:0;
    color:#344E81;
}

.articlecard h2 a
{
    color:#344E81;
    text-decoration:none;
}

.articlecard h2 a:hover
{
    color:#ff6600;
}

.meta
{
    font-size:12px;
    color:#555555;
    border-bottom:1px solid #344E81;
    padding-bottom:5px;
}

.readmore,
.archive-link
{
    font-weight:bold;
}

/* Accordion */

.accordionbox h3
{
    cursor:pointer;
}

.accordioncontent
{
    display:none;
}

.accordionbox.open .accordioncontent
{
    display:block;
}

.wpcaption
{
    border:1px solid #344E81;
    background:#dbe5f5;
    padding:5px;
    margin:10px;
    font-size:12px;
    text-align:center;
}

.wpcaption img
{
    display:block;
    margin:auto;
}

.wpcaption.alignleft
{
    float:left;
    margin:5px 15px 10px 0;
}

.wpcaption.alignright
{
    float:right;
    margin:5px 0 10px 15px;
}

.wpcaption.aligncenter
{
    margin:10px auto;
}

/* Footer */

#footer
{
    width:1000px;
    margin:auto;
    background:#344E81;
    color:white;
    padding:10px 0;
}

.yearselector
{
    margin-bottom:15px;
}

.yearbutton
{
    display:inline-block;
    padding:6px 10px;
    margin:0 5px 5px 0;
    background:#eeeeee;
    border:1px solid #cccccc;
    font-size:13px;
}

.yearbutton:hover
{
    background:#344E81;
    color:white;
}

.activeyear
{
    background:#344E81;
    color:white;
}

.newsrow
{
    display:grid;
    grid-template-columns:90px auto;
    gap:10px;
    padding:8px 0;
    border-bottom:1px solid #dddddd;
}

.newsdate
{
    font-size:12px;
    color:#555555;
}

.newstitle
{
    font-size:13px;
    font-weight:bold;
}

.newsmeta
{
    font-size:11px;
    color:#666666;
    font-weight:normal;
    margin-top:3px;
}

.rssicon
{
    width:14px;
    height:14px;
    vertical-align:middle;
    margin-right:6px;
}

/* Mobile-only menu items */

.mobileonly
{
    display:none;
}



#layouttoggle
{
    display:none;

    position:absolute;
    top:10px;
    right:10px;

    font-size:22px;
    color:#ffffff;

    text-shadow:2px 2px 4px rgba(0,0,0,0.8);

    z-index:100;
}
#layouttoggle.forceddesktop
{
    display:block;
}

/* Mobile layout */

@media screen and (max-width:800px)
{

    #header,
    #menu,
    #content,
    #footer
    {
        width:100%;
        max-width:100%;
        box-sizing:border-box;
    }

    #header
    {
        display:block;
    }

#headerimage
{
    position:relative;
    width:100%;
    aspect-ratio:576 / 131;
    height:auto;
    background-image:url('../images/header.jpg');
    background-repeat:no-repeat;
    background-size:100% 100%;
    background-position:left top;
}

#layouttoggle
{
    display:block;
}
    #headertitle
    {
        padding:12px;
        text-align:center;
        display:block;
    }

    #headertitle h1
    {
        font-size:26px;
    }

    #headertitle p
    {
        font-size:14px;
        margin:6px 0 0 0;
    }

    #facebook
    {
        position:static;
        margin-top:8px;
    }

    #facebook img
    {
        margin:auto;
    }

    #mobilemenubutton
    {
        display:block;
        background:#344E81;
        color:white;
        padding:12px;
        text-align:left;
        font-weight:bold;
        cursor:pointer;
        box-sizing:border-box;
    }

    #mainmenu
    {
        display:none;
    }

    #mainmenu a,
    #mainmenu .dropdown,
    #mainmenu .dropdown > a
    {
        display:block;
        width:100%;
        box-sizing:border-box;
    }

    #mainmenu a,
    #mainmenu .dropdown > a
    {
        padding:12px;
        border-top:1px solid rgba(255,255,255,0.15);
    }

    .dropdown-content,
    .dropdown-sub-content
    {
        display:none;
        position:static;
        width:100%;
        min-width:0;
        box-shadow:none;
        background:#344E81;
    }

    .dropdown-content a,
    .dropdown-sub-content a
    {
        padding-left:28px;
    }

    .dropdown-sub-content a
    {
        padding-left:44px;
    }

    /* Open mobile menus only when JavaScript adds the class */



    .dropdown.mobile-open > .dropdown-content
    {
        display:block;
    }

    .dropdown-sub.mobile-open > .dropdown-sub-content
    {
        display:block;
    }

    #homepage
    {
        display:flex;
        flex-direction:column;
        padding:10px 0;
    }

    #centrecol
    {
        order:1;
    }

#rightcol
{
    order:2;
}
    #leftcol
    {
        order:3;
    }

    #leftcol,
    #centrecol,
    #rightcol
    {
        width:auto;
        float:none;
        display:block;
        margin:0 10px 15px 10px;
    }

#rightcol
{
    display:none;
}

    .articlecard,
    .sidebox,
    .accordionbox
    {
        box-sizing:border-box;
    }

    img,
    iframe,
    .articlecard img,
    .articlecard iframe,
    .sidebox img,
    .sidebox iframe
    {
        max-width:100%;
        height:auto;
        box-sizing:border-box;
    }

    .articlecard
    {
        overflow:hidden;
    }

    /* Mobile article images - remove desktop float/frame formatting */

    .alignleft,
    .alignright,
    .aligncenter
    {
        float:none;
        display:block;
        width:100%;
        max-width:100%;
        margin:15px 0;
    }

    .articlecard img
    {
        display:block;
        width:100%;
        max-width:100%;
        height:auto;
        margin:0 auto;
    }

    /* Centre all article images without changing paragraph alignment */

    .articlecard img,
    .wpcaption img,
    figure img
    {
        float:none !important;
        display:block;
        margin-left:auto !important;
        margin-right:auto !important;
    }

/* Imported WordPress caption blocks on mobile */

.wpcaption,
.wpcaption.alignleft,
.wpcaption.alignright,
.wpcaption.aligncenter,
.wpcaption.alignnone
{
    float:none !important;
    display:block;
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box;
    margin:15px auto !important;
    padding:0;
    border:0;
    background:none;
    text-align:center;
}

.wpcaption img,
.wpcaption.alignleft img,
.wpcaption.alignright img,
.wpcaption.aligncenter img,
.wpcaption.alignnone img
{
    float:none !important;
    display:block;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    margin:0 auto;
}
    figure.articleimage-left,
    figure.articleimage-right,
    figure.articleimage-centre,
    figure.articleimage-full
    {
        float:none;
        display:block;
        width:100%;
        max-width:100%;
        box-sizing:border-box;
        margin:15px 0;
        padding:0;
        border:0;
        background:none;
        text-align:center;
    }

    figure.articleimage-left img,
    figure.articleimage-right img,
    figure.articleimage-centre img,
    figure.articleimage-full img
    {
        display:block;
        width:100%;
        height:auto;
        margin:0;
    }

    figure.articleimage-left figcaption,
    figure.articleimage-right figcaption,
    figure.articleimage-centre figcaption,
    figure.articleimage-full figcaption
    {
        margin-top:6px;
        text-align:center;
    }

    /* Two article images displayed together */
.articleimage-pair {
    display: flex;
    gap: 15px;
    width: 100%;
    align-items: flex-start;
}

.articleimage-pair figure {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
}

.articleimage-pair img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

    .wpcaption
    {
        max-width:100%;
        box-sizing:border-box;
        margin:10px auto;
    }

    .newsrow
    {
        grid-template-columns:1fr;
        gap:3px;
    }

    .newsdate
    {
        font-weight:bold;
    }

    #mainmenu a.mobileonly
    {
        display:block;
    }

}

/* tinymce requirements */

figure.articleimage-left
{
    float:left;
    max-width:45%;
    margin:0 25px 20px 0;
    padding:5px;
    border:1px solid #cccccc;
    background:#f5f5f5;
}

figure.articleimage-right
{
    float:right;
    max-width:45%;
    margin:0 0 20px 25px;
    padding:5px;
    border:1px solid #cccccc;
    background:#f5f5f5;
}

figure.articleimage-centre
{
    display:block;
    width:320px;
    margin:20px auto;
    padding:5px;
    border:1px solid #cccccc;
    background:#f5f5f5;
    text-align:center;
}

figure.articleimage-full
{
    display:block;
    width:100%;
    margin:20px 0;
    padding:5px;
    border:1px solid #cccccc;
    background:#f5f5f5;
    text-align:center;
}

figure.articleimage-left img,
figure.articleimage-right img,
figure.articleimage-centre img,
figure.articleimage-full img
{
    display:block;
    width:100%;
    height:auto;
}

figure.articleimage-left figcaption,
figure.articleimage-right figcaption,
figure.articleimage-centre figcaption,
figure.articleimage-full figcaption
{
    margin-top:6px;
    font-size:12px;
    line-height:1.3;
    text-align:center;
    font-style:italic;
    color:#444444;
}

.mb7twgrid
{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
}

.mb7twthumb
{
    text-align:center;
}

.mb7twthumb img
{
    width:100%;
    max-width:320px;
    border:1px solid #cccccc;
}

.mb7twthumb p
{
    margin-top:4px;
    font-size:11px;
}

.admin-login-page
{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-login-box
{
    width: 100%;
    max-width: 420px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.admin-login-box h1,
.admin-login-box h2
{
    margin-top: 0;
    text-align: center;
}

.admin-form-row
{
    margin-bottom: 18px;
}

.admin-form-row label
{
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.admin-form-row input
{
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.admin-form-actions
{
    text-align: center;
}

.admin-button
{
    padding: 10px 24px;
    cursor: pointer;
}

.admin-message
{
    margin-bottom: 18px;
    padding: 10px;
    border-radius: 4px;
}

.admin-message-error
{
    border: 1px solid #b00020;
}

.mb7twhistory summary
{
    cursor: pointer;
    color: #1f4d8c;
    font-weight: bold;
}

.mb7twhistory summary:hover
{
    text-decoration: underline;
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.article-gallery figure {
    margin: 0;
    padding: 7px;
    background: #fff;
    border: 1px solid #ccc;
}

.article-gallery img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.article-gallery figcaption {
    padding: 8px 4px 3px;
    font-size: 0.92rem;
    line-height: 1.35;
}

/* Frame style options for article figures */

figure.frame-none
{
    padding:0;
    border:0;
    background:none;
    box-shadow:none;
}

figure.frame-black
{
    padding:5px;
    border:1px solid #222222;
    background:#ffffff;
    box-sizing:border-box;
}

figure.frame-grey
{
    padding:7px;
    border:1px solid #cccccc;
    background:#eeeeee;
    box-sizing:border-box;
}

figure.frame-polaroid
{
    padding:8px 8px 18px 8px;
    border:1px solid #d6d6d6;
    background:#ffffff;
    box-sizing:border-box;
    box-shadow:0 2px 6px rgba(0,0,0,0.18);
}

/* Keep the image itself neat inside any framed figure */

figure.frame-black img,
figure.frame-grey img,
figure.frame-polaroid img
{
    display:block;
    max-width:100%;
    height:auto;
}

/* Caption styling shared by all frame styles */

figure.frame-none figcaption,
figure.frame-black figcaption,
figure.frame-grey figcaption,
figure.frame-polaroid figcaption
{
    margin-top:6px;
    font-size:12px;
    line-height:1.3;
    text-align:center;
    font-style:italic;
    color:#444444;
}

/* Slightly more "photo print" feel for Polaroid captions */

figure.frame-polaroid figcaption
{
    margin-top:10px;
    font-size:13px;
    font-style:normal;
    color:#333333;
}


