/*
 * Styles for the shipped default Views/Shared/_Layout.liquid only. Markup (ids/classes) is the legacy
 * PrintnowDisplay.Master's, so this styles those hooks on top of Bootstrap 5 rather than changing the
 * markup. Not a port of legacy's App_Themes/Default CSS (which isn't in the legacy repo). A themed
 * storefront overrides _Layout.liquid and never loads this. See Views/Shared/README.md.
 */
:root {
    --pn-ink: #1f2d3d;
    --pn-muted: #6b7785;
    --pn-accent: #2e7d32;
    --pn-accent-dark: #256628;
    --pn-border: #e3e7ec;
    --pn-footer-bg: #1f2d3d;
    --pn-footer-text: #c5ced8;
    --pn-page-width: 1200px;
}

body { color: var(--pn-ink); background: #fff; }
a { color: var(--pn-accent); }
a:hover { color: var(--pn-accent-dark); }

/* ---- Header ---- */
#header { border-bottom: 1px solid var(--pn-border); background: #fff; }
#headBanner {
    max-width: var(--pn-page-width);
    margin: 0 auto;
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 24px;
}
#headBanner > div:last-child { order: 1; flex: 1 1 520px; min-width: 0; }
#headerRight { order: 2; margin-left: auto; text-align: right; font-size: .9rem; }
#headerRight br { display: none; }
#headerRightUpper { color: var(--pn-muted); margin-bottom: 6px; }
#headerRightLower { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.headerRLLink a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--pn-border);
    border-radius: 999px;
    color: var(--pn-ink);
    text-decoration: none;
    font-weight: 600;
}
.headerRLLink a:hover { border-color: var(--pn-accent); color: var(--pn-accent); }
#hrllCartDiv a { background: var(--pn-accent); border-color: var(--pn-accent); color: #fff; }
#hrllCartDiv a:hover { background: var(--pn-accent-dark); border-color: var(--pn-accent-dark); color: #fff; }
.headerRLLink.email { display: none; }
.headLogo { height: 48px; width: auto; display: block; }
.Clear { clear: both; }

#links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    margin-top: 12px;
}
#link_container { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
.headerLink { font-size: .9rem; }
.header_home { font-weight: 600; }
.header_green { color: var(--pn-accent); font-weight: 600; }
#breadcrumbs:empty { display: none; }

#search_container { display: flex; gap: 6px; flex: 0 1 320px; }
#search {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 12px;
    border: 1px solid var(--pn-border);
    border-radius: 6px;
}
#search:focus { outline: 2px solid var(--pn-accent); outline-offset: -1px; }
.searchButton {
    padding: 6px 16px;
    border: 0;
    border-radius: 6px;
    background: var(--pn-ink);
    color: #fff;
    font-weight: 600;
}
.searchButton:hover { background: #000; }

/* ---- Body ---- */
.bodyContent { max-width: var(--pn-page-width); margin: 0 auto; padding: 24px 16px; min-height: 40vh; }
.pnOverlay { display: none; }

/* ---- Footer ---- */
#footer {
    background: var(--pn-footer-bg);
    color: var(--pn-footer-text);
    padding: 32px max(16px, calc((100% - var(--pn-page-width)) / 2 + 16px));
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 24px 32px;
}
#footer > div[style] { display: none; } /* legacy clearfix, not needed with grid */
.footerMailing, .footerSep { display: none; }
.footerHeader { color: #fff; font-weight: 600; margin-bottom: 10px; }
.footerContentList { list-style: none; margin: 0; padding: 0; }
.footerContentList li { margin-bottom: 6px; }
#footer a { color: var(--pn-footer-text); text-decoration: none; }
#footer a:hover { color: #fff; text-decoration: underline; }
.footerLogos img { max-width: 100%; height: auto; }

.copyright {
    background: #16212d;
    color: #9aa7b4;
    text-align: center;
    font-size: .85rem;
    padding: 16px;
}
.copyright a { color: #9aa7b4; }
.copyright a:hover { color: #fff; }

@media (max-width: 576px) {
    #headerRight { margin-left: 0; text-align: left; width: 100%; }
    #headerRightLower { justify-content: flex-start; flex-wrap: wrap; }
    #search_container { flex-basis: 100%; }
}
