/* ========================================================================
   Handley - Lower Delmarva Roots Forum
   Child style of phpBB prosilver
   ======================================================================== */

@import url("../../prosilver/theme/stylesheet.css");
@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600&family=Poppins:wght@500;600;700&display=swap");

:root {
    --ldr-page-bg: #f4f0e6;
    --ldr-surface: #fffdf8;
    --ldr-surface-soft: #edf3f1;
    --ldr-ink: #26343b;
    --ldr-muted: #5f6c70;
    --ldr-chesapeake: #24596e;
    --ldr-chesapeake-dark: #173e4e;
    --ldr-terracotta: #a75b43;
    --ldr-sage: #758a73;
    --ldr-gold: #c69b4a;
    --ldr-line: #d8d1c3;
    --ldr-shadow: 0 10px 28px rgba(34, 52, 59, 0.10);
    --ldr-radius: 14px;
    --ldr-page-width: 1180px;
}

/* ---------- Page foundation ---------- */

html,
body {
    background: var(--ldr-page-bg) !important;
    color: var(--ldr-ink);
}

body {
    font-family: "Lexend", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.wrap {
    width: min(calc(100% - 2rem), var(--ldr-page-width));
    max-width: var(--ldr-page-width);
    margin: 1.25rem auto;
    padding: 0;
    background: transparent;
    border: 0;
}

#page-body {
    margin: 1rem 0 0;
}

a {
    color: var(--ldr-chesapeake);
}

a:hover,
a:focus {
    color: var(--ldr-terracotta);
}

h1,
h2,
h3,
h4,
.forumtitle,
.topictitle {
    font-family: "Poppins", Arial, sans-serif;
}

/* ---------- LDR banner ---------- */

.headerbar {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(23, 62, 78, 0.32);
    border-radius: var(--ldr-radius) var(--ldr-radius) 0 0;
    background-color: #f7f0df !important;
    background-image: url("/images/LDRoots.png") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 100% 100% !important;
    box-shadow: var(--ldr-shadow);
}

.headerbar > .inner,
.headerbar .inner {
    position: relative;
    height: 100%;
    min-height: 100%;
    padding: 0;
}

/* The banner graphic supplies the visible title/logo. Keep phpBB's text
   available to assistive technology and search engines. */
#site-description h1,
#site-description > p:not(.skiplink),
.site-description h1,
.site-description > p:not(.skiplink) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#site-description,
.site-description {
    width: 100%;
    height: 100%;
    float: none;
    margin: 0;
    padding: 0;
}

#logo,
.logo,
.c-hero-logo {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

#logo img,
.logo img,
.site_logo,
.c-hero-logo-img {
    opacity: 0 !important;
}

/* Keep search usable but visually quiet. */
#search-box.search-header,
.search-box.search-header {
    position: absolute;
    right: 1.1rem;
    bottom: 0.9rem;
    z-index: 5;
    margin: 0;
    padding: 0.28rem;
    border: 1px solid rgba(23, 62, 78, 0.18);
    border-radius: 9px;
    background: rgba(255, 253, 248, 0.90);
    box-shadow: 0 5px 16px rgba(34, 52, 59, 0.12);
}

#search-box .inputbox,
.search-box .inputbox {
    border-color: #b9b3a7;
    background: #fffdf8;
    color: var(--ldr-ink);
}

/* ---------- phpBB navigation, restyled as Handley navigation ---------- */

#page-header .navbar {
    margin: 0;
    padding: 0.35rem 0.55rem;
    border: 0;
    border-radius: 0 0 10px 10px;
    background: var(--ldr-chesapeake-dark) !important;
    box-shadow: 0 5px 14px rgba(34, 52, 59, 0.08);
}

#page-header .navbar a,
#page-header .navbar .icon,
#page-header .navbar .username,
#page-header .navbar strong {
    color: #fff !important;
}

#page-header .navbar a:hover,
#page-header .navbar a:focus {
    color: #f4d89b !important;
    text-decoration: none;
}

#page-header .navbar .dropdown .dropdown-contents,
#page-header .navbar .dropdown-contents {
    background: var(--ldr-surface);
    color: var(--ldr-ink);
    border-color: var(--ldr-line);
}

#page-header .navbar .dropdown-contents a,
#page-header .navbar .dropdown-contents strong {
    color: var(--ldr-chesapeake) !important;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs .crumb a {
    color: var(--ldr-chesapeake);
}

.breadcrumbs .crumb a:hover {
    color: var(--ldr-terracotta);
}

/* ---------- Forum category blocks ---------- */

.forabg,
.forumbg {
    margin: 0 0 1.15rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(23, 62, 78, 0.18);
    border-radius: var(--ldr-radius);
    background: var(--ldr-surface) !important;
    box-shadow: var(--ldr-shadow);
}

.forabg > .inner,
.forumbg > .inner {
    margin: 0;
}

ul.topiclist li.header,
.forabg .header,
.forumbg .header {
    padding: 0.65rem 0.8rem;
    background: var(--ldr-chesapeake-dark) !important;
    color: #fff;
}

ul.topiclist li.header a,
ul.topiclist li.header dt,
ul.topiclist li.header dd,
ul.topiclist li.header .list-inner,
.forabg .header a,
.forumbg .header a {
    color: #fff !important;
}

ul.topiclist li.header a:hover {
    color: #f4d89b !important;
}

ul.topiclist.forums,
ul.topiclist.topics {
    background: var(--ldr-surface) !important;
}

li.row {
    border-top: 0;
    border-bottom: 1px solid var(--ldr-line);
    background: var(--ldr-surface) !important;
}

li.row:last-child {
    border-bottom: 0;
}

li.row:hover {
    background: var(--ldr-surface-soft) !important;
}

li.row dt,
li.row dd {
    border-color: var(--ldr-line);
}

.forumtitle,
.topictitle {
    color: var(--ldr-chesapeake-dark) !important;
    font-weight: 600;
}

.forumtitle:hover,
.topictitle:hover {
    color: var(--ldr-terracotta) !important;
}

.forums .list-inner,
.topics .list-inner,
.row .list-inner {
    line-height: 1.55;
}

.forums .list-inner > br,
.row .list-inner > br {
    line-height: 1.3;
}

/* ---------- Content panels ---------- */

.panel,
.post,
.bg1,
.bg2,
.bg3 {
    border-color: var(--ldr-line);
}

.panel {
    border: 1px solid var(--ldr-line);
    border-radius: var(--ldr-radius);
    background: var(--ldr-surface) !important;
    box-shadow: 0 7px 20px rgba(34, 52, 59, 0.07);
}

.post {
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--ldr-line);
    border-radius: var(--ldr-radius);
    background: var(--ldr-surface) !important;
    box-shadow: 0 7px 20px rgba(34, 52, 59, 0.07);
}

.postprofile {
    border-color: var(--ldr-line);
    color: var(--ldr-muted);
}

.postbody,
.content,
.postbody .content {
    color: var(--ldr-ink);
}

.postbody h3,
.panel h2,
.panel h3,
.stat-block h3 {
    color: var(--ldr-chesapeake-dark);
}

blockquote {
    border-color: var(--ldr-sage);
    background: var(--ldr-surface-soft);
}

/* ---------- Buttons ---------- */

.button,
.button1,
.button2,
input.button1,
input.button2,
a.button1,
a.button2 {
    border-color: var(--ldr-chesapeake-dark) !important;
    border-radius: 8px;
    background: var(--ldr-chesapeake) !important;
    color: #fff !important;
    box-shadow: none;
    text-shadow: none;
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 600;
}

.button:hover,
.button:focus,
.button1:hover,
.button1:focus,
.button2:hover,
.button2:focus,
input.button1:hover,
input.button2:hover,
a.button1:hover,
a.button2:hover {
    border-color: var(--ldr-terracotta) !important;
    background: var(--ldr-terracotta) !important;
    color: #fff !important;
}

.button-secondary {
    background: var(--ldr-sage) !important;
}

/* ---------- Forms ---------- */

input.inputbox,
textarea.inputbox,
select,
.inputbox {
    border-color: #bbb4a8;
    border-radius: 7px;
    background: #fffefb;
    color: var(--ldr-ink);
}

input.inputbox:focus,
textarea.inputbox:focus,
.inputbox:focus {
    border-color: var(--ldr-gold);
    box-shadow: 0 0 0 2px rgba(198, 155, 74, 0.18);
}

fieldset.fields1 dt,
fieldset.fields2 dt {
    color: var(--ldr-ink);
}

/* ---------- Login / online / statistics ---------- */

.stat-block {
    margin: 0.8rem 0;
    padding: 0.8rem 1rem;
    border-left: 4px solid var(--ldr-sage);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.72);
}

.stat-block h3 {
    margin-top: 0;
    font-size: 1.02rem;
}

.stat-block p {
    margin: 0.25rem 0;
    color: var(--ldr-muted);
    font-size: 0.92rem;
}

/* ---------- Notices, pagination and misc ---------- */

.rules {
    border: 1px solid #d5b069;
    border-radius: 10px;
    background: #fbf3df;
    color: #59491f;
}

.pagination li a,
.pagination li span {
    border-color: var(--ldr-line);
    background: var(--ldr-surface);
    color: var(--ldr-chesapeake);
}

.pagination li.active span,
.pagination li a:hover {
    background: var(--ldr-chesapeake) !important;
    color: #fff !important;
}

/* ---------- Footer ---------- */

#page-footer {
    margin-top: 1.5rem;
    padding-top: 0.7rem;
    border-top: 3px solid var(--ldr-terracotta);
}

#page-footer .navbar {
    background: transparent !important;
    color: var(--ldr-muted);
}

#page-footer a {
    color: var(--ldr-chesapeake);
}

.copyright,
.footer-row {
    color: var(--ldr-muted);
}

/* ---------- Focus accessibility ---------- */

:focus-visible {
    outline: 3px solid var(--ldr-gold) !important;
    outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .wrap {
        width: min(calc(100% - 1rem), var(--ldr-page-width));
        margin-top: 0.5rem;
    }

    #search-box.search-header,
    .search-box.search-header {
        right: 0.65rem;
        bottom: 0.55rem;
        transform: scale(0.92);
        transform-origin: right bottom;
    }
}

@media (max-width: 700px) {
    body {
        font-size: 14px;
    }

    .wrap {
        width: 100%;
        margin: 0;
    }

    .headerbar {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: none;
    }

    /* On narrow screens, the banner tagline becomes very small. Show the
       board description below the graphic as readable text. */
    #site-description,
    .site-description {
        position: static;
    }

    #site-description > p:not(.skiplink),
    .site-description > p:not(.skiplink),
    .c-hero-lead {
        position: absolute !important;
        top: 100%;
        left: 0;
        z-index: 7;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0.65rem 0.85rem !important;
        clip: auto !important;
        overflow: visible !important;
        white-space: normal !important;
        border: 0 !important;
        background: var(--ldr-surface-soft);
        color: var(--ldr-ink);
        text-align: center;
        font-family: "Lexend", Arial, sans-serif;
        font-size: 0.88rem;
        line-height: 1.4;
        box-shadow: 0 3px 10px rgba(34, 52, 59, 0.08);
    }

    #page-header .navbar {
        margin-top: 3.25rem;
        border-radius: 0;
    }

    #search-box.search-header,
    .search-box.search-header {
        display: none;
    }

    .forabg,
    .forumbg,
    .panel,
    .post {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    #page-header .navbar {
        margin-top: 3.8rem;
    }
}
