/* Community Board - A Free Design by Bryant Smith (bryantsmith.com)
   A neighbourhood noticeboard built from cards, lists and a two-column
   layout. Every colour and measurement lives here; look for the section
   headings below to find the part you want to change. */


/* ---- BODY: the warm backdrop the board sits on ---- */

body {
    background: #e8e3d7;
    color: #4b4842;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    padding: 32px 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a:focus-visible {
    outline: 2px solid #c2652e;
    outline-offset: 2px;
}


/* ---- PAGE: the board itself, centred on the backdrop ---- */

#page {
    background: #fdfbf6;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(35, 48, 43, 0.06), 0 18px 40px rgba(35, 48, 43, 0.12);
    margin: 0 auto;
    max-width: 940px;
    overflow: hidden;
}


/* ---- HERO BAND: the green masthead across the top ---- */

#masthead {
    background-color: #1f5c4a;
    background-image:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 12px, transparent 12px 24px),
        linear-gradient(135deg, #26705a 0%, #143b30 100%);
    border-bottom: 5px solid #c2652e;
    color: #eaf3ee;
    padding: 26px 44px 46px 44px;
}

.topbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 38px;
}

#brand {
    align-items: center;
    display: flex;
    gap: 11px;
}

.brand-mark {
    align-items: center;
    background: #c2652e;
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: bold;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.brand-name {
    color: #bfe0d2;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
}


/* ---- MENU: the row of links in the hero ---- */

#menu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: #d9ece3;
    font-size: 12px;
    letter-spacing: 1.5px;
    padding-bottom: 3px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#menu a:hover {
    border-bottom-color: #e0a05e;
    color: #ffffff;
}

#masthead h1 {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 52px;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1.05;
}

.tagline {
    color: #a9cdbe;
    font-size: 14px;
    margin-top: 12px;
}


/* ---- BOARD: the two-column area under the hero ---- */

#board {
    align-items: flex-start;
    display: flex;
    gap: 40px;
    padding: 44px 44px 8px 44px;
}

#main {
    flex: 1 1 auto;
    min-width: 0;
}

#sidebar {
    flex: 0 0 268px;
}


/* ---- HEADINGS AND LEAD PARAGRAPH ---- */

.lead {
    border-left: 4px solid #d8b48a;
    color: #55514a;
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 38px;
    padding-left: 20px;
}

h2 {
    border-bottom: 2px solid #e6e0d3;
    color: #1f5c4a;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2.5px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    position: relative;
    text-transform: uppercase;
}

h2::after {
    background: #c2652e;
    bottom: -2px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    width: 44px;
}


/* ---- CARDS: the pinned announcement notes ---- */

.card-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 46px;
}

.card {
    background: #ffffff;
    border: 1px solid #ece6d9;
    border-radius: 8px;
    border-top: 4px solid #2f7c63;
    box-shadow: 0 1px 2px rgba(35, 48, 43, 0.05);
    padding: 27px 22px 20px 22px;
    position: relative;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.card::before {
    background: radial-gradient(circle at 35% 30%, #f0b46a, #b5651d 70%);
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    content: "";
    height: 14px;
    left: 50%;
    margin-left: -7px;
    position: absolute;
    top: -9px;
    width: 14px;
}

.card:hover {
    box-shadow: 0 12px 26px rgba(35, 48, 43, 0.13);
    transform: translateY(-2px);
}

.card h3 {
    color: #23302b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: 8px;
}

.card p {
    color: #5a564e;
    font-size: 14px;
}

.card .meta {
    border-top: 1px dashed #ece6d9;
    color: #6f6a60;
    font-size: 11px;
    letter-spacing: 0.5px;
    margin-top: 14px;
    padding-top: 10px;
    text-transform: uppercase;
}

.tag {
    border-radius: 20px;
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    padding: 3px 9px;
    text-transform: uppercase;
}

.tag-green {
    background: #e7f0eb;
    color: #1f5c4a;
}

.tag-amber {
    background: #f7e8db;
    color: #a8541f;
}


/* ---- DATES: the list of upcoming events ---- */

.dates {
    border-top: 1px solid #ece6d9;
    list-style: none;
    margin-bottom: 40px;
}

.dates li {
    align-items: center;
    border-bottom: 1px solid #ece6d9;
    display: flex;
    gap: 16px;
    padding: 14px 4px;
    transition: background 0.15s ease;
}

.dates li:hover {
    background: #faf7f0;
}

.date {
    background: #f3efe6;
    border: 1px solid #e6e0d3;
    border-radius: 6px;
    flex: 0 0 54px;
    line-height: 1;
    padding: 7px 0;
    text-align: center;
}

.date b {
    color: #1f5c4a;
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
}

.date small {
    color: #8b857a;
    display: block;
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-top: 3px;
    text-transform: uppercase;
}

.event {
    display: flex;
    flex-direction: column;
}

.event strong {
    color: #23302b;
    font-size: 15px;
}

.where {
    color: #6f6a60;
    font-size: 12.5px;
    margin-top: 2px;
}


/* ---- SIDEBAR PANELS: links and contact boxes ---- */

.panel {
    background: #ffffff;
    border: 1px solid #ece6d9;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(35, 48, 43, 0.04);
    margin-bottom: 20px;
    padding: 22px 22px 24px 22px;
}

.panel h2 {
    font-size: 11px;
    margin-bottom: 12px;
}

.links {
    list-style: none;
}

.links li {
    border-bottom: 1px solid #f0ece2;
}

.links li:last-child {
    border-bottom: none;
}

.links a,
.links a:visited {
    color: #2f5a4c;
    display: block;
    font-size: 13.5px;
    padding: 10px 4px 10px 20px;
    position: relative;
    text-decoration: none;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.links a::before {
    color: #c2652e;
    content: "\2192";
    left: 2px;
    position: absolute;
    top: 10px;
    transition: left 0.15s ease;
}

.links a:hover {
    color: #1f5c4a;
    padding-left: 24px;
}

.links a:hover::before {
    left: 6px;
}

.contact-line {
    border-bottom: 1px solid #f0ece2;
    color: #4b4842;
    display: flex;
    font-size: 13.5px;
    gap: 10px;
    padding: 8px 0;
}

.contact-line:last-of-type {
    border-bottom: none;
}

.contact-line .label {
    color: #8b857a;
    flex: 0 0 52px;
    font-size: 10px;
    letter-spacing: 1px;
    padding-top: 3px;
    text-transform: uppercase;
}

.panel a,
.panel a:visited {
    color: #2f5a4c;
    text-decoration: none;
}

.panel a:hover {
    color: #c2652e;
    text-decoration: underline;
}

.hours {
    background: #f6f2e9;
    border: 1px solid #ece6d9;
    border-radius: 6px;
    color: #6f6a60;
    font-size: 12.5px;
    margin-top: 14px;
    padding: 10px 12px;
}

.note {
    background: #fdf7ef;
    border: 1px dashed #e2c9a8;
}

.note p {
    color: #6f6a60;
    font-size: 12.5px;
}

.note code {
    background: #f3ece0;
    border-radius: 3px;
    color: #a8541f;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    padding: 1px 4px;
}


/* ---- FOOTER: the required credit link ---- */

#footer {
    border-top: 3px double #e6e0d3;
    color: #8b857a;
    font-size: 10px;
    letter-spacing: 1px;
    margin: 24px 44px 0 44px;
    padding: 20px 0 26px 0;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: #7a746a;
    text-decoration: none;
}

#footer a:hover {
    color: #c2652e;
}


/* ---- MEDIUM SCREENS: stack the side panel under the main column ---- */

@media (max-width: 820px) {
    #board {
        display: block;
    }

    #sidebar {
        margin-top: 36px;
    }
}


/* ---- SMALL SCREENS: one card per row and tighter padding ---- */

@media (max-width: 640px) {
    body {
        padding: 0;
    }

    #page {
        border-radius: 0;
    }

    #masthead {
        padding: 22px 22px 34px 22px;
    }

    #masthead h1 {
        font-size: 34px;
    }

    #board {
        padding: 28px 22px 8px 22px;
    }

    .card-grid {
        gap: 16px;
        grid-template-columns: 1fr;
    }

    #footer {
        margin: 24px 22px 0 22px;
    }
}


/* ---- PRINT: a clean sheet without shadows or menus ---- */

@media print {
    body {
        background: #ffffff;
        padding: 0;
    }

    #page {
        box-shadow: none;
        max-width: 100%;
    }

    #masthead {
        background: #ffffff;
        border-bottom: 2px solid #000000;
        color: #000000;
    }

    #masthead h1,
    .tagline,
    .brand-name {
        color: #000000;
    }

    #menu,
    .note {
        display: none;
    }
}
