/* CVfolder portfolio pages, new look (2026-11-16, PREVIEW: loaded by cv-header.php only while CVViewOn(), see cv-xview.php).
   The admin / dashboard system: paper background, white rounded cards, a sticky title in vermilion.
   Fonts are the portfolio's own: headings use the owner's heading font (h1-h3 rule in cv-header.php),
   everything else the owner's body font. Scoped under body.cvf-view; the side menu is untouched. */

body.cvf-view {
  --paper: #f7f5f0; --paper-2: #efebe3; --card: #fff; --ink: #15171b; --ink-2: #2a2e35; --text: #3a3f47;
  --muted: #5c626c; --line: #e4dfd5; --line-2: #d5cfc3; --accent: #d64b2a; --accent-strong: #c13f1e;
  --cvf-title: var(--accent); --cvf-top: 0px;
  background: var(--paper); color: var(--text);
}
@media (max-width: 991.98px) { body.cvf-view { --cvf-top: 3.375rem; } }

/* ---- page frame ---- */
body.cvf-view section.resume-section.cvf-page { padding-top: 0; padding-bottom: 4rem; min-height: 100vh; align-items: flex-start !important; }
body.cvf-view .cvf-block + .cvf-block { margin-top: 2.5rem; }

/* sticky title bar: paper background stretched to both edges (clip-path), a hairline under it */
body.cvf-view .cvf-phead {
  position: sticky; top: var(--cvf-top); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; flex-wrap: wrap;
  padding: 1.6rem 0 1.05rem; margin-bottom: 1.5rem;
  background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax);
}
body.cvf-view .cvf-phead::after { content: ""; position: absolute; left: -100vmax; right: -100vmax; bottom: 0; height: 1px; background: var(--line); }
body.cvf-view .cvf-phead-main { min-width: 0; flex: 1 1 auto; }
body.cvf-view .cvf-ptitle {
  margin: 0; font-size: clamp(1.9rem, 1.45rem + 1.3vw, 2.55rem); line-height: 1.08; letter-spacing: -.01em;
  color: var(--cvf-title); text-transform: none; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere;
}
body.cvf-view.cvf-hf6 .cvf-ptitle { -webkit-text-stroke: .5px currentColor; paint-order: stroke fill; }
body.cvf-view .cvf-ptitle-ic { font-size: .55em; vertical-align: .2em; margin-right: .35em; color: var(--muted); }
body.cvf-view .cvf-plede { margin: .4rem 0 0; color: var(--muted); font-size: .95rem; }
body.cvf-view .cvf-pactions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }

/* ---- buttons: one quiet family ---- */
body.cvf-view .cvf-btn {
  display: inline-flex; align-items: center; gap: .45rem; padding: .48rem .9rem; border-radius: 9px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-size: .86rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s;
}
body.cvf-view .cvf-btn:hover, body.cvf-view .cvf-btn:focus-visible { border-color: var(--ink); color: var(--ink); }
body.cvf-view .cvf-btn svg { font-size: .9em; }
body.cvf-view .cvf-btn-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
body.cvf-view .cvf-btn-primary:hover, body.cvf-view .cvf-btn-primary:focus-visible { background: #000; border-color: #000; color: #fff; }
body.cvf-view .cvf-btn-primary.is-first { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
body.cvf-view .cvf-btn-icon { padding: .48rem .62rem; }
body.cvf-view .cvf-btn-danger:hover, body.cvf-view .cvf-btn-danger:focus-visible { background: #fdf0ed; border-color: #f4d3c9; color: #a3321b; }
body.cvf-view .cvf-btn-sm { padding: .34rem .7rem; font-size: .8rem; border-radius: 8px; }
/* per-item "Manage" */
body.cvf-view .cvf-act {
  display: inline-flex; align-items: center; gap: .35rem; padding: .26rem .6rem; border-radius: 7px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); font-size: .78rem; font-weight: 500; text-decoration: none; white-space: nowrap;
}
body.cvf-view .cvf-act:hover, body.cvf-view .cvf-act:focus-visible { border-color: var(--ink); color: var(--ink); }
body.cvf-view .cvf-act svg { font-size: .85em; }

body.cvf-view .cvf-pill {
  display: inline-flex; align-items: center; gap: .3rem; margin-left: .5rem; padding: .12rem .5rem; border-radius: 999px;
  background: var(--paper-2); color: var(--muted); font-family: var(--bs-body-font-family); font-size: .72rem; font-weight: 500;
  letter-spacing: 0; vertical-align: .15em; white-space: nowrap;
}

/* ---- cards ---- */
body.cvf-view .cvf-card, body.cvf-view .cvf-item, body.cvf-view .cvf-group-card, body.cvf-view .cvf-sheet {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(21, 23, 27, .04);
}
body.cvf-view .cvf-card, body.cvf-view .cvf-sheet { padding: 1.35rem 1.5rem; }
body.cvf-view .cvf-card + .cvf-card { margin-top: 1rem; }
body.cvf-view .cvf-card-title { font-family: var(--bs-body-font-family); font-size: 1rem; font-weight: 600; color: var(--ink); margin: 0 0 .7rem; letter-spacing: -.005em; }
body.cvf-view .cvf-prose { font-size: .98rem; line-height: 1.75; color: var(--text); text-align: left; }

/* one card per item (education, experience, awards, courses, service, grants, ...) */
body.cvf-view .cvf-k-items, body.cvf-view .cvf-group:not(.cvf-group-card), body.cvf-view .tab-pane { display: flex; flex-direction: column; gap: .8rem; }
body.cvf-view .cvf-item { padding: 1.15rem 1.35rem 1.2rem; }
body.cvf-view .cvf-item-head { display: flex; justify-content: space-between; gap: 1rem; }
body.cvf-view .cvf-item-main { min-width: 0; flex: 1 1 auto; }
body.cvf-view .cvf-item-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; text-align: right; }
body.cvf-view .cvf-item-title {
  font-family: var(--bs-body-font-family); font-size: 1.06rem; font-weight: 600; line-height: 1.38; color: var(--ink);
  margin: 0; letter-spacing: -.005em; text-transform: none; font-synthesis: weight;
}
body.cvf-view .cvf-item-sub { margin-top: .2rem; font-size: .95rem; color: var(--ink-2); }
body.cvf-view .cvf-item-meta { margin-top: .3rem; font-size: .86rem; color: var(--muted); }
body.cvf-view .cvf-dot { margin: 0 .45rem; opacity: .7; }
body.cvf-view .cvf-item-date { font-size: .86rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: .1rem; }
body.cvf-view .cvf-item-text { margin-top: .75rem; font-size: .94rem; line-height: 1.68; color: var(--text); text-align: left; }
body.cvf-view .cvf-item-text + .cvf-item-text { margin-top: .5rem; }
body.cvf-view .is-hidden { border-style: dashed; }
body.cvf-view .is-hidden .cvf-item-main, body.cvf-view .is-hidden .cvf-item-text, body.cvf-view .is-hidden .cvf-cite-text { opacity: .6; }

/* groups: a heading with item cards under it, or (publications, presentations) one card holding the rows */
body.cvf-view .cvf-group + .cvf-group { margin-top: 1.75rem; }
body.cvf-view .cvf-group-card + .cvf-group-card { margin-top: 1.1rem; }
body.cvf-view .cvf-group-title { font-size: 1.45rem; line-height: 1.2; color: var(--ink); margin: 0 0 .1rem; text-transform: none; }
body.cvf-view .cvf-group-card { overflow: hidden; }
body.cvf-view .cvf-group-card > .cvf-group-title { font-size: 1.3rem; margin: 0; padding: 1rem 1.35rem .9rem; border-bottom: 1px solid var(--line); }
body.cvf-view .is-pending > .cvf-group-title::after {
  content: "In progress"; display: inline-flex; margin-left: .6rem; padding: .12rem .5rem; border-radius: 999px; vertical-align: .25em;
  background: #fbf1dc; color: #7a5212; font-family: var(--bs-body-font-family); font-size: .72rem; font-weight: 500; letter-spacing: 0;
}
body.cvf-view .cvf-group-card.is-pending > .cvf-group-title::after { content: "Not yet published"; }
body.cvf-view .cvf-cite { display: flex; gap: .8rem; padding: .95rem 1.35rem; }
body.cvf-view .cvf-cite + .cvf-cite { border-top: 1px solid var(--line); }
body.cvf-view .cvf-cite-body { min-width: 0; flex: 1 1 auto; }
body.cvf-view .cvf-cite-text { font-size: .95rem; line-height: 1.65; color: var(--ink-2); text-align: left; overflow-wrap: anywhere; }
body.cvf-view .cvf-cite-num { flex: none; min-width: 2rem; height: 1.6rem; margin-top: .05rem; display: inline-grid; place-items: center; border-radius: 7px; background: var(--paper-2); color: var(--muted); font-size: .76rem; font-weight: 600; font-variant-numeric: tabular-nums; }
body.cvf-view .cvf-cite .cvf-att { margin-top: .55rem; }
body.cvf-view .cvf-cite > .cvf-act { flex: none; align-self: flex-start; margin-top: .1rem; }
body.cvf-view .cvf-cite:hover { background: #fcfbf8; }
@media (hover: hover) {
  body.cvf-view .cvf-cite .cvf-act { opacity: 0; transition: opacity .15s; }
  body.cvf-view .cvf-cite:hover .cvf-act, body.cvf-view .cvf-cite .cvf-act:focus-visible { opacity: 1; }
}

/* attachments: small chips (files and links) */
body.cvf-view .cvf-att { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; font-size: 0; }
body.cvf-view .cvf-att > div { display: contents; }
body.cvf-view .cvf-att a {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem; border-radius: 8px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-2) !important; font-size: .82rem; font-weight: 500; line-height: 1.25; text-decoration: none;
}
body.cvf-view .cvf-att a:hover { border-color: var(--ink); color: var(--ink) !important; background: var(--card); }
body.cvf-view .cvf-att a svg { color: var(--muted) !important; font-size: .95em; }
body.cvf-view .cvf-att a.link-danger { border-style: dashed; }
body.cvf-view .cvf-att a.link-danger { color: var(--muted) !important; background: transparent; }

/* every attachment link (ShowAttachment marks them link-success / link-danger), also outside .cvf-att (blog, books) */
body.cvf-view .cvf-pbody a.link-success, body.cvf-view .cvf-pbody a.link-danger {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem; margin: 0 .35rem .35rem 0; border-radius: 8px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-2) !important; font-size: .82rem; font-weight: 500; line-height: 1.25; text-decoration: none;
}
body.cvf-view .cvf-pbody a.link-success:hover, body.cvf-view .cvf-pbody a.link-danger:hover { border-color: var(--ink); color: var(--ink) !important; background: var(--card); }
body.cvf-view .cvf-pbody a.link-success svg, body.cvf-view .cvf-pbody a.link-danger svg { color: var(--muted) !important; }
body.cvf-view .cvf-pbody a.link-danger { border-style: dashed; color: var(--muted) !important; background: transparent; }
body.cvf-view .cvf-att a.link-success, body.cvf-view .cvf-att a.link-danger { margin: 0; }
/* books: no extra frame around the list */
body.cvf-view .cvf-m25 .album { padding: 0 !important; border: 0 !important; }
body.cvf-view .cvf-m25 .album > .row { --bs-gutter-y: 1rem; }
body.cvf-view .cvf-m25 .card-footer a { color: var(--ink-2) !important; font-size: .84rem; font-weight: 500; }

/* whole list on one sheet (skills, folders, contact form, files, embeds, FAQ) */
body.cvf-view .cvf-sheet > :first-child { margin-top: 0 !important; }
body.cvf-view .cvf-sheet .list-group-item { background: transparent; border-color: var(--line); padding-left: 0; padding-right: 0; }
body.cvf-view .cvf-sheet .list-group-item.borderless, body.cvf-view .cvf-sheet .list-group-item:first-child { border-top: 0; }
body.cvf-view .cvf-sheet h3 { font-size: 1.3rem; color: var(--ink); text-transform: none; }
body.cvf-view .cvf-sheet .subheading { font-family: var(--bs-body-font-family); font-size: .95rem; font-weight: 500; text-transform: none; color: var(--ink-2); }

/* empty section note */
body.cvf-view .cvf-pbody .alert-secondary { background: var(--card); border: 1px dashed var(--line-2); border-radius: 14px; color: var(--muted); padding: 1.1rem 1.3rem; font-size: .92rem; }

/* current / past tabs: a segmented control */
body.cvf-view .cvf-tabs { margin: 0 0 1.25rem !important; }
body.cvf-view .cvf-tabs .nav-tabs { display: inline-flex; gap: .2rem; padding: .2rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); }
body.cvf-view .cvf-tabs .nav-link { border: 0; border-radius: 8px; padding: .38rem 1rem; margin: 0; color: var(--muted); font-size: .86rem; font-weight: 500; background: transparent; }
body.cvf-view .cvf-tabs .nav-link:hover { color: var(--ink); }
body.cvf-view .cvf-tabs .nav-link.active { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(21, 23, 27, .08); }

/* text, books, blog posts, student portfolios: their own cards, restyled */
body.cvf-view .cvf-pbody .card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: 0 1px 2px rgba(21, 23, 27, .04); }
body.cvf-view .cvf-pbody .card.my-4 { margin-top: 0 !important; margin-bottom: 1rem !important; }
body.cvf-view .cvf-pbody .card-header { background: var(--card) !important; color: var(--ink) !important; border-bottom: 1px solid var(--line); padding: .95rem 1.35rem; }
body.cvf-view .cvf-pbody .card-header h3, body.cvf-view .cvf-pbody .card-header h5, body.cvf-view .cvf-pbody .card-title {
  font-family: var(--bs-body-font-family); font-size: 1.06rem; font-weight: 600 !important; color: var(--ink); text-transform: none; letter-spacing: -.005em;
}
body.cvf-view .cvf-pbody .card-header h3 span { color: var(--ink) !important; }
body.cvf-view .cvf-pbody .card-body { padding: 1.15rem 1.35rem; font-size: .95rem; line-height: 1.68; color: var(--text); }
body.cvf-view .cvf-pbody .card-footer { background: var(--card) !important; border-top: 1px solid var(--line); padding: .7rem 1.35rem; font-size: .8rem; color: var(--muted); }
body.cvf-view .cvf-pbody .card-footer small { font-size: .8rem; }
body.cvf-view .cvf-pbody .card img { border-radius: 10px; }
body.cvf-view .cvf-m18 .card-title > svg:first-child, body.cvf-view .cvf-m12 .card-title > svg:first-child { display: none; }
body.cvf-view .cvf-m18 .card-body .list-group-item, body.cvf-view .cvf-m12 .card-body .list-group-item { border: 0; padding: 0; background: transparent; }
body.cvf-view .cvf-m18 .card-body .list-group-item:empty, body.cvf-view .cvf-m18 .card-body .list-group:has(> .list-group-item:only-child:empty) { display: none; }
body.cvf-view .cvf-pbody .read-more { font-weight: 500; }
body.cvf-view .cvf-k-own .card-header + .card-body { padding-top: 1rem; }
/* text sections drew a borderless card with an uppercase coloured title */
body.cvf-view .cvf-m1 .card-header { border-bottom: 1px solid var(--line); }
body.cvf-view .cvf-m1 .card-body .d-flex { display: block !important; }
/* books */
body.cvf-view .cvf-m25 .card-header { background: var(--card) !important; }
body.cvf-view .cvf-m25 .card-footer { background: var(--paper) !important; }
body.cvf-view .cvf-m25 .card-text strong { color: var(--ink-2); font-weight: 600; }

/* owner buttons drawn by the list files themselves (Edit on blog posts, round icon buttons, ⋮ menus) */
body.cvf-view .cvf-pbody .btn-sm:not(.modal .btn), body.cvf-view .cvf-pbody .btn-circle {
  background: var(--card) !important; border: 1px solid var(--line) !important; color: var(--muted) !important; border-radius: 7px;
  font-size: .78rem; font-weight: 500; padding: .26rem .6rem; box-shadow: none;
}
body.cvf-view .cvf-pbody .btn-circle { width: auto; height: auto; line-height: 1.2; }
body.cvf-view .cvf-pbody .btn-sm:not(.modal .btn):hover, body.cvf-view .cvf-pbody .btn-circle:hover { border-color: var(--ink) !important; color: var(--ink) !important; }

/* links inside text */
body.cvf-view .cvf-pbody a:not(.btn):not(.cvf-btn):not(.cvf-act):not(.dropdown-item):not(.nav-link) { color: var(--accent-strong); }
body.cvf-view .cvf-att a { color: var(--ink-2) !important; }
body.cvf-view .text-dark { color: var(--ink-2) !important; }
body.cvf-view [style*="text-align: justify"], body.cvf-view [style*="text-align:justify"] { text-align: left !important; }

/* ---- About ---- */
body.cvf-view .cvf-about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 19.5rem; gap: 1rem; align-items: start; }
body.cvf-view .cvf-about-side { position: sticky; top: calc(var(--cvf-top) + 7.5rem); }
body.cvf-view .cvf-facts dl { margin: 0; display: flex; flex-direction: column; gap: .75rem; }
body.cvf-view .cvf-facts dl > div { display: flex; gap: .7rem; align-items: baseline; }
body.cvf-view .cvf-facts dt { flex: none; width: 1.1rem; text-align: center; color: var(--muted); font-weight: 400; }
body.cvf-view .cvf-facts dd { margin: 0; color: var(--ink-2); font-size: .93rem; min-width: 0; overflow-wrap: anywhere; }
body.cvf-view .cvf-facts dd a { color: var(--accent-strong); }
body.cvf-view .cvf-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
body.cvf-view .cvf-facts dl:empty + .cvf-links { margin-top: 0; padding-top: 0; border-top: 0; }
body.cvf-view .cvf-empty p { color: var(--muted); margin-bottom: 1rem; }
@media (max-width: 1199.98px) {
  body.cvf-view .cvf-about-grid { grid-template-columns: 1fr; }
  body.cvf-view .cvf-about-side { position: static; order: -1; }
}

/* ---- phones ---- */
@media (max-width: 575.98px) {
  body.cvf-view .cvf-phead { padding: 1.1rem 0 .85rem; margin-bottom: 1.1rem; }
  body.cvf-view .cvf-pactions .cvf-btn { padding: .42rem .7rem; font-size: .82rem; }
  body.cvf-view .cvf-item, body.cvf-view .cvf-card, body.cvf-view .cvf-sheet { padding: 1rem 1.05rem; border-radius: 12px; }
  body.cvf-view .cvf-item-head { flex-direction: column; gap: .55rem; }
  body.cvf-view .cvf-item-side { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; order: -1; }
  body.cvf-view .cvf-cite { padding: .85rem 1.05rem; }
  body.cvf-view .cvf-group-card > .cvf-group-title { padding: .85rem 1.05rem; }
}

/* ---- contact form (module 17) ---- */
body.cvf-view .cvf-m17 .table { margin: 0; }
body.cvf-view .cvf-m17 .table > :not(caption) > * > * { padding: 0; background: transparent; box-shadow: none; }
body.cvf-view .cvf-m17 .mt-5 { margin-top: 0 !important; }
body.cvf-view .cvf-m17 h3 { font-family: var(--bs-body-font-family); font-size: 1.06rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem !important; }
body.cvf-view .cvf-m17 h3 .btn { font-family: var(--bs-body-font-family); background: var(--card) !important; border: 1px solid var(--line) !important; color: var(--muted) !important; border-radius: 7px; font-size: .78rem; font-weight: 500; padding: .26rem .6rem; }
body.cvf-view .cvf-m17 h3 .btn:hover { border-color: var(--ink) !important; color: var(--ink) !important; }
body.cvf-view .cvf-m17 .subheading { font-family: var(--bs-body-font-family); font-size: .88rem; font-weight: 400; color: var(--muted); text-transform: none; margin-bottom: .6rem !important; }
/* form fields on portfolio pages (contact form) */
body.cvf-view .cvf-pbody .form-label { font-size: .86rem; font-weight: 500; color: var(--ink-2); margin-bottom: .35rem; }
body.cvf-view .cvf-pbody .form-control, body.cvf-view .cvf-pbody .form-select { border: 1px solid var(--line-2); border-radius: 10px; font-size: .95rem; padding: .6rem .8rem; color: var(--ink); background-color: #fff; }
body.cvf-view .cvf-pbody .form-control:focus, body.cvf-view .cvf-pbody .form-select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 23, 27, .08); }
body.cvf-view .cvf-pbody .input-group-text { background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; color: var(--muted); }
body.cvf-view .cvf-pbody .input-group > .input-group-text { border-top-right-radius: 0; border-bottom-right-radius: 0; }
body.cvf-view .cvf-pbody .input-group > .form-control { border-top-left-radius: 0; border-bottom-left-radius: 0; }
body.cvf-view .cvf-pbody form button[type="submit"]:not(.modal button), body.cvf-view .cvf-pbody form input[type="submit"] {
  background: var(--ink) !important; border: 1px solid var(--ink) !important; color: var(--paper) !important; border-radius: 9px; font-size: .9rem; font-weight: 500; padding: .55rem 1.1rem;
}
body.cvf-view .cvf-pbody form button[type="submit"]:hover { background: #000 !important; }

/* ---- text, text+media, embeds, FAQ, files, skills: details ---- */
body.cvf-view .cvf-pbody .card.border-0 { border: 1px solid var(--line) !important; }
body.cvf-view .cvf-pbody .card-header.border-0 { border-bottom: 1px solid var(--line) !important; }
body.cvf-view .cvf-pbody .card-header h3 > span { font-family: var(--bs-body-font-family); }
body.cvf-view .cvf-pbody > :first-child, body.cvf-view .cvf-pbody > .card:first-child, body.cvf-view .cvf-pbody > .container-fluid:first-child { margin-top: 0 !important; }
body.cvf-view .cvf-m10 .list-group-item:first-child .mt-3 { margin-top: 0 !important; }
body.cvf-view .cvf-m10 .subheading { font-size: .9rem; font-weight: 600; color: var(--ink); }
body.cvf-view .cvf-m10 .progress { background: var(--paper-2); border-radius: 999px; height: 1.1rem; }
body.cvf-view .cvf-pbody .dropdown-toggle::after { display: none; }
body.cvf-view .cvf-pbody .btn-outline-secondary.border-0, body.cvf-view .cvf-pbody [class*="btn-outline-"].border-0 { color: var(--muted) !important; background: transparent !important; }

/* FAQ: the accordion is the card */
body.cvf-view .cvf-m24 .accordion { --bs-accordion-border-color: var(--line); --bs-accordion-border-radius: 14px; --bs-accordion-inner-border-radius: 13px; background: var(--card); border-radius: 14px; }
body.cvf-view .cvf-m24 .accordion-header { font-family: var(--bs-body-font-family); }
body.cvf-view .cvf-m24 .accordion-button { font-family: var(--bs-body-font-family); font-size: 1rem; font-weight: 600; color: var(--ink); padding: 1rem 1.35rem; background: var(--card); }
body.cvf-view .cvf-m24 .accordion-button:not(.collapsed) { background: var(--card); color: var(--ink); box-shadow: inset 0 -1px 0 var(--line); }
body.cvf-view .cvf-m24 .accordion-button:focus { box-shadow: 0 0 0 3px rgba(21, 23, 27, .12); }
body.cvf-view .cvf-m24 .accordion-body { padding: 1rem 1.35rem 1.2rem; font-size: .95rem; line-height: 1.7; color: var(--text); }
/* student-portfolio folders (13): one quiet row-card each */
body.cvf-view .cvf-m13 .card { margin: 0 0 .8rem !important; }
body.cvf-view .cvf-pbody.cvf-k-own .cvf-m13-x, body.cvf-view .cvf-m13 .cvf-pbody .card-header.border-0 { border-bottom: 0 !important; padding: 1rem 1.35rem; margin: 0 !important; }
body.cvf-view .cvf-m13 .card-title a { color: var(--ink) !important; text-decoration: none; font-weight: 600; }
body.cvf-view .cvf-m13 .card-title a:hover { color: var(--accent-strong) !important; }
body.cvf-view .cvf-m13 .card-header svg.fa-2x { font-size: 1.5rem; margin-top: -.1rem; }
body.cvf-view .cvf-m13 .card-body:empty { display: none; }

/* ---- short pages (2026-11-16, user request): the column stays left, next to the menu; when the
   items don't fill the screen they sit in the middle of the space under the title; a long page flows from the top ---- */
body.cvf-view section.resume-section.cvf-page { flex-direction: column; margin-left: 0; margin-right: 0; min-height: calc(100vh - var(--cvf-top)); } /* left, next to the menu, like the old pages (user decision) */
body.cvf-view section.cvf-page > .resume-section-content { flex: 1 0 auto; display: flex; flex-direction: column; }
body.cvf-view section.cvf-page > .resume-section-content > .cvf-block:last-of-type { flex: 1 0 auto; display: flex; flex-direction: column; }
body.cvf-view section.cvf-page .cvf-block > .cvf-pbody { margin-top: auto; margin-bottom: auto; width: 100%; }
body.cvf-view section.cvf-about > .resume-section-content > .cvf-block { flex: 1 0 auto; display: flex; flex-direction: column; }

/* ---- item titles, subtitles and dates in the owner's heading font, dark ink (2026-11-16, user request: like the old pages) ---- */
body.cvf-view .cvf-item-title, body.cvf-view .cvf-item-sub, body.cvf-view .cvf-item-date,
body.cvf-view .cvf-pbody .card-header h3, body.cvf-view .cvf-pbody .card-header h5, body.cvf-view .cvf-pbody .card-title,
body.cvf-view .cvf-card-title, body.cvf-view .cvf-m17 h3 {
  font-family: var(--cvf-head-font); font-weight: 400 !important; letter-spacing: -.005em; font-synthesis: none;
}
body.cvf-view .cvf-item-title { font-size: 1.5rem; line-height: 1.2; color: var(--ink); }
body.cvf-view .cvf-item-sub { font-size: 1.15rem; line-height: 1.3; color: var(--ink-2); margin-top: .25rem; }
body.cvf-view .cvf-item-date { font-size: 1.1rem; color: var(--ink-2); padding-top: .2rem; font-variant-numeric: normal; }
body.cvf-view .cvf-pbody .card-header h3, body.cvf-view .cvf-pbody .card-header h5, body.cvf-view .cvf-pbody .card-title { font-size: 1.4rem; line-height: 1.2; color: var(--ink); }
body.cvf-view .cvf-pbody .card-header h3 > span { font-family: inherit; }
body.cvf-view .cvf-card-title { font-size: 1.4rem; color: var(--ink); }
body.cvf-view .cvf-m17 h3 { font-size: 1.4rem; }
body.cvf-view .cvf-m13 .card-title a { font-weight: 400 !important; }
body.cvf-view .cvf-item-meta { margin-top: .4rem; }
@media (max-width: 575.98px) {
  body.cvf-view .cvf-item-title { font-size: 1.3rem; }
  body.cvf-view .cvf-item-sub, body.cvf-view .cvf-item-date { font-size: 1.05rem; }
}

/* ---- page title icon (2026-11-16, user request): the menu's icon for this page in a soft vermilion tile ---- */
body.cvf-view .cvf-ptitle { display: flex; align-items: center; gap: .7rem; }
body.cvf-view .cvf-ptitle-ic {
  flex: none; display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; margin: 0; border-radius: 12px;
  background: var(--cvf-tile, #fbe9e2); color: var(--accent-strong); font-size: 1.15rem; vertical-align: 0;
}
body.cvf-view .cvf-ptitle-ic svg { width: 1.15rem; height: 1.15rem; }
@media (max-width: 575.98px) { body.cvf-view .cvf-ptitle-ic { width: 2.2rem; height: 2.2rem; font-size: 1rem; border-radius: 10px; } }

/* ---- one item's own page (cv-*-view.php) ---- */
body.cvf-itemview section.resume-section { padding-top: 0; padding-bottom: 4rem; min-height: 100vh; align-items: flex-start !important; }
body.cvf-itemview section.resume-section > .resume-section-content > br { display: none; }
body.cvf-view .cvf-back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .45rem; font-size: .84rem; font-weight: 500; color: var(--muted); text-decoration: none; }
body.cvf-view .cvf-back:hover { color: var(--ink); }
body.cvf-view .cvf-back svg { font-size: .8em; }
body.cvf-itemview .cvf-itembody { margin-bottom: 1.5rem; }
body.cvf-itemview .cvf-itembody .cvf-item { padding: 1.5rem 1.6rem; }
body.cvf-itemview .cvf-itembody .cvf-item-title { font-size: 1.85rem; }
body.cvf-itemview .cvf-cite-card { padding: 0; overflow: hidden; }
body.cvf-itemview .cvf-cite-card .cvf-cite { padding: 1.3rem 1.5rem; }
body.cvf-itemview .cvf-cite-card .cvf-cite-text { font-size: 1.02rem; }
body.cvf-view .cvf-post-img { display: block; width: 100%; max-height: 22rem; object-fit: cover; border-radius: 10px; margin-bottom: 1.1rem; }
body.cvf-view .cvf-post .cvf-item-title { font-size: 1.85rem; margin-bottom: .8rem; }
body.cvf-view .cvf-post-meta { margin-top: 1.2rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

/* attachments: folders as white cards, files as quiet rows */
body.cvf-itemview .resume-section-content > .card, body.cvf-itemview .resume-section-content .card {
  border: 1px solid var(--line) !important; border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: 0 1px 2px rgba(21, 23, 27, .04); margin-bottom: 1rem !important;
}
body.cvf-itemview .resume-section-content .card-header { background: var(--card) !important; border-bottom: 1px solid var(--line); padding: .9rem 1.35rem; }
body.cvf-itemview .resume-section-content .card-header h3, body.cvf-itemview .resume-section-content .card-header h3 span {
  font-family: var(--cvf-head-font); font-weight: 400; font-size: 1.4rem; color: var(--ink) !important; text-transform: none;
}
body.cvf-itemview .resume-section-content .card-header h3 svg { font-size: .8em; color: var(--muted); margin-right: .3rem; }
body.cvf-itemview .resume-section-content .card.border-danger .card-header h3 svg { color: var(--accent-strong); }
body.cvf-itemview .resume-section-content .card-header .fa-ellipsis-v, body.cvf-itemview .resume-section-content .card-header .text-white { color: var(--muted) !important; }
body.cvf-itemview .resume-section-content .list-group-item { padding: .85rem 1.35rem; border-color: var(--line); font-size: .93rem; }
body.cvf-itemview .resume-section-content .list-group-item .fa-3x { font-size: 1.6rem; color: var(--muted) !important; width: 2rem; }
body.cvf-itemview .resume-section-content .list-group-item a:not(.dropdown-item) { color: var(--ink) !important; font-weight: 500; text-decoration: none; }
body.cvf-itemview .resume-section-content .list-group-item a:not(.dropdown-item):hover { color: var(--accent-strong) !important; text-decoration: underline; }
body.cvf-itemview .resume-section-content .list-group-item .text-muted.small, body.cvf-itemview .resume-section-content .list-group-item .small { font-size: .78rem; color: var(--muted) !important; }
body.cvf-itemview .resume-section-content .card-footer { background: var(--paper) !important; border-top: 1px solid var(--line); padding: .7rem 1.35rem; display: flex; flex-wrap: wrap; gap: .4rem; }
body.cvf-itemview .resume-section-content .btn-sm, body.cvf-itemview .resume-section-content > .btn, body.cvf-itemview .resume-section-content > div > .btn, body.cvf-itemview .resume-section-content > a.btn {
  background: var(--card) !important; border: 1px solid var(--line-2) !important; color: var(--ink-2) !important; border-radius: 8px; font-size: .8rem; font-weight: 500; padding: .32rem .7rem; box-shadow: none;
}
body.cvf-itemview .resume-section-content .btn-sm:hover, body.cvf-itemview .resume-section-content a.btn:hover { border-color: var(--ink) !important; color: var(--ink) !important; }
body.cvf-itemview .resume-section-content .card-header .btn-sm.border-0 { border: 0 !important; background: transparent !important; }

/* book and project pages draw their own layout */
body.cvf-itemview .resume-section-content h1:not(.cvf-ptitle), body.cvf-itemview .resume-section-content h2:not(.cvf-item-title) { text-transform: none; color: var(--ink); }
body.cvf-itemview .resume-section-content .card-body { font-size: .95rem; line-height: 1.68; color: var(--text); }
body.cvf-itemview .resume-section-content .card-body strong { color: var(--ink-2); font-weight: 600; }
body.cvf-itemview .resume-section-content img.img-fluid, body.cvf-itemview .resume-section-content .card img { border-radius: 10px; }

/* book and project pages (new-look branch in cv-book-view.php / cv-shportfolio-view.php) */
body.cvf-view .cvf-book { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.75rem; align-items: start; }
body.cvf-view .cvf-book-cover img { width: 100%; border-radius: 10px; box-shadow: 0 6px 18px rgba(21, 23, 27, .12); }
body.cvf-view .cvf-book-back { display: inline-flex; gap: .35rem; align-items: center; margin-top: .6rem; font-size: .82rem; color: var(--muted); text-decoration: none; }
body.cvf-view .cvf-book .cvf-item-title { font-size: 1.85rem; margin-bottom: .9rem; }
body.cvf-view .cvf-book-facts { margin: 0; display: grid; gap: .45rem; }
body.cvf-view .cvf-book-facts > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .75rem; font-size: .93rem; }
body.cvf-view .cvf-book-facts dt { font-weight: 500; color: var(--muted); }
body.cvf-view .cvf-book-facts dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
body.cvf-view .cvf-project .cvf-item-title { font-size: 1.85rem; margin-bottom: 1rem; }
@media (max-width: 767.98px) { body.cvf-view .cvf-book { grid-template-columns: 1fr; } body.cvf-view .cvf-book-cover { max-width: 14rem; } }
body.cvf-view .cvf-project .cvf-post-img { max-height: 34rem; object-fit: contain; background: var(--paper); }

/* ---- 2026-11-16 (user request): no frozen title bar. The title and buttons sit right above the content, like the old pages;
   on a short page the title + content are centered together, a long page simply starts at the top ---- */
body.cvf-view .cvf-phead {
  position: static; top: auto; z-index: auto; background: transparent; box-shadow: none; clip-path: none;
  padding: 0 0 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line);
}
body.cvf-view .cvf-phead::after { display: none; }
body.cvf-view section.resume-section.cvf-page, body.cvf-itemview section.resume-section {
  flex-direction: column; padding-top: 3rem; padding-bottom: 3rem; min-height: calc(100vh - var(--cvf-top));
}
body.cvf-view section.cvf-page > .resume-section-content, body.cvf-itemview section.resume-section > .resume-section-content {
  flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center;
}
body.cvf-view section.cvf-page > .resume-section-content > .cvf-block:last-of-type,
body.cvf-view section.cvf-about > .resume-section-content > .cvf-block { flex: 0 0 auto; display: block; }
body.cvf-view section.cvf-page .cvf-block > .cvf-pbody { margin-top: 0; margin-bottom: 0; }
body.cvf-view .cvf-about-side { top: calc(var(--cvf-top) + 1.5rem); }
@media (max-width: 575.98px) {
  body.cvf-view section.resume-section.cvf-page, body.cvf-itemview section.resume-section { padding-top: 1.5rem; padding-bottom: 2rem; }
  body.cvf-view .cvf-phead { padding: 0 0 .85rem; margin-bottom: 1.1rem; }
}

/* ---- buttons in the portfolio color, Bootstrap 5.3 style (2026-11-16, user request) ----
   primary = filled menu color; the others = outline in the accent that fill on hover; delete = red outline that fills red */
body.cvf-view {
  --cvf-btn-bg: #bd5d38; --cvf-btn-fg: #fff; --cvf-btn-hover: #a14f30; --cvf-btn-active: #8e4529; --cvf-btn-ring: #e5bfb0;
}
body.cvf-view .cvf-btn, body.cvf-view .cvf-act {
  border-radius: var(--bs-border-radius, .375rem); transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
body.cvf-view .cvf-btn { padding: .375rem .75rem; font-size: .875rem; font-weight: 500; line-height: 1.5;
  background: transparent; border: 1px solid var(--accent); color: var(--accent); }
body.cvf-view .cvf-btn:hover { background: var(--cvf-btn-bg); border-color: var(--cvf-btn-bg); color: var(--cvf-btn-fg); }
body.cvf-view .cvf-btn:active { background: var(--cvf-btn-active); border-color: var(--cvf-btn-active); color: var(--cvf-btn-fg); }
body.cvf-view .cvf-btn:focus-visible, body.cvf-view .cvf-act:focus-visible { outline: 0; box-shadow: 0 0 0 .25rem var(--cvf-btn-ring); }
body.cvf-view .cvf-btn-primary, body.cvf-view .cvf-btn-primary.is-first { background: var(--cvf-btn-bg); border-color: var(--cvf-btn-bg); color: var(--cvf-btn-fg); }
body.cvf-view .cvf-btn-primary:hover, body.cvf-view .cvf-btn-primary:focus-visible { background: var(--cvf-btn-hover); border-color: var(--cvf-btn-hover); color: var(--cvf-btn-fg); }
body.cvf-view .cvf-btn-primary:active { background: var(--cvf-btn-active); border-color: var(--cvf-btn-active); }
body.cvf-view .cvf-btn-danger { border-color: #dc3545; color: #dc3545; }
body.cvf-view .cvf-btn-danger:hover, body.cvf-view .cvf-btn-danger:focus-visible { background: #dc3545; border-color: #dc3545; color: #fff; }
body.cvf-view .cvf-btn-danger:focus-visible { box-shadow: 0 0 0 .25rem rgba(220, 53, 69, .3); }
body.cvf-view .cvf-btn-icon { padding: .375rem .6rem; }
body.cvf-view .cvf-btn-sm { padding: .25rem .5rem; font-size: .8rem; border-radius: var(--bs-border-radius-sm, .25rem); }
/* small per-item buttons: Manage, blog "Edit", attachment add buttons */
body.cvf-view .cvf-act { padding: .25rem .5rem; font-size: .78rem; background: transparent; border: 1px solid var(--accent); color: var(--accent); }
body.cvf-view .cvf-act:hover { background: var(--cvf-btn-bg); border-color: var(--cvf-btn-bg); color: var(--cvf-btn-fg); }
body.cvf-view .cvf-pbody .btn-sm:not(.modal .btn), body.cvf-view .cvf-pbody .btn-circle,
body.cvf-itemview .resume-section-content .btn-sm, body.cvf-itemview .resume-section-content > a.btn, body.cvf-itemview .resume-section-content > div > .btn {
  background: transparent !important; border: 1px solid var(--accent) !important; color: var(--accent) !important; border-radius: var(--bs-border-radius-sm, .25rem);
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}
body.cvf-view .cvf-pbody .btn-sm:not(.modal .btn):hover, body.cvf-view .cvf-pbody .btn-circle:hover,
body.cvf-itemview .resume-section-content .btn-sm:hover, body.cvf-itemview .resume-section-content a.btn:hover {
  background: var(--cvf-btn-bg) !important; border-color: var(--cvf-btn-bg) !important; color: var(--cvf-btn-fg) !important;
}
body.cvf-itemview .resume-section-content .card-header .btn-sm.border-0, body.cvf-view .cvf-pbody .card-header .btn-sm.border-0 { border: 0 !important; background: transparent !important; color: var(--muted) !important; }
/* form submit inside portfolio pages (contact form) */
body.cvf-view .cvf-pbody form button[type="submit"]:not(.modal button), body.cvf-view .cvf-pbody form input[type="submit"] {
  background: var(--cvf-btn-bg) !important; border-color: var(--cvf-btn-bg) !important; color: var(--cvf-btn-fg) !important; border-radius: var(--bs-border-radius, .375rem);
}
body.cvf-view .cvf-pbody form button[type="submit"]:hover { background: var(--cvf-btn-hover) !important; border-color: var(--cvf-btn-hover) !important; }

/* ---- phones and tablets (2026-11-16 check on iPhone 13 / iPad Pro 11) ---- */
/* touch screens: buttons at least 40px tall (Manage 36px) so they are easy to tap; hover-only Manage is always visible */
@media (pointer: coarse) {
  body.cvf-view .cvf-btn { min-height: 2.5rem; }
  body.cvf-view .cvf-act { min-height: 2.25rem; padding: .35rem .7rem; font-size: .82rem; }
  body.cvf-view .cvf-back { min-height: 2.25rem; }
  body.cvf-view .cvf-cite .cvf-act { opacity: 1; }
}
/* phones: a citation uses the full width; its Manage button goes under the text */
@media (max-width: 575.98px) {
  body.cvf-view .cvf-cite { flex-wrap: wrap; }
  body.cvf-view .cvf-cite-body { flex: 1 1 100%; }
  body.cvf-view .cvf-cite > .cvf-act { margin-top: .6rem; }
  body.cvf-view .cvf-pactions { width: 100%; }
  body.cvf-view .cvf-ptitle { font-size: 1.9rem; }
  body.cvf-view .cvf-book-facts > div { grid-template-columns: 5.5rem minmax(0, 1fr); }
  body.cvf-itemview .resume-section-content .card-footer .btn-sm { flex: 1 1 auto; }
}
/* tablets in portrait: About shows the facts card above the text (already), keep the page start closer to the top */
@media (min-width: 576px) and (max-width: 991.98px) {
  body.cvf-view section.resume-section.cvf-page, body.cvf-itemview section.resume-section { padding-left: 1.75rem; padding-right: 1.75rem; }
}
@media (max-width: 575.98px) {
  body.cvf-view .cvf-pactions { gap: .35rem; }
  body.cvf-view .cvf-pactions .cvf-btn { padding: .4rem .55rem; font-size: .8rem; gap: .3rem; }
  body.cvf-view .cvf-pactions .cvf-btn-icon { padding: .4rem .6rem; }
}
/* phones: secondary item buttons are icon-only (label kept for screen readers) so the row fits */
@media (max-width: 575.98px) {
  body.cvf-view .cvf-pactions .cvf-btn-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  body.cvf-view .cvf-pactions .cvf-btn:has(.cvf-btn-label) { padding: .4rem .65rem; min-width: 2.5rem; justify-content: center; }
}

/* ======================= Welcome landing page (cv-welcome.php, 2026-11-16) ======================= */
body.cvf-welcome { padding: 0 !important; }
body.cvf-welcome #sideNav { display: none !important; }
body.cvf-welcome .cvw { --cvw-max: 72rem; min-height: 100vh; display: flex; flex-direction: column; }
body.cvf-welcome .cvw > * { width: 100%; }
/* top bar */
body.cvf-welcome .cvw-top { display: flex; align-items: center; gap: 1.5rem; max-width: var(--cvw-max); margin: 0 auto; padding: 1.1rem clamp(1rem, 4vw, 2rem); }
body.cvf-welcome .cvw-brand { font-family: var(--cvf-head-font); font-size: 1.55rem; line-height: 1; color: var(--ink); text-decoration: none; white-space: nowrap; font-synthesis: none; }
body.cvf-welcome .cvw-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; margin-left: auto; }
body.cvf-welcome .cvw-nav a { color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
body.cvf-welcome .cvw-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
body.cvf-welcome .cvw-top-actions { display: flex; gap: .5rem; flex: none; }
/* hero: the background photo under a solid shade of the portfolio color, photo + name on top */
body.cvf-welcome .cvw-hero { position: relative; color: #fff; background-color: var(--cvw-deep); isolation: isolate; }
body.cvf-welcome .cvw-hero.has-img { background-image: var(--cvw-img); background-size: cover; background-position: center 40%; }
body.cvf-welcome .cvw-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(var(--cvw-deep-rgb), .86); }
body.cvf-welcome .cvw-hero.has-img::before { background: rgba(var(--cvw-deep-rgb), .74); }
body.cvf-welcome .cvw-hero.has-img .cvw-name, body.cvf-welcome .cvw-hero.has-img .cvw-role { text-shadow: 0 1px 12px rgba(var(--cvw-deep-rgb), .55); }
body.cvf-welcome .cvw-hero-in { display: grid; grid-template-columns: minmax(13rem, 19rem) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center;
  max-width: var(--cvw-max); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem) clamp(3.5rem, 7vw, 5.5rem); }
body.cvf-welcome .cvw-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .12);
  border: 6px solid rgba(255, 255, 255, .92); box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
body.cvf-welcome .cvw-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.cvf-welcome .cvw-photo .cvw-initials { width: 100% !important; height: 100% !important; border-radius: 0 !important; font-size: 4.5rem !important; display: grid !important; place-items: center; }
body.cvf-welcome .cvw-kicker { margin: 0 0 .6rem; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
body.cvf-welcome .cvw-name { margin: 0; font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); line-height: 1.02; color: #fff; letter-spacing: -.015em; text-transform: none; }
body.cvf-welcome .cvw-role { margin: .9rem 0 0; font-family: var(--cvf-head-font); font-size: clamp(1.25rem, 1rem + .9vw, 1.7rem); line-height: 1.3; color: rgba(255, 255, 255, .95); font-synthesis: none; }
body.cvf-welcome .cvw-place { margin: .7rem 0 0; font-size: .98rem; color: rgba(255, 255, 255, .8); }
body.cvf-welcome .cvw-place svg { margin-right: .3rem; }
body.cvf-welcome .cvw-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
body.cvf-welcome .cvw-btn { display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1.35rem; border-radius: var(--bs-border-radius, .375rem); font-size: 1rem; font-weight: 600; text-decoration: none;
  transition: background-color .15s ease-in-out, color .15s ease-in-out, border-color .15s ease-in-out, transform .15s ease-in-out; }
body.cvf-welcome .cvw-btn-light { background: #fff; color: var(--cvw-deep); border: 1px solid #fff; }
body.cvf-welcome .cvw-btn-light:hover { background: rgba(255, 255, 255, .88); color: var(--cvw-deep); }
body.cvf-welcome .cvw-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .7); }
body.cvf-welcome .cvw-btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff; }
body.cvf-welcome .cvw-btn:focus-visible { outline: 0; box-shadow: 0 0 0 .25rem rgba(255, 255, 255, .45); }
body.cvf-welcome .cvw-owner { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .2); }
body.cvf-welcome .cvw-owner a { color: rgba(255, 255, 255, .82); font-size: .84rem; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
body.cvf-welcome .cvw-owner a:hover { color: #fff; text-decoration: underline; }
/* contact strip overlapping the hero */
body.cvf-welcome .cvw-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; width: auto; max-width: min(var(--cvw-max), calc(100% - 2rem)); margin: -2rem auto 0; position: relative; z-index: 2;
  padding: .55rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(21, 23, 27, .08); }
body.cvf-welcome .cvw-strip a { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .95rem; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; min-height: 2.5rem; }
body.cvf-welcome .cvw-strip a:hover { background: var(--paper); color: var(--accent); }
body.cvf-welcome .cvw-strip svg { color: var(--accent); }
/* body: about + explore */
body.cvf-welcome .cvw-body { flex: 1 0 auto; max-width: var(--cvw-max); margin: 0 auto; padding: 2.75rem clamp(1rem, 4vw, 2rem) 4rem; display: flex; flex-direction: column; gap: 2.75rem; }
body.cvf-welcome .cvw-about { display: grid; gap: 1rem; }
body.cvf-welcome .cvw-about.two { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
body.cvf-welcome .cvw-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem 1.75rem; box-shadow: 0 1px 2px rgba(21, 23, 27, .04); }
body.cvf-welcome .cvw-card h2, body.cvf-welcome .cvw-explore h2 { font-size: 1.6rem; margin: 0 0 .8rem; color: var(--ink); text-transform: none; }
body.cvf-welcome .cvw-prose { font-size: 1rem; line-height: 1.78; color: var(--text); }
body.cvf-welcome .cvw-empty p { color: var(--muted); }
body.cvf-welcome .cvw-explore-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
body.cvf-welcome .cvw-explore-head h2 { margin: 0; }
body.cvf-welcome .cvw-explore-head a { color: var(--accent); font-weight: 500; font-size: .92rem; text-decoration: none; }
body.cvf-welcome .cvw-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
body.cvf-welcome .cvw-tile { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.35rem 1.25rem 3.4rem; min-height: 11rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(21, 23, 27, .04);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
body.cvf-welcome .cvw-tile:hover, body.cvf-welcome .cvw-tile:focus-visible { border-color: var(--accent); box-shadow: 0 10px 24px rgba(21, 23, 27, .09); transform: translateY(-2px); }
body.cvf-welcome .cvw-tile-ic { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 12px; background: var(--cvf-tile, var(--paper-2)); color: var(--accent); font-size: 1.2rem; margin-bottom: .35rem; }
body.cvf-welcome .cvw-tile-title { font-family: var(--cvf-head-font); font-size: 1.4rem; line-height: 1.15; color: var(--ink); font-synthesis: none; }
body.cvf-welcome .cvw-tile-note { font-size: .86rem; line-height: 1.5; color: var(--muted); }
body.cvf-welcome .cvw-tile-go { position: absolute; left: 1.25rem; bottom: 1.1rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--paper-2); color: var(--accent); font-size: .8rem; transition: background-color .15s ease, color .15s ease; }
body.cvf-welcome .cvw-tile:hover .cvw-tile-go { background: var(--cvf-btn-bg); color: var(--cvf-btn-fg); }
/* tablets and phones */
@media (max-width: 1199.98px) { body.cvf-welcome .cvw-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991.98px) {
  body.cvf-welcome .cvw-nav { display: none; }
  body.cvf-welcome .cvw-top-actions { margin-left: auto; }
  body.cvf-welcome .cvw-about.two { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  body.cvf-welcome .cvw-hero-in { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  body.cvf-welcome .cvw-photo { width: min(15rem, 70vw); }
  body.cvf-welcome .cvw-actions, body.cvf-welcome .cvw-owner { justify-content: center; }
  body.cvf-welcome .cvw-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  body.cvf-welcome .cvw-top { gap: .75rem; }
  body.cvf-welcome .cvw-brand { font-size: 1.25rem; white-space: normal; }
  body.cvf-welcome .cvw-top-actions .cvf-btn:not(.cvf-btn-primary) { display: none; }
  body.cvf-welcome .cvw-actions .cvw-btn { flex: 1 1 100%; justify-content: center; }
  body.cvf-welcome .cvw-cards { grid-template-columns: 1fr; }
  body.cvf-welcome .cvw-tile { min-height: 0; padding-bottom: 1.35rem; padding-right: 3.5rem; }
  body.cvf-welcome .cvw-tile-go { left: auto; right: 1.1rem; bottom: auto; top: 50%; transform: translateY(-50%); }
  body.cvf-welcome .cvw-strip { flex-direction: column; align-items: stretch; width: calc(100% - 2rem); }
  body.cvf-welcome .cvw-card { padding: 1.2rem 1.15rem; }
}
/* Welcome: long About / Expertise texts fold after about 9 lines (button added by cv-welcome.php) */
body.cvf-welcome .cvw-prose.is-folded { max-height: 15.6rem; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
body.cvf-welcome .cvw-more { margin-top: .6rem; padding: 0; border: 0; background: none; color: var(--accent); font-weight: 600; font-size: .92rem; }
body.cvf-welcome .cvw-more:hover { text-decoration: underline; }
body.cvf-welcome .cvw-aff { margin: .35rem 0 0; font-size: 1.05rem; line-height: 1.45; color: rgba(255, 255, 255, .88); font-weight: 500; }

/* ---- Welcome page refinements (2026-11-16, user's 8 points) ---- */
/* 6. wider content */
body.cvf-welcome .cvw { --cvw-max: 76rem; }
/* 7. shorter hero (about 40px less) */
body.cvf-welcome .cvw-hero-in { padding-top: clamp(2rem, 4.5vw, 3.25rem); padding-bottom: clamp(3rem, 5.5vw, 4.25rem); }
@media (min-width: 768px) { body.cvf-welcome .cvw-hero-in { grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr); } }
body.cvf-welcome .cvw-kicker { margin-bottom: .45rem; }
/* 1. role more prominent, affiliation clearly under it */
body.cvf-welcome .cvw-role { margin-top: .85rem; font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem); line-height: 1.25; color: #fff; }
body.cvf-welcome .cvw-aff { margin-top: .6rem; font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); font-weight: 500; color: rgba(255, 255, 255, .9); }
body.cvf-welcome .cvw-aff svg { margin-right: .4rem; opacity: .8; }
body.cvf-welcome .cvw-aff span { margin: 0 .35rem; opacity: .7; }
body.cvf-welcome .cvw-place { margin-top: .45rem; font-size: .93rem; }
/* 8. the main action: larger, accent text, a soft lift on hover */
body.cvf-welcome .cvw-actions { margin-top: 1.5rem; }
body.cvf-welcome .cvw-btn-light { padding: .85rem 1.6rem; font-size: 1.05rem; color: var(--accent); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
body.cvf-welcome .cvw-btn-light:hover { background: #fff; color: var(--accent); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, .24); }
body.cvf-welcome .cvw-btn-ghost { padding: .85rem 1.35rem; }
/* top bar: one accent for hover/current section and the Manage menu */
body.cvf-welcome .cvw-nav a:hover, body.cvf-welcome .cvw-nav a:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }
body.cvf-welcome .cvw-menu { --bs-dropdown-link-active-bg: var(--accent); font-size: .9rem; border-radius: 10px; border-color: var(--line); box-shadow: 0 10px 28px rgba(21, 23, 27, .12); }
body.cvf-welcome .cvw-menu .dropdown-item { display: flex; gap: .6rem; align-items: center; padding: .5rem 1rem; }
body.cvf-welcome .cvw-menu .dropdown-item svg { width: 1rem; color: var(--accent); }
body.cvf-welcome .cvw-top .dropdown-toggle::after { margin-left: .35rem; }
/* 5. contact strip: more room, same-size icons */
body.cvf-welcome .cvw-strip { padding: .7rem; gap: .35rem; margin-top: -2.1rem; }
body.cvf-welcome .cvw-strip a { padding: .65rem 1.15rem; }
body.cvf-welcome .cvw-strip svg { width: 1.05rem; height: 1.05rem; flex: none; }
body.cvf-welcome .cvw-strip a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* 3. About folds after about 5 lines */
body.cvf-welcome .cvw-prose.is-folded { max-height: 8.9rem; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
body.cvf-welcome .cvw-more::after { content: " \2193"; }
body.cvf-welcome .cvw-more[aria-expanded="true"]::after { content: " \2191"; }
/* 4. cards: bigger icon, whole card is the link, gentle hover in the accent */
body.cvf-welcome .cvw-tile { padding: 1.5rem 1.35rem 3.6rem; gap: .45rem; }
body.cvf-welcome .cvw-tile-ic { width: 3.4rem; height: 3.4rem; border-radius: 14px; font-size: 1.45rem; margin-bottom: .5rem; transition: background-color .15s ease, color .15s ease; }
body.cvf-welcome .cvw-tile:hover .cvw-tile-ic, body.cvf-welcome .cvw-tile:focus-visible .cvw-tile-ic { background: var(--cvf-btn-bg); color: var(--cvf-btn-fg); }
body.cvf-welcome .cvw-tile:hover .cvw-tile-title { color: var(--accent); }
body.cvf-welcome .cvw-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.cvf-welcome .cvw-tile-note { font-size: .88rem; }
body.cvf-welcome .cvw-tile-go { transition: background-color .15s ease, color .15s ease, transform .15s ease; }
body.cvf-welcome .cvw-tile:hover .cvw-tile-go { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { body.cvf-welcome .cvw-tile, body.cvf-welcome .cvw-tile-go, body.cvf-welcome .cvw-btn { transition: none; transform: none !important; } }
@media (max-width: 575.98px) { body.cvf-welcome .cvw-tile { padding: 1.2rem 3.5rem 1.2rem 1.2rem; } body.cvf-welcome .cvw-tile-ic { width: 2.8rem; height: 2.8rem; font-size: 1.2rem; } }

@media (max-width: 767.98px) { body.cvf-welcome .cvw-role { font-size: 1.35rem; } body.cvf-welcome .cvw-aff { font-size: 1rem; } }

/* ---- 2026-11-16: biography shows 4 whole lines, no fade; contact bar centered on the hero edge, less gap below ---- */
body.cvf-welcome .cvw-prose.is-folded { max-height: none; -webkit-mask-image: none; mask-image: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
body.cvf-welcome .cvw-strip { margin-top: 0; transform: translateY(-50%); }
body.cvf-welcome .cvw-body { padding-top: 0; margin-top: -.75rem; }
@media (max-width: 575.98px) { body.cvf-welcome .cvw-strip { transform: translateY(-1.75rem); } body.cvf-welcome .cvw-body { margin-top: -.5rem; } }

/* Welcome top bar (2026-11-16, user request): name on the left, the portfolio title on the right as one link into the portfolio */
body.cvf-welcome .cvw-top { justify-content: space-between; }
body.cvf-welcome .cvw-ptitle-link { display: inline-flex; align-items: center; gap: .6rem; margin-left: auto; padding: .5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--accent); font-weight: 600; font-size: .92rem; text-decoration: none; max-width: 60%;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
body.cvf-welcome .cvw-ptitle-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.cvf-welcome .cvw-ptitle-link svg { flex: none; font-size: .85em; transition: transform .15s ease; }
body.cvf-welcome .cvw-ptitle-link:hover, body.cvf-welcome .cvw-ptitle-link:focus-visible { background: var(--cvf-btn-bg); border-color: var(--cvf-btn-bg); color: var(--cvf-btn-fg); }
body.cvf-welcome .cvw-ptitle-link:hover svg { transform: translateX(3px); }
body.cvf-welcome .cvw-ptitle-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 575.98px) { body.cvf-welcome .cvw-ptitle-link { max-width: 58%; font-size: .82rem; padding: .45rem .8rem; } }
@media (max-width: 575.98px) { body.cvf-welcome .cvw-ptitle-link { border-radius: 14px; text-align: left; line-height: 1.3; } body.cvf-welcome .cvw-ptitle-link span { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; } }
/* Welcome top bar name: bigger and bolder (2026-11-16, user request). Instrument Serif has one weight, so the extra weight is a thin outline, as on admin titles */
body.cvf-welcome .cvw-brand { font-size: clamp(1.6rem, 1.3rem + .9vw, 2.15rem); color: var(--ink); -webkit-text-stroke: .7px currentColor; paint-order: stroke fill; letter-spacing: -.005em; }
body.cvf-welcome:not(.cvf-hf6) .cvw-brand { -webkit-text-stroke: 0; font-weight: 700; font-synthesis: weight; }
@media (max-width: 575.98px) { body.cvf-welcome .cvw-brand { font-size: 1.45rem; } }
/* Welcome About card heading (2026-11-16, user request): bolder title, a hairline under it with a short accent bar at the start */
body.cvf-welcome .cvw-card h2 { position: relative; font-size: clamp(1.7rem, 1.45rem + .6vw, 2rem); color: var(--ink); padding-bottom: .65rem; margin-bottom: 1.05rem;
  border-bottom: 1px solid var(--line); -webkit-text-stroke: .6px currentColor; paint-order: stroke fill; }
body.cvf-welcome:not(.cvf-hf6) .cvw-card h2 { -webkit-text-stroke: 0; font-weight: 700; font-synthesis: weight; }
body.cvf-welcome .cvw-card h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 3rem; height: 3px; border-radius: 2px; background: var(--accent); }

/* ---- Welcome (2026-11-16, user request): one large portfolio button on the hero's edge; links after About ---- */
body.cvf-welcome .cvw-portal { position: relative; z-index: 2; display: flex; align-items: center; gap: 1.1rem; width: min(40rem, calc(100% - 2rem)); margin: 0 auto; transform: translateY(-50%);
  padding: 1.05rem 1.35rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 28px rgba(21, 23, 27, .12);
  color: var(--ink); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
body.cvf-welcome .cvw-portal:hover, body.cvf-welcome .cvw-portal:focus-visible { border-color: var(--accent); box-shadow: 0 14px 34px rgba(21, 23, 27, .16); color: var(--ink); }
body.cvf-welcome .cvw-portal:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.cvf-welcome .cvw-portal-ic { flex: none; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 14px; background: var(--cvf-tile, var(--paper-2)); color: var(--accent); font-size: 1.35rem; transition: background-color .15s ease, color .15s ease; }
body.cvf-welcome .cvw-portal:hover .cvw-portal-ic { background: var(--cvf-btn-bg); color: var(--cvf-btn-fg); }
body.cvf-welcome .cvw-portal-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
body.cvf-welcome .cvw-portal-kicker { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
body.cvf-welcome .cvw-portal-title { font-family: var(--cvf-head-font); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); line-height: 1.2; color: var(--accent); font-synthesis: none; overflow-wrap: anywhere; }
body.cvf-welcome .cvw-portal-go { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--cvf-btn-bg); color: var(--cvf-btn-fg); transition: transform .15s ease; }
body.cvf-welcome .cvw-portal:hover .cvw-portal-go { transform: translateX(3px); }
body.cvf-welcome .cvw-body { margin-top: -1rem; }
/* LinkedIn / Website / QR code: a quiet row after About */
body.cvf-welcome .cvw-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
body.cvf-welcome .cvw-links a { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; min-height: 2.5rem; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--card); color: var(--ink-2); font-size: .9rem; font-weight: 500; text-decoration: none; transition: border-color .15s ease, color .15s ease; }
body.cvf-welcome .cvw-links a:hover, body.cvf-welcome .cvw-links a:focus-visible { border-color: var(--accent); color: var(--accent); }
body.cvf-welcome .cvw-links svg { width: 1rem; color: var(--accent); }
/* the hero's only button is Contact now: keep it solid and clear */
body.cvf-welcome .cvw-actions .cvw-btn-ghost { background: rgba(255, 255, 255, .1); }
/* About title in the portfolio color, as in the user's example */
body.cvf-welcome .cvw-card h2 { color: var(--accent); }
@media (max-width: 575.98px) {
  body.cvf-welcome .cvw-portal { transform: translateY(-1.75rem); gap: .8rem; padding: .9rem 1rem; }
  body.cvf-welcome .cvw-portal-ic { width: 2.6rem; height: 2.6rem; font-size: 1.1rem; }
  body.cvf-welcome .cvw-actions .cvw-btn { flex: 1 1 100%; justify-content: center; }
}

/* contact form on the Welcome page (2026-11-16): the section's own title looks like the About title */
body.cvf-welcome .cvw-contact { scroll-margin-top: 1.5rem; }
body.cvf-welcome .cvw-contact .table { margin: 0; }
body.cvf-welcome .cvw-contact .table > :not(caption) > * > * { padding: 0; background: transparent; box-shadow: none; border: 0; }
body.cvf-welcome .cvw-contact .mt-5 { margin-top: 0 !important; }
body.cvf-welcome .cvw-contact h3 { position: relative; font-size: clamp(1.7rem, 1.45rem + .6vw, 2rem); color: var(--accent); padding-bottom: .65rem; margin-bottom: 1.05rem !important;
  border-bottom: 1px solid var(--line); -webkit-text-stroke: .6px currentColor; paint-order: stroke fill; }
body.cvf-welcome:not(.cvf-hf6) .cvw-contact h3 { -webkit-text-stroke: 0; font-weight: 700; }
body.cvf-welcome .cvw-contact h3::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 3rem; height: 3px; border-radius: 2px; background: var(--accent); }
body.cvf-welcome .cvw-contact h3 .btn { float: right; font-family: var(--bs-body-font-family); -webkit-text-stroke: 0; font-size: .8rem; background: var(--card) !important; border: 1px solid var(--accent) !important; color: var(--accent) !important; border-radius: 8px; padding: .3rem .7rem; }
body.cvf-welcome .cvw-contact .subheading { font-family: var(--bs-body-font-family); font-size: .9rem; font-weight: 400; color: var(--muted); text-transform: none; }
body.cvf-welcome .cvw-contact .form-label { font-size: .88rem; font-weight: 500; color: var(--ink-2); }
body.cvf-welcome .cvw-contact .form-control { border: 1px solid var(--line-2); border-radius: 10px; font-size: .95rem; padding: .65rem .85rem; }
body.cvf-welcome .cvw-contact .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem var(--cvf-btn-ring, rgba(0,0,0,.1)); }
body.cvf-welcome .cvw-contact .input-group-text { background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px 0 0 10px; color: var(--muted); }
body.cvf-welcome .cvw-contact .input-group > .form-control { border-radius: 0 10px 10px 0; }
body.cvf-welcome .cvw-contact button[type="submit"] { background: var(--cvf-btn-bg) !important; border: 1px solid var(--cvf-btn-bg) !important; color: var(--cvf-btn-fg) !important; border-radius: 10px; padding: .7rem 1.4rem; font-weight: 600; }
body.cvf-welcome .cvw-contact button[type="submit"]:hover { background: var(--cvf-btn-hover) !important; border-color: var(--cvf-btn-hover) !important; }
body.cvf-welcome .cvw-contact .subheading { display: none; } /* the place is already in the hero */
body.cvf-welcome .cvw-body { gap: 1.5rem; }
/* photo credit for CC BY backgrounds (2026-11-16) */
body.cvf-welcome .cvw-credit { position: absolute; right: .9rem; bottom: .6rem; margin: 0; font-size: .7rem; line-height: 1.2; color: rgba(255, 255, 255, .72); }
body.cvf-welcome .cvw-credit a { color: inherit; text-decoration: none; }
body.cvf-welcome .cvw-credit a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 575.98px) { body.cvf-welcome .cvw-credit { bottom: 2.4rem; } }
/* "Contact me" in the bottom row: filled in the portfolio color (2026-11-16) */
body.cvf-welcome .cvw-links a.cvw-links-contact { background: var(--cvf-btn-bg); border-color: var(--cvf-btn-bg); color: var(--cvf-btn-fg); }
body.cvf-welcome .cvw-links a.cvw-links-contact svg { color: inherit; }
body.cvf-welcome .cvw-links a.cvw-links-contact:hover, body.cvf-welcome .cvw-links a.cvw-links-contact:focus-visible { background: var(--cvf-btn-hover); border-color: var(--cvf-btn-hover); color: var(--cvf-btn-fg); }
/* About Me: character-based cut (cv-welcome.php); the old line-clamp fold no longer applies */
body.cvf-welcome .cvw-prose[data-short], body.cvf-welcome .cvw-prose[data-full] { display: block; -webkit-line-clamp: unset; max-height: none; overflow: visible; }
body.cvf-welcome .cvw-prose[hidden] { display: none !important; }

/* ---- Welcome page, final pass (2026-11-16, user's list) ---- */
/* no top bar: the hero opens the page */
body.cvf-welcome .cvw-hero-in { padding-top: clamp(2.75rem, 6vw, 4.5rem); }
/* the name: larger and bolder (Instrument Serif has one weight: a fine outline gives it body) */
body.cvf-welcome .cvw-name { font-size: clamp(3rem, 1.8rem + 4.2vw, 5.4rem); line-height: .98; letter-spacing: -.02em; -webkit-text-stroke: 1px currentColor; paint-order: stroke fill; }
body.cvf-welcome:not(.cvf-hf6) .cvw-name { -webkit-text-stroke: 0; font-weight: 700; font-synthesis: weight; }
body.cvf-welcome .cvw-role { margin-top: 1rem; }
/* photo: a slim light frame, softer rounding and shadow, no thick white border */
body.cvf-welcome .cvw-photo { border: 0; border-radius: 22px; padding: 5px; background: rgba(255, 255, 255, .22); box-shadow: 0 24px 48px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .35); }
body.cvf-welcome .cvw-photo img, body.cvf-welcome .cvw-photo .cvw-initials { border-radius: 17px; }
/* links row: academic profiles first, slightly more room */
body.cvf-welcome .cvw-links { gap: .55rem; max-width: 52rem; margin: 0 auto; }
/* footer: last updated, and a quiet credit */
body.cvf-welcome .cvw-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; width: min(var(--cvw-max), calc(100% - 2rem));
  margin: 0 auto; padding: 1.25rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
body.cvf-welcome .cvw-foot-brand { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); text-decoration: none; }
body.cvf-welcome .cvw-foot-brand b { font-weight: 600; color: var(--ink-2); }
body.cvf-welcome .cvw-foot-brand b i { font-style: italic; color: var(--accent); }
body.cvf-welcome .cvw-foot-brand:hover b { color: var(--ink); }
body.cvf-welcome .cvw-foot-brand img { display: inline-block; }
/* the body grows so the footer sits at the bottom on short pages instead of leaving an empty band */
body.cvf-welcome .cvw-body { flex: 1 0 auto; padding-bottom: 3rem; }
@media (max-width: 767.98px) {
  body.cvf-welcome .cvw-hero-in { padding-top: 2rem; }
  body.cvf-welcome .cvw-name { font-size: clamp(2.5rem, 1.5rem + 5vw, 3.4rem); }
  body.cvf-welcome .cvw-foot { justify-content: center; text-align: center; }
}
/* no portfolio button yet (no visible pages): keep About clear of the hero */
body.cvf-welcome .cvw-hero + .cvw-body { margin-top: 0; padding-top: 2.5rem; }
@media (max-width: 575.98px) { body.cvf-welcome .cvw-credit { top: .5rem; bottom: auto; right: .6rem; } }
/* no photo: the initials sit on a soft tint of the hero color, not a random color */
body.cvf-welcome .cvw-photo .cvw-initials { background: rgba(255, 255, 255, .14) !important; color: #fff !important; font-family: var(--cvf-head-font) !important; font-weight: 400 !important; font-size: 5.5rem !important; letter-spacing: .02em; }
/* lighter shading over Welcome photos (2026-11-16, user request): the photo shows through; text keeps a soft shadow for legibility */
body.cvf-welcome .cvw-hero.has-img::before { background: rgba(var(--cvw-deep-rgb), .5); }
body.cvf-welcome .cvw-hero.has-img .cvw-intro { text-shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 2px 18px rgba(var(--cvw-deep-rgb), .75); }
body.cvf-welcome .cvw-hero.has-img .cvw-name, body.cvf-welcome .cvw-hero.has-img .cvw-role { text-shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 2px 22px rgba(var(--cvw-deep-rgb), .8); }
body.cvf-welcome .cvw-hero.has-img .cvw-place, body.cvf-welcome .cvw-hero.has-img .cvw-aff { color: #fff; }

/* "Open the portfolio" as a real button (2026-11-16, user request): filled with the portfolio color, light text */
body.cvf-welcome .cvw-portal { background: var(--cvf-btn-bg); border: 1px solid var(--cvf-btn-bg); color: var(--cvf-btn-fg);
  box-shadow: 0 12px 30px rgba(var(--cvw-deep-rgb, 21, 23, 27), .28), 0 2px 6px rgba(0, 0, 0, .12); }
body.cvf-welcome .cvw-portal:hover, body.cvf-welcome .cvw-portal:focus-visible { background: var(--cvf-btn-hover); border-color: var(--cvf-btn-hover); color: var(--cvf-btn-fg);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .26); transform: translateY(calc(-50% - 2px)); }
body.cvf-welcome .cvw-portal:active { background: var(--cvf-btn-active); transform: translateY(-50%); }
body.cvf-welcome .cvw-portal:focus-visible { outline: 3px solid var(--cvf-btn-ring); outline-offset: 3px; }
body.cvf-welcome .cvw-portal { transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease; }
body.cvf-welcome .cvw-portal-ic { background: rgba(255, 255, 255, .16); color: var(--cvf-btn-fg); }
body.cvf-welcome .cvw-portal:hover .cvw-portal-ic { background: rgba(255, 255, 255, .24); color: var(--cvf-btn-fg); }
body.cvf-welcome .cvw-portal-kicker { color: var(--cvf-btn-fg); opacity: .78; }
body.cvf-welcome .cvw-portal-title { color: var(--cvf-btn-fg); }
body.cvf-welcome .cvw-portal-go { background: #fff; color: var(--cvf-btn-bg); }
@media (max-width: 575.98px) {
  body.cvf-welcome .cvw-portal:hover, body.cvf-welcome .cvw-portal:focus-visible { transform: translateY(calc(-1.75rem - 2px)); }
  body.cvf-welcome .cvw-portal:active { transform: translateY(-1.75rem); }
}
@media (prefers-reduced-motion: reduce) { body.cvf-welcome .cvw-portal, body.cvf-welcome .cvw-portal:hover { transition: none; } }

/* ---- Welcome polish (2026-11-16) ---- */
/* 1. the footer follows the content instead of being pushed to the bottom of the window */
body.cvf-welcome .cvw-body { flex: 0 0 auto; padding-bottom: 2.5rem; }
body.cvf-welcome .cvw-foot { margin-top: 0; }
/* 2. legibility: a soft darker band behind the name/title side of photo heroes (photo stays visible elsewhere) */
body.cvf-welcome .cvw-hero.has-img::before {
  background:
    linear-gradient(90deg, rgba(var(--cvw-deep-rgb), 0) 8%, rgba(var(--cvw-deep-rgb), .55) 28%, rgba(var(--cvw-deep-rgb), .55) 78%, rgba(var(--cvw-deep-rgb), 0) 96%),
    rgba(var(--cvw-deep-rgb), .5);
}
@media (max-width: 767.98px) {
  body.cvf-welcome .cvw-hero.has-img::before {
    background: linear-gradient(180deg, rgba(var(--cvw-deep-rgb), 0) 35%, rgba(var(--cvw-deep-rgb), .42) 60%, rgba(var(--cvw-deep-rgb), .42) 100%), rgba(var(--cvw-deep-rgb), .5);
  }
}
/* 3. owner-only tools, top right of the hero */
body.cvf-welcome .cvw-ownerbar { position: absolute; top: .9rem; right: .9rem; z-index: 3; display: flex; gap: .4rem; }
body.cvf-welcome .cvw-ownerbar a, body.cvf-welcome .cvw-ownerbar button {
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(0, 0, 0, .28); color: #fff; font-size: .8rem; font-weight: 500; text-decoration: none; text-shadow: none; line-height: 1.2; }
body.cvf-welcome .cvw-ownerbar a:hover, body.cvf-welcome .cvw-ownerbar button:hover { background: #fff; color: var(--cvw-deep); border-color: #fff; }
body.cvf-welcome .cvw-ownerbar a:focus-visible, body.cvf-welcome .cvw-ownerbar button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 575.98px) { body.cvf-welcome .cvw-ownerbar { top: .6rem; right: .6rem; } body.cvf-welcome .cvw-credit { top: auto; bottom: .4rem; right: .6rem; } }
@media (max-width: 767.98px) { body.cvf-welcome .cvw-hero:has(.cvw-ownerbar) .cvw-hero-in { padding-top: 3.6rem; } }
