@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&display=swap');

/* ==========================================================
   LINGUAL JAMS GUILD HALL FORUM
   ========================================================== */


/* ==========================================================
   BACKGROUND
   ========================================================== */

/*
   Do not override the background on individual forum pages.
   The forum landing page already uses the correct global site background,
   so category pages should inherit that same background unchanged.
*/

html,
body.single-forum {
    min-height: 100%;
}

body.single-forum {
    min-height: 100vh !important;
}


/* ==========================================================
   REMOVE THEME BACKGROUNDS
   ========================================================== */

body.single-forum .site,
body.single-forum .site-content,
body.single-forum .content-area,
body.single-forum .site-main,
body.single-forum #primary,
body.single-forum #content,
body.single-forum article,
body.single-forum .entry-content,
body.single-forum .bbp-forum-content {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}


/* ==========================================================
   MAIN PAGE WIDTH
   ========================================================== */

body.single-forum main#content {
    width: 98% !important;
    max-width: 1600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


/* ==========================================================
   FORUM LAYOUT
   ========================================================== */

#bbpress-forums {
    width: 100% !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
}


/* ==========================================================
   REMOVE TINY BREADCRUMB
   ========================================================== */

#bbpress-forums .bbp-breadcrumb,
#bbpress-forums .bbp-breadcrumb p {
    display: none !important;
}


/* ==========================================================
   PAGE TITLE
   ========================================================== */

body.single-forum .page-header .entry-title {
    color: #2E8F8B !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 42px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
}


/* ==========================================================
   INFORMATION NOTICE
   ========================================================== */

#bbpress-forums .bbp-template-notice {
    font-size: 16px !important;
    line-height: 1.55 !important;
    padding: 10px 14px !important;
    margin: 0 0 18px 0 !important;
}

#bbpress-forums .bbp-template-notice p,
#bbpress-forums .bbp-template-notice a,
#bbpress-forums .bbp-template-notice span {
    font-size: 16px !important;
    line-height: 1.55 !important;
}


/* ==========================================================
   FORUM PANELS
   ========================================================== */

#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies {
    background: rgba(255, 248, 238, 0.88) !important;
    border: 1px solid rgba(90, 55, 20, 0.18) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}


/* ==========================================================
   HEADER ROW
   ========================================================== */

#bbpress-forums li.bbp-header {
    background: rgba(120, 72, 28, 0.18) !important;
    padding: 16px 18px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

#bbpress-forums .bbp-header .bbp-forum-info,
#bbpress-forums .bbp-header .bbp-forum-topic-count,
#bbpress-forums .bbp-header .bbp-forum-reply-count,
#bbpress-forums .bbp-header .bbp-forum-freshness,
#bbpress-forums .bbp-header .bbp-topic-title,
#bbpress-forums .bbp-header .bbp-topic-voice-count,
#bbpress-forums .bbp-header .bbp-topic-reply-count,
#bbpress-forums .bbp-header .bbp-topic-freshness {
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}


/* ==========================================================
   FORUM ROWS
   ========================================================== */

#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic {
    padding: 20px 18px !important;
}


/* ==========================================================
   MAIN FORUM CATEGORY TITLES
   ========================================================== */

#bbpress-forums a.bbp-forum-title,
#bbpress-forums .bbp-forum-title {
    color: #2E8F8B !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 25px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
}


/* ==========================================================
   FORUM DESCRIPTIONS
   ========================================================== */

#bbpress-forums .bbp-forum-content {
    color: #242424 !important;
    font-size: 17px !important;
    line-height: 1.65 !important;
    font-weight: 400 !important;
    margin-top: 7px !important;
}

#bbpress-forums .bbp-forum-content strong,
#bbpress-forums .bbp-forum-content b {
    font-weight: 700 !important;
}


/* ==========================================================
   SUBFORUM / SUBCATEGORY LINKS
   ========================================================== */

#bbpress-forums .bbp-forums-list {
    display: block !important;
    margin: 16px 0 0 0 !important;
    padding: 12px 0 0 0 !important;
    border-top: 1px solid rgba(46, 143, 139, 0.22) !important;
    font-size: 18px !important;
    line-height: 1.8 !important;
    font-weight: 600 !important;
}

#bbpress-forums .bbp-forums-list li {
    display: inline !important;
    margin: 0 8px 0 0 !important;
    padding: 0 !important;
    font-size: 18px !important;
    line-height: 1.8 !important;
    font-weight: 600 !important;
}

#bbpress-forums .bbp-forums-list a,
#bbpress-forums .bbp-forum-content .bbp-forums-list a {
    color: #2E8F8B !important;
    font-size: 18px !important;
    line-height: 1.8 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

#bbpress-forums .bbp-forums-list a:hover {
    color: #49B9AF !important;
    text-decoration: underline !important;
}


/* ==========================================================
   TOPIC TITLES
   ========================================================== */

#bbpress-forums .bbp-topic-title,
#bbpress-forums .bbp-topic-title a,
#bbpress-forums a.bbp-topic-permalink {
    font-size: 19px !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
}


/* ==========================================================
   COUNTS AND LAST POST
   ========================================================== */

#bbpress-forums .bbp-forum-topic-count,
#bbpress-forums .bbp-forum-reply-count,
#bbpress-forums .bbp-topic-voice-count,
#bbpress-forums .bbp-topic-reply-count {
    font-size: 16px !important;
    line-height: 1.5 !important;
}

#bbpress-forums .bbp-forum-freshness,
#bbpress-forums .bbp-topic-freshness,
#bbpress-forums .bbp-forum-freshness a,
#bbpress-forums .bbp-topic-freshness a {
    font-size: 16px !important;
    line-height: 1.5 !important;
}


/* ==========================================================
   LINK COLORS
   ========================================================== */

#bbpress-forums a,
#bbpress-forums a:visited,
body.single-forum .entry-content a,
body.single-forum .page-content a,
body.single-forum .bbp-forum-info a,
body.single-forum .bbp-author-name,
body.single-forum .bbp-topic-permalink {
    color: #2E8F8B !important;
    text-decoration: none;
}

#bbpress-forums a:hover,
body.single-forum .entry-content a:hover,
body.single-forum .page-content a:hover {
    color: #49B9AF !important;
    text-decoration: underline;
}


/* ==========================================================
   SEARCH
   ========================================================== */

#bbpress-forums input[type="text"],
#bbpress-forums input[type="search"] {
    min-height: 38px !important;
    border: 1px solid #2E8F8B !important;
    border-radius: 6px !important;
    padding: 8px 10px !important;
    font-size: 16px !important;
}

#bbpress-forums input[type="submit"],
#bbpress-forums button,
#bbpress-forums .button {
    min-height: 38px !important;
    background: #2E8F8B !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 15px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

#bbpress-forums input[type="submit"]:hover,
#bbpress-forums button:hover,
#bbpress-forums .button:hover {
    background: #49B9AF !important;
}


/* ==========================================================
   COLUMN WIDTHS
   ========================================================== */

#bbpress-forums .bbp-forum-info {
    width: 65% !important;
}

#bbpress-forums .bbp-forum-topic-count,
#bbpress-forums .bbp-forum-reply-count {
    width: 8% !important;
}

#bbpress-forums .bbp-forum-freshness {
    width: 19% !important;
}

/* ==========================================================
   TABLET READABILITY
   ========================================================== */

@media screen and (min-width: 769px) and (max-width: 1100px) {

    body.single-forum main#content {
        width: 94% !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #bbpress-forums {
        width: 100% !important;
        max-width: none !important;
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    body.single-forum .page-header .entry-title {
        font-size: 36px !important;
        line-height: 1.15 !important;
    }

    #bbpress-forums li.bbp-header {
        padding: 13px 12px !important;
    }

    #bbpress-forums li.bbp-body ul.forum,
    #bbpress-forums li.bbp-body ul.topic {
        padding: 16px 12px !important;
    }

    #bbpress-forums a.bbp-forum-title,
    #bbpress-forums .bbp-forum-title {
        font-size: 22px !important;
    }

    #bbpress-forums .bbp-forum-content {
        font-size: 16px !important;
        line-height: 1.55 !important;
    }

    #bbpress-forums .bbp-forums-list,
    #bbpress-forums .bbp-forums-list li,
    #bbpress-forums .bbp-forums-list a {
        font-size: 16px !important;
        line-height: 1.65 !important;
    }

    #bbpress-forums .bbp-forum-info {
        width: 58% !important;
    }

    #bbpress-forums .bbp-forum-topic-count,
    #bbpress-forums .bbp-forum-reply-count {
        width: 9% !important;
    }

    #bbpress-forums .bbp-forum-freshness {
        width: 24% !important;
    }

    #bbpress-forums input[type="text"],
    #bbpress-forums input[type="search"] {
        max-width: 68% !important;
        box-sizing: border-box !important;
    }
}


/* ==========================================================
   MOBILE READABILITY
   Stack forum information instead of squeezing desktop columns
   ========================================================== */

@media screen and (max-width: 768px) {

    body.single-forum,
    body.single-forum .site,
    body.single-forum .site-content,
    body.single-forum .content-area,
    body.single-forum .site-main,
    body.single-forum #primary,
    body.single-forum #content,
    body.single-forum main#content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.single-forum main#content {
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #bbpress-forums {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        font-size: 16px !important;
        line-height: 1.55 !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    body.single-forum .page-header .entry-title {
        font-size: 30px !important;
        line-height: 1.12 !important;
        overflow-wrap: anywhere !important;
    }

    #bbpress-forums ul.bbp-forums,
    #bbpress-forums ul.bbp-topics,
    #bbpress-forums ul.bbp-replies {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }

    /* Hide desktop table headings that no longer match the stacked layout */
    #bbpress-forums li.bbp-header {
        display: none !important;
    }

    #bbpress-forums li.bbp-body,
    #bbpress-forums li.bbp-body ul.forum,
    #bbpress-forums li.bbp-body ul.topic {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #bbpress-forums li.bbp-body ul.forum,
    #bbpress-forums li.bbp-body ul.topic {
        display: block !important;
        padding: 16px 14px !important;
        overflow: hidden !important;
    }

    /* Make every bbPress column a full-width stacked section */
    #bbpress-forums .bbp-forum-info,
    #bbpress-forums .bbp-forum-topic-count,
    #bbpress-forums .bbp-forum-reply-count,
    #bbpress-forums .bbp-forum-freshness,
    #bbpress-forums .bbp-topic-title,
    #bbpress-forums .bbp-topic-voice-count,
    #bbpress-forums .bbp-topic-reply-count,
    #bbpress-forums .bbp-topic-freshness {
        display: block !important;
        float: none !important;
        clear: both !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: left !important;
        box-sizing: border-box !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    #bbpress-forums .bbp-forum-topic-count,
    #bbpress-forums .bbp-forum-reply-count,
    #bbpress-forums .bbp-topic-voice-count,
    #bbpress-forums .bbp-topic-reply-count {
        display: inline-block !important;
        clear: none !important;
        width: auto !important;
        margin: 10px 14px 0 0 !important;
        font-size: 14px !important;
    }

    #bbpress-forums .bbp-forum-freshness,
    #bbpress-forums .bbp-topic-freshness {
        margin-top: 10px !important;
        padding-top: 10px !important;
        border-top: 1px solid rgba(46, 143, 139, 0.18) !important;
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    #bbpress-forums a.bbp-forum-title,
    #bbpress-forums .bbp-forum-title {
        display: block !important;
        font-size: 22px !important;
        line-height: 1.2 !important;
        overflow-wrap: anywhere !important;
    }

    #bbpress-forums .bbp-forum-content {
        font-size: 16px !important;
        line-height: 1.55 !important;
        margin-top: 8px !important;
        overflow-wrap: anywhere !important;
    }

    #bbpress-forums .bbp-forums-list {
        margin-top: 14px !important;
        padding-top: 10px !important;
        font-size: 16px !important;
        line-height: 1.7 !important;
    }

    #bbpress-forums .bbp-forums-list li {
        display: block !important;
        margin: 0 0 7px 0 !important;
        font-size: 16px !important;
        line-height: 1.55 !important;
    }

    #bbpress-forums .bbp-forums-list a {
        display: inline-block !important;
        font-size: 16px !important;
        line-height: 1.55 !important;
        overflow-wrap: anywhere !important;
    }

    #bbpress-forums .bbp-topic-title,
    #bbpress-forums .bbp-topic-title a,
    #bbpress-forums a.bbp-topic-permalink {
        font-size: 18px !important;
        line-height: 1.35 !important;
        overflow-wrap: anywhere !important;
    }

    #bbpress-forums .bbp-template-notice {
        width: 100% !important;
        padding: 10px 12px !important;
        font-size: 15px !important;
        box-sizing: border-box !important;
    }

    #bbpress-forums .bbp-template-notice p,
    #bbpress-forums .bbp-template-notice a,
    #bbpress-forums .bbp-template-notice span {
        font-size: 15px !important;
        line-height: 1.5 !important;
        overflow-wrap: anywhere !important;
    }

    /* Stack search field and button */
    #bbpress-forums .bbp-search-form,
    #bbpress-forums #bbp-search-form {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 14px 0 !important;
    }

    #bbpress-forums input[type="text"],
    #bbpress-forums input[type="search"],
    #bbpress-forums input[type="submit"],
    #bbpress-forums button,
    #bbpress-forums .button {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 0 8px 0 !important;
    }

    /* Keep avatars and author information from forcing horizontal overflow */
    #bbpress-forums img,
    #bbpress-forums .avatar {
        max-width: 100% !important;
        height: auto !important;
    }

    #bbpress-forums fieldset,
    #bbpress-forums form,
    #bbpress-forums textarea,
    #bbpress-forums select {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}


/* ==========================================================
   SMALL PHONES
   ========================================================== */

@media screen and (max-width: 420px) {

    body.single-forum main#content {
        padding-left: 7px !important;
        padding-right: 7px !important;
    }

    body.single-forum .page-header .entry-title {
        font-size: 27px !important;
    }

    #bbpress-forums li.bbp-body ul.forum,
    #bbpress-forums li.bbp-body ul.topic {
        padding: 14px 11px !important;
    }

    #bbpress-forums a.bbp-forum-title,
    #bbpress-forums .bbp-forum-title {
        font-size: 20px !important;
    }

    #bbpress-forums .bbp-forum-content,
    #bbpress-forums .bbp-forums-list,
    #bbpress-forums .bbp-forums-list li,
    #bbpress-forums .bbp-forums-list a {
        font-size: 15px !important;
    }
}

/* ==========================================================
   RESPONSIVE BACKGROUND FIX
   Keep the desktop background behavior, but prevent the image
   from becoming oversized on tablets and phones.
   ========================================================== */

@media screen and (max-width: 1100px) {

    body.single-forum {
        background-size: 100% auto !important;
        background-position: top center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }

    body.single-forum::before,
    body.single-forum::after {
        background-size: 100% auto !important;
        background-position: top center !important;
        background-repeat: no-repeat !important;
    }

    body.single-forum .site,
    body.single-forum #page,
    body.single-forum .site-content,
    body.single-forum .content-area,
    body.single-forum .site-main {
        background-size: 100% auto !important;
        background-position: top center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }
}

@media screen and (max-width: 768px) {

    body.single-forum {
        background-size: auto 100vh !important;
        background-position: top center !important;
    }

    body.single-forum::before,
    body.single-forum::after,
    body.single-forum .site,
    body.single-forum #page,
    body.single-forum .site-content,
    body.single-forum .content-area,
    body.single-forum .site-main {
        background-size: auto 100vh !important;
        background-position: top center !important;
    }
}

/* ==========================================================
   MOBILE FORUM CARD SPACING FIX
   Compact the stacked bbPress rows on phones and tablets.
   ========================================================== */

@media screen and (max-width: 768px) {

    #bbpress-forums li.bbp-body ul.forum,
    #bbpress-forums li.bbp-body ul.topic {
        display: grid !important;
        grid-template-columns: auto auto 1fr !important;
        column-gap: 16px !important;
        row-gap: 6px !important;
        align-items: start !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 14px 14px !important;
    }

    #bbpress-forums .bbp-forum-info,
    #bbpress-forums .bbp-topic-title {
        grid-column: 1 / -1 !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #bbpress-forums .bbp-forum-topic-count,
    #bbpress-forums .bbp-forum-reply-count,
    #bbpress-forums .bbp-topic-voice-count,
    #bbpress-forums .bbp-topic-reply-count {
        display: block !important;
        width: auto !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 2px 0 0 0 !important;
        padding: 0 !important;
        line-height: 1.25 !important;
    }

    #bbpress-forums .bbp-forum-freshness,
    #bbpress-forums .bbp-topic-freshness {
        grid-column: 1 / -1 !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 4px 0 0 0 !important;
        padding: 8px 0 0 0 !important;
        line-height: 1.35 !important;
    }

    #bbpress-forums .bbp-forum-freshness p,
    #bbpress-forums .bbp-topic-freshness p,
    #bbpress-forums .bbp-forum-content p,
    #bbpress-forums .bbp-topic-title p {
        margin-top: 0 !important;
        margin-bottom: 4px !important;
        padding: 0 !important;
    }

    #bbpress-forums a.bbp-forum-title,
    #bbpress-forums .bbp-forum-title,
    #bbpress-forums a.bbp-topic-permalink {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
    }

    #bbpress-forums .bbp-forum-content {
        margin-top: 6px !important;
        margin-bottom: 0 !important;
    }

    #bbpress-forums .bbp-forums-list {
        margin-top: 9px !important;
        padding-top: 8px !important;
        margin-bottom: 0 !important;
    }

    #bbpress-forums li.bbp-body ul.forum > li,
    #bbpress-forums li.bbp-body ul.topic > li {
        min-height: 0 !important;
        height: auto !important;
    }
}

@media screen and (max-width: 420px) {

    #bbpress-forums li.bbp-body ul.forum,
    #bbpress-forums li.bbp-body ul.topic {
        column-gap: 12px !important;
        row-gap: 5px !important;
        padding: 12px 11px !important;
    }

    #bbpress-forums .bbp-forum-freshness,
    #bbpress-forums .bbp-topic-freshness {
        padding-top: 7px !important;
    }
}