/* ── Type ──────────────────────────────────────────────────────────────────
   Three faces, each with one job.
     display  Bodoni Moda: headings. A Didone, high-contrast and upright, the
              same family of letter as the tall serif PORTRAITS wordmark, so
              every heading reads as part of the logo. Variable: weight
              400-900 and an optical-size axis, held at its text cut (see
              h1-h3) so the thin strokes stay readable on screen.
              Self-hosted here, Latin subset (assets/fonts/BodoniModa,
              SIL OFL).
     text     Open Sans: reading. Up from 14px to 16px on a 1.6 line.
     label    Montserrat in spaced capitals: navigation, eyebrows, counts,
              table heads; the voice of the top bar.
   Headings stay the theme's rust; text is graphite, not black. */
@font-face {
    font-family: 'Bodoni Moda';
    src: url('../fonts/BodoniModa/BodoniModa-latin.woff2') format('woff2');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Bodoni Moda';
    src: url('../fonts/BodoniModa/BodoniModa-Italic-latin.woff2') format('woff2');
    font-weight: 400 900;
    font-style: italic;
    font-display: swap;
}
:root {
    --pbj-ink: #2b2b29;
    --pbj-pencil: #6b6a64;
    --pbj-rust: #b04829;
    --pbj-display: 'Bodoni Moda', 'Bodoni 72', Didot, Georgia, serif;
    --pbj-text: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --pbj-label: 'Montserrat', 'Open Sans', sans-serif;
}

body {
    background-color: #ffffff;
    width: 100%;
    padding: 0;
    margin: 0;
    font-family: var(--pbj-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--pbj-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

header img {
    border-radius: 0;
}

header .tagline {
    display: flex;
    justify-content: flex-end;  /* push to the right */
    align-items: flex-end;      /* push to the bottom */
}

header .tagline h2 {
    margin: 0 20px 15px;  /* h1 has default margins that can add unwanted space */
    font-size: 22px;
}

.dark a,
.dark a:visited {
    color:white;
    text-decoration: none;
}
.navbar-light a,
.navbar-light a:visited,
.module-subnav a,
.module-subnav a:visited {
    color: #000000;
    text-decoration: none;
    font-weight: 400;
}
.navbar-light a.active,
.module-subnav a.active,
.navbar-light a:hover,
.module-subnav a:hover {
    color: #272727;
}
.nav-link:hover {
    color: #1366b6 !important;
    text-decoration: underline;
}

h1, h2, h3 {
    font-family: var(--pbj-display);
    /* The optical axis pinned to the font's TEXT cut (11), not left to
       follow the size: left to itself it draws a 46px heading with display
       hairlines, thin enough to vanish on a screen and leave the letters
       half-drawn. The text cut keeps the Didone contrast with thin strokes
       that hold up at any size. */
    font-optical-sizing: none;
    font-variation-settings: 'opsz' 11;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.005em;
    color: var(--pbj-rust);
    margin-bottom: .5em;
}
/* The smaller headings are labels, not titles: spaced capitals in the label
   face, graphite, so a form's section or a table's caption never competes
   with the page's title. */
h4, h5, h6 {
    font-family: var(--pbj-label);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pbj-ink);
}
h1 a,
h2 a,
h3 a,
h4 a,
h5 a {
    color: #B04829;
}
/* Core's default stylesheet colors every `header h1` white and bold, for
   its own dark site header. Here no header is dark, so a heading inside any
   <header> (the shop's title row is one) stays a heading: rust, the display
   weight. The site header's own h1 also loses its margin. */
header h1,
header h1 a,
header h1 a:active,
header h1 a:visited,
header h1 a:hover {
    color: var(--pbj-rust);
    font-weight: 500;
}
body > header h1 { margin: 0; }

/* A 1.25 scale at the top, eased down on a phone by clamp(). rem, not em:
   a heading inside a smaller box keeps its size. */
h1 { font-size: clamp(2.05rem, 1.55rem + 1.9vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.15vw, 2.15rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + .55vw, 1.55rem); font-weight: 600; }
h4 { font-size: .86rem; }
h5, h6 { font-size: .76rem; }

small, .small { font-size: .85em; }
/* A subtitle tucked into a heading ("Catalog <small>categories, artworks…")
   is a note, not more title: the text face, quiet. */
h1 small, h2 small, h3 small {
    font-family: var(--pbj-text);
    font-size: .52em;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--pbj-pencil) !important;
}
b, strong { font-weight: 600; }
::selection { background: rgba(176, 72, 41, .18); }

.badge {
    background-color: #085798;
}
.badge-primary {
    background-color: black;
}
.badge-secondary {
    background-color: darkgray;
}

.container {
    background-color: white;
    padding: 20px;
}
#main.container {
    padding-top: 0;
}
header .container {
    background-color: transparent;
    padding: 0 20px;
    position: relative;
}

.account-badge {
    position: relative;
    text-align: right;
    background-color: #2B2B29;
    padding: 10px 15px;
    border-radius: 8px;
    border: thin solid white;
    width: 200px;
    min-height: 59px;
    margin: 5px auto;
}

.account-badge a {
    color: #ffffff;
}

.account-badge .profile {
    clear: both;
}
.account-badge .profile .username {
    float: right;
    padding-right: 15px;
    padding-top: 5px;
    font-size: 14px;
}
.account-badge .profile .pic {
    float: right;
    width: 30px;
    height: 30px;
    background-position: center;
    background-size: contain;
    border-radius: 20px;
}
.account-nav {
    list-style: none;
    clear: both;
    display: none;
    padding: 10px 0 0;
    width: 150px;
    border-top: thin dotted;
    margin-top: 40px;
}
.account-nav li {
    padding-left: 10px;
    text-align: right;
    margin: 0;
    padding: 5px 2px;
}
.account-nav li:hover {
    background-color: #2b9fc7;
}

.account-nav li a {
    width: 100%;
    display: block;
}

.module-subnav {
    background-color: #e8e8e8;
    padding: 0;
    margin: -20px -20px 20px;
}

.module-subnav li {
    display: inline-block;
    width: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}

.module-subnav li a {
    display: block;
    padding: 10px 20px;
    margin: 0;
}

.no-highlight-on-hover:hover {
    background-color: transparent !important;
}


footer {
    padding: 20px;
    text-align: center;
    background-color: #ededed;
}

.internal-nav,
.internal-nav ul {
    padding: 0;
    list-style: none;
    margin: 20px 0 !important;
}

.internal-nav ul {
    margin: 0 0 0 10px !important;
}

.internal-nav li {
    padding: 5px;
    margin: 0;
    border-bottom: thin dotted #cccccc;
}
.internal-nav li:last-child {
    border: none;
}

.internal-nav li:hover {
    background-color: #e9e9e9;
}

.internal-nav li.subnav:hover {
    background-color: #fff;
}

.account-nav li a {
    color: #ffffff;
}

div.row.es-list {
    padding-top: 20px;

    border-top: thin solid #f3f3f3;
}

div.row.es-list:hover {
    background-color: #f3f3f3;
}

.es-header {
    background-color: #e0e0e0;
}

.es-header a {
    border-right: thin solid white;
    color: #0a6ebd;
    padding: 5px 15px;
    font-weight: 700;
}

.es-header div {
    color: #0a6ebd;
    padding: 5px 15px;
    font-weight: normal;
}

.container.navbar {
    padding: 10px;
}

nav li {
    list-style: none;
    font-size: 1.2em;
}

nav ul {
    padding-inline-start: 5px;
    margin: 5px !important;
}

.navbar ul>li.nav-item {
    border-right: thin solid #efefef;
}

.navbar ul>li:last-child {
    border-right: none;
}

.label-info {
    font-style: italic;
    margin-top: 5px;
    display: block;
}

.no-padding {
    padding: 0px;
}

.profile h1.name {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300 !important;
    font-size: 3em !important;
    margin-bottom: 0px;
    margin-top: -5px;
}
.profile .title {
    font-size: 1.4em;
    margin-bottom: 5px;
    font-weight: bold;
    color: #B04829;
    font-variant: titling-caps;
}
.profile h2 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300 !important;
    font-size: 2em !important;
}


.btn-primary, a.btn-primary {
     color: #fff;
     background: none;
     background-color: #B04829;
     border-color: #B04829;
     text-shadow: none;
     cursor: pointer;
 }

.btn-warning {
    color: #000;
    background-color: #ffe69a;
    border-color: #ffe69a;
}

.btn-warning:hover {
    background-color: #ffcd2e;
    border-color: #ffcd2e;
}

.btn-danger {
    color: #000;
    background-color: #d17a33;
    border-color: #d17a33;
}

.btn-danger:hover {
    background-color: #D14533FF;
    border-color: #D14533FF;
    color:white !important;
}

/* forms */

label {
    margin: 20px 0 10px;
}

.single-checkbox {
    padding: 10px 15px;
    border: thin solid #e0e0e0;
    margin: 20px 0 10px;
}
.single-checkbox label {
    margin: 0 !important;
}

body.minimal  {
    background-color: white !important;
    font-size: .8em;
}

body.minimal  > .container {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
}

body.minimal  > header {
    font-size: .75em !important;
    padding: 5px !important;
}

body.minimal  > .site_message {
    font-size: 1em !important;
    padding: 5px !important;
}

footer {
    border-top: thin dotted #cccccc;
}

.dark {
    background-color: #060c09;
    color: white;
    padding: 100px 75px;
}

.james {
    background-image: url("/templates/portraitsbyjames/assets/images/port/james.jpg");
    background-position-x: right;
    background-position-y: bottom;
    background-repeat: no-repeat;
    background-size: 25% auto;  /* width: 25% of the div, height scales to keep aspect ratio */
}

.promo {
    font-size: 1.8em;
}

.gray.promo {
    color: gray;
    display: flex;
    justify-content: center;  /* push to the right */
    align-items: center;      /* push to the bottom */
    padding: 8%;
}

.port-block {
    margin: 0;
}

.port-block article {

}

.gray {
    background-color: #ededed;
}

.dark table {
    margin: 5px;
}
.dark th {
    padding: 5px;
    background-color: white;
    color: #060c08;
    border: 2px solid #060c08;
}
.dark td {
    padding: 5px;
    border: 2px solid white;
}

.wall-art img {
    height: 300px;
    width: auto;
    margin: 0 auto 20px;
}

.portfolio img {
    width: auto;
    margin: 0 auto 20px;
}


article {
    padding: 10px;
}
@media (max-width: 992px) {
    .container, .container-md, .container-sm {
        max-width: 100vw;
    }

    .wall-art img {
        height: 200px;
        width: auto;
    }

    .portfolio img {
        height: 200px;
        width: auto;
    }
}

@media (max-width: 500px) {
    .container, .container-md, .container-sm {
        max-width: 100vw;
    }

    .wall-art img {
        height: auto;
        width: 100%;
    }

    .portfolio img {
        height: auto;
        width: 100%;
    }
    .james {
        background-size: 50% auto;
    }
}
@media (min-width: 1000px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1240px;
    }
}
/* ── The top bar: pages left, account right, one slim row ─────────────────
   Replaces the dark account bar that sat above a separate grey nav bar. The
   grey is the footer's, so the page is bracketed by the same band top and
   bottom; links and icons are the theme's graphite. */
.pbj-bar {
    /* Its own layer, above the page: the account menu and the phone menu drop
       out of it over the content, which carries the Edit page tab (z-index). */
    position: relative;
    z-index: 50;
    background: #ededed;
    border-bottom: 1px solid #dcdcdc;
}
/* The theme's .container, as #main is, so the links line up with the page's
   left edge at every width; its white panel and 20px padding are undone. */
.pbj-bar-row.container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px 24px;
    min-height: 48px;
    padding-top: 0;
    padding-bottom: 0;
    background: transparent;
}
.pbj-nav { flex: 1 1 auto; min-width: 0; }
.pbj-account { flex: 0 0 auto; margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* The framework's nav is a Bootstrap navbar in a .container with an inline
   grey background; inside this bar it is a plain row of links. */
.pbj-nav .navbar,
.pbj-nav .container.navbar {
    background: transparent !important;
    max-width: none; width: auto; margin: 0; padding: 0;
}
.pbj-nav nav ul { margin: 0 !important; padding-inline-start: 0; }
.pbj-nav .navbar-nav { gap: 2px 26px; }
.pbj-nav .navbar ul > li.nav-item { border-right: 0; }
.pbj-nav nav li { font-size: 1rem; }
.pbj-nav .nav-link,
.pbj-nav .nav-link:visited {
    padding: 13px 0 !important;
    font-family: 'Montserrat', sans-serif;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #2b2b29 !important;
    text-decoration: none;
}
.pbj-nav .nav-link:hover { color: #b04829 !important; text-decoration: none; }
/* Where you are: a rust rule along the bottom of the bar, under the link. */
/* Core underlines and bolds it (.navbar-light .navbar-nav .nav-link.active);
   the rule replaces both. */
.pbj-nav .navbar-nav .nav-link.active,
.pbj-nav .navbar-nav .nav-link[aria-current="page"] { box-shadow: inset 0 -3px 0 #b04829; text-decoration: none; font-weight: 600; }
.pbj-nav .nav-link:focus-visible { outline: 2px solid #1366b6; outline-offset: 2px; }

/* The account badge was built for a dark corner: a boxed dark panel, 200px
   wide, its icons white. Here it is the bar's right-hand end, icons in
   graphite, the menu dropping from it over the page. Centred with flex, NOT a
   transform: a transform makes this the containing block for the
   position:fixed notification and quick-link panels inside it. */
.pbj-account .user_menu { position: relative; display: flex; align-items: center; }
.pbj-account .account-badge {
    position: static; width: auto; min-height: 0; margin: 0; padding: 0;
    background: transparent; border: 0; border-radius: 0; text-align: left;
}
.pbj-account .account-badge .profile { display: flex; flex-direction: row-reverse; align-items: center; gap: 4px; }
.pbj-account .account-badge .profile > * { float: none; }
.pbj-account .site_notify_badge,
.pbj-account .es_quicklinks { flex-direction: row; padding: 0 8px; font-size: 1.15rem; }
/* The triggers only: the side panels they open live in the same element,
   and colouring everything turned their text graphite on graphite. */
.pbj-account .notification-badge,
.pbj-account .notification-badge > a,
.pbj-account .notification-badge > a *,
.pbj-account .quicklink-badge,
.pbj-account .quicklink-badge > a,
.pbj-account .quicklink-badge > a *,
.pbj-account .quicklink-badge > button,
.pbj-account .quicklink-badge > button * { color: #2b2b29 !important; }
.pbj-account .account-badge .profile .pic {
    width: 32px; height: 32px; border-radius: 50%;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #cfcec8;
}
.pbj-account .account-nav {
    position: absolute; right: 0; top: 100%; z-index: 30;
    width: 210px; margin-top: 8px; padding: 8px;
    background: #2b2b29; border: 0; border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.pbj-account .account-nav li { padding: 6px 10px; border-radius: 6px; text-align: left; }
.pbj-account .account-nav li:hover { background-color: #44443f; }
.pbj-account .account-nav .account-who { color: #fff; }
.pbj-account .account-nav .account-who span { display: block; color: #c9c8c2; font-size: .85em; }
.pbj-account .account-nav li.account-who:hover,
.pbj-account .account-nav li.no-highlight-on-hover:hover { background: transparent; }
.pbj-account .account-nav a,
.pbj-account .account-nav a:visited { color: #fff; text-decoration: none; }
.pbj-account .account-nav .account-signout {
    width: 100%; background: #b04829; border-color: #b04829; color: #fff !important; font-weight: 600;
}

/* Below Bootstrap's lg breakpoint the page links fold behind ☰; opened, they
   drop under the whole bar at full width rather than squeezing between the
   toggle and the account icons. */
@media (max-width: 991px) {
    .pbj-nav .navbar { position: static; }
    .pbj-nav .navbar-toggler { padding: 6px 8px; border: 0; color: #2b2b29; }
    .pbj-nav .navbar-collapse {
        position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
        padding: 6px 20px 12px;
        background: #ededed;
        border-bottom: 1px solid #dcdcdc;
        box-shadow: 0 14px 24px -16px rgba(0, 0, 0, .3);
    }
    .pbj-nav .navbar-nav { flex-direction: column; gap: 0; }
    .pbj-nav .nav-link, .pbj-nav .nav-link:visited { padding: 10px 0 !important; }
    .pbj-nav .navbar-nav .nav-link.active,
    .pbj-nav .navbar-nav .nav-link[aria-current="page"] { box-shadow: inset 3px 0 0 #b04829; padding-left: 10px !important; }
}
