/* ── CV templates (/cv-templates/, one page per design) ────────────────
   Loaded by the cv_templates pages (and the CV-designs feature landing's
   strip) on top of site.css: the hero, sections, buttons, breadcrumbs and
   FAQ block are the site's own. This file adds the design "paper" (a
   thumbnail framed like a sheet), the cards, the colour row and the text
   panels. Orange stays an accent on neutral grounds — ticks and arrows on
   grey, never orange on orange. Phones get their own simple stack (≤767px). */

.cvt-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cvt-section { padding-block: 48px; }
.cvt-arrow { display: inline-block; transition: transform .18s ease; }
[dir="rtl"] .cvt-arrow { transform: scaleX(-1); }

/* A thumbnail as a sheet of paper: white, hairline, a soft shadow. */
.cvt-paper {
  display: block; overflow: hidden; background: #fff;
  border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow-sm);
}
.cvt-paper img { display: block; width: 100%; height: auto; aspect-ratio: 520 / 736; }
[data-theme="dark"] .cvt-paper { border-color: #3a404c; }

/* ── Hero: copy beside the design itself ─────────────────────────────── */
@media (min-width: 1024px) {
  .cvt-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}
.cvt-hero-art { display: grid; justify-items: center; }
.cvt-hero-art .cvt-paper { width: 100%; max-width: 340px; box-shadow: var(--shadow-md); }
.cvt-facts {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.cvt-facts li {
  padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: var(--surface-3); color: var(--text-muted);
}

/* ── The colours: every tone side by side ────────────────────────────── */
.cvt-tones {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1080px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px;
}
.cvt-tones li { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cvt-tone-name {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .92rem; font-weight: 600; color: var(--text);
}
.cvt-swatch {
  flex: none; width: 14px; height: 14px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

/* ── What sets it apart: three numbered cards ─────────────────────────── */
.cvt-traits {
  list-style: none; counter-reset: trait; margin: 0 auto; padding: 0; max-width: 1080px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.cvt-traits li {
  counter-increment: trait; text-align: start;
  padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
}
.cvt-traits li::before {
  content: counter(trait); display: grid; place-items: center;
  width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%;
  background: var(--surface-3); color: #e8641c; font-weight: 700;
}
[data-theme="dark"] .cvt-traits li::before { color: #ffa36b; }
.cvt-traits h3 { font-size: 1.06rem; line-height: 1.35; margin-bottom: 6px; }
.cvt-traits p { color: var(--text-muted); }

/* ── Who it suits · how an ATS reads it ───────────────────────────────── */
.cvt-pair {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.cvt-panel {
  text-align: start; padding: 28px 28px 30px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px;
}
.section .cvt-panel h2 { text-align: start; font-size: 1.35rem; margin-bottom: 16px; }
.cvt-best { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cvt-best li { position: relative; padding-inline-start: 36px; color: var(--text); }
.cvt-best li::before {
  content: '✓'; position: absolute; inset-inline-start: 0; top: -1px;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); color: #e8641c; font-size: .8rem; font-weight: 700;
}
[data-theme="dark"] .cvt-best li::before { color: #ffa36b; }
.cvt-ats { color: var(--text-muted); }
.cvt-ats p + p { margin-top: 10px; }
.cvt-ats strong { color: var(--text); }
.cvt-ats a, .cvt-build-note a { color: #2a5cff; text-decoration: underline; }
[data-theme="dark"] .cvt-ats a, [data-theme="dark"] .cvt-build-note a { color: #8fb0ff; }

/* ── Use this design: the CTA, the gallery link, the two pages beyond ─── */
.cvt-build {
  max-width: 1000px; margin: 0 auto; text-align: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 24px;
  padding: 44px 40px;
}
.cvt-build h2 { margin-bottom: 10px; }
.cvt-build .lead { margin-bottom: 22px; }
.cvt-build-note { max-width: 620px; margin: 12px auto 0; font-size: .9rem; color: var(--text-muted); }
.cvt-links {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px;
}
.cvt-link {
  position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding-block: 18px; padding-inline: 20px 40px; text-align: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cvt-link strong { color: var(--text); }
.cvt-link span { color: var(--text-muted); font-size: .9rem; line-height: 1.45; }
.cvt-link .cvt-arrow { position: absolute; inset-inline-end: 16px; top: 18px; color: #e8641c; font-size: 1.05rem; }
.cvt-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
[data-theme="dark"] .cvt-link .cvt-arrow { color: #ffa36b; }

/* ── Cards: the hub, "More designs" and the landing's strip ───────────── */
.cvt-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px;
}
.cvt-grid--more { max-width: 900px; margin-inline: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cvt-grid--strip { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.cvt-grid > li { display: flex; min-width: 0; }
.cvt-card { flex: 1; display: flex; flex-direction: column; gap: 6px; text-align: start; }
.cvt-card .cvt-paper { margin-bottom: 8px; transition: transform .18s ease, box-shadow .18s ease; }
.cvt-card:hover .cvt-paper { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cvt-card-name { font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--text); }
.cvt-card-name .cvt-arrow { color: #e8641c; margin-inline-start: 2px; }
[data-theme="dark"] .cvt-card-name .cvt-arrow { color: #ffa36b; }
.cvt-card:hover .cvt-arrow { transform: translateX(3px); }
[dir="rtl"] .cvt-card:hover .cvt-arrow { transform: scaleX(-1) translateX(3px); }
.cvt-card-text { color: var(--text-muted); font-size: .92rem; line-height: 1.45; }
.cvt-card-facts { color: var(--text-faint); font-size: .8rem; }
.cvt-grid--strip .cvt-card-name { font-size: .95rem; text-align: center; }
.cvt-more { margin-top: 32px; text-align: center; }

/* ── The hub: two groups of cards, then where to go next ──────────────── */
.cvt-hub { max-width: 1200px; padding-block: 8px 72px; }
.cvt-group + .cvt-group { margin-top: 56px; }
.cvt-group h2 {
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.cvt-choose {
  margin-top: 64px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 24px;
  padding: 40px;
}
.cvt-choose h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 8px; }
.cvt-choose-lead { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.cvt-hero .cvt-actions { justify-content: flex-start; }
.cvt-hero .hero-split--solo .cvt-actions { justify-content: center; }

/* ── Tablet ────────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .cvt-hero .cvt-actions, .cvt-facts { justify-content: center; }
  .cvt-hero-art .cvt-paper { max-width: 300px; }
  .cvt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cvt-grid--strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cvt-traits { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .cvt-pair { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
}

/* ── Phone: one simple column; designs two to a row ────────────────────── */
@media (max-width: 767px) {
  .cvt-section { padding-block: 32px; }
  .cvt-hero .btn { width: 100%; max-width: 340px; }
  /* The colours start right under the hero on a phone: one button is enough. */
  .cvt-hero .btn-secondary { display: none; }
  .cvt-facts { margin-bottom: 20px; }
  .cvt-facts li { font-size: .8rem; padding: 4px 10px; }
  .cvt-hero-art .cvt-paper { max-width: 230px; }
  .cvt-tones { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
  .cvt-tone-name { font-size: .82rem; gap: 6px; }
  .cvt-swatch { width: 11px; height: 11px; }
  .cvt-traits li { padding: 20px 18px; }
  .cvt-traits li::before { width: 32px; height: 32px; margin-bottom: 10px; }
  .cvt-panel { padding: 22px 18px 24px; border-radius: 18px; }
  .section .cvt-panel h2 { font-size: 1.2rem; }
  .cvt-build { padding: 30px 18px; border-radius: 20px; }
  .cvt-build .btn { width: 100%; max-width: 340px; }
  .cvt-links { grid-template-columns: minmax(0, 1fr); }
  .cvt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  /* Three designs to go on to, or the landing's six: one row of three
     small sheets, names only — no orphan card, no wall of text. */
  .cvt-grid--more, .cvt-grid--strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
  .cvt-grid--more .cvt-card-text { display: none; }
  .cvt-grid--more .cvt-card-name, .cvt-grid--strip .cvt-card-name { font-size: .88rem; text-align: center; }
  .cvt-grid--more .cvt-arrow, .cvt-grid--strip .cvt-arrow { display: none; }
  .cvt-card-name { font-size: .98rem; }
  .cvt-card-text { font-size: .85rem; }
  .cvt-card-facts { display: none; }
  .cvt-hub { padding-block: 0 48px; }
  .cvt-group + .cvt-group { margin-top: 40px; }
  .cvt-choose { margin-top: 44px; padding: 28px 18px; border-radius: 20px; }
}
