/* The Yoga Student Journey — worksheet styles.
   Everything is scoped under .ysj- classes to avoid clashing with your theme. */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Figtree:wght@400;500;600;700&display=swap');

.ysj-wrap,
.ysj-wrap * { box-sizing: border-box; }

.ysj-wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 20px 80px;
  background: #FBFAF6;
  color: #33362F;
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
}

/* pinned top block: scale key + identity + tabs + progress stay in view */
.ysj-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #FBFAF6;
  padding-top: 16px;
  margin: 0 -20px 24px;      /* bleed to the wrap edges so nothing peeks past the sides */
  padding-left: 20px;
  padding-right: 20px;
  border-bottom: 1px solid #E7E2D6;
  box-shadow: 0 6px 14px -10px rgba(0,0,0,.18);
  max-height: 100vh;
  overflow-y: auto;          /* if the block is taller than the screen, it scrolls internally */
}
/* tighten the trailing margins of pinned children so the block is compact */
.ysj-sticky .ysj-scalekey { margin-bottom: 16px; }
.ysj-sticky .ysj-id-row { margin-bottom: 16px; }
.ysj-sticky .ysj-bar-row { margin-bottom: 14px; }

/* serif for reading content */
.ysj-title, .ysj-tagline, .ysj-card-title, .ysj-card-tag, .ysj-card-num,
.ysj-principle, .ysj-line-input, .ysj-other-input, .ysj-area {
  font-family: 'Newsreader', Georgia, serif;
}

/* hero */
.ysj-hero { text-align: center; padding: 44px 0 24px; }
.ysj-eyebrow { letter-spacing: .18em; font-size: 12px; font-weight: 600; color: #8A9384; margin-bottom: 16px; }
.ysj-title { font-size: clamp(30px, 5vw, 46px); font-weight: 500; line-height: 1.08; margin: 0 0 14px; letter-spacing: -.01em; }
.ysj-tagline { font-size: 18px; font-style: italic; color: #6B7065; margin: 0; }

/* identity */
.ysj-id-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin: 10px auto 34px; max-width: 640px; }
.ysj-id-field { flex: 1 1 240px; }
.ysj-field-label { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #8A9384; margin-bottom: 4px; }
.ysj-reset-field { flex: 0 0 auto; display: flex; align-items: flex-end; }
.ysj-reset-btn { font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 600; color: #8A9384; background: transparent; border: 1px solid #D8D3C7; border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: color .12s ease, border-color .12s ease, background .12s ease; white-space: nowrap; }
.ysj-reset-btn:hover { color: #5C6157; border-color: #B9B3A5; }
.ysj-reset-btn.is-confirm { color: #fff; background: #B0553F; border-color: #B0553F; }
.ysj-line-input {
  width: 100%; border: none; border-bottom: 1.5px solid #DAD5CB; background: transparent;
  font-size: 17px; padding: 5px 2px; outline: none; color: #33362F;
}

/* tabs */
.ysj-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 10px; }
.ysj-tab {
  display: flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px;
  border: none; background: transparent; color: #5C6157; cursor: pointer;
  font-family: 'Figtree', sans-serif; font-size: 14px; font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.ysj-tab.is-active { font-weight: 600; }
.ysj-tab-badge {
  width: 20px; height: 20px; border-radius: 999px; flex: none;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}

/* progress bar */
.ysj-bar-row { max-width: 520px; margin: 0 auto 34px; display: flex; align-items: center; gap: 12px; }
.ysj-bar-track { flex: 1; height: 5px; background: #EBE8DF; border-radius: 999px; overflow: hidden; }
.ysj-bar-fill { height: 100%; border-radius: 999px; transition: width .3s ease; }
.ysj-bar-label { font-size: 12px; color: #8A9384; font-weight: 600; white-space: nowrap; }

/* card */
.ysj-card {
  background: #fff; border-radius: 18px; border: 1px solid #ECE8DF;
  box-shadow: 0 1px 2px rgba(60, 60, 40, .04); overflow: hidden;
}
.ysj-card-head { padding: 24px 28px; display: flex; align-items: baseline; gap: 14px; }
.ysj-card-num { font-size: 40px; font-weight: 500; line-height: 1; }
.ysj-card-title { margin: 0; font-size: 27px; font-weight: 500; }
.ysj-card-tag { margin: 2px 0 0; font-style: italic; color: #6B7065; font-size: 16px; }
.ysj-card-body { padding: 26px 28px 30px; }

/* checklist */
.ysj-checks { margin-bottom: 26px; }
.ysj-checks-label { font-size: 13px; font-weight: 700; letter-spacing: .03em; margin-bottom: 6px; }
.ysj-checks-grid { columns: 2 200px; column-gap: 26px; }
.ysj-check { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 16px; break-inside: avoid; font-family: 'Newsreader', Georgia, serif; }
.ysj-check input[type="checkbox"] { margin-top: 3px; width: 17px; height: 17px; flex: none; cursor: pointer; }
.ysj-check-other { margin-top: 2px; }
.ysj-other-input { flex: 1; border: none; border-bottom: 1.5px solid #DAD5CB; background: transparent; font-size: 16px; padding: 0 2px 3px; outline: none; color: #33362F; }

/* inputs shared */
.ysj-area {
  width: 100%; border: none; border-bottom: 1.5px solid #DAD5CB; background: transparent;
  resize: none; overflow: hidden; font-size: 16px; line-height: 1.55; color: #33362F;
  padding: 6px 2px 8px; outline: none; transition: border-color .15s ease;
}
.ysj-area::placeholder, .ysj-other-input::placeholder, .ysj-line-input::placeholder { color: #AEB0A4; font-style: italic; }

/* stage intro + checklist help */
.ysj-stage-blurb { font-size: 15.5px; color: #5A5E52; line-height: 1.55; margin: 0 0 22px; }
.ysj-checks-help { font-size: 14px; color: #5A5E52; line-height: 1.5; margin-bottom: 12px; max-width: 640px; }

/* shared scale key */
.ysj-scalekey { background: #F4F2EA; border: 1px solid #E7E2D6; border-radius: 12px; padding: 16px 18px; margin-bottom: 22px; }
.ysj-scalekey-t { font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 700; color: #5A5E52; margin-bottom: 10px; }
.ysj-scalekey-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.ysj-scalekey-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #4C4F45; line-height: 1.45; }
.ysj-scalekey-num { flex: none; width: 22px; height: 22px; border-radius: 999px; background: #33362F; color: #fff; display: grid; place-items: center; font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 12px; }
.ysj-scalekey-full { color: #7A7E70; }
@media (max-width: 560px) { .ysj-scalekey-row { grid-template-columns: 1fr; } }

/* scored-question divider */
.ysj-q-divider { font-family: 'Figtree', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #A0A296; margin: 30px 0 18px; padding-bottom: 8px; border-bottom: 1px solid #ECE8DF; }

/* scored questions */
.ysj-scq { margin-bottom: 26px; scroll-margin-top: 16px; }
.ysj-scq-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.ysj-scq-n { flex: none; font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 16px; }
.ysj-scq-q { font-family: 'Newsreader', Georgia, serif; font-size: 18px; font-weight: 600; color: #33362F; line-height: 1.4; flex: 1; }
.ysj-scq-weight { flex: none; font-family: 'Figtree', sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border: 1px solid; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }

/* option rows — scale variant lays out as a compact 4-across grid on wider screens */
.ysj-opts { display: flex; flex-direction: column; gap: 8px; }
.ysj-opts-scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ysj-opt {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%;
  background: #fff; border: 1.5px solid #E4E0D6; border-radius: 12px; padding: 12px 14px;
  cursor: pointer; font-family: inherit; transition: border-color .12s ease, background .12s ease;
}
.ysj-opt:hover { border-color: #CFC9BC; }
.ysj-opt-scale { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; }
.ysj-opt-dot { flex: none; width: 18px; height: 18px; border-radius: 999px; border: 2px solid #C6C2B6; box-shadow: inset 0 0 0 3px #fff; }
.ysj-opt-scale-num { font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 18px; color: #8A8D80; line-height: 1; }
.ysj-opt-text { font-size: 14px; color: #3B3E36; line-height: 1.4; }
@media (max-width: 560px) { .ysj-opts-scale { grid-template-columns: 1fr 1fr; } }

/* results summary */
.ysj-results { margin: 30px 0; }
.ysj-results-title { font-family: 'Newsreader', Georgia, serif; font-size: 26px; font-weight: 500; margin: 0 0 16px; }
.ysj-summary-title { font-family: 'Newsreader', Georgia, serif; font-size: 20px; font-weight: 600; margin: 26px 0 12px; }
.ysj-recap-empty { padding: 14px 16px; font-size: 14px; color: #6B7065; line-height: 1.5; margin: 0; background: #FBFAF6; border: 1px solid #ECE8DF; border-radius: 12px; }
.ysj-recap { margin: 8px 0 4px; border: 1px solid #ECE8DF; border-radius: 12px; overflow: hidden; }
.ysj-recap-row { display: flex; align-items: center; gap: 14px; padding: 10px 16px; font-size: 15px; }
.ysj-recap-row:nth-child(odd) { background: #FBFAF6; }
.ysj-recap-name { flex: 0 0 40%; font-family: 'Newsreader', Georgia, serif; color: #33362F; }
.ysj-recap-track { flex: 1 1 auto; height: 8px; border-radius: 999px; background: #ECE8DF; overflow: hidden; }
.ysj-recap-fill { display: block; height: 100%; border-radius: 999px; }
.ysj-recap-word { flex: 0 0 auto; width: 92px; text-align: right; font-family: 'Figtree', sans-serif; font-size: 13px; color: #6B7065; }
.ysj-score-row { display: flex; align-items: center; gap: 20px; padding: 20px 22px; background: #fff; border: 1px solid #ECE8DF; border-radius: 14px; }
.ysj-score-num { flex: none; display: flex; align-items: baseline; gap: 4px; }
.ysj-score-big { font-family: 'Newsreader', Georgia, serif; font-size: 52px; font-weight: 500; line-height: 1; color: #33362F; }
.ysj-score-den { font-family: 'Figtree', sans-serif; font-size: 18px; font-weight: 600; color: #A0A296; }
.ysj-score-label { font-family: 'Figtree', sans-serif; font-size: 18px; font-weight: 700; color: #4C4F45; margin-bottom: 2px; }
.ysj-score-note { font-size: 15px; color: #5A5E52; line-height: 1.5; font-family: 'Newsreader', Georgia, serif; }
.ysj-results-partial { font-size: 13px; color: #94978B; font-style: italic; margin: 10px 2px 0; }
.ysj-results-cards { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.ysj-result-card { flex: 1 1 200px; border: 1px solid; border-left-width: 4px; border-radius: 0; padding: 12px 16px; background: #fff; }
.ysj-result-cap { font-family: 'Figtree', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .05em; margin-bottom: 4px; }
.ysj-result-stage { font-family: 'Newsreader', Georgia, serif; font-size: 19px; font-weight: 600; color: #33362F; }
.ysj-result-sub { font-family: 'Figtree', sans-serif; font-size: 13px; color: #6B7065; margin-top: 2px; }
/* biggest opportunity callout */
.ysj-opp { border: 1px solid; border-left-width: 4px; border-radius: 0; padding: 14px 18px; margin: 26px 0 4px; background: #fff; }
.ysj-opp-mini { margin: 18px 0 4px; }
.ysj-opp-cap { font-family: 'Figtree', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .06em; margin-bottom: 4px; }
.ysj-opp-stage { font-family: 'Newsreader', Georgia, serif; font-size: 21px; font-weight: 600; color: #33362F; }
.ysj-opp-sub { font-family: 'Figtree', sans-serif; font-size: 13px; color: #6B7065; margin-top: 3px; font-style: italic; }

/* action plan tiers */
.ysj-plan { margin: 6px 0 4px; }
.ysj-plan-tier { border-left: 3px solid #E4E0D6; padding: 4px 0 4px 16px; margin: 14px 0; }
.ysj-plan-fixfirst { border-left-color: #C0603F; }
.ysj-plan-improvenext { border-left-color: #C9A24B; }
.ysj-plan-optimizelater { border-left-color: #8A9384; }
.ysj-plan-tier-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.ysj-plan-tier-name { font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 15px; color: #33362F; }
.ysj-plan-tier-tag { font-family: 'Figtree', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #A0A296; }
.ysj-plan-list { margin: 0; padding-left: 20px; }
.ysj-plan-list li { font-size: 15px; color: #4C4F45; line-height: 1.55; margin: 4px 0; }
.ysj-plan-clear { font-size: 14px; color: #6B7065; font-style: italic; margin: 6px 0 0; }
@media (max-width: 520px) {
  .ysj-score-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ysj-results-cards { flex-direction: column; }
}
@media (max-width: 520px) {
  .ysj-recap-name { flex-basis: 100%; }
  .ysj-recap-row { flex-wrap: wrap; }
  .ysj-recap-track { order: 3; flex-basis: 70%; }
  .ysj-recap-word { width: auto; }
  .ysj-scq-head { flex-wrap: wrap; }
}

/* buttons */
.ysj-btn {
  font-family: 'Figtree', sans-serif; cursor: pointer; border: none; border-radius: 999px;
  font-weight: 600; font-size: 15px; padding: 10px 22px; transition: opacity .15s ease, transform .05s ease;
}
.ysj-btn:disabled { opacity: .4; cursor: default; }
.ysj-btn:not(:disabled):active { transform: translateY(1px); }
.ysj-btn-light { background: #F0EDE4; color: #5C6157; }
.ysj-btn-dark { background: #33362F; color: #fff; padding: 15px 32px; font-size: 16px; }
.ysj-nav-btns { display: flex; justify-content: space-between; padding: 0 28px 26px; }

/* commitments / notes block */
.ysj-commit { margin-top: 34px; padding: 24px; background: #FBFAF6; border: 1px solid #ECE8DF; border-radius: 14px; }
.ysj-commit-title { margin: 0 0 4px; font-family: 'Newsreader', Georgia, serif; font-size: 22px; font-weight: 600; }
.ysj-commit-sub { margin: 0 0 18px; font-size: 15px; color: #6B7065; line-height: 1.5; }

/* footer */
.ysj-footer { margin-top: 40px; text-align: center; }
.ysj-principle { max-width: 620px; margin: 0 auto 26px; font-size: 17px; font-style: italic; color: #5C6157; line-height: 1.6; }
.ysj-hint { font-size: 13px; color: #A0A296; margin-top: 12px; }

/* send-to-studio */
.ysj-send { margin: 0 auto 22px; }
.ysj-btn-send { background: #6E8B6A; color: #fff; padding: 14px 30px; font-size: 16px; }
.ysj-send-status { font-size: 13.5px; margin-top: 10px; min-height: 18px; }
.ysj-send-status.is-working { color: #6B7065; }
.ysj-send-status.is-ok { color: #4f6a4b; font-weight: 600; }
.ysj-send-status.is-err { color: #B0553F; }
.ysj-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* small screens */
@media (max-width: 520px) {
  .ysj-card-head { padding: 20px; }
  .ysj-card-body { padding: 20px; }
  .ysj-nav-btns { padding: 0 20px 22px; }
  .ysj-checks-grid { columns: 1; }
}

/* access gate */
.ysj-gate { max-width: 560px; margin: 20px auto 0; background: #fff; border: 1px solid #E7E2D6; border-radius: 16px; padding: 32px 30px; text-align: center; }
.ysj-gate-title { font-family: 'Newsreader', Georgia, serif; font-size: 26px; font-weight: 500; margin: 0 0 12px; color: #33362F; }
.ysj-gate-msg { font-size: 15.5px; color: #5A5E52; line-height: 1.6; margin: 0 auto 22px; max-width: 460px; }
.ysj-gate-ack-row { display: flex; gap: 12px; align-items: flex-start; text-align: left; max-width: 460px; margin: 0 auto 22px; padding: 14px 16px; background: #F4F2EA; border: 1px solid #E7E2D6; border-radius: 12px; cursor: pointer; font-size: 15px; color: #3B3E36; line-height: 1.5; }
.ysj-gate-ack { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: #6E8B6A; cursor: pointer; }
.ysj-btn-begin { background: #6E8B6A; color: #fff; padding: 14px 34px; font-size: 16px; }
.ysj-btn-begin:disabled { opacity: .45; cursor: not-allowed; }
.ysj-gate-status { font-size: 13.5px; color: #6B7065; margin-top: 12px; min-height: 16px; }
.ysj-gate-status.is-err { color: #B0553F; }

/* finish steps (section 8 only) */
.ysj-finish { max-width: 520px; margin: 0 auto; text-align: left; }
.ysj-finish-title { font-family: 'Newsreader', Georgia, serif; font-size: 22px; font-weight: 600; text-align: center; margin: 0 0 22px; color: #33362F; }
.ysj-finish-step { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.ysj-finish-num { flex: none; width: 34px; height: 34px; border-radius: 999px; background: #33362F; color: #fff; display: grid; place-items: center; font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 16px; margin-top: 2px; }
.ysj-finish-body { flex: 1; }
.ysj-finish-label { font-family: 'Figtree', sans-serif; font-size: 16px; font-weight: 600; color: #33362F; margin: 4px 0 12px; }
.ysj-finish .ysj-send { margin: 0 0 4px; }
.ysj-finish .ysj-hint { text-align: left; margin-top: 8px; }
