/* Shared control polish on top of styles.css. The `html` prefix outranks the
   <style> blocks that page templates place in the body. */

:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 2px;
}

html .button,
html .btn,
html .studio-btn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  gap: 8px;
  justify-content: center;
}

html .button:disabled,
html .btn:disabled,
html .studio-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

html .studio-btn-ghost {
  background: var(--paper-elevated);
  border-color: var(--subtle-border);
  color: var(--ink-secondary);
}

html .studio-btn-ghost:hover {
  border-color: var(--blue-border);
  color: var(--blue-hover);
}

html .level-pill-btn,
html .segment-btn:not(.active) {
  color: var(--ink-secondary);
}

html .level-pill-btn.active {
  color: var(--ink);
}

@media (max-width: 768px) {
  html .button,
  html .btn,
  html .studio-btn {
    min-height: 44px;
  }

  html input:not([type="checkbox"]):not([type="radio"]),
  html textarea {
    font-size: 16px;
  }

  html .level-pill-btn {
    min-height: 40px;
  }

  html .word-tool-btn,
  html .word-zoom-btn,
  html .flash-close {
    min-width: 40px;
    min-height: 40px;
  }

  html .vp-sidebar-btn,
  html .pag-btn,
  html .pag-page-btn,
  html .filter-trigger-btn,
  html .view-toggle-btn,
  html .jd-share-btn,
  html .rs-btn,
  html .rs-jobrow,
  html .role-pill,
  html .word-pill-action,
  html .word-page-toggle,
  html .button-saved-jobs-alerts,
  html .inspector-action-full,
  html .inspector-util-btn {
    min-height: 40px;
  }

  /* Resume builder: the two main actions full width, then Templates and More. */
  html .deck-zone-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  html .deck-zone-actions > .studio-btn,
  html .deck-zone-actions > .studio-dropdown-wrap,
  html .deck-zone-actions > .studio-dropdown-wrap > .studio-btn {
    width: 100%;
  }

  html #btnDownloadPdf,

  html #btnDownloadPdf {
    order: -2;
  }

  /* The chat pill covered page content, so it shrinks to an icon on phones. */
  html .floating-chat-widget {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: var(--radius-full);
  }

  html .floating-chat-widget .chat-label {
    display: none;
  }

  /* Job pages already have a sticky apply bar in that corner. */
  html body:has(.jd-sticky) .floating-chat-widget {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html .button,
  html .btn,
  html .studio-btn {
    transition: none;
  }

  html .button:active,
  html .studio-btn:active,
  html .studio-btn:hover {
    transform: none;
  }
}

/* Toasts may carry multi-line messages from the resume tools. */
html .toast {
  white-space: pre-line;
}

/* Resume builder: three-step guide */
.rb-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 18px;
}

.rb-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-content: space-between;
  padding: 16px;
  background: var(--paper-elevated);
  border: 1px solid var(--subtle-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--specular-inner), var(--card-shadow);
}

.rb-step-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  color: var(--blue-hover);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.rb-step.is-done .rb-step-num {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.rb-step-copy strong {
  display: block;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.rb-step-copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.rb-step-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

html .rb-step-actions .studio-btn {
  flex: 1;
}

/* Resume builder: scorecard fixes */
.rb-fix-card {
  background: var(--paper-elevated);
  border: 1px solid var(--subtle-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
}

.rb-fix-title {
  margin-bottom: 3px;
  color: var(--ink);
  font-weight: 800;
}

.rb-fix-body,
.rb-fix-before {
  color: var(--ink-secondary);
}

.rb-fix-after {
  margin-top: 3px;
  color: #047857;
  font-weight: 700;
}

/* Resume builder: upgrade result */
.rb-keywords {
  margin-bottom: 20px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--subtle-border);
  border-radius: var(--radius-md);
  color: var(--ink-secondary);
  font-size: 12.5px;
  text-align: left;
}

.rb-keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.rb-keyword-list span {
  padding: 3px 9px;
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-full);
  color: var(--blue-dark);
  font-weight: 700;
}

/* Resume builder: details dialog */
.rb-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rb-modal[hidden] {
  display: none;
}

.rb-modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 24px;
  background: var(--paper-elevated);
  border-radius: var(--radius-xl);
  box-shadow: var(--modal-shadow);
}

.rb-modal-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.rb-modal-card p {
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.rb-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rb-field {
  display: grid;
  gap: 5px;
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 700;
}

.rb-field-wide {
  grid-column: 1 / -1;
}

.rb-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  background: var(--paper);
  border: 1px solid var(--subtle-border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}

.rb-field input:focus {
  background: var(--paper-elevated);
  border-color: var(--blue-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--blue-light);
}

.rb-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

html .rb-modal-actions .studio-btn-primary {
  flex: 1;
}

@media (max-width: 900px) {
  .rb-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .rb-form-grid {
    grid-template-columns: 1fr;
  }

  .rb-field-wide {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  /* The numbered steps explain the page, so the long intro can go on phones. */
  html .studio-hero .studio-subtitle {
    display: none;
  }
}

/* AI polish for project bullets */
body.rb-modal-open { overflow: hidden; }
.rb-modal-card.rb-polish-card { width: min(640px, 100%); max-height: 88vh; display: flex; flex-direction: column; }
.rb-polish-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rb-polish-close { width: 36px; height: 36px; font-size: 22px; line-height: 1; color: #475569; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.rb-polish-close:hover { background: #f1f5f9; }
.rb-polish-status { min-height: 20px; margin: 8px 0 12px; color: #475569; font-size: 13px; }
.rb-polish-list { flex: 1; min-height: 0; overflow-y: auto; display: grid; gap: 12px; padding-right: 2px; }
.rb-polish-item { padding: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; }
.rb-polish-label { margin-bottom: 8px; color: #64748b; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.rb-polish-options { display: grid; gap: 8px; margin-top: 8px; }
.rb-polish-choice { display: flex; gap: 10px; padding: 10px; color: #0f172a; font-size: 13px; line-height: 1.5; background: #fff; border: 1px solid #e2e8f0; border-radius: 9px; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease; }
.rb-polish-choice:has(input:checked) { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, .14); }
.rb-polish-choice input { flex-shrink: 0; margin-top: 3px; accent-color: #4f46e5; }
.rb-polish-choice strong { display: block; margin-bottom: 2px; color: #4338ca; font-size: 11.5px; }
.rb-polish-choice.is-original strong { color: #475569; }
.rb-polish-note { margin: 0; color: #475569; font-size: 12.5px; }
.rb-polish-note.is-error { color: #b91c1c; }
.rb-skeleton { height: 44px; border-radius: 9px; background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%); background-size: 200% 100%; animation: rbShimmer 1.4s linear infinite; }
.rb-skeleton.short { width: 70%; height: 30px; }
@keyframes rbShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Home hero */
html .vp-hero.kx-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 36px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 #fff, 0 18px 40px -28px rgba(15, 23, 42, .35);
}
.kx-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40% -10% auto auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(37, 99, 235, .16), transparent 62%);
  animation: kxDrift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.kx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
}
.kx-live-dot {
  width: 8px;
  height: 8px;
  background: #16a34a;
  border-radius: 50%;
  animation: kxPulse 2.2s ease-out infinite;
}
html .kx-hero h1 {
  margin: 16px 0 12px;
  color: #0f172a;
  font-family: var(--font-sans);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}
html .kx-hero h1 em {
  color: #1d4ed8;
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
}
.kx-hero .lead { max-width: 52ch; margin: 0; color: #475569; font-size: 15.5px; line-height: 1.6; }
.kx-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
html .button.kx-btn-primary { color: #fff; background: #1d4ed8; border: 1px solid #1d4ed8; }
html .button.kx-btn-primary:hover { background: #1e40af; }
html .button.kx-btn-ghost { color: #0f172a; background: #fff; border: 1px solid #cbd5e1; }
html .button.kx-btn-ghost:hover { border-color: #1d4ed8; color: #1d4ed8; }
.kx-hero-actions svg { width: 16px; height: 16px; }
.kx-hero-panel { display: grid; gap: 10px; }
.kx-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kx-card, .kx-tool {
  --mx: 50%;
  --my: 50%;
  position: relative;
  overflow: clip;
  color: #0f172a;
  text-decoration: none;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px -20px rgba(29, 78, 216, .55);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.kx-card::before, .kx-tool::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(180px circle at var(--mx) var(--my), rgba(37, 99, 235, .13), transparent 70%);
  transition: opacity .2s ease;
  pointer-events: none;
}
.kx-card:hover, .kx-tool:hover { border-color: rgba(37, 99, 235, .42); box-shadow: inset 0 1px 0 #fff, 0 16px 28px -18px rgba(29, 78, 216, .6); }
.kx-card:hover::before, .kx-tool:hover::before { opacity: 1; }
.kx-card { display: grid; align-content: start; gap: 2px; padding: 12px 14px; }
.kx-card-main { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 20px; }
.kx-card-main .kx-card-label { grid-column: 1; }
.kx-card-main strong { grid-column: 1; font-size: 38px; }
.kx-card-main .kx-chart { grid-column: 2; grid-row: 1 / span 2; }
.kx-card-label { display: inline-flex; align-items: center; gap: 7px; color: #475569; font-size: 12px; font-weight: 600; }
.kx-card strong { color: #1d4ed8; font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.kx-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; height: 74px; }
.kx-chart-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; height: 100%; }
.kx-chart-bar { display: block; width: 100%; max-height: calc(100% - 16px); background: linear-gradient(180deg, #2563eb, #93c5fd); border-radius: 4px 4px 2px 2px; transform-origin: 50% 100%; }
.kx-chart-col small { color: #64748b; font-size: 10px; line-height: 12px; }
.kx-tools { display: grid; gap: 8px; }
.kx-tool { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 12px 8px 8px; }
.kx-tool-icon { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; color: #1d4ed8; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; }
.kx-tool-icon svg { width: 18px; height: 18px; }
.kx-tool-text { flex: 1; min-width: 0; color: #475569; font-size: 12px; line-height: 1.35; }
.kx-tool-text b { display: block; color: #0f172a; font-size: 13.5px; }
.kx-tool-arrow { flex-shrink: 0; width: 16px; height: 16px; color: #94a3b8; transition: color .2s ease, translate .2s ease; }
.kx-tool:hover .kx-tool-arrow { color: #1d4ed8; translate: 2px -2px; }
.kx-card:active, .kx-tool:active { scale: .98; }
#browse-jobs { scroll-margin-top: 90px; }

@media (max-width: 860px) {
  html .vp-hero.kx-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px 16px; border-radius: 18px; }
  .kx-hero-actions .button { flex: 1 1 140px; }
  .kx-card-main strong { font-size: 30px; }
  .kx-chart { height: 62px; }
}

/* Motion */
html { scroll-behavior: smooth; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

.kx-progress { position: fixed; z-index: 99990; inset: 0 0 auto; height: 3px; pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .kx-progress {
    background: #2563eb;
    transform-origin: 0 50%;
    animation: kxGrow linear both;
    animation-timeline: scroll(root);
  }
}

html .vp-product-card {
  transition: translate .24s cubic-bezier(.16, 1, .3, 1), box-shadow .24s ease, border-color .24s ease;
}
html .vp-product-card:hover {
  translate: 0 -3px;
  border-color: rgba(37, 99, 235, .4);
  box-shadow: 0 14px 28px -18px rgba(37, 99, 235, .45);
}
html .button, html .btn, html .studio-btn {
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, scale .12s ease;
}
html .button:active, html .btn:active, html .studio-btn:active { scale: .97; }
html input:focus-visible, html textarea:focus-visible, html select:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}
.rel_modal_container, .rb-modal-card { animation: kxPop .26s cubic-bezier(.16, 1, .3, 1); }
.rel_modal_backdrop, .rb-modal { animation: kxFade .18s ease; }

@keyframes kxRise { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@keyframes kxGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes kxPop { from { opacity: 0; scale: .96; translate: 0 8px; } to { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes kxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kxDrift { from { translate: 0 0; } to { translate: -60px 40px; } }
@keyframes kxPulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after, ::view-transition-group(*) {
    animation: none !important;
    transition: none !important;
  }
  .kx-progress { display: none; }
}

/* Resume from a job post */
.rb-jd-steps { display: flex; gap: 6px; margin-top: 8px; }
.rb-jd-dot { width: 36px; height: 4px; background: #e2e8f0; border-radius: 99px; transition: background-color .2s ease; }
.rb-jd-dot.is-active { background: #2563eb; }
.rb-jd-panel { display: flex; flex-direction: column; min-height: 0; margin-top: 12px; }
.rb-jd-panel[hidden] { display: none; }
.rb-jd-panel textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.rb-jd-checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rb-jd-check { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px; color: #0f172a; font-size: 13px; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; cursor: pointer; }
.rb-jd-check:has(input:checked) { border-color: #2563eb; background: #eff6ff; }
.rb-jd-check input { accent-color: #2563eb; }
.rb-jd-block[hidden] { display: none; }

/* Find people at a company */
.rc-people { margin: 14px 0; padding: 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; }
.rc-people-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.rc-people-head h3 { margin: 0 0 4px; color: #0f172a; font-size: 16px; }
.rc-people-head p { max-width: 60ch; margin: 0; color: #475569; font-size: 13px; }
.rc-people-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.rc-person { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; animation: kxPop .24s ease; }
.rc-person > div:first-child { display: grid; gap: 2px; }
.rc-person strong { color: #0f172a; font-size: 14px; }
.rc-person span { color: #475569; font-size: 12.5px; }
.rc-person small { color: #64748b; font-size: 11.5px; }
.rc-person-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-person-actions a, .rc-person-actions button { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; color: #1d4ed8; font-size: 12.5px; font-weight: 700; text-decoration: none; background: #fff; border: 1px solid #bfdbfe; border-radius: 8px; cursor: pointer; }

/* Resume builder: automatic AI status */
.rb-ai-status { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; color: #475569; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.rb-ai-dot { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; }
.rb-ai-status[data-state="working"] .rb-ai-dot { background: #2563eb; animation: kxPulse 1.1s ease-in-out infinite; }
.rb-ai-status[data-state="done"] .rb-ai-dot { background: #16a34a; }
.rb-ai-status[data-state="basic"] .rb-ai-dot { background: #d97706; }
.rb-ai-status button { padding: 2px 8px; color: #1d4ed8; font: inherit; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 6px; cursor: pointer; }
#aiUpgradeBtn:disabled { cursor: wait; opacity: .6; }
.rb-upgrade-note { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: #475569; font-size: 12.5px; font-weight: 600; }
.rb-upgrade-note[hidden], .ai-undo-btn[hidden] { display: none; }
.rb-upgrade-note button { padding: 2px 10px; color: #1d4ed8; font: inherit; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 6px; cursor: pointer; }
.rb-ai-status label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.rb-ai-status input { accent-color: #2563eb; }
.rb-ai-changed { animation: rbAiChanged 1.6s ease-out; }
@keyframes rbAiChanged { from { background: #dbeafe; } to { background: transparent; } }
@media (max-width: 760px) { .rb-ai-status { flex-wrap: wrap; white-space: normal; margin: 6px 0 0; } }

html .vp-product-card { overflow: clip; }
html .client-card-3d { transition: box-shadow .25s ease, border-color .25s ease; }
html .client-card-3d:hover { transform: none; }

/* Phone polish, 2026-11-02 */
html.flash-dismissed #flashBanner { display: none; }
@media (max-width: 768px) {
  /* The Instagram button covered charts, links and buttons on every page.
     Instagram stays one tap away in the menu. */
  html .floating-chat-widget { display: none; }

  /* Job pages: one bottom bar, not two. The apply bar takes the nav's place. */
  html body:has(.jd-sticky) .mobile-bottom-nav { display: none; }
  html body:has(.jd-sticky) .jd-sticky {
    bottom: 0;
    padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px));
  }
  html body:has(.jd-sticky) .jd-wrap { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* Card icons: one line-icon set instead of emoji. */
html .card-mini-icon { width: 13px; height: 13px; flex: none; stroke-width: 2.25; }
html .timer-tag { display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 768px) {
  /* Tighter job cards on phones: same look, less scrolling. */
  html .vp-product-card { padding: 16px; }
  html .vp-card-header { margin-bottom: 8px; }
  html .vp-card-content h3 { margin-bottom: 6px; }
  html .vp-price-row { padding-top: 10px; }
}
html .vp-pill .card-mini-icon, html .button .card-mini-icon { width: 14px; height: 14px; }
@media (max-width: 768px) {
  /* Group page: heading gets the full width, the back link sits under it. */
  html .group-feed-head { flex-direction: column; align-items: flex-start !important; gap: 6px; }
}

/* Home hero entrance. Pure CSS so it starts with the first paint (no blink) and always finishes. */
@media (prefers-reduced-motion: no-preference) {
  html:not(.lite) .kx-chart-bar { animation: kxGrow .7s cubic-bezier(.22, 1, .36, 1) .1s both; }
  html:not(.lite) .kx-chart-col:nth-child(2) .kx-chart-bar { animation-delay: .15s; }
  html:not(.lite) .kx-chart-col:nth-child(3) .kx-chart-bar { animation-delay: .2s; }
  html:not(.lite) .kx-chart-col:nth-child(4) .kx-chart-bar { animation-delay: .25s; }
  html:not(.lite) .kx-chart-col:nth-child(5) .kx-chart-bar { animation-delay: .3s; }
  html:not(.lite) .kx-chart-col:nth-child(6) .kx-chart-bar { animation-delay: .35s; }
  html:not(.lite) .kx-chart-col:nth-child(7) .kx-chart-bar { animation-delay: .4s; }
  html:not(.lite) .kx-hero-copy > *, html:not(.lite) .kx-hero-panel > * { animation: kxRise .5s cubic-bezier(.22, 1, .36, 1) both; }
  html:not(.lite) .kx-hero-copy > :nth-child(2), html:not(.lite) .kx-hero-panel > :nth-child(2) { animation-delay: .06s; }
  html:not(.lite) .kx-hero-copy > :nth-child(3), html:not(.lite) .kx-hero-panel > :nth-child(3) { animation-delay: .12s; }
  html:not(.lite) .kx-hero-copy > :nth-child(4), html:not(.lite) .kx-hero-panel > :nth-child(4) { animation-delay: .18s; }
  html:not(.lite) .kx-hero-copy > :nth-child(n+5), html:not(.lite) .kx-hero-panel > :nth-child(n+5) { animation-delay: .24s; }
}
@keyframes kxGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes kxRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* In-page links (Browse jobs, table of contents) glide instead of jumping. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ── Theme: blue primary + one warm accent (2026-11-02) ──────────────── */
:root {
  --muted: #475569;                 /* was #64748b: easier to read on white */
  --subtle-border: #e2e8f0;
  --accent: #f59e0b;                /* fills, icons */
  --accent-ink: #b45309;            /* amber text on light, 5:1 on white */
  --accent-soft: #fffbeb;
  --accent-border: #fde68a;
}
/* Days left: the site's promise, in the accent. */
html .timer-tag {
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-color: var(--accent-border);
}
html .timer-tag .card-mini-icon { color: var(--accent); }
/* New today */
html .badge-new {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-border);
  font-size: 10px; font-weight: 800; letter-spacing: .3px;
}
html .badge-new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
/* Section highlights and links keep the blue; hover is one shade darker everywhere. */
html a.button-primary:hover, html .button-primary:hover, html .btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }

/* Group page: share bar replaces the bottom nav on phones. */
.group-share-bar { display: none; }
@media (max-width: 768px) {
  html body:has(.group-share-bar) .mobile-bottom-nav { display: none; }
  html .group-share-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 155;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--subtle-border);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .08);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  html .group-share-bar a, html .group-share-bar button {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 46px; border-radius: 12px; font: 800 14px/1 var(--font-sans); text-decoration: none; cursor: pointer;
  }
  html .group-share-wa { background: #16a34a; color: #fff; border: 1px solid #16a34a; }
  html .group-share-copy { background: #fff; color: var(--ink); border: 1px solid var(--subtle-border); }
  html body:has(.group-share-bar) { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
/* Phones: one filter button (All Filters, with its count), not two. */
@media (max-width: 768px) { html .filter-mobile-only { display: none; } }

/* ── Resume Builder: the sheet comes first on phones and tablets ─────── */
@media (max-width: 992px) {
  html .resume-workspace { display: flex; flex-direction: column; gap: 16px; }
  html .resume-workspace > .resume-preview-wrapper { order: -1; }   /* sheet, then projects + ATS audit */
}
@media (max-width: 768px) {
  /* Shorter header: the title is enough, the steps explain the rest. */
  html .studio-hero { margin-bottom: 12px; padding-top: 4px; }
  html .studio-hero .studio-subtitle, html .studio-hero .studio-badge { display: none; }
  html .studio-hero h1 { font-size: 26px; }
  /* Compact steps: number, name, actions. */
  html .rb-steps { gap: 8px; margin-bottom: 12px; }
  html .rb-step { padding: 12px; gap: 8px 10px; }
  html .rb-step-copy span { display: none; }
  html .rb-step-actions .studio-btn { min-height: 44px; }
  /* Step 3 repeats the toolbar's Download PDF button. */
  html #rbStep3 { display: none; }
}
@media (max-width: 768px) {
  /* Editor ribbon: one row that scrolls sideways, like a phone document app. */
  html .word-ribbon-bar {
    display: flex; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: 4px;
  }
  html .word-ribbon-bar::-webkit-scrollbar { display: none; }
  html .word-ribbon-bar > * { flex: none; }
  html .word-ribbon-bar .word-tool-group { flex-wrap: nowrap; }
  html .word-tool-btn { min-width: 40px; min-height: 40px; }
  /* AI status sits under the score instead of in a squeezed column. */
  html .rb-ai-status { width: 100%; justify-content: center; }
}

/* ── Resume Studio + ATS Score ───────────────────────────────────────── */
/* One brand blue instead of the blue-violet wash. */
html .rs-fasttrack { background: var(--blue-light) !important; border: 1px solid var(--blue-border) !important; }
@media (max-width: 768px) {
  /* Shorter headers on phones, so the form starts on the first screen. */
  html .rs-sub, html .rs-points, html .analysis-subtitle { display: none; }
  html .rs-hero { margin-bottom: 12px; }
  html .rs-title, html .analysis-title { font-size: 26px; line-height: 1.15; }
  html .analysis-hero { padding-top: 8px; padding-bottom: 8px; margin-bottom: 8px; }
  html .rs-fasttrack { padding: 12px 14px !important; }
}

/* ── Code + SQL debuggers ─────────────────────────────────────────────── */
/* The "best on desktop" pop-ups covered the whole first screen on phones. The tools work on
   phones (one column, sideways scroll), so they open straight away. */
html .mobile-blocker-overlay, html body .mobile-blocker-overlay:not(.dismissed) { display: none !important; }

/* SQL page is dark: keep the site header solid white so it reads the same as everywhere else. */
html body:has(.sql-studio-wrapper) .site-header { background: #ffffff; }
