/* The CV builder in the site's own style (owner 2026-11-14, layout A "Editor and paper").
   Loaded after cv-builder.css and help-drawer.css and only overrides them: the Floati Jobs
   header, one toolbar (Look, colour, font, ATS, tools, More, Download PDF), the templates
   as a panel from "Look", crisp fields in cards like the Jobs page, the paper on a panel. */

:root { --cv-chrome-h: 140px; --cvh-h: 64px; --cv-field: #fff; }
html.dark { --cv-field: var(--bg); }

/* Header: path, badge, the CV's name, saving status. */
.editor-topbar.cvh {
  height: var(--cvh-h); padding: 0 24px; gap: 16px;
  font-family: var(--font); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--t2);
  background: var(--bg); border-bottom: 0;
}
.cvh-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cvh .jb-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--t2); text-decoration: none;
  border: 1px solid var(--bd); background: var(--bg2); border-radius: 999px; padding: 5px 12px 5px 8px; flex: none; text-transform: none; letter-spacing: 0; }
.cvh .jb-back:hover { color: var(--t1); border-color: var(--accent); }
.cvh-badge { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.cvh-badge .ce-logo { width: 22px; height: 22px; border-radius: 6px; content: var(--logo-sm); }
.cvh-badge .ce-word { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 600; font-size: 1.05rem; color: var(--t1); margin-right: 4px; }
.cvh-badge .course-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 100px; background: var(--accent-light); color: var(--accent);
  font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.cvh-badge .ce-ic { width: 14px; height: 14px; }
.cvh-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.cvh-title b { font: 500 1.5rem/1.1 var(--font); letter-spacing: -.025em; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cvh .jb-for { font-size: 13px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: 0; font-family: var(--font); }
.cvh-r { gap: 10px; flex: none; }
.cvh .cv-save-indicator { font-family: var(--font); font-size: 12.5px; letter-spacing: 0; text-transform: none; border: 1px solid var(--bd); background: var(--bg2); border-radius: 999px; padding: 5px 12px; }

/* One toolbar. */
.cv-main { background: var(--bg); }
.cv-actionbar { margin: 0 16px; padding: 6px; border: 1px solid var(--bd); border-radius: 16px; background: var(--bg2); }
.cv-actionbar-left, .cv-actionbar-right { gap: 4px; }
.cv-icon-btn { border: 0; background: none; border-radius: 10px; padding: 7px 11px; font-size: 13.5px; font-weight: 500; color: var(--t2); gap: 7px; }
.cv-icon-btn:hover { background: var(--bg3); color: var(--t1); }
.cv-icon-btn svg { width: 16px; height: 16px; }
.cv-dropdown-btn { border-radius: 10px; }
.cv-look-btn { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--bd); background: var(--bg); color: var(--t1); border-radius: 12px; padding: 4px 11px 4px 4px;
  font: 500 13.5px var(--font); cursor: pointer; transition: border-color .15s; }
.cv-look-btn b { font-weight: 600; }
.cv-look-btn:hover, .cv-look-btn[aria-pressed="true"] { border-color: var(--accent); }
.cv-look-thumb { width: 24px; height: 31px; border-radius: 4px; background: #fff; border: 1px solid var(--bd); display: grid; gap: 2px; padding: 4px 3px; align-content: start; }
.cv-look-thumb i { display: block; height: 2px; border-radius: 2px; background: #d6d0c5; }
.cv-look-thumb i:first-child { background: var(--accent); width: 70%; }
.cv-actionbar-colors .cv-dot { width: 20px; height: 20px; }
.cv-ats-pill { border-radius: 999px; }
.cv-btn-export { border-radius: 12px; padding: 9px 16px; background: var(--accent); background: color-mix(in srgb, var(--accent) 82%, #000); font-weight: 600; font-size: 14px; }
.cv-more-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; font-size: 13.5px; color: var(--t1); }
.cv-more-item svg { width: 16px; height: 16px; color: var(--t3); flex: none; }
.cv-more-item:hover { background: var(--bg3); }
#more-dropdown-menu { min-width: 230px; }

/* Templates: a panel under the toolbar, opened from "Look". */
.cv-sidebar { position: fixed; top: calc(var(--cv-chrome-h) + 58px); inset-inline-start: 16px; bottom: 16px; width: 316px; min-width: 0;
  border: 1px solid var(--bd); border-radius: 18px; z-index: 60; box-shadow: 0 30px 60px -24px rgba(0,0,0,.35);
  transition: opacity .18s, transform .18s; }
.cv-sidebar.collapsed { width: 316px; min-width: 0; opacity: 0; transform: translateY(-6px); pointer-events: none; }
.cv-sidebar-header { padding: 14px 16px 6px; }
.cv-sidebar-title { font: 700 15px var(--font); letter-spacing: 0; text-transform: none; color: var(--t1); }
.cv-sidebar-templates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px 14px 14px; align-content: start; }
.cv-tpl-card { border-radius: 14px; }
.cv-tpl-card.active { border-color: var(--accent); background: var(--accent-light); box-shadow: 0 0 0 2px var(--accent-light); }

/* Editor: cards like the Jobs page, crisp fields. */
.cv-editor { padding: 14px 16px 40px; background: var(--bg); }
.cv-editor-inner { max-width: 620px; gap: 12px; }
.cv-sec { border-radius: 18px; border-color: var(--bd); background: var(--bg2); }
.cv-sec:hover { box-shadow: none; }
.cv-sec-head { padding: 13px 16px; }
.cv-sec-head:hover { background: transparent; }
.cv-sec-label { font: 700 15px/1.2 var(--font); color: var(--t1); letter-spacing: -.005em; }
.cv-sec-body { padding: 0 16px 16px; gap: 12px; }
.cv-row { gap: 10px 12px; }
.cv-field { gap: 5px; }
.cv-label { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; color: var(--t3); }
.cv-input, .cv-textarea { background: var(--cv-field); border-color: var(--bd); border-radius: 10px; padding: 9px 11px; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.cv-input:focus, .cv-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.cv-textarea { line-height: 1.5; min-height: 80px; }
.cv-add-section-btn { border-radius: 14px; }

/* The paper sits on its own soft panel. */
.cv-preview { background: var(--bg); border-inline-start: 0; padding: 14px 16px 16px 4px; }
.cv-preview-inner { background: var(--bg3); border-radius: 20px; padding: 22px; max-width: 820px; }
.cv-page { box-shadow: 0 30px 50px -30px rgba(40, 30, 20, .55); border-radius: 4px; }

@media (max-width: 1024px) {
  .cvh-badge { display: none; }
}
@media (max-width: 720px) {
  :root { --cv-chrome-h: 128px; --cvh-h: 52px; }
  .editor-topbar.cvh { padding: 0 12px; height: var(--cvh-h); overflow: hidden; }
  .cvh-title b { font-size: 1.1rem; }
  .cvh .jb-for, .cvh .cv-save-indicator .cv-save-text { display: none; }
  .cv-actionbar { margin: 0 8px; }
  .cv-sidebar { top: calc(var(--cv-chrome-h) + 8px); inset-inline: 8px; width: auto; }
  .cv-sidebar.collapsed { width: auto; }
  .cv-icon-btn > span { display: none; }
  .cv-btn-export { padding: 9px 12px; }
}
/* Two tiles a row in the Look panel: thumbnail above, name below. */
.cv-sidebar-templates .cv-tpl-card { flex-direction: column; align-items: center; gap: 8px; padding: 10px 8px; min-width: 0; text-align: center; border-width: 1.5px; }
.cv-sidebar-templates .cv-tpl-preview { width: 56px; height: 72px; }
.cv-sidebar-templates .cv-tpl-info { width: 100%; }
.cv-sidebar-templates .cv-tpl-meta { justify-content: center; }
.cv-sidebar-templates .cv-tpl-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The guides and examples column left the page (2026-11-14): the questions take the full width. */

/* Accessibility: the badge text dark enough to read (4.5:1). */
.cvh-badge .course-eyebrow { color: color-mix(in srgb, var(--accent) 70%, #000); }
.cvh .cv-save-indicator .cv-save-text { color: color-mix(in srgb, currentColor 72%, #000); }
