/* Junsport · BootCamp Summer 2026 · giao diện nhúng Squarespace */
:root {
  --jun-purple: #6825c9;
  --jun-purple-dark: #351268;
  --jun-purple-soft: #f2edf8;
  --jun-lime: #c7ef2e;
  --jun-ink: #211b29;
  --jun-muted: #696270;
  --jun-line: #dcd7e1;
  --jun-soft: #f7f6f8;
  --jun-white: #ffffff;
  --jun-amber: #a95d08;
  --jun-red: #b93849;
  --jun-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --jun-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  min-width: 280px;
  background: transparent;
  color: var(--jun-ink);
  font-family: var(--jun-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
[hidden] { display: none !important; }

/* Tránh "chữ mồ côi" (orphan) và cân dòng cho đẹp */
h1, h2, h3, h4 { text-wrap: balance; }
p, blockquote, figcaption { text-wrap: pretty; }

.jun-app {
  width: min(1080px, calc(100% - 32px));
  margin: 16px auto 32px;
}

/* Tra cứu: không dùng hero/card để hòa vào website Squarespace */
.jun-lookup {
  padding: 42px 0 28px;
  border-top: 5px solid var(--jun-purple);
  border-bottom: 1px solid var(--jun-line);
}
.jun-lookup-heading { max-width: 760px; margin-bottom: 32px; }
.jun-eyebrow {
  display: block;
  color: var(--jun-purple);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
}
.jun-lookup-heading h1,
.jun-report-head h2,
.jun-section-label h3 {
  margin: 7px 0 12px;
  color: var(--jun-purple-dark);
  font-family: var(--jun-head);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.05;
}
.jun-lookup-heading h1 { font-size: clamp(40px, 5vw, 54px); }
.jun-lookup-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--jun-muted);
  font-size: 17px;
  line-height: 1.7;
}

.jun-lookup-form { padding: 26px; border: 1px solid var(--jun-line); background: var(--jun-soft); }
.jun-form-grid { display: grid; grid-template-columns: 1fr 1fr 190px; gap: 18px; align-items: start; }
.jun-field { display: block; }
.jun-field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--jun-ink);
  font-size: 15px;
  font-weight: 700;
}
.jun-field input {
  width: 100%;
  min-height: 54px;
  padding: 13px 14px;
  border: 1.5px solid #cfc8d5;
  border-radius: 3px;
  outline: none;
  background: var(--jun-white);
  color: var(--jun-ink);
  font-size: 16px;
  font-weight: 500;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.jun-field input::placeholder { color: #928b98; font-weight: 400; }
.jun-field input:focus { border-color: var(--jun-purple); box-shadow: 0 0 0 3px rgba(104,37,201,.11); }
.jun-field input[aria-invalid="true"] { border-color: var(--jun-red); box-shadow: 0 0 0 3px rgba(185,56,73,.09); }
.jun-field-hint { display: block; margin-top: 7px; color: var(--jun-muted); font-size: 15px; font-weight: 500; line-height: 1.55; }

.jun-btn {
  min-height: 52px;
  padding: 13px 20px;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  transition: background .15s ease, color .15s ease;
}
.jun-btn:focus-visible { outline: 3px solid rgba(104,37,201,.24); outline-offset: 3px; }
.jun-btn--primary {
  width: 100%;
  margin-top: 31px;
  color: #fff;
  background: var(--jun-purple);
}
.jun-btn--primary:hover { background: #5620aa; }
.jun-btn--primary[disabled] { cursor: wait; opacity: .65; }
.jun-btn-arrow { margin-left: auto; font-size: 21px; }
.jun-spinner { display: none; width: 17px; height: 17px; margin-left: auto; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: jun-spin .7s linear infinite; }
.is-loading .jun-spinner { display: block; }
.is-loading .jun-btn-arrow { display: none; }
@keyframes jun-spin { to { transform: rotate(360deg); } }

.jun-form-error {
  margin: 17px 0 0;
  padding: 11px 13px;
  border-left: 4px solid var(--jun-red);
  background: #fff0f2;
  color: #942f3f;
  font-size: 14px;
  font-weight: 600;
}
.jun-privacy { display: flex; gap: 9px; align-items: center; margin-top: 17px; color: var(--jun-muted); }
.jun-privacy > span { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; background: var(--jun-lime); color: #293300; font-size: 13px; font-weight: 800; }
.jun-privacy p { margin: 0; font-size: 15px; font-weight: 500; }
.jun-privacy strong { color: #4b4451; }

/* Phiếu kết quả */
.jun-result { display: flex; flex-direction: column; gap: 0; }
.jun-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 6px 0 26px;
  border-bottom: 1px solid var(--jun-line);
}
.jun-athlete-copy { min-width: 0; }
.jun-report-head h2 { margin: 8px 0 14px; color: var(--jun-purple-dark); font-size: clamp(46px, 7vw, 70px); }
.jun-report-head h2:focus { outline: none; }
.jun-chips { display: flex; flex-wrap: wrap; gap: 6px 0; }
.jun-chip { color: var(--jun-muted); font-size: 15px; font-weight: 500; }
.jun-chip:not(:last-child)::after { content: "•"; margin: 0 10px; color: #aca5b2; }
.jun-chip strong { color: var(--jun-ink); }
.jun-venue { margin: 11px 0 0; color: var(--jun-muted); font-size: 15px; line-height: 1.5; }
.jun-venue:empty { display: none; }
.jun-venue strong { color: var(--jun-ink); font-weight: 600; }
.jun-overall { width: 200px; flex: 0 0 auto; padding-left: 24px; border-left: 1px solid var(--jun-line); }
.jun-overall > span { display: block; color: var(--jun-muted); font-size: 15px; font-weight: 700; }
.jun-overall > strong { display: block; margin: 6px 0 7px; color: var(--jun-purple); font-family: var(--jun-head); font-size: 23px; font-weight: 800; line-height: 1.18; }
.jun-overall > strong[data-r="Xuất sắc"] { color: #3f8f16; }
.jun-overall > strong[data-r="Tốt"] { color: var(--jun-purple); }
.jun-overall > strong[data-r="Khá"] { color: var(--jun-amber); }
.jun-overall > strong[data-r="Trung bình"] { color: #64748b; }
.jun-overall > small { display: block; color: var(--jun-muted); font-size: 14px; font-weight: 500; line-height: 1.5; }

.jun-overview,
.jun-coach,
.jun-skills-section,
.jun-next-section {
  padding: 42px 0;
  border-bottom: 1px solid var(--jun-line);
}
.jun-overview,
.jun-coach { display: grid; grid-template-columns: 290px 1fr; gap: 52px; }
.jun-section-label { display: flex; align-items: flex-start; gap: 13px; }
.jun-section-label > span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 5px;
  background: var(--jun-lime);
  color: #21300a;
  font-family: var(--jun-head);
  font-size: 20px;
  font-weight: 800;
}
.jun-section-label h3 { margin: 0; font-size: 34px; line-height: 1.03; }
.jun-overview-content {
  padding: 22px 26px;
  border: 1px solid var(--jun-line);
  border-radius: 6px;
  background: radial-gradient(85% 130% at 0% 0%, rgba(104,37,201,.06), transparent 60%), var(--jun-soft);
}
.jun-overview-top { display: grid; grid-template-columns: minmax(260px, 320px) 1fr; gap: 22px 40px; align-items: center; }
.jun-radar-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-width: 0; padding: 8px 0; border-right: 1px solid var(--jun-line); }
.jun-radar-cap { color: var(--jun-muted); font-size: 13px; text-align: center; }
#radar { display: block; width: 100%; max-width: 300px; height: auto; overflow: visible; }
.jun-overview-copy { min-width: 0; }
.jun-quick-read { padding-top: 14px; border-top: 4px solid var(--jun-lime); }
.jun-quick-title { display: block; color: var(--jun-purple); font-size: 15px; font-weight: 700; line-height: 1.5; }
.jun-quick-summary { margin: 5px 0 18px; color: #403747; font-size: 17px; font-weight: 500; line-height: 1.65; }
.jun-quick-metrics { display: flex; flex-direction: column; border-top: 1px solid var(--jun-line); }
.jun-quick-metric { min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--jun-line); }
.jun-quick-metric span { display: block; color: var(--jun-muted); font-size: 14px; font-weight: 600; line-height: 1.4; }
.jun-quick-metric strong { display: block; margin-top: 3px; color: var(--jun-purple-dark); font-size: 16px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.jun-quick-metric--count strong { width: max-content; padding: 3px 10px 5px; background: var(--jun-lime); color: #21300a; font-family: var(--jun-head); font-size: 26px; line-height: 1; }
.jun-levels { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--jun-line); }
.jun-levels-title { display: block; margin-bottom: 13px; color: var(--jun-muted); font-size: 14px; font-weight: 700; }
.jun-levels-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 16px; }
.jun-level { display: flex; align-items: center; gap: 10px; }
.jun-level > b { width: 13px; height: 13px; margin-top: 4px; flex: 0 0 auto; align-self: flex-start; border-radius: 50%; }
.jun-level[data-r="Trung bình"] > b { background: #94a3b8; }
.jun-level[data-r="Khá"] > b { background: #d98207; }
.jun-level[data-r="Tốt"] > b { background: var(--jun-purple); }
.jun-level[data-r="Xuất sắc"] > b { background: #7fae0a; }
.jun-level strong { color: var(--jun-ink); font-family: var(--jun-body); font-size: 14px; font-weight: 600; line-height: 1.4; }
.jun-coach-content { min-width: 0; }
.jun-coach-findings { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--jun-line); border-bottom: 1px solid var(--jun-line); }
.jun-coach-finding { min-width: 0; display: grid; grid-template-columns: 36px 1fr; gap: 13px; padding: 20px 20px 21px 0; }
.jun-coach-finding + .jun-coach-finding { padding-right: 0; padding-left: 20px; border-left: 1px solid var(--jun-line); }
.jun-finding-index { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--jun-purple); color: var(--jun-purple); font-family: var(--jun-head); font-size: 17px; font-weight: 800; }
.jun-coach-finding h4 { margin: 1px 0 8px; color: var(--jun-purple-dark); font-family: var(--jun-head); font-size: 25px; line-height: 1.15; }
.jun-coach-finding p { margin: 0; color: #554d5b; font-size: 16px; font-weight: 500; line-height: 1.65; }
.jun-coach-note { margin-top: 27px; padding-left: 20px; border-left: 3px solid var(--jun-purple); }
.jun-coach-note > span { display: block; margin-bottom: 7px; color: var(--jun-purple); font-size: 15px; font-weight: 700; line-height: 1.5; }
.jun-coach-note blockquote { margin: 0 0 13px; color: #312838; font-size: 19px; font-weight: 500; line-height: 1.65; }
.jun-coach-note p { margin: 0; color: var(--jun-muted); font-size: 15px; font-weight: 600; }
.jun-jump-link { width: max-content; max-width: 100%; min-height: 48px; display: inline-flex; align-items: center; gap: 18px; margin-top: 23px; padding: 12px 15px; background: var(--jun-lime); color: #293300; font-size: 15px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.jun-jump-link:hover { background: #b9e122; }
.jun-jump-link:focus-visible { outline: 3px solid rgba(104,37,201,.24); outline-offset: 3px; }
.jun-jump-link b { font-size: 21px; line-height: 1; }

.jun-section-head { display: grid; grid-template-columns: minmax(340px, .9fr) 1.1fr; gap: 48px; align-items: start; margin-bottom: 24px; }
.jun-section-head > p { margin: 0; color: var(--jun-muted); font-size: 16px; line-height: 1.7; }
.jun-benchmark-note {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px 18px;
  align-items: center;
  padding: 12px 14px;
  border-left: 4px solid var(--jun-purple);
  background: var(--jun-soft);
  font-size: 14px;
}
.jun-benchmark-note span { color: var(--jun-muted); font-weight: 600; }
.jun-benchmark-note strong { color: var(--jun-purple-dark); }
.jun-benchmark-note small { justify-self: end; color: var(--jun-muted); font-size: 14px; font-weight: 600; }

.jun-skills-list { border-top: 1px solid var(--jun-line); }
.jun-skill { padding: 26px 0 25px; border-bottom: 1px solid var(--jun-line); }
.jun-skill-summary {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 170px 170px;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}
.jun-skill-title { display: flex; align-items: center; gap: 13px; }
.jun-skill-title > span { color: var(--jun-purple); font-family: var(--jun-head); font-size: 17px; font-weight: 800; }
.jun-skill-title h4 { margin: 0; color: var(--jun-purple-dark); font-family: var(--jun-head); font-size: 31px; }
.jun-skill-measure > span,
.jun-skill-grade > span { display: block; margin-bottom: 3px; color: var(--jun-muted); font-size: 15px; font-weight: 700; }
.jun-skill-measure strong { color: var(--jun-ink); font-family: var(--jun-head); font-size: 44px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.jun-skill-measure small { margin-left: 5px; color: var(--jun-muted); font-family: var(--jun-body); font-size: 14px; font-weight: 600; }
.jun-skill-grade strong { display: inline-block; padding: 6px 9px; border: 1px solid currentColor; border-radius: 2px; color: #64748b; font-size: 15px; font-weight: 700; line-height: 1.3; }
.jun-skill-grade strong[data-r="Xuất sắc"] { border-color: var(--jun-lime); background: var(--jun-lime); color: #293300; }
.jun-skill-grade strong[data-r="Tốt"] { color: var(--jun-purple); }
.jun-skill-grade strong[data-r="Khá"] { color: var(--jun-amber); }
.jun-skill-grade strong[data-r="Yếu"] { color: var(--jun-red); }

.jun-benchmark-head { margin-bottom: 9px; color: var(--jun-muted); font-size: 14px; font-weight: 600; }
.jun-benchmark-scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--jun-line); }
.jun-benchmark-tier { min-height: 88px; padding: 11px 12px; background: #fff; }
.jun-benchmark-tier + .jun-benchmark-tier { border-left: 1px solid var(--jun-line); }
.jun-benchmark-tier small { display: block; color: var(--jun-muted); font-size: 14px; font-weight: 700; }
.jun-benchmark-tier b { display: block; margin-top: 2px; color: var(--jun-ink); font-size: 15px; }
.jun-benchmark-tier em { display: block; margin-top: 6px; color: var(--jun-purple); font-size: 14px; font-style: normal; font-weight: 700; line-height: 1.4; }
.jun-benchmark-tier.is-current { padding-top: 8px; border-top: 4px solid var(--jun-purple); background: var(--jun-purple-soft); }
.jun-benchmark-tier.is-current small,
.jun-benchmark-tier.is-current b { color: var(--jun-purple-dark); }

.jun-next-section .jun-section-label { margin-bottom: 25px; }
.jun-next-section { scroll-margin-top: 24px; }
.jun-next-section:focus { outline: none; }
.jun-next-section:focus-visible { outline: 3px solid rgba(104,37,201,.22); outline-offset: 5px; }
.jun-training-goal { padding: 24px 26px 26px; border-left: 5px solid var(--jun-lime); background: var(--jun-purple-soft); }
.jun-training-goal > span { display: block; margin-bottom: 7px; color: var(--jun-purple); font-size: 15px; font-weight: 700; line-height: 1.5; }
.jun-training-goal p { margin: 0; color: var(--jun-purple-dark); font-size: 19px; font-weight: 600; line-height: 1.65; }

.jun-bench { margin-top: 28px; border: 1px solid var(--jun-line); }
.jun-bench summary { min-height: 58px; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 17px; color: var(--jun-ink); font-size: 15px; }
.jun-bench summary::-webkit-details-marker { display: none; }
.jun-bench summary b { margin-right: 7px; color: var(--jun-purple); }
.jun-bench summary em { color: var(--jun-muted); font-style: normal; }
.jun-bench summary > i { color: var(--jun-purple); font-size: 22px; font-style: normal; line-height: 1; transition: transform .15s ease; }
.jun-bench[open] summary > i { transform: rotate(45deg); }
.jun-bench-body { overflow-x: auto; padding: 0 17px 17px; }
.jun-bench table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 14px; }
.jun-bench th, .jun-bench td { padding: 11px 9px; border-top: 1px solid var(--jun-line); text-align: center; }
.jun-bench th { color: var(--jun-muted); font-size: 14px; font-weight: 700; }
.jun-bench th:first-child, .jun-bench td:first-child { text-align: left; }
.jun-bench td:first-child { color: var(--jun-ink); font-weight: 700; }

.jun-result-actions { display: flex; justify-content: center; gap: 10px; padding-top: 28px; }
.jun-btn--secondary { color: #fff; background: var(--jun-purple); }
.jun-btn--secondary:hover { background: #5620aa; }
.jun-btn--text { border: 1px solid var(--jun-line); color: var(--jun-purple); background: #fff; }
.jun-disclaimer { max-width: 720px; margin: 16px auto 0; color: var(--jun-muted); font-size: 14px; font-weight: 500; line-height: 1.65; text-align: center; }

body.embed .jun-app { margin-top: 4px; margin-bottom: 8px; }

@media (max-width: 820px) {
  .jun-form-grid { grid-template-columns: 1fr 1fr; }
  .jun-btn--primary { grid-column: 1 / -1; margin-top: 0; }
  .jun-overview, .jun-coach { grid-template-columns: 235px 1fr; gap: 32px; }
  .jun-overview-top { grid-template-columns: 1fr; gap: 18px; }
  .jun-radar-box { border-right: 0; border-bottom: 1px solid var(--jun-line); padding: 0 0 16px; }
  .jun-levels-grid { grid-template-columns: repeat(2, 1fr); }
  .jun-section-head { grid-template-columns: 1fr; gap: 14px; }
  .jun-skill-summary { grid-template-columns: minmax(170px, 1fr) 145px 145px; gap: 17px; }
}

@media (max-width: 640px) {
  .jun-app { width: min(100% - 20px, 600px); margin-top: 8px; }
  .jun-lookup { padding-top: 28px; }
  .jun-lookup-heading { margin-bottom: 24px; }
  .jun-lookup-heading h1 { font-size: 46px; }
  .jun-lookup-heading p { font-size: 16px; }
  .jun-lookup-form { padding: 18px; }
  .jun-form-grid { grid-template-columns: 1fr; gap: 17px; }
  .jun-btn--primary { grid-column: auto; }
  .jun-privacy { align-items: flex-start; }

  .jun-report-head { align-items: flex-start; flex-direction: column; padding: 4px 0 22px; }
  .jun-report-head h2 { font-size: 52px; }
  .jun-overall { width: 100%; padding: 18px 0 0; border-top: 1px solid var(--jun-line); border-left: 0; }
  .jun-overview, .jun-coach, .jun-skills-section, .jun-next-section { padding: 32px 0; }
  .jun-overview, .jun-coach { grid-template-columns: 1fr; gap: 22px; }
  .jun-overview-top { grid-template-columns: 1fr; gap: 16px; }
  .jun-levels-grid { grid-template-columns: 1fr; gap: 12px; }
  #radar { max-width: 340px; }
  .jun-coach-findings { grid-template-columns: 1fr; }
  .jun-coach-finding { padding: 18px 0 19px; }
  .jun-coach-finding + .jun-coach-finding { padding: 18px 0 19px; border-top: 1px solid var(--jun-line); border-left: 0; }
  .jun-coach-note { padding-left: 16px; }
  .jun-coach-note blockquote { font-size: 18px; }
  .jun-jump-link { width: 100%; justify-content: space-between; }
  .jun-training-goal { padding: 21px 20px 23px; }
  .jun-training-goal p { font-size: 18px; }
  .jun-section-label h3 { font-size: 30px; }
  .jun-benchmark-note { grid-template-columns: auto 1fr; }
  .jun-benchmark-note small { grid-column: 1 / -1; justify-self: start; }

  .jun-skill { padding: 24px 0 28px; }
  .jun-skill-summary { grid-template-columns: 1fr 1fr; gap: 17px 12px; }
  .jun-skill-title { grid-column: 1 / -1; }
  .jun-skill-measure strong { font-size: 40px; }
  .jun-benchmark-head { align-items: flex-start; flex-direction: column; gap: 2px; }
  .jun-benchmark-scale { grid-template-columns: repeat(4, 118px); overflow-x: auto; }
  .jun-benchmark-tier { min-height: 92px; }
  .jun-result-actions { align-items: stretch; flex-direction: column; }
  .jun-result-actions .jun-btn { width: 100%; }
}

@media (max-width: 360px) {
  .jun-app { width: min(100% - 12px, 600px); }
  .jun-lookup-form { padding: 14px; }
  .jun-report-head { padding-inline: 0; }
  .jun-skill-summary { grid-template-columns: 1fr; }
  .jun-skill-title { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  @page { size: A4; margin: 11mm; }
  body { background: #fff; }
  .jun-app { width: 100%; margin: 0; }
  .jun-report-head { padding: 0 0 14px; }
  .jun-overview, .jun-coach, .jun-skills-section, .jun-next-section { padding: 25px 0; }
  .jun-skill { break-inside: avoid; }
  .jun-skill-summary { grid-template-columns: 1fr 140px 140px; }
  .jun-coach-findings, .jun-training-goal { break-inside: avoid; }
  .jun-jump-link { display: none; }
  .jun-bench, .jun-result-actions, .jun-disclaimer { display: none !important; }
  .jun-benchmark-tier.is-current, .jun-training-goal { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
