/* =====================================================================
   CVfolder front pages (home, blog, auth, legal, dashboard header)
   Editorial system: warm paper, deep ink, one vermilion accent.
   Fonts are self-hosted (vendor/fonts): Instrument Serif, Geist, Geist Mono.
   ===================================================================== */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/vendor/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/vendor/fonts/instrument-serif-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/vendor/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/vendor/fonts/instrument-serif-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/vendor/fonts/geist-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/vendor/fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/vendor/fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f7f5f0;
  --paper-2: #efebe3;
  --card: #ffffff;
  --ink: #15171b;
  --ink-2: #2a2e35;
  --text: #3a3f47;
  --muted: #6b717b;
  --line: #e4dfd5;
  --line-2: #d5cfc3;
  --accent: #d64b2a;
  --accent-rgb: 214, 75, 42;
  --accent-ink: #b23a1e;
  --accent-soft: #fbe9e2;
  --slate: #2e4a6b;
  --on-ink: #ece8df;
  --on-ink-muted: #a3a29b;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(21, 23, 27, .06);
  --shadow: 0 1px 2px rgba(21, 23, 27, .05), 0 12px 32px -14px rgba(21, 23, 27, .22);
  --shadow-lg: 0 2px 4px rgba(21, 23, 27, .04), 0 40px 80px -30px rgba(21, 23, 27, .35);
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* legacy names still referenced by some pages */
  --brand: var(--accent); --brand-rgb: var(--accent-rgb); --brand-dark: var(--accent-ink); --brand-soft: var(--accent-soft);
  --bg: var(--paper); --bg-soft: var(--paper-2);
  --grad: var(--ink); --grad-warm: var(--accent);

  --bs-primary: var(--accent);
  --bs-primary-rgb: var(--accent-rgb);
  --bs-link-color: var(--accent-ink);
  --bs-link-color-rgb: 178, 58, 30;
  --bs-link-hover-color: var(--ink);
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--paper);
  --bs-border-color: var(--line);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body.cvf {
  font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip;
  font-feature-settings: "ss01", "cv11";
}
html:has(body.cvf), body.cvf { height: auto; }
.cvf main { flex: 1 0 auto; overflow-x: clip; }
:where(.cvf) h1, :where(.cvf) h2, :where(.cvf) h3, :where(.cvf) h4, :where(.cvf) h5, :where(.cvf) h6 { font-family: var(--font-body); }
.cvf h1, .cvf h2, .cvf h3, .cvf h4, .cvf h5 { color: var(--ink); letter-spacing: -.015em; font-weight: 600; }
.cvf a { text-decoration: none; color: var(--accent-ink); }
.cvf a:hover { color: var(--ink); }
.cvf ::selection { background: rgba(var(--accent-rgb), .2); color: var(--ink); }
.cvf img { max-width: 100%; }
.cvf .serif, .cvf .display-font { font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; }
.cvf em.accent, .cvf .accent-em { font-family: var(--font-display); font-style: italic; color: var(--accent); font-weight: 400; }
.cvf .mono { font-family: var(--font-mono); }
.container { --bs-gutter-x: 2rem; }
@media (min-width: 1400px) { .container { max-width: 1240px; } }

/* ---------- Buttons ---------- */
.cvf .btn { font-weight: 550; border-radius: 10px; padding: .72rem 1.25rem; letter-spacing: -.005em; font-size: .97rem;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.cvf .btn-lg { padding: .95rem 1.6rem; font-size: 1.02rem; border-radius: 12px; }
.cvf .btn-sm { padding: .5rem .95rem; font-size: .9rem; border-radius: 9px; }
.cvf .btn i { transition: transform .18s ease; }
.cvf .btn:hover i.bi-arrow-right, .cvf .btn:hover i.bi-arrow-up-right { transform: translateX(3px); }
.cvf .btn-brand { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.cvf .btn-brand:hover, .cvf .btn-brand:focus { background: var(--accent); border-color: var(--accent); color: #fff; }
.cvf .btn-accent { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.cvf .btn-accent:hover, .cvf .btn-accent:focus { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.cvf .btn-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cvf .btn-primary:hover, .cvf .btn-primary:focus { background: var(--accent); border-color: var(--accent); color: #fff; }
.cvf .btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.cvf .btn-ghost:hover, .cvf .btn-ghost.active { background: var(--card); color: var(--ink); border-color: var(--ink); }
.cvf .btn-light-on-dark { background: transparent; color: var(--on-ink); border: 1px solid rgba(236, 232, 223, .3); }
.cvf .btn-light-on-dark:hover { background: rgba(236, 232, 223, .08); color: #fff; border-color: rgba(236, 232, 223, .6); }
.cvf .btn-white { background: var(--paper); color: var(--ink); border: 1px solid var(--paper); }
.cvf .btn-white:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.cvf .btn-secondary { border-radius: 10px; }
.cvf .btn:focus-visible, .cvf a:focus-visible, .cvf button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; box-shadow: none; }

/* ---------- Brand ---------- */
.cvf-brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 600; font-size: 1.12rem; letter-spacing: -.02em; }
.cvf-brand:hover { color: var(--ink); }
.cvf-brand-mark { width: 38px; height: 38px; display: block; flex: none; }
/* Instrument Serif has one weight: a thin stroke of its own color makes the wordmark a little bolder (2026-11-21, user request) */
.cvf-brand .wm { font-family: var(--font-display); font-size: 1.95rem; font-weight: 400; letter-spacing: -.005em; line-height: 1; -webkit-text-stroke: .45px currentColor; paint-order: stroke fill; }
.cvf-brand .wm i { font-style: italic; color: var(--accent); }

/* ---------- Navbar ---------- */
/* the top bar scrolls away with the page (2026-11-21, user request; was sticky) */
.cvf-nav { position: relative; z-index: 1030; background: rgba(247, 245, 240, .82);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, background .25s ease; }
.cvf-nav.is-scrolled { border-bottom-color: var(--line); background: rgba(247, 245, 240, .94); }
.cvf-nav .navbar { padding: .8rem 0; }
.cvf-nav .nav-link { color: var(--ink-2); font-weight: 500; font-size: .94rem; padding: .45rem .8rem !important; position: relative; white-space: nowrap; }
.cvf-nav .nav-actions .btn { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) { .cvf-nav .nav-link { padding: .45rem .6rem !important; font-size: .9rem; } .cvf-nav .nav-link::after { left: .6rem; right: .6rem; } }
.cvf-nav .nav-link::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.cvf-nav .nav-link:hover, .cvf-nav .nav-link.active { color: var(--ink); }
.cvf-nav .nav-link:hover::after, .cvf-nav .nav-link.active::after { transform: scaleX(1); }
.cvf-nav .navbar-toggler { border: 1px solid var(--line-2); padding: .35rem .55rem; border-radius: 10px; color: var(--ink); }
.cvf-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .25); }
@media (max-width: 1199.98px) {
  .cvf-nav .navbar-collapse { padding: .75rem 0 .5rem; }
  .cvf-nav .nav-link { font-size: 1.05rem; padding: .7rem 0 !important; border-bottom: 1px solid var(--line); }
  .cvf-nav .nav-link::after { display: none; }
  .cvf-nav .nav-actions { flex-direction: column; align-items: stretch !important; gap: .5rem !important; margin-top: 1rem; }
  .cvf-nav .nav-actions .btn { width: 100%; padding: .8rem 1rem; }
}

/* ---------- Sections & type ---------- */
.section { padding: 7rem 0; position: relative; }
.section-sm { padding: 4rem 0; }
.section-soft { background: var(--paper-2); }
@media (max-width: 767.98px) { .section { padding: 4.5rem 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: none; padding: 0; border-radius: 0; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.eyebrow i { display: none; }
.eyebrow.on-dark { color: var(--on-ink-muted); background: none; }
.section-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.3rem, 1.4rem + 3.3vw, 4rem); line-height: 1.02; letter-spacing: -.02em; margin: 1rem 0 1.1rem; color: var(--ink); }
.section-title em { font-style: italic; color: var(--accent); }
.section-lead { font-size: 1.12rem; color: var(--muted); max-width: 620px; line-height: 1.65; }
.text-grad, .text-grad-warm { font-family: var(--font-display); font-style: italic; color: var(--accent); background: none; -webkit-text-fill-color: currentColor; }
.blob { display: none !important; }

/* ---------- Browser frame ---------- */
.browser { background: var(--card); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(21, 23, 27, .1); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1eee8; border-bottom: 1px solid var(--line); }
.browser-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #d9d4ca; display: block; }
.browser-url { flex: 1; max-width: 360px; margin: 0 auto; background: var(--card); border-radius: 6px; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); padding: 3px 10px; border: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.browser-url .bi { color: var(--muted); }
.browser img { display: block; width: 100%; height: auto; }
.browser .shot { overflow: hidden; }
.browser.tilt { transform: none; }

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.check-list li { position: relative; padding-left: 1.6rem; margin: .6rem 0; line-height: 1.55; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .68em; width: .85rem; height: 1px; background: var(--accent); }
.check-list li strong { color: var(--ink); font-weight: 600; }
.ic-blue, .ic-violet, .ic-amber, .ic-coral { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- Page header (blog, legal) ---------- */
.page-hero { position: relative; padding: 5rem 0 3.5rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); line-height: 1; letter-spacing: -.02em; margin: 1rem 0; }
.page-hero h1 em, .page-hero .text-grad { font-style: italic; color: var(--accent); }
.page-hero p { color: var(--muted); font-size: 1.12rem; max-width: 640px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs i { font-size: .65rem; opacity: .6; }

/* ---------- Blog cards ---------- */
.post-card { height: 100%; display: flex; flex-direction: column; background: transparent; border: 0; border-radius: 0; overflow: visible; color: inherit; }
.post-card:hover { color: inherit; }
.post-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); border-radius: var(--radius); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-body { padding: 1.1rem 0 0; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.post-meta i { display: none; }
.post-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.12; letter-spacing: -.01em; margin: .6rem 0 .55rem; color: var(--ink); transition: color .2s ease; }
.post-card:hover h3 { color: var(--accent-ink); }
.post-card p { font-size: .95rem; color: var(--muted); line-height: 1.6; flex: 1; margin: 0 0 .9rem; }
.post-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; background: transparent; border: 0; border-radius: 0; color: inherit; }
.post-featured:hover { color: inherit; }
.post-featured .post-thumb { aspect-ratio: 4 / 3; min-height: 0; border-radius: var(--radius-lg); }
.post-featured:hover .post-thumb img { transform: scale(1.03); }
.post-featured .post-body { padding: 0; justify-content: center; }
.post-featured h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.05; margin: .9rem 0 1rem; }
.post-featured:hover h2 { color: var(--accent-ink); }
@media (max-width: 991.98px) { .post-featured { grid-template-columns: 1fr; gap: 1.5rem; } }
.link-arrow { font-weight: 550; color: var(--ink); display: inline-flex; align-items: center; gap: .4rem; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; align-self: flex-start; transition: border-color .2s ease, color .2s ease; }
.link-arrow i { transition: transform .2s ease; font-size: .9em; }
.link-arrow:hover, a:hover .link-arrow { color: var(--accent-ink); border-color: var(--accent); }
.link-arrow:hover i, a:hover .link-arrow i { transform: translateX(3px); }

/* Swiper */
.swiper-pagination-bullet { background: var(--ink); opacity: .2; width: 8px; height: 8px; }
.swiper-pagination-bullet-active { opacity: 1; background: var(--accent); width: 24px; border-radius: 4px; transition: width .3s ease; }
.swiper-nav { display: flex; gap: .5rem; }
.swiper-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink); display: grid; place-items: center; transition: all .2s ease; }
.swiper-nav button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.swiper-nav button.swiper-button-disabled { opacity: .35; pointer-events: none; }

/* Pagination */
.cvf .pagination { gap: .35rem; flex-wrap: wrap; }
.cvf .page-link { border-radius: 9px !important; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font-family: var(--font-mono); font-size: .85rem; min-width: 42px; text-align: center; padding: .55rem .8rem; }
.cvf .page-item.active .page-link { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cvf .page-link:hover { background: var(--card); color: var(--accent-ink); border-color: var(--ink); }

/* ---------- Article (blog post) ---------- */
.read-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 1040; transition: width .1s linear; }
.article-hero { padding: 4.5rem 0 2.5rem; background: var(--paper); position: relative; }
.article-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 1.5rem + 3.2vw, 4.2rem); line-height: 1.02; letter-spacing: -.02em; margin: 1.1rem 0 1.25rem; max-width: 940px; }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--muted); font-family: var(--font-mono); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
.article-meta i { color: var(--accent); margin-right: .3rem; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; background: var(--paper-2); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767.98px) { .article-cover { aspect-ratio: 16 / 10; border-radius: var(--radius); } }
.prose { font-size: 1.12rem; line-height: 1.8; color: var(--ink-2); }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.35rem; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); font-weight: 400; color: var(--ink); margin: 2.6rem 0 1rem; line-height: 1.12; letter-spacing: -.01em; }
.prose h2 { font-size: 2.2rem; } .prose h3 { font-size: 1.75rem; } .prose h4 { font-size: 1.4rem; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1.35rem; }
.prose li { margin: .45rem 0; }
.prose li::marker { color: var(--accent); }
.prose blockquote { border-left: 2px solid var(--accent); padding: .3rem 0 .3rem 1.5rem; color: var(--ink); font-family: var(--font-display); font-size: 1.55rem; line-height: 1.35; margin: 2rem 0; background: none; font-style: italic; }
.prose img { border-radius: var(--radius); height: auto; margin: 1rem 0; }
.prose table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: .98rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .7rem .6rem; text-align: left; }
.prose strong { color: var(--ink); font-weight: 600; }
.share-rail { position: sticky; top: 24px; }
.share-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font-size: 1.05rem; transition: all .2s ease; }
.share-btn:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.share-row { display: flex; gap: .55rem; flex-wrap: wrap; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.side-card h4 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 1rem; }
.side-post { display: flex; gap: 1rem; align-items: center; padding: .85rem 0; color: var(--ink); }
.side-post + .side-post { border-top: 1px solid var(--line); }
.side-post img { width: 88px; height: 66px; object-fit: cover; border-radius: 10px; flex: none; }
.side-post span { font-weight: 550; font-size: .98rem; line-height: 1.4; }
.side-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.side-share .share-row { gap: .5rem; justify-content: space-between; }
.side-share h4 { margin-bottom: .85rem; }
.side-post:hover span { color: var(--accent-ink); }

/* ---------- Help & CTA ---------- */
.help-card { border-radius: var(--radius-lg); padding: 2rem; background: var(--ink); color: var(--on-ink); }
.help-card h3 { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: 1.7rem !important; }
.help-card h3 i { display: none; }
.help-card p { color: var(--on-ink-muted); }
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 5vw, 4rem); text-align: center; color: var(--on-ink); background: var(--ink); }
.cta-band h2 { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.6rem); line-height: 1; letter-spacing: -.02em; }
.cta-band h2 em { color: var(--accent); }
.cta-band p { color: var(--on-ink-muted); font-size: 1.1rem; max-width: 600px; margin: 1.1rem auto 2rem; }

/* ---------- Footer ---------- */
.cvf-footer { background: var(--ink); color: var(--on-ink-muted); padding: 3.5rem 0 1.5rem; margin-top: auto; position: relative; overflow: hidden; }
.cvf-footer .cvf-brand { color: var(--on-ink); }
.cvf-footer .cvf-brand .wm i { color: var(--accent); }
.cvf-footer h6 { color: var(--on-ink); font-family: var(--font-mono); font-weight: 500; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.cvf-footer ul { list-style: none; padding: 0; margin: 0; }
.cvf-footer li { margin: .6rem 0; }
.cvf-footer a { color: var(--on-ink-muted); transition: color .2s ease; }
.cvf-footer a:hover { color: #fff; }
.cvf-footer .footer-lede { font-family: var(--font-display); font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); line-height: 1.08; color: var(--on-ink); max-width: 420px; letter-spacing: -.01em; }
.cvf-footer .footer-lede em { color: var(--accent); }
.footer-giant { font-family: var(--font-display); font-size: clamp(3rem, 1.5rem + 6vw, 7rem); line-height: .78; letter-spacing: -.04em; color: rgba(236, 232, 223, .06); margin: 2rem 0 0; user-select: none; white-space: nowrap; }
.footer-giant i { font-style: italic; color: rgba(214, 75, 42, .2); }
.footer-bottom { border-top: 1px solid rgba(236, 232, 223, .1); margin-top: 1.5rem; padding-top: 1.6rem; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.back-top { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 1020; height: 44px; padding: 0 16px 0 14px; gap: 6px; border-radius: 999px; font: 500 .85rem/1 var(--font-body, inherit); background: var(--ink); color: var(--paper); display: inline-flex; align-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s ease; border: 0; }
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--accent); color: #fff; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - 66px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; min-height: auto; } }
.auth-aside { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--on-ink-muted); padding: 4rem clamp(2rem, 5vw, 5rem); display: flex; flex-direction: column; justify-content: center; }
.auth-aside::before, .auth-aside::after { display: none; }
.auth-aside h2 { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.3rem, 1.5rem + 2.4vw, 3.6rem); line-height: 1.02; letter-spacing: -.02em; }
.auth-aside h2 em, .auth-aside .text-grad { color: var(--accent); }
.auth-aside .check-list li::before { background: var(--accent); }
.auth-aside .check-list li { color: var(--on-ink); }
.auth-aside .check-list li strong { color: #fff; }
.auth-aside .browser { margin-top: 2.5rem; transform: none; max-width: 520px; border-color: rgba(255, 255, 255, .1); }
@media (max-width: 991.98px) { .auth-aside { display: none; } }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 3.5rem 1.25rem; background: var(--paper); position: relative; }
.auth-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.auth-card h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 1.8rem + 1.4vw, 2.8rem); line-height: 1.05; letter-spacing: -.015em; margin-bottom: .45rem; }
.auth-card .sub { color: var(--muted); margin-bottom: 1.75rem; }
.auth-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 1.25rem; }
.cvf .form-floating > .form-control, .cvf .form-floating > .form-select { border-radius: 11px; border: 1px solid var(--line-2); background-color: var(--card); height: 3.5rem; min-height: 3.5rem; padding-left: 1rem; }
.cvf .form-floating > label { padding-left: 1rem; color: var(--muted); }
.cvf .form-control:focus, .cvf .form-select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.cvf .form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220, 53, 69, .15); }
.cvf .form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }
.pw-field { position: relative; }
.pw-field .form-control { padding-right: 3.25rem; }
.pw-toggle { position: absolute; right: .5rem; top: .5rem; width: 2.5rem; height: 2.5rem; border: 0; background: transparent; color: var(--muted); border-radius: 9px; z-index: 5; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--ink); background: var(--paper-2); }
.pw-meter { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: .6rem; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 4px; transition: width .3s ease, background .3s ease; }
.pw-hint { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: .4rem; min-height: 1.1em; }
.pw-hint:empty { display: none; }
.auth-divider { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .85rem; margin: 1.5rem 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cvf .alert { border-radius: 11px; border: 1px solid transparent; display: flex; gap: .65rem; align-items: flex-start; }
.cvf .alert-danger { background: #fdf0ed; color: #9c2f17; border-color: #f4d3c9; }
.cvf .alert-success { background: #eef6f0; color: #1d5e3a; border-color: #d3e8da; }
.cvf .alert-info { background: var(--paper-2); color: var(--ink-2); border-color: var(--line); }
.auth-foot { font-size: .93rem; color: var(--muted); text-align: center; margin-top: 1.5rem; }
.auth-foot a { font-weight: 600; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 420px) { .form-row-2 { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 4rem; }
@media (max-width: 991.98px) { .legal { grid-template-columns: 1fr; gap: 1.5rem; } }
.toc { position: sticky; top: 24px; align-self: start; border-left: 1px solid var(--line-2); padding: .25rem 0 .25rem 1.1rem; background: none; border-radius: 0; }
.toc h6 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: .75rem; }
.toc a { display: block; padding: .35rem 0; color: var(--text); font-size: .92rem; }
.toc a:hover, .toc a.active { color: var(--accent-ink); }
@media (max-width: 991.98px) { .toc { position: static; } }
.legal .prose h3 { font-size: 1.75rem; scroll-margin-top: 16px; }

/* ---------- Dashboard / admin pages that share the header ---------- */
.cvf .app-container { padding-top: 2rem; padding-bottom: 3rem; }
.cvf .b-example-divider { display: none; }

/* ---------- Entrance animation ----------
   Content is never hidden waiting for scroll (that broke full-page screenshots, printing and fast scrolling).
   Only the hero, which is always on screen at load, gets a short CSS entrance. */
@keyframes cvfIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.h-hero .reveal { animation: cvfIn .9s cubic-bezier(.2, .7, .2, 1) both; }
.h-hero .reveal[data-delay="1"] { animation-delay: .1s; } .h-hero .reveal[data-delay="2"] { animation-delay: .22s; }
@media print { .h-hero .reveal { animation: none; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cvf *, .cvf *::before, .cvf *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* whole-card links: keep body text neutral (the card itself is an <a>) */
.cvf a.post-card, .cvf a.post-card:hover, .cvf a.post-featured, .cvf a.post-featured:hover, .cvf a.ex-card, .cvf a.ex-card:hover { color: var(--text); }
.cvf a.post-featured p, .cvf a.post-card p { color: var(--muted); }
.cvf a.side-post, .cvf a.side-post:hover { color: var(--ink); }

/* brand colors win over the generic link color */
.cvf .cvf-brand, .cvf .cvf-brand:hover { color: var(--ink); }
.cvf .cvf-footer .cvf-brand, .cvf .cvf-footer .cvf-brand:hover { color: var(--on-ink); }
.cvf-brand-mark { width: 38px; height: 38px; }

/* ---------- Blog categories ---------- */
/* blog search */
.blog-search { position: relative; display: flex; gap: .5rem; max-width: 620px; margin: 0 0 1.5rem; }
.blog-search > .bi-search { position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.blog-search input { flex: 1; min-width: 0; height: 3rem; padding: 0 1.1rem 0 2.75rem; border: 1px solid var(--line-2, var(--line)); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: .98rem; }
.blog-search input::placeholder { color: var(--muted); }
.blog-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.blog-search .btn { height: 3rem; border-radius: 999px; padding-inline: 1.4rem; flex-shrink: 0; }
.search-summary { margin: -1.25rem 0 2rem; color: var(--muted); }
.search-summary strong { color: var(--ink); font-weight: 600; }
.post-row mark, .post-featured mark { background: rgba(var(--accent-rgb), .14); color: inherit; padding: 0; border-radius: 2px; }
.blog-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.blog-cats a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border: 1px solid var(--line-2, var(--line)); border-radius: 999px; color: var(--ink-2); font-size: .9rem; font-weight: 500; background: transparent; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.blog-cats a span { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.blog-cats a:hover { border-color: var(--ink); color: var(--ink); }
.blog-cats a.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.blog-cats a.active span { color: rgba(255, 255, 255, .65); }
@media (max-width: 575.98px) { .blog-cats { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; } .blog-cats a { flex-shrink: 0; } }
.post-meta .post-cat { color: var(--accent-ink); font-weight: 600; }
.article-cat { display: inline-flex; align-items: center; gap: .35rem; color: var(--accent-ink); font-weight: 600; }
.article-cat:hover { color: var(--ink); }

/* ---------- Blog list: one horizontal card per row ---------- */
.post-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 2.25rem; align-items: center; padding: 2rem 0; border-bottom: 1px solid var(--line); color: inherit; }
.post-row:hover { color: inherit; }
.post-row .post-thumb { aspect-ratio: 16 / 10; }
.post-row:hover .post-thumb img { transform: scale(1.04); }
.post-row .post-body { padding: 0; }
.post-row h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.55rem, 1.2rem + 1vw, 2.05rem); line-height: 1.1; letter-spacing: -.01em; margin: .6rem 0 .65rem; color: var(--ink); transition: color .2s ease; }
.post-row:hover h3 { color: var(--accent-ink); }
.post-row p { font-size: 1rem; color: var(--muted); line-height: 1.65; margin: 0 0 1rem; max-width: 62ch; }
.post-row .link-arrow { align-self: flex-start; }
@media (max-width: 767.98px) {
  .post-row { grid-template-columns: 1fr; gap: 1rem; padding: 1.6rem 0; }
}

/* ---------- User dashboard ---------- */
.dash { padding: 2.75rem 0 5rem; }
.dash-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-bottom: 2rem; }
.dash-me { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
.dash-me .min-w-0 { min-width: 0; }
.dash-avatar { box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line); font-family: var(--font-body); }
.dash-me h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.1rem, 1.5rem + 2vw, 3.1rem); line-height: 1.02; letter-spacing: -.02em; margin: .35rem 0 .45rem; color: var(--ink); }
.dash-me h1 em { color: var(--accent); }
.dash-sub { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; margin: 0; color: var(--muted); font-size: .92rem; }
.dash-sub span { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; overflow-wrap: anywhere; }
.dash-account { display: flex; flex-wrap: wrap; gap: .5rem; }
.dash-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 3rem; }
.dash-stats > div { padding: 1.15rem 1.4rem; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: .3rem; }
.dash-stats > div:first-child { border-left: 0; }
.dash-stats b { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--ink); }
.dash-stats b small { font-size: 1.1rem; color: var(--muted); }
.dash-stats b.dash-stat-text { font-size: 1.45rem; padding-top: .3rem; }
.dash-stats span { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 767.98px) {
  .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-stats > div:nth-child(3) { border-left: 0; }
  .dash-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.25rem; }
.dash-head-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.5rem; min-width: 0; }
.dash-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; margin: 0; color: var(--ink); }
.dash-head p { margin: 0; color: var(--muted); font-size: .92rem; }

.pf-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.pf-card { position: relative; display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .3s ease, border-color .3s ease; }
.pf-card:hover { box-shadow: var(--shadow); }

/* left: the portfolio drawn as a little browser window, tinted with its theme color */
.pf-preview { position: relative; display: flex; align-items: center; justify-content: center; padding: clamp(1.5rem, 3vw, 2.5rem); overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--t) 22%, #fff) 0%, transparent 60%), color-mix(in srgb, var(--t) 9%, var(--paper)); border-right: 1px solid var(--line); }
.pf-window { width: 100%; max-width: 440px; aspect-ratio: 16 / 10.5; display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(21, 23, 27, .06), 0 18px 40px -18px color-mix(in srgb, var(--t) 55%, rgba(21, 23, 27, .5)); transform: rotate(-1.2deg); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.pf-card:hover .pf-window { transform: rotate(0) translateY(-4px) scale(1.015); }
.pf-bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: #f3f1ec; border-bottom: 1px solid #e8e4dc; }
.pf-bar i { width: 7px; height: 7px; border-radius: 50%; background: #d9d4ca; }
.pf-bar em { font-style: normal; font-family: var(--font-mono); font-size: .6rem; color: var(--muted); background: #fff; border-radius: 4px; padding: 2px 8px; margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-site { flex: 1; display: grid; grid-template-columns: 34% 1fr; min-height: 0; }
.pf-side { background: var(--t); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 8px; }
.pf-photo { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .25); margin-bottom: 4px; }
.pf-ini { display: grid; place-items: center; background: rgba(255, 255, 255, .2); color: #fff; font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; }
.pf-name { color: #fff; font-size: .68rem; font-weight: 600; text-align: center; line-height: 1.15; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 4px; }
.pf-side i { display: block; width: 58%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.pf-side i:nth-of-type(2n) { width: 44%; }
.pf-main { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 14px 16px; }
.pf-main b { display: block; width: 62%; height: 9px; border-radius: 2px; background: var(--t); opacity: .9; margin-bottom: 3px; }
.pf-main b.sm { width: 38%; height: 6px; margin-top: 7px; }
.pf-main i { display: block; height: 3px; border-radius: 2px; background: #e8e5de; }
.pf-main i.s { width: 70%; }
.pf-open { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .75rem; font-weight: 550;
  opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
.pf-card:hover .pf-open, .pf-preview:focus-visible .pf-open { opacity: 1; transform: none; }

/* right: details and actions */
.pf-body { padding: clamp(1.5rem, 3vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.pf-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .9rem; }
.pf-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 600; padding: .28rem .7rem; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
.pf-status.is-public { background: #e7f3ec; color: #23633d; }
.pf-id { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.pf-top-r { display: inline-flex; align-items: center; gap: .5rem; }
.pf-more { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--ink-2); }
.pf-more:hover { border-color: var(--ink); color: var(--ink); }
.pf-body h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.05; letter-spacing: -.015em; margin: 0 0 .7rem; }
.pf-body h3 a { color: var(--ink); }
.pf-body h3 a:hover { color: var(--accent-ink); }
.pf-desc { color: var(--muted); font-size: .97rem; line-height: 1.6; margin: 0 0 1.4rem; max-width: 60ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pf-meta { display: flex; flex-wrap: wrap; margin: 0 0 1.6rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pf-meta > div { padding: .8rem 1.4rem .8rem 0; margin-right: 1.4rem; border-right: 1px solid var(--line); }
.pf-meta > div:last-child { border-right: 0; margin-right: 0; }
.pf-meta dt { font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.pf-meta dd { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.pf-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.pf-actions .btn { padding: .55rem 1rem; font-size: .88rem; border-radius: 10px; }
.pf-actions .btn.is-done { border-color: #23633d; color: #23633d; }
.pf-actions .dropdown-menu { font-size: .9rem; border-color: var(--line); box-shadow: var(--shadow); border-radius: 12px; }
/* card footer: the portfolio's address, with Copy link when it is public (2026-11-16) */
.pf-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; padding: .85rem clamp(1.25rem, 2.6vw, 1.75rem); border-top: 1px solid var(--line); background: var(--paper); }
.pf-foot-label { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pf-foot.is-public .pf-foot-label i { color: #23633d; }
.cvf a.pf-foot-edit { margin-left: .35rem; padding-left: .55rem; border-left: 1px solid var(--line); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cvf a.pf-foot-edit:hover { color: var(--ink); }
.pf-link { flex: 1 1 auto; min-width: 0; max-width: 560px; margin-left: auto; display: flex; align-items: stretch; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.pf-link:hover, .pf-link:focus-within { border-color: #cfc9bd; box-shadow: 0 1px 0 rgba(21, 23, 27, .04); }
.cvf a.pf-link-url, .cvf a.pf-link-url:hover { color: var(--ink); }
.cvf a.pf-link-note { color: var(--muted); }
.cvf a.pf-link-note:hover { color: var(--ink); }
.pf-link-url { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; padding: .5rem .85rem; font-family: var(--font-mono); font-size: .82rem; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; }
.pf-link-url .pf-link-host { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.pf-link-url b { font-weight: 600; flex: 0 0 auto; }
.pf-link-url:hover b { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.pf-link-copy, .pf-link-note { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border: 0; border-left: 1px solid var(--line); font-size: .84rem; font-weight: 600; white-space: nowrap; }
.pf-link-copy { background: var(--ink); color: var(--paper); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.pf-link-copy:hover { background: #2a2d33; }
.pf-link-copy.is-done { background: #23633d; color: #fff; }
.pf-link-note { background: transparent; color: var(--muted); font-weight: 500; font-size: .8rem; text-decoration: none; }
.pf-link-note:hover { color: var(--ink); }
@media (max-width: 575.98px) {
  .pf-foot { flex-direction: column; align-items: stretch; gap: .55rem; }
  .pf-link { max-width: none; margin-left: 0; }
}
@media (max-width: 991.98px) {
  .pf-card { grid-template-columns: 1fr; }
  .pf-preview { border-right: 0; border-bottom: 1px solid var(--line); }
  .pf-window { max-width: 400px; }
}
@media (max-width: 575.98px) {
  .pf-preview { padding: 1.25rem; }
  .pf-meta > div { padding-right: .9rem; margin-right: .9rem; }
  .pf-actions .btn-brand { flex: 1 1 100%; }
}

.dash-empty { text-align: center; background: var(--card); border: 1px dashed var(--line-2, var(--line)); border-radius: var(--radius); padding: 3.5rem 1.5rem; }
.dash-empty > i { font-size: 2.4rem; color: var(--accent); }
.dash-empty h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; margin: .75rem 0 .4rem; }
.dash-empty p { color: var(--muted); margin: 0 auto 1.4rem; max-width: 420px; }
/* dashboard: no portfolio yet, three ways to start (2026-11-21) */
.dash-start { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg, var(--radius)); padding: clamp(1.5rem, 4vw, 2.75rem); }
.dash-start-cancel { display: inline-flex; align-items: center; height: 40px; flex: none; }
.dash-start-head { text-align: center; max-width: 34rem; margin: 0 auto 1.9rem; }
.dash-start-head h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem); line-height: 1.1; margin: .55rem 0 .5rem; color: var(--ink); }
.dash-start-head h3 em { font-style: italic; color: var(--accent); }
.dash-start-head p { color: var(--muted); margin: 0; }
.dash-start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.dash-start-grid.is-single { grid-template-columns: minmax(0, 26rem); justify-content: center; }
@media (max-width: 860px) { .dash-start-grid { grid-template-columns: 1fr; } }
.dash-start-opt { position: relative; display: flex; flex-direction: column; gap: .45rem; padding: 1.4rem 1.35rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink-2); text-decoration: none; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.dash-start-opt:hover, .dash-start-opt:focus-visible { border-color: var(--accent); background: var(--card); color: var(--ink-2); transform: translateY(-2px); }
.dash-start-ic { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--accent); font-size: 1.3rem; margin-bottom: .35rem; }
.dash-start-opt strong { color: var(--ink); font-size: 1.08rem; font-weight: 600; }
.dash-start-txt { color: var(--muted); font-size: .9rem; line-height: 1.5; flex-grow: 1; }
.dash-start-go { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; font-weight: 600; font-size: .9rem; color: var(--accent-strong, var(--accent)); }
.dash-start-go i { transition: transform .15s ease; }
.dash-start-opt:hover .dash-start-go i { transform: translateX(3px); }
.dash-start-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.dash-start-tag { flex: none; font-family: var(--font-mono, monospace); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line); border-radius: 99px; padding: .15rem .55rem; background: var(--card); }
@media (prefers-reduced-motion: reduce) { .dash-start-opt, .dash-start-go i { transition: none; } .dash-start-opt:hover { transform: none; } }
.dash-help { margin-top: 2.5rem; padding: 1.1rem 1.3rem; border-radius: var(--radius); background: var(--paper-2); color: var(--ink-2); font-size: .92rem; }
.dash-help > div { display: flex; gap: .75rem; align-items: flex-start; }
.dash-help i { color: var(--accent); font-size: 1.15rem; line-height: 1.3; }

/* weekly blog email box (index-blog-subscribe.php) */
.sub-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.25rem 2.5rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 2.4rem); }
.sub-card h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.08; margin: .7rem 0 .6rem; color: var(--ink); }
.sub-card h2 em { font-style: italic; color: var(--accent); }
.sub-card .sub-text p { color: var(--muted); margin: 0; }
.sub-form { display: flex; gap: .5rem; }
.sub-form input[type=email] { flex: 1; min-width: 0; height: 3rem; padding: 0 1.1rem; border: 1px solid var(--line-2, var(--line)); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; }
.sub-form input[type=email]:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.sub-form .btn, .sub-toggle .btn { height: 3rem; border-radius: 999px; padding-inline: 1.4rem; flex-shrink: 0; }
.sub-toggle p { color: var(--ink-2); }
.sub-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sub-msg { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; padding: .7rem .9rem; border-radius: 12px; margin-bottom: .8rem; }
.sub-msg.ok { background: #e9f4ed; color: #23633d; } .sub-msg.bad { background: #fdf0ed; color: #a3321b; }
.col-lg-7 .sub-card { grid-template-columns: 1fr; gap: 1rem; }
@media (max-width: 767.98px) { .sub-card { grid-template-columns: 1fr; } .sub-form { flex-direction: column; } .sub-form .btn { width: 100%; } }

/* ---------- "Continue with Google" (login, register), 2026-11-15: Google's light button style ---------- */
.cvf .gsi-btn { display: flex; align-items: center; justify-content: center; gap: .75rem; width: 100%; min-height: 48px; padding: .6rem 1rem; border: 1px solid #747775; border-radius: 10px; background: #fff; color: #1f1f1f; font-weight: 500; font-size: 1rem; letter-spacing: .01em; transition: background .15s ease, box-shadow .15s ease; }
.cvf .gsi-btn:hover, .cvf .gsi-btn:focus { background: #f8f9fa; color: #1f1f1f; box-shadow: 0 1px 3px rgba(60, 64, 67, .2); }
.cvf .gsi-btn svg { flex: none; }
.auth-or { display: flex; align-items: center; gap: .9rem; margin: 1.25rem 0; color: var(--muted); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Footer always at the bottom (2026-11-15) ----------
   The page content fills at least the screen below the top bar, so on a short page the (tall) footer starts at the
   bottom edge instead of in the middle of the screen. */
body.cvf > main#main { flex: 1 0 auto; min-height: calc(100vh - var(--cvf-nav-h, 84px) + 8px); min-height: calc(100svh - var(--cvf-nav-h, 84px) + 8px); }
/* one-line dark footer ($FooterSmall, dashboard, 2026-11-21): body is a flex column of at least the screen height,
   so main grows and the footer sits on the bottom edge on short pages and after the content on long ones */
body.cvf.cvf-smallfoot > main#main { min-height: 0; }
.cvf-smallfoot .back-top { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); border: 1px solid rgba(255, 255, 255, .18); } /* clear of the footer bar */
.cvf-footer-sm { flex-shrink: 0; background: var(--ink); color: #c9ccd1; font-size: .8rem; line-height: 1.4; padding: .7rem 0; text-align: center; }
.cvf .gsi-btn.is-off { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ---------- Account menu in the site header (My dashboard / My profile / Log out), 2026-11-15 ---------- */
.cvf .nav-acc .dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(21, 23, 27, .12); padding: .4rem; min-width: 210px; }
.cvf .nav-acc .dropdown-item { border-radius: 8px; padding: .55rem .75rem; font-size: .93rem; color: var(--ink-2); display: flex; align-items: center; gap: .6rem; }
.cvf .nav-acc .dropdown-item:hover, .cvf .nav-acc .dropdown-item:focus { background: var(--paper); color: var(--ink); }
.cvf .nav-acc .dropdown-item.active { background: var(--paper); color: var(--ink); font-weight: 600; }
.cvf .nav-acc-photo { flex: none; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; margin-right: .1rem; }

/* ---------- Log in / sign up, forgot and reset password: one centred form, no side panel (2026-11-15) ---------- */
.auth-wrap { grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - var(--cvf-nav-h, 84px)); }
.auth-wrap .auth-aside { display: none; }
.auth-main { padding: clamp(2rem, 6vh, 4.5rem) 1.25rem; align-items: flex-start; }
.auth-card { max-width: 460px; margin-top: clamp(0rem, 4vh, 3rem); }
.auth-card h1 em.accent { font-style: italic; }
.auth-age { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem 1.1rem; margin-bottom: 1.25rem; border: 1px solid var(--line-2, var(--line)); border-radius: 12px; background: var(--paper); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.auth-age:hover { border-color: var(--ink-2); }
.auth-age .form-check-input { margin: .15rem 0 0; width: 1.25rem; height: 1.25rem; flex: none; cursor: pointer; }
.auth-age .form-check-input:checked { background-color: var(--ink); border-color: var(--ink); }
.auth-age span { display: flex; flex-direction: column; gap: .1rem; }
.auth-age strong { color: var(--ink); font-weight: 600; }
.auth-age small { color: var(--muted); font-size: .82rem; }
.auth-age:has(input:checked) { border-color: var(--ink); background: var(--card); }
.auth-age.is-invalid { border-color: var(--accent); background: var(--accent-soft); }
.auth-hint { color: var(--muted); font-size: .84rem; text-align: center; margin: .9rem 0 0; }
/* the two sign-up boxes on /login (2026-11-15): stacked, plain sentence text (links inline), message under each box */
.auth-consent { margin-bottom: .5rem; }
.auth-consent .auth-check { margin-bottom: .6rem; }
.auth-consent .auth-age { margin-bottom: 0; padding: .85rem 1rem; }
.auth-consent .auth-age span { display: block; color: var(--ink); font-size: .95rem; line-height: 1.45; }
.auth-consent .auth-age a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.auth-consent .consent-fb { margin: .35rem .2rem 0; font-size: .86rem; color: #b02a37; }
.auth-consent-note { color: var(--muted); font-size: .84rem; margin: 0 0 1.25rem; }
.auth-email { display: flex; align-items: center; gap: .55rem; padding: .6rem .85rem; margin: .4rem 0 1.4rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .93rem; color: var(--ink-2); min-width: 0; }
.auth-email span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-email a { font-weight: 600; font-size: .85rem; }
.auth-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Accessibility, WCAG 2.2 AA (2026-11-15). Overrides only; delete this block to undo. ---------- */
/* text contrast: grey text 5.6:1 on paper (was 4.5:1, 4.1:1 on the darker paper); white on orange 5.3:1 (was 4.3:1) */
:root { --muted: #5c626c; --accent-strong: #c13f1e; }
.cvf { --bs-secondary-color: var(--muted); }
.cvf .text-secondary, .cvf .text-muted, .cvf .text-body-secondary, .cvf .form-text { color: var(--muted) !important; }
.cvf .btn-brand:hover, .cvf .btn-brand:focus, .cvf .btn-brand:active, .cvf .show > .btn-brand.dropdown-toggle { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.cvf .btn-accent { background: var(--accent-strong); border-color: var(--accent-strong); }
.uc-num { color: var(--accent-ink); }
.post-row mark, .post-featured mark { color: var(--ink); }
/* links inside running text are underlined, not told apart by colour alone (1.4.1) */
.cvf :is(p, .form-text, .auth-hint, .acc-note, .search-summary, .alert, .dash-help span, .imp-note, .imp-lede, .prose li) a:not(.btn) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
/* a clear focus ring for keyboard users everywhere (2.4.7, 2.4.11) */
.cvf :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cvf-footer :is(a, button):focus-visible { outline-color: #fff; }
/* the giant footer word is decoration: drawn by CSS, not text */
.footer-giant .fg-cv::before { content: "CV"; }
.footer-giant i::before { content: "folder"; }
/* dashboard previews: the theme panel and its text stay readable on every theme (index-dashboard.php sets --ts and .pf-dark) */
.pf-side { background: var(--ts, var(--t)); }
.pf-ini { background: rgba(0, 0, 0, .2); }
.pf-card.pf-dark .pf-name, .pf-card.pf-dark .pf-ini { color: var(--ink); }
.pf-card.pf-dark .pf-ini { background: rgba(255, 255, 255, .45); }
.pf-card.pf-dark .pf-side i { background: rgba(21, 23, 27, .35); }
/* home page file badges */
.ext.pdf { background: var(--accent-strong); }
.ext.url { background: #6b665c; }

/* account buttons in the site header (2026-11-21): My Portfolios / My profile / Log out (stacked by the phone menu rules above) */
/* every top-bar button: icon and text centered on one line, one height (2026-11-21) */
.cvf-nav .nav-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; line-height: 1.2; }
@media (min-width: 1200px) { .cvf-nav .nav-actions .btn { height: 40px; } }
.cvf-nav .nav-actions .btn .bi { margin: 0 !important; line-height: 1; vertical-align: 0; display: inline-flex; font-size: 1rem; }
.cvf-nav .nav-actions .btn .bi::before { vertical-align: 0; }
.cvf .nav-acc-photo { margin: 0; }

/* ---------- Template picker (cv-type-select-page.php, 2026-11-21) ---------- */
.tpl-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem 2rem; margin-bottom: .6rem; }
.tpl-intro { color: var(--muted); font-size: 1.02rem; margin: 0 0 1.8rem; }
.tpl-top .tpl-head { margin-bottom: 0; flex: 1 1 0; min-width: min(100%, 20rem); }
.tpl-cancel { display: inline-flex; align-items: center; height: 40px; flex: none; }
.tpl-use { margin: 0; }
.tpl-back { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 500; color: var(--ink-2); text-decoration: none; margin-bottom: 1.4rem; }
.tpl-back:hover { color: var(--accent-strong, var(--accent)); }
.tpl-head { margin-bottom: 1.8rem; }
.tpl-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.1rem); line-height: 1.05; margin: .6rem 0 .6rem; color: var(--ink); }
.tpl-head h1 em { font-style: italic; color: var(--accent); }
.tpl-head p { color: var(--muted); margin: 0; font-size: 1.02rem; }
.tpl-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.tpl-tab { display: inline-flex; align-items: center; gap: .5rem; height: 40px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); font-weight: 500; font-size: .95rem; cursor: pointer; }
.tpl-tab span { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.tpl-tab:hover { border-color: var(--ink-2); }
.tpl-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tpl-tab.is-active span { color: #c9ccd1; }
.tpl-grid { display: flex; flex-direction: column; gap: 1rem; }
/* one template per row: title, short description, the pages it creates, then the buttons on the left */
.tpl-card { display: grid; grid-template-columns: minmax(0, 1fr) 12rem; column-gap: 2.5rem; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.75rem 1.5rem; transition: border-color .15s ease, box-shadow .15s ease; }
.tpl-card:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(21, 23, 27, .06); }
.tpl-title { display: flex; align-items: center; gap: .9rem; }
.tpl-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); color: var(--accent); font-size: 1.25rem; }
.tpl-card h2 { font-size: 1.2rem; font-weight: 600; color: var(--ink); margin: 0 0 .15rem; font-family: var(--font-body); line-height: 1.3; }
.tpl-count { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tpl-desc { color: var(--ink-2); font-size: .97rem; line-height: 1.6; margin: .9rem 0 0; }
.tpl-incl { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.tpl-label { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.tpl-pages { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.tpl-pages li { font-size: .82rem; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: .22rem .6rem; }
.tpl-pages li.is-first { display: inline-flex; align-items: center; gap: .3rem; }
.tpl-pages li.is-first .bi { font-size: .8rem; line-height: 1; }
.tpl-blank-note { display: inline-block; font-size: .88rem; color: var(--ink-2); background: var(--paper); border: 1px dashed var(--line-2, var(--line)); border-radius: 8px; padding: .45rem .75rem; margin: 0; }
.tpl-flex { display: flex; align-items: center; gap: .45rem; margin: .9rem 0 0; font-size: .85rem; color: var(--muted); }
.tpl-flex .bi { color: var(--accent); font-size: .95rem; line-height: 1; flex: none; }
.tpl-card > .tpl-title, .tpl-card > .tpl-desc { grid-column: 1; }
.tpl-incl { grid-column: 1 / -1; }
.tpl-actions { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: .55rem; }
.tpl-actions .btn, .tpl-actions .tpl-use .btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 1.25rem; width: 100%; }
@media (max-width: 767.98px) {
  .tpl-card { grid-template-columns: minmax(0, 1fr); padding: 1.3rem 1.2rem; }
  .tpl-actions { grid-column: 1; grid-row: auto; margin-top: 1.2rem; }
}

/* compact footer (2026-11-21, user request): smaller padding and link spacing, one short line under the logo */
.cvf-footer { padding: 2.5rem 0 1.1rem; }
.cvf-footer .footer-tag { margin: .8rem 0 0; max-width: 22rem; font-size: .9rem; line-height: 1.55; color: var(--on-ink-muted); }
.cvf-footer h6 { margin-bottom: .6rem; }
.cvf-footer li { margin: .3rem 0; font-size: .92rem; }
.cvf-footer .footer-bottom { margin-top: 1.8rem; padding-top: 1rem; }
