/* CVfolder portfolio theme (from Start Bootstrap Resume v7.0.3, MIT). Bootstrap itself now comes from /vendor/bootstrap-5.3.3-cvfolder/. */
body {
  padding-top: 3.375rem;
  color: #6c757d;
}

@media (min-width: 992px) {
  body {
    padding-top: 0;
    padding-left: 17rem;
  }
}
h1, .h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  /*text-transform: uppercase; */
}

h1, .h1 {
  line-height: 1;
}

p.lead {
  font-size: 1.15rem;
  font-weight: 400;
}

.subheading {
  font-family: "Saira Extra Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /*text-transform: uppercase; */
  font-weight: 500;
  font-size: 1.5rem;
}

#sideNav {
  padding-left: 1rem;
  padding-right: 1rem;
  overflow-x:auto;	
}

/* menu items show exactly what the owner typed (no forced capitals, 2026-11-16) */
#sideNav .navbar-nav .nav-item .nav-link {
  font-weight: 600;
  letter-spacing: .005em;
  text-transform: none;
  font-size: .95rem;
}
#sideNav .navbar-nav .nav .nav-link { font-size: .9rem; font-weight: 500; }
#sideNav .navbar-nav.cvf-menu-long .nav-item .nav-link { font-size: .88rem; }
#sideNav .navbar-nav.cvf-menu-long .nav .nav-link { font-size: .84rem; }
#sideNav .navbar-toggler:focus {
  outline-color: #d48a6e;
}

@media (min-width: 992px) {
  #sideNav {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 17rem;
    height: 100vh;
  }
  #sideNav .navbar-brand {
    display: flex;
    margin: auto auto 0;
    padding: 0.5rem;
  }
  #sideNav .navbar-brand .img-profile {
    max-width: 10rem;
    max-height: 10rem;
    border: 0.5rem solid rgba(255, 255, 255, 0.2);
  }
  #sideNav .navbar-collapse {
    display: flex;
    align-items: flex-start;
    flex-grow: 0;
    width: 100%;
    margin-bottom: auto;
  }
  #sideNav .navbar-collapse .navbar-nav {
    flex-direction: column;
    width: 100%;
  }
  #sideNav .navbar-collapse .navbar-nav .nav-item {
    display: block;
  }
  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link {
    display: block;
  }
}
.social-icons .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  width: 3.5rem;
  background-color: #495057;
  color: #fff;
  border-radius: 100%;
  font-size: 1.5rem;
  margin-right: 1.5rem;
}
.social-icons .social-icon:last-child {
  margin-right: 0;
}
.social-icons .social-icon:hover {
  background-color: #b75a36;
}

.dev-icons {
  font-size: 3rem;
}

section.resume-section {
align-items: center;    
  display: flex;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
  max-width: 75rem;
}
section.resume-section .resume-section-content {
  width: 100%;
}

@media (min-width: 768px) {
  section.resume-section {
    min-height: 100vh;
  }
}
@media (min-width: 992px) {
  section.resume-section {
    padding-left: 3rem;
    padding-right: 3rem;
    padding-top: 3rem;
    padding-bottom: 5rem;
  }
}
.btn-circle {
    width: 30px;
    height: 30px;
    padding: 6px 0px;
    border-radius: 15px;
    text-align: center;
    font-size: 12px;
    line-height: 1.42857;
}
.btn-circle.btn-xl {
    width: 70px;
    height: 70px;
    padding: 10px 16px;
    border-radius: 35px;
    font-size: 24px;
    line-height: 1.33;
}
li.borderless {
  border: 0 none;
}

.table-purple {
  --bs-table-bg: #9F2B68;
  --bs-table-striped-bg: #eccccf;
  --bs-table-striped-color: #000;
  --bs-table-active-bg: #dfc2c4;
  --bs-table-active-color: #000;
  --bs-table-hover-bg: #e5c7ca;
  --bs-table-hover-color: #000;
  color: #000;
  border-color: #9F2B68;
}

.btn-purple {
  color: #fff;
  background-color: #9F2B68;
  border-color: #9F2B68;
}
.btn-purple:hover {
  color: #fff;
  background-color: #9F2B68;
  border-color: #9F2B68;
}

.btn-check:focus + .btn-purple, .btn-purple:focus {
  color: #fff;
  background-color: #9F2B68;
  border-color: #9F2B68;
  box-shadow: 0 0 0 0.25rem rgba(225, 83, 97, 0.5);
}
.btn-check:checked + .btn-purple, .btn-check:active + .btn-purple, .btn-purple:active, .btn-purple.active, .show > .btn-purple.dropdown-toggle {
  color: #fff;
  background-color: #9F2B68;
  border-color: #9F2B68;
}
.btn-check:checked + .btn-purple:focus, .btn-check:active + .btn-purple:focus, .btn-purple:active:focus, .btn-purple.active:focus, .show > .btn-purple.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.25rem rgba(225, 83, 97, 0.5);
}
.btn-purple:disabled, .btn-purple.disabled {
  color: #fff;
  background-color: #9F2B68;
  border-color: #9F2B68;
}




.btn-outline-purple {
  color: #9F2B68;
  border-color: #9F2B68;
}
.btn-outline-purple:hover {
  color: #fff;
  background-color: #9F2B68;
  border-color: #9F2B68;
}
.btn-check:focus + .btn-outline-purple, .btn-outline-purple:focus {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.5);
}
.btn-check:checked + .btn-outline-purple, .btn-check:active + .btn-outline-purple, .btn-outline-purple:active, .btn-outline-purple.active, .btn-outline-purple.dropdown-toggle.show {
  color: #fff;
  background-color: #9F2B68;
  border-color: #9F2B68;
}
.btn-check:checked + .btn-outline-purple:focus, .btn-check:active + .btn-outline-purple:focus, .btn-outline-purple:active:focus, .btn-outline-purple.active:focus, .btn-outline-purple.dropdown-toggle.show:focus {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.5);
}
.btn-outline-purple:disabled, .btn-outline-purple.disabled {
  color: #9F2B68;
  background-color: transparent;
}



.alert-purple {
  color: #9F2B68;
  background-color: #ffffff;
  border-color: #9F2B68;
}
.alert-purple .alert-link {
  color: #9F2B68;
}

.list-group-item-purple {
  color: #9F2B68;
  background-color: #9F2B68;
}
.list-group-item-purple.list-group-item-action:hover, .list-group-item-purple.list-group-item-action:focus {
  color: #9F2B68;
  background-color: #9F2B68;
}
.list-group-item-purple.list-group-item-action.active {
  color: #fff;
  background-color: #9F2B68;
  border-color: #9F2B68;
}

.link-purple {
  color: #9F2B68;
}
.link-purple:hover, .link-purple:focus {
  color: #9F2B68;
}

.border-purple {
  border-color: #9F2B68 !important;
}
.text-purple {
  --bs-text-opacity: 1;
  color: rgba(var(--bs-purple-rgb), var(--bs-text-opacity)) !important;
}

.bg-purple {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--bs-purple-rgb), var(--bs-bg-opacity)) !important;
}

.btn-purple {
  color: #000;
  background-color: #9F2B68;
  border-color: #9F2B68;
}
.btn-purple:hover {
  color: #000;
  background-color: #9F2B68;
  border-color: #9F2B68;
}

.btn-check:focus + .btn-purple, .btn-purple:focus {
  color: #fff;
  background-color: #9F2B68;
  border-color: #9F2B68;
  box-shadow: 0 0 0 0.25rem rgba(60, 153, 110, 0.5);
}
.btn-check:checked + .btn-purple, .btn-check:active + .btn-purple, .btn-purple:active, .btn-purple.active, .show > .btn-purple.dropdown-toggle {
  color: #fff;
  background-color: #9F2B68;
  border-color: #9F2B68;
}
.btn-check:checked + .btn-purple:focus, .btn-check:active + .btn-purple:focus, .btn-purple:active:focus, .btn-purple.active:focus, .show > .btn-purple.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.25rem rgba(60, 153, 110, 0.5);
}
.btn-purple:disabled, .btn-purple.disabled {
  color: #fff;
  background-color: #9F2B68;
  border-color: #9F2B68;
}
/* pages inside a folder in the portfolio sidebar: use the sidebar's own colours (the nested .nav otherwise
   falls back to the primary link colour, which is invisible on an orange sidebar) */
#sideNav .navbar-nav .nav .nav-link { color: var(--bs-navbar-color); padding-left: .75rem; }
#sideNav .navbar-nav .nav .nav-link:hover, #sideNav .navbar-nav .nav .nav-link:focus { color: var(--bs-navbar-hover-color); }
#sideNav .navbar-nav .nav .nav-link.active { color: var(--bs-navbar-active-color); }

/* (2026-11-14) readability of the portfolio themes
   - menu links that are not the current page: stronger than Bootstrap's 55%
   - light theme colours (Yellow = warning, Blue = info): dark text on them, and a darker shade when the colour is
     used as text on white (white on yellow was 1.6:1, on light blue 2:1) */
#sideNav.navbar-dark { --bs-navbar-color: #fff; --bs-navbar-hover-color: #fff; --bs-navbar-active-color: #fff; }
/* current page: a soft box instead of brighter text (all links are full-contrast now) */
#sideNav .navbar-nav .nav-link.active { background: rgba(255, 255, 255, .18); border-radius: .375rem; }
#sideNav.navbar-light .navbar-nav .nav-link.active { background: rgba(0, 0, 0, .09); }
#sideNav .navbar-nav .nav-link:hover { text-decoration: underline; text-underline-offset: .25em; }
#sideNav.navbar-light { --bs-navbar-color: rgba(0, 0, 0, .72); --bs-navbar-hover-color: #000; --bs-navbar-active-color: #000; --bs-navbar-brand-color: #000; }
#sideNav.navbar-light .text-white { color: #15171b !important; }
.btn-warning.text-white, .btn-info.text-white, .bg-warning.text-white, .bg-info.text-white,
.bg-warning .text-white, .bg-info .text-white, .badge.bg-warning, .badge.bg-info { color: #15171b !important; }
.bg-warning .btn-close-white, .bg-info .btn-close-white { filter: none; }
.text-warning { color: #8a6100 !important; }
.text-info { color: #08788f !important; }
.btn-outline-warning { --bs-btn-color: #8a6100; }
.btn-outline-info { --bs-btn-color: #08788f; }

/* Footer always at the bottom (2026-11-15): on phones too, a page section fills the screen below the top menu bar,
   so the "URL for this page / Copyright" footer never floats in the middle of a short page. (768px and up already
   uses min-height: 100vh above.) */
@media (max-width: 767.98px) {
  section.resume-section { min-height: calc(100vh - 56px); min-height: calc(100svh - 56px); }
}

/* owner's view of hidden menu items: struck through, at full strength so they stay readable on every menu color (2026-11-17; was dimmed to 50%) */
#sideNav .navbar-nav .text-muted { color: inherit !important; opacity: 1; }

/* ==== side menu, 2026-11-16 redesign: an icon per item, plain sub-items with a guide line, soft pill for the current page ==== */
#sideNav { --m-line: rgba(255, 255, 255, .16); --m-hover: rgba(255, 255, 255, .08); --m-active: rgba(255, 255, 255, .17); --m-dim: rgba(255, 255, 255, .78); }
#sideNav.navbar-light { --m-line: rgba(21, 23, 27, .14); --m-hover: rgba(21, 23, 27, .06); --m-active: rgba(21, 23, 27, .1); --m-dim: rgba(21, 23, 27, .78); }
#sideNav .cvf-manage-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; margin-top: .25rem; border-radius: 10px;
  border: 1px solid var(--m-line); background: rgba(0, 0, 0, .12); color: inherit; font-size: .85rem; font-weight: 500; transition: background-color .15s, border-color .15s; }
#sideNav.navbar-dark .cvf-manage-btn { color: #fff; }
#sideNav.navbar-light .cvf-manage-btn { background: rgba(255, 255, 255, .35); color: #15171b; }
#sideNav .cvf-manage-btn:hover { background: var(--m-active); border-color: currentColor; }
#sideNav .navbar-brand + h3 { padding-bottom: 1rem; margin-bottom: .5rem !important; border-bottom: 1px solid var(--m-line); }
#sideNav .cvf-menu { width: 100%; margin: 0 !important; padding: 0 .1rem; }
#sideNav .cvf-menu > .nav-item > .nav-link { display: flex; align-items: center; gap: .7rem; padding: .5rem .7rem; border-radius: 10px;
  font-size: .93rem; font-weight: 500; letter-spacing: 0; text-decoration: none; transition: background-color .15s; }
#sideNav .cvf-menu > .nav-item > .nav-link:hover { background: var(--m-hover); text-decoration: none; }
#sideNav .cvf-menu .cvf-mi { flex: none; width: 1.15rem; text-align: center; font-size: 1rem; opacity: .95; }
#sideNav .cvf-menu > .cvf-msep { border-top: 1px solid var(--m-line); margin-top: .45rem; padding-top: .45rem; }
#sideNav .cvf-menu > .cvf-mfolder > .nav-link { font-weight: 600; }
#sideNav .cvf-menu > .cvf-mfolder > .nav-link .collapse-icon { margin-left: auto; transition: transform .2s; }
#sideNav .cvf-menu > .cvf-mfolder > .nav-link[aria-expanded="false"] .collapse-icon { transform: rotate(-90deg); }
/* pages inside a folder: no icon, a thin guide line on the left, smaller text */
#sideNav .cvf-msub { margin: .1rem 0 .35rem 1.27rem; padding-left: .55rem; border-left: 1px solid var(--m-line); }
#sideNav .cvf-msub .nav-link { display: block; padding: .32rem .6rem !important; border-radius: 8px; font-size: .86rem; font-weight: 400; color: var(--m-dim); text-decoration: none; }
#sideNav .cvf-msub .nav-link:hover { background: var(--m-hover); color: inherit; text-decoration: none; }
#sideNav.navbar-dark .cvf-msub .nav-link:hover { color: #fff; }
/* the current page */
#sideNav .cvf-menu .nav-link.active, #sideNav .cvf-msub .nav-link.active { background: var(--m-active) !important; font-weight: 600; }
#sideNav.navbar-dark .cvf-menu .nav-link.active, #sideNav.navbar-dark .cvf-msub .nav-link.active { color: #fff !important; }
#sideNav.navbar-light .cvf-msub .nav-link.active { color: #15171b !important; }
#sideNav .cvf-msub .nav-link.active { box-shadow: inset 2px 0 0 currentColor; }
#sideNav .cvf-menu.text-start { text-align: left; }
/* (the older "#sideNav .navbar-collapse .navbar-nav .nav-item .nav-link { display: block }" rule outranked the row layout) */
#sideNav .navbar-collapse .cvf-menu > .nav-item > .nav-link { display: flex !important; align-items: center; gap: .7rem; }
#sideNav .navbar-collapse .cvf-msub .nav-item .nav-link { display: block !important; }
#sideNav .navbar-brand + h3 { align-self: stretch; width: 100%; text-align: center; }

/* ---- menu v2 (2026-11-16): inset from the edges, tree branches for folder pages, working "center the side menu" ---- */
#sideNav .navbar-collapse .cvf-menu { padding: 0 .85rem; margin: 0 !important; }
#sideNav .cvf-menu > .cvf-msep { margin-left: .15rem; margin-right: .15rem; }
/* tree: a vertical trunk per page, a branch to each page, the trunk stops at the last one */
#sideNav .cvf-msub { border-left: 0; margin: .1rem 0 .35rem 1.25rem; padding-left: 0; }
#sideNav .cvf-msub > .nav-item { position: relative; padding-left: 1.05rem; }
#sideNav .cvf-msub > .nav-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1px solid var(--m-line); }
#sideNav .cvf-msub > .nav-item:last-child::before { bottom: 50%; }
#sideNav .cvf-msub > .nav-item::after { content: ""; position: absolute; left: 0; top: 50%; width: .8rem; border-top: 1px solid var(--m-line); }
#sideNav.navbar-dark .cvf-msub > .nav-item::before, #sideNav.navbar-dark .cvf-msub > .nav-item::after { border-color: rgba(255, 255, 255, .28); }
#sideNav .cvf-msub .nav-link.active { box-shadow: none; }
/* "Center the side menu" (Look & Feel): rows centred, folder pages centred without tree lines */
#sideNav .navbar-collapse .cvf-menu:not(.text-start) > .nav-item > .nav-link { justify-content: center; }
#sideNav .cvf-menu:not(.text-start) > .cvf-mfolder > .nav-link .collapse-icon { margin-left: .1rem; }
#sideNav .cvf-menu:not(.text-start) .cvf-msub { margin-left: 0; text-align: center; }
#sideNav .cvf-menu:not(.text-start) .cvf-msub > .nav-item { padding-left: 0; }
#sideNav .cvf-menu:not(.text-start) .cvf-msub > .nav-item::before, #sideNav .cvf-menu:not(.text-start) .cvf-msub > .nav-item::after { display: none; }

/* the old divider after the page content (cv-*-view.php) added a 1px scroll to short pages (2026-11-16) */
section.resume-section + hr.m-0 { display: none; }

/* change notice (flash_message) on portfolio pages too: same dark pill as management pages (2026-11-16) */
.cvf-notice { position: fixed; top: 1.1rem; left: 50%; z-index: 1080; display: inline-flex; align-items: center; gap: .6rem;
  max-width: min(92vw, 560px); padding: .55rem .55rem .55rem .9rem; border-radius: 999px; background: #15171b; color: #f7f5f0;
  box-shadow: 0 10px 30px rgba(21, 23, 27, .22), 0 2px 6px rgba(21, 23, 27, .12);
  opacity: 0; transform: translate(-50%, -12px) scale(.98); transition: opacity .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 992px) { .cvf-notice { left: calc(50% + 8.5rem); } } /* centred over the content, not the side menu */
.cvf-notice.is-in { opacity: 1; transform: translate(-50%, 0) scale(1); }
.cvf-notice-icon { flex: none; width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border-radius: 50%; background: #2e9e5b; font-size: .65rem; }
.cvf-notice-icon svg { color: #fff !important; }
.cvf-notice-text { font-family: inherit; font-size: .875rem; line-height: 1.4; color: #f7f5f0 !important; font-weight: 500; }
.cvf-notice-text b, .cvf-notice-text strong { color: #fff !important; }
.cvf-notice-close { flex: none; border: 0; background: transparent; color: rgba(247, 245, 240, .6); width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; margin-left: .15rem; }
.cvf-notice-close svg { color: inherit !important; }
.cvf-notice-close:hover { background: rgba(247, 245, 240, .12); color: #fff; }
.cvf-notice.is-warn .cvf-notice-icon { background: #d64b2a; }
@media (max-width: 575.98px) {
  .cvf-notice { top: auto; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); width: calc(100vw - 2rem); max-width: none; border-radius: 16px; transform: translate(-50%, 12px); }
  .cvf-notice.is-in { transform: translate(-50%, 0); }
  .cvf-notice-text { flex: 1; }
}
body.cvf-welcome .cvf-notice { left: 50%; }

/* side menu "sky": a quiet constellation drifting behind the menu (2026-11-17, user request; cv-assets/cv-js/menu-sky.js) */
#sideNav .cvf-sky { display: none; }
@media (min-width: 992px) {
  #sideNav .cvf-sky { display: block; position: fixed; top: 0; left: 0; z-index: 0; pointer-events: none; }
  #sideNav > :not(.cvf-sky) { position: relative; z-index: 1; }
}

/* light sweep (2026-11-17, user request): a soft band of light glides left to right across the side menu, then the Welcome cover
   (view.css, same 12 s timeline) picks it up, so it reads as one beam. Behind the menu text; off with "reduce motion"; desktop only here. */
@keyframes cvf-sweep-menu { 0% { transform: translateX(-100%); } 9% { transform: translateX(260%); } 100% { transform: translateX(260%); } }
@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
  #sideNav::after { content: ""; position: fixed; top: 0; left: 0; width: 6.5rem; height: 100vh; z-index: 0; pointer-events: none;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .09) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%); animation: cvf-sweep-menu 12s cubic-bezier(.45, .05, .55, .95) 1.5s infinite; }
  #sideNav.navbar-light::after { background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, 0) 100%); }
}

/* ==== owner bar, Add page and account chip (2026-11-17, user design; cv-menu.php). Only the portfolio's owner gets them (body.cvf-obar). ==== */
body.cvf-obar { --cvf-obar-h: calc(3.25rem + 1px); }
.cvf-obar-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; min-height: var(--cvf-obar-h);
  padding: .5rem 1rem; background: var(--paper-2, #efebe3); border-bottom: 1px solid var(--line, #e4dfd5); font-family: var(--font-body, inherit); }
@media (min-width: 992px) { .cvf-obar-nav { padding-inline: 3rem; } }
.cvf-obar-seg { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.cvf-obar-btn, .cvf-obar-link { display: inline-flex; align-items: center; gap: .5rem; height: 2.25rem; padding: 0 .95rem; border-radius: 10px; font-size: .875rem; font-weight: 500;
  text-decoration: none !important; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.cvf-obar-btn { border: 1px solid var(--line-2, #d5cfc3); background: #fff; color: var(--ink, #15171b) !important; }
.cvf-obar-btn:hover { border-color: var(--cvf-btn-bg, #15171b); }
.cvf-obar-btn.is-on { background: var(--cvf-btn-bg, #15171b); border-color: var(--cvf-btn-bg, #15171b); color: var(--cvf-btn-fg, #fff) !important; }
.cvf-obar-link { color: var(--accent, #15171b) !important; }
.cvf-obar-link:hover { background: #fff; }
.cvf-obar-btn:focus-visible, .cvf-obar-link:focus-visible { outline: 2px solid var(--ink, #15171b); outline-offset: 2px; }
/* the bar takes its height out of the "fill the window" sections, so short pages still don't scroll */
@media (min-width: 768px) { body.cvf-obar section.resume-section { min-height: calc(100vh - var(--cvf-obar-h)); } }
@media (max-width: 767.98px) { body.cvf-obar section.resume-section { min-height: calc(100svh - 56px - var(--cvf-obar-h)); } }
@media (max-width: 575.98px) { .cvf-obar-btn, .cvf-obar-link { padding: 0 .7rem; font-size: .82rem; } .cvf-obar-btn svg, .cvf-obar-btn i { display: none; } }

/* "+ Add page" right under the last menu item */
#sideNav .cvf-menu > .cvf-maddli { margin-top: .65rem; }
#sideNav .cvf-madd { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; padding: .55rem .9rem; border-radius: 10px;
  background: rgba(255, 255, 255, .9); color: var(--accent, #15171b) !important; font-size: .9rem; font-weight: 600; text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12); transition: background-color .15s, box-shadow .15s; }
#sideNav .cvf-madd:hover { background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
#sideNav.navbar-light .cvf-madd { background: #fff; color: #15171b !important; border: 1px solid rgba(21, 23, 27, .15); }
#sideNav .cvf-madd:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
#sideNav.navbar-dark .cvf-madd:focus-visible { outline-color: #fff; }

/* account chip at the bottom of the side menu (desktop; phones get the links inside the menu) */
#sideNav .cvf-acct { width: 100%; padding: .7rem .85rem .9rem; margin-top: .75rem; border-top: 1px solid var(--m-line); text-align: left; }
#sideNav .cvf-acct-btn { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .4rem .6rem; border: 0; border-radius: 10px; background: transparent; color: inherit;
  font-size: .9rem; font-weight: 500; text-align: left; transition: background-color .15s; }
#sideNav.navbar-dark .cvf-acct-btn { color: #fff; }
#sideNav.navbar-light .cvf-acct-btn { color: #15171b; }
#sideNav .cvf-acct-btn:hover, #sideNav .cvf-acct-btn[aria-expanded="true"] { background: var(--m-hover); }
#sideNav .cvf-acct-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
#sideNav .cvf-acct-av { flex: none; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; font-size: .75rem !important; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
#sideNav .cvf-acct-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sideNav .cvf-acct-chev { font-size: .7rem; opacity: .8; transition: transform .15s; }
#sideNav .cvf-acct-btn[aria-expanded="false"] .cvf-acct-chev { transform: rotate(180deg); }
#sideNav .cvf-acct-menu { min-width: 14rem; padding: .35rem; border-radius: 12px; border: 1px solid rgba(21, 23, 27, .12); box-shadow: 0 12px 32px rgba(21, 23, 27, .18); text-align: left; }
#sideNav .cvf-acct-menu .dropdown-item { border-radius: 8px; padding: .5rem .7rem; font-size: .9rem; color: #15171b; }
#sideNav .cvf-acct-menu .dropdown-item:hover, #sideNav .cvf-acct-menu .dropdown-item:focus { background: #f1eee8; color: #15171b; }
.cvf-obar-short { display: none; }
@media (max-width: 575.98px) { .cvf-obar-long { display: none; } .cvf-obar-short { display: inline; } }
/* long menus scroll; the account chip stays visible at the bottom */
@media (min-width: 992px) { #sideNav .cvf-acct { position: sticky; bottom: 0; z-index: 2; background-color: inherit; } }

/* settings mode of the side menu (2026-11-17): a small "Settings" label and Delete Portfolio in a warning color */
#sideNav .cvf-menu > .cvf-mhead { padding: .2rem .7rem .45rem; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .85; text-align: left; }
#sideNav .cvf-menu:not(.text-start) > .cvf-mhead { text-align: center; }
#sideNav.navbar-dark .cvf-menu .nav-link.cvf-mdanger { color: #ffcabf; }
#sideNav.navbar-light .cvf-menu .nav-link.cvf-mdanger { color: #a4161a; }
#sideNav .cvf-menu .nav-link.cvf-mdanger.active, #sideNav .cvf-menu .nav-link.cvf-mdanger.active svg { color: #a4161a !important; } /* the current page is a light pill */
/* the menu photo is always a circle, even when the uploaded photo is not square (2026-11-17) */
#sideNav .navbar-brand .img-profile { aspect-ratio: 1 / 1; object-fit: cover; width: 10rem; }
@media (min-width: 992px) { #sideNav:has(.cvf-acct) { padding-bottom: 0; } } /* the sticky account chip sits flush with the bottom edge */

/* ==== View / Settings switch at the top of the side menu (2026-11-17, user request; replaces the bar above the page) ==== */
body.cvf-obar { --cvf-obar-h: 0px; } /* no bar above the page any more */
#sideNav .cvf-mmode { display: flex; gap: .2rem; width: calc(100% - 1.7rem); margin: .9rem .85rem .25rem; padding: .2rem; border-radius: 11px;
  background: rgba(0, 0, 0, .2); border: 1px solid var(--m-line); }
#sideNav.navbar-light .cvf-mmode { background: rgba(255, 255, 255, .45); border-color: rgba(21, 23, 27, .15); }
#sideNav .cvf-mmode-btn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.1rem; padding: .3rem .4rem;
  border-radius: 8px; font-size: .78rem; font-weight: 600; line-height: 1.15; text-align: center; text-decoration: none !important; white-space: nowrap;
  transition: background-color .15s, color .15s; }
#sideNav.navbar-dark .cvf-mmode-btn { color: rgba(255, 255, 255, .9) !important; }
#sideNav.navbar-light .cvf-mmode-btn { color: #15171b !important; }
#sideNav .cvf-mmode-btn:hover { background: var(--m-hover); }
/* the current mode: a white pill with the menu color as text on dark menus, an ink pill on light ones */
#sideNav.navbar-dark .cvf-mmode-btn.is-on { background: #fff; color: var(--accent, #15171b) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
#sideNav.navbar-light .cvf-mmode-btn.is-on { background: #15171b; color: #fff !important; }
#sideNav .cvf-mmode-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
#sideNav.navbar-dark .cvf-mmode-btn:focus-visible { outline-color: #fff; }
#sideNav .cvf-mmode-btn svg, #sideNav .cvf-mmode-btn i { font-size: .8rem; }
/* phones: first item of the opened menu */
#sideNav .cvf-menu > .cvf-mmode-li { padding-bottom: .5rem; }
#sideNav .cvf-menu > .cvf-mmode-li .cvf-mmode { width: 100%; margin: .25rem 0 0; display: flex; }
#sideNav .cvf-mmode-btn svg, #sideNav .cvf-mmode-btn i { display: none; } /* the two labels need the whole width of the narrow menu */
#sideNav .cvf-mmode-btn { white-space: normal; padding: .3rem .25rem; font-size: .8rem; }
/* "+ Add page": a small dark button like the View / Settings switch (2026-11-17, user request) */
#sideNav .cvf-menu > .cvf-maddli { margin-top: .6rem; text-align: center; }
#sideNav .cvf-madd { display: inline-flex; width: auto; gap: .4rem; padding: .35rem .95rem; border-radius: 9px; font-size: .8rem; font-weight: 600;
  background: rgba(0, 0, 0, .2); border: 1px solid var(--m-line); box-shadow: none; }
#sideNav.navbar-dark .cvf-madd { color: rgba(255, 255, 255, .92) !important; }
#sideNav.navbar-light .cvf-madd { background: rgba(255, 255, 255, .45); border-color: rgba(21, 23, 27, .15); color: #15171b !important; }
#sideNav .cvf-madd:hover { background: rgba(0, 0, 0, .3); box-shadow: none; }
#sideNav.navbar-light .cvf-madd:hover { background: rgba(255, 255, 255, .7); }
#sideNav .cvf-madd svg, #sideNav .cvf-madd i { font-size: .7rem; }
/* "+ Add page" (2026-11-17, user correction): a dark band like the View / Settings switch, with a small white button centred in it */
#sideNav .cvf-menu > .cvf-maddli { margin: .7rem 0 0; padding: .3rem; border-radius: 11px; background: rgba(0, 0, 0, .2); border: 1px solid var(--m-line); text-align: center; }
#sideNav .cvf-madd { background: #fff; border: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); padding: .38rem 1.1rem; }
#sideNav.navbar-dark .cvf-madd { color: var(--accent, #15171b) !important; }
#sideNav .cvf-madd:hover { background: #f1efe9; }
#sideNav.navbar-light .cvf-maddli { background: rgba(255, 255, 255, .45); border-color: rgba(21, 23, 27, .15); }
#sideNav.navbar-light .cvf-madd { background: #15171b; color: #fff !important; }
#sideNav.navbar-light .cvf-madd:hover { background: #2a2e35; }
/* "+ Add page" (2026-11-17, user's mock-up): one full-width outlined button aligned with the menu items, no band */
#sideNav .cvf-menu > .cvf-maddli { margin: .7rem 0 0; padding: 0; background: none; border: 0; border-radius: 0; }
#sideNav .cvf-madd { display: flex; width: 100%; justify-content: center; padding: .55rem .9rem; border-radius: 10px; font-size: .88rem; font-weight: 500;
  background: transparent; border: 1px solid rgba(255, 255, 255, .55); box-shadow: none; }
#sideNav.navbar-dark .cvf-madd { color: #fff !important; }
#sideNav .cvf-madd:hover { background: var(--m-hover); border-color: #fff; }
#sideNav.navbar-light .cvf-madd { background: transparent; border-color: rgba(21, 23, 27, .45); color: #15171b !important; }
#sideNav.navbar-light .cvf-madd:hover { background: var(--m-hover); border-color: #15171b; }
