/* CRF Academy portal */
:root {
	--ink: #0D1215;
	--ink-2: #1A2428;
	--deep: #1E4F5A;
	--teal: #4A9BAB;
	--teal-dark: #357080;
	--teal-pale: #E6F4F6;
	--teal-light: #A8D4DC;
	--cream: #F8F6F2;
	--cream-2: #F0EDE7;
	--line: #E2DDD5;
	--orange: #F2843C;
	--orange-dark: #D9702B;
	--orange-tint: #FDF0E6;
	--gold: #C6A75E;
	--text: #1A2428;
	--muted: #5B6B71;
	--serif: 'Cormorant Garamond', Georgia, serif;
	--sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--bar-h: var(--wp-admin--admin-bar--height, 0px);
	--pc: var(--teal-dark);
	--pt: var(--teal-pale);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.crfa { margin: 0; background: var(--cream); color: var(--text); font: 400 16px/1.6 var(--sans); }
body.crfa a { color: var(--teal-dark); }
body.crfa img { max-width: 100%; height: auto; }
.crfa :focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.crfa-i { flex: 0 0 auto; }
.crfa h1, .crfa h2, .crfa h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.005em; }
.crfa-small { font-size: 0.85rem; color: var(--muted); }

/* ---------- Shell ---------- */
.crfa-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: calc(100vh - var(--bar-h)); }
.crfa-side { background: var(--ink); color: #C8BFB5; position: sticky; top: var(--bar-h); height: calc(100vh - var(--bar-h)); display: flex; flex-direction: column; padding: 24px 18px; }
.crfa-brand { display: block; margin: 0 6px 28px; text-decoration: none; }
.crfa-brand-tile { display: inline-flex; background: #fff; border-radius: 14px; padding: 8px 12px; }
.crfa-brand-tile img { height: 44px; width: auto; display: block; }
.crfa-brand-name { font-family: var(--serif); font-size: 1.6rem; color: #fff; }
.crfa-nav { display: flex; flex-direction: column; gap: 4px; }
.crfa-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: #C8BFB5; text-decoration: none; font-weight: 500; }
.crfa-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.crfa-nav a.is-on { background: var(--orange); color: #fff; }
.crfa-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.crfa-out { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: #8E9A9E; text-decoration: none; border-radius: 12px; }
.crfa-out:hover { color: #fff; }
.crfa-me { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; }
.crfa-me strong { display: block; color: #fff; font-weight: 500; }
.crfa-me small { color: #8E9A9E; }
.crfa-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 600; }
.crfa-main { min-width: 0; }
.crfa-top { display: none; }
.crfa-page { padding: 40px clamp(20px, 4vw, 56px) 80px; max-width: 1240px; }

/* ---------- Buttons ---------- */
.crfa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0.8em 1.4em; border-radius: 999px; border: 1.5px solid transparent; font: 500 0.98rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.crfa-btn:active { transform: translateY(1px); }
.crfa a.crfa-btn-orange, .crfa-btn-orange { background: var(--orange); color: #fff; }
.crfa-btn-orange:hover { background: var(--orange-dark); }
.crfa a.crfa-btn-ghost, .crfa-btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; background: transparent; }
.crfa-btn-ghost:hover { border-color: #fff; }
.crfa a.crfa-btn-ghost-dark, .crfa-btn-ghost-dark { border-color: var(--line); color: var(--ink); background: #fff; }
.crfa-btn-ghost-dark:hover { border-color: var(--teal); }
.crfa a.crfa-btn-dark, .crfa-btn-dark { background: var(--deep); color: #fff; }
.crfa-btn-dark:hover { background: var(--teal-dark); }
.crfa a.crfa-btn-soft, .crfa-btn-soft { background: var(--orange-tint); color: #A44E14; }
.crfa-btn-soft:hover { background: #FAE0CB; }
.crfa-btn-wide { width: 100%; }
.crfa-btn[disabled] { opacity: .55; cursor: default; }
.crfa-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.crfa-row-between { justify-content: space-between; }
.crfa-link { font-weight: 500; }

/* ---------- Progress ---------- */
.crfa-bar { display: block; height: 8px; border-radius: 99px; background: rgba(13,18,21,0.08); overflow: hidden; }
.crfa-bar i { display: block; height: 100%; background: var(--pc); border-radius: inherit; transition: width .4s ease; }
.crfa-count { font-size: 0.88rem; color: var(--muted); font-weight: 500; }

/* ---------- Home ---------- */
.crfa-hero { background: var(--ink); color: #E6F4F6; border-radius: 28px; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.crfa-hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 42px solid rgba(74,155,171,0.12); pointer-events: none; }
.crfa-hello { color: var(--orange); font-weight: 500; margin: 0 0 6px; }
.crfa-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.crfa-hero-next { margin: 14px 0 24px; color: #C8D6D9; max-width: 56ch; }
.crfa-hero-next strong { color: #fff; font-weight: 500; }
.crfa-ring { --p: 0; width: 148px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--orange) calc(var(--p) * 1%), rgba(255,255,255,0.1) 0); display: grid; place-items: center; position: relative; z-index: 1; }
.crfa-ring span { width: 118px; aspect-ratio: 1; border-radius: 50%; background: var(--ink); display: grid; place-content: center; text-align: center; }
.crfa-ring strong { font-family: var(--serif); font-size: 2.2rem; color: #fff; line-height: 1; }
.crfa-ring small { font-size: 0.75rem; color: #8E9A9E; margin-top: 4px; }
.crfa-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin-top: 28px; align-items: start; }
.crfa-home-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.crfa-home-side { display: flex; flex-direction: column; gap: 18px; }
.crfa-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.crfa-card p { margin: 0 0 10px; }
.crfa-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.crfa-sec-head h2 { font-size: 1.9rem; }
.crfa-setup .crfa-bar { --pc: var(--orange); margin-bottom: 8px; }
.crfa-steps { list-style: none; margin: 0; padding: 0; }
.crfa-steps li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--cream-2); }
.crfa-steps li:first-child { border-top: 0; }
.crfa-step-text { flex: 1; min-width: 0; }
.crfa-step-text strong { display: block; font-weight: 500; color: var(--ink); }
.crfa-step-text small { color: var(--muted); }
.crfa-steps li.is-done strong { text-decoration: line-through; text-decoration-color: rgba(13,18,21,0.3); color: var(--muted); }
.crfa-tick { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 0.85rem; font-weight: 600; color: var(--muted); background: #fff; }
.is-done > .crfa-tick, .is-done .crfa-tick { background: var(--orange); border-color: var(--orange); color: #fff; }
.crfa-tick .crfa-i { width: 16px; height: 16px; }

.crfa-ptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.crfa-ptile { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 18px; border-radius: 20px; background: var(--pt); text-decoration: none; color: var(--ink); border: 1px solid transparent; position: relative; min-height: 168px; }
.crfa-ptile::before { content: ""; position: absolute; left: 20px; top: 0; width: 44px; height: 5px; border-radius: 0 0 6px 6px; background: var(--pc); }
.crfa-ptile:hover { border-color: var(--pc); }
.crfa-ptile-name { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.1; margin-top: 6px; }
.crfa-ptile-tag { font-size: 0.88rem; color: #3A4A50; flex: 1; }
.crfa-ptile .crfa-bar { background: rgba(255,255,255,0.8); }
.crfa-ptile-state { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 500; color: var(--pc); }
.crfa-ptile-state .crfa-i { width: 15px; height: 15px; }
.crfa-ptile.is-soon { background: #fff; border: 1px dashed var(--line); }
.crfa-ptile.is-soon .crfa-ptile-state { color: var(--muted); }

.crfa-b-label { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 600; font-size: 0.92rem; color: var(--pc); }
.crfa-b-label .crfa-i { width: 18px; height: 18px; }
.crfa-pledge-card { background: var(--deep); border-color: var(--deep); color: #E6F4F6; }
.crfa-pledge-card .crfa-b-label { color: var(--teal-light); }
.crfa-pledge-quote { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; color: #fff; }
.crfa-sig { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--orange); margin: 6px 0 0 !important; }
.crfa-pledge-card small { color: var(--teal-light); }
.crfa-dyk-card { background: var(--orange-tint); border-color: #F6D3B8; }
.crfa-dyk-card .crfa-b-label { color: #A44E14; }

/* ---------- Page heads ---------- */
.crfa-head { margin-bottom: 32px; max-width: 68ch; }
.crfa-head h1 { font-size: clamp(2.4rem, 4.5vw, 3.4rem); margin-bottom: 10px; }
.crfa-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* ---------- Pathways ---------- */
.crfa-path { background: #fff; border: 1px solid var(--line); border-radius: 24px; margin-bottom: 22px; overflow: hidden; scroll-margin-top: calc(var(--bar-h) + 20px); }
.crfa-path-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 260px); gap: 24px; padding: 26px 28px; background: var(--pt); border-left: 6px solid var(--pc); align-items: center; }
.crfa-path-head h2 { font-size: 2rem; margin-bottom: 6px; }
.crfa-path-head p { margin: 0; color: #3A4A50; max-width: 62ch; }
.crfa-path-meta { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.crfa-path-meta .crfa-bar { width: 100%; background: rgba(255,255,255,0.85); }
.crfa-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.crfa-badge .crfa-i { width: 15px; height: 15px; }
.crfa-path-soon { margin: 0; padding: 18px 28px; color: var(--muted); }
.crfa-courses { list-style: none; margin: 0; padding: 8px 12px 12px; }
.crfa-course-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: var(--ink); }
.crfa-course-row:hover { background: var(--cream); }
.crfa-course-n { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; display: grid; place-items: center; background: var(--pt); color: var(--pc); font-weight: 600; }
.crfa-course-n .crfa-i { width: 18px; }
.crfa-course-text { flex: 1; min-width: 0; }
.crfa-course-text strong { display: block; font-weight: 500; font-size: 1.05rem; }
.crfa-course-text small { color: var(--muted); }
.crfa-course-meta { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.crfa-course-row.is-locked, .crfa-course-row.is-mentor { opacity: 0.7; }

/* ---------- Course ---------- */
.crfa-chead { background: var(--pt); border-radius: 28px; padding: clamp(26px, 4vw, 44px); border-top: 6px solid var(--pc); margin-bottom: 28px; }
.crfa-crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 500; text-decoration: none; color: var(--pc) !important; margin-bottom: 14px; }
.crfa-crumb .crfa-i { width: 16px; }
.crfa-chead h1 { font-size: clamp(2.3rem, 4.5vw, 3.4rem); margin-bottom: 12px; max-width: 22ch; }
.crfa-lede { font-size: 1.1rem; color: #3A4A50; max-width: 62ch; margin: 0 0 22px; }
.crfa-chead-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; max-width: 420px; }
.crfa-chead-progress .crfa-bar { flex: 1; background: rgba(255,255,255,0.85); }
.crfa-chead-progress span { font-size: 0.88rem; color: #3A4A50; white-space: nowrap; }
.crfa-course-body { max-width: 760px; }
.crfa-h2 { font-size: 1.8rem; margin: 8px 0 14px; }
.crfa-lessons { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.crfa-lessons li > a, .crfa-lessons li > span { display: flex; align-items: center; gap: 14px; padding: 16px 20px; text-decoration: none; color: var(--ink); border-top: 1px solid var(--cream-2); }
.crfa-lessons li:first-child > a, .crfa-lessons li:first-child > span { border-top: 0; }
.crfa-lessons li > a:hover { background: var(--cream); }
.crfa-l-title { flex: 1; }
.crfa-l-min { font-size: 0.85rem; color: var(--muted); }
.crfa-lockbox { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin-bottom: 24px; max-width: 760px; }
.crfa-lockbox p { margin: 4px 0 0; color: var(--muted); }
.crfa-certnote { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-radius: 18px; background: var(--deep); color: #fff !important; text-decoration: none; margin-bottom: 24px; }
.crfa-certnote .crfa-i { color: var(--gold); }

/* ---------- Lesson ---------- */
.crfa-lesson { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.crfa-outline { position: sticky; top: calc(var(--bar-h) + 24px); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; max-height: calc(100vh - var(--bar-h) - 48px); overflow: auto; }
.crfa-outline .crfa-crumb { margin-bottom: 12px; line-height: 1.3; }
.crfa-outline-count { margin: 8px 0 12px; }
.crfa-outline ol { list-style: none; margin: 0; padding: 0; }
.crfa-outline li a { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: var(--text); font-size: 0.94rem; line-height: 1.35; }
.crfa-outline li a:hover { background: var(--cream); }
.crfa-outline li.is-on a { background: var(--pt); color: var(--ink); font-weight: 500; }
.crfa-outline .crfa-tick { width: 26px; height: 26px; flex-basis: 26px; font-size: 0.78rem; }
.crfa-outline li.is-on .crfa-tick { border-color: var(--pc); color: var(--pc); }
.crfa-article { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 4vw, 48px); min-width: 0; }
.crfa-l-meta { margin: 0 0 6px; color: var(--pc); font-weight: 500; font-size: 0.92rem; }
.crfa-article > h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 24px; max-width: 24ch; }
.crfa-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--ink); margin: 0 0 28px; }
.crfa-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.crfa-prose { font-size: 1.07rem; line-height: 1.75; max-width: 70ch; }
.crfa-prose > p { margin: 0 0 1.1em; }
.crfa-prose h2 { font-size: 1.9rem; margin: 1.6em 0 0.5em; }
.crfa-prose h3 { font-size: 1.45rem; margin: 1.4em 0 0.4em; }
.crfa-prose ul, .crfa-prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.crfa-prose li { margin-bottom: 0.4em; }
.crfa-fig { margin: 1.6em 0; }
.crfa-fig img { border-radius: 16px; display: block; }
.crfa-fig figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }
.crfa-l-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--cream-2); }
.crfa-l-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.crfa-donetag { display: inline-flex; align-items: center; gap: 6px; color: #2E7D5B; font-weight: 500; }

/* ---------- Lesson blocks ---------- */
.crfa-b { border-radius: 20px; padding: 22px 24px; margin: 1.6em 0; background: var(--cream); border: 1px solid var(--cream-2); }
.crfa-b-body > :last-child { margin-bottom: 0; }
.crfa-b-body p { margin: 0 0 0.8em; }
.crfa-b-ice { background: var(--pt); border-color: transparent; }
.crfa-b-ice .crfa-b-label { color: var(--pc); }
.crfa-b-dyk { background: var(--orange-tint); border-color: #F6D3B8; }
.crfa-b-dyk .crfa-b-label { color: #A44E14; }
.crfa-b-faith { background: var(--deep); border-color: var(--deep); color: #DCE9EC; }
.crfa-b-faith .crfa-b-label { color: var(--gold); }
.crfa-verse { margin: 0 0 14px; font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; color: #fff; }
.crfa-verse cite { display: block; font: 500 0.88rem/1.4 var(--sans); color: var(--teal-light); margin-top: 8px; font-style: normal; }
.crfa-b-act { background: #fff; border: 1.5px dashed #F6C49E; }
.crfa-b-act .crfa-b-label { color: #A44E14; }
.crfa-b-journal { background: #fff; border-color: var(--line); }
.crfa-b-journal .crfa-b-label, .crfa-b-poll .crfa-b-label, .crfa-b-flip .crfa-b-label, .crfa-b-scen .crfa-b-label, .crfa-b-quiz .crfa-b-label { color: var(--teal-dark); }
.crfa-b-support { background: #fff; border-color: var(--line); }
.crfa-b-support .crfa-b-label { color: var(--teal-dark); }
.crfa-support-list { margin: 0 0 16px !important; }
.crfa-q { display: block; font-weight: 500; color: var(--ink); margin: 0 0 12px !important; }
.crfa-chip { font: 500 0.95rem var(--sans); padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.crfa-chip:hover { border-color: var(--teal); }
.crfa-chip.is-picked { background: var(--deep); color: #fff; border-color: var(--deep); }
.crfa-poll, .crfa-scenario { display: flex; flex-wrap: wrap; gap: 10px; }
.crfa-reply { margin: 14px 0 0 !important; font-weight: 500; color: var(--teal-dark); min-height: 1em; }
.crfa-story { font-size: 1.08rem; background: #fff; border-radius: 14px; padding: 16px 18px; border-left: 4px solid var(--teal); }
.crfa-scenario { flex-direction: column; }
.crfa-choice { text-align: left; font: 400 1rem var(--sans); padding: 14px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.crfa-choice:hover { border-color: var(--teal); }
.crfa-choice.is-good { border-color: #3F8F6B; background: #E9F5EE; }
.crfa-choice.is-bad { border-color: #E3A27A; background: #FDF3EC; }
.crfa-feedback { margin-top: 12px; }
.crfa-feedback p { margin: 0; padding: 14px 16px; border-radius: 14px; background: #fff; }
.crfa-flips { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.crfa-flip { border: 0; padding: 0; background: none; cursor: pointer; perspective: 900px; min-height: 150px; font: inherit; text-align: left; }
.crfa-flip-in { display: grid; position: relative; height: 100%; min-height: 150px; transition: transform .45s ease; transform-style: preserve-3d; }
.crfa-flip-f, .crfa-flip-b { grid-area: 1 / 1; backface-visibility: hidden; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; justify-content: center; }
.crfa-flip-f { background: var(--deep); color: #fff; font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; font-weight: 600; }
.crfa-flip-f small { font: 400 0.78rem var(--sans); color: var(--teal-light); margin-top: 10px; }
.crfa-flip-b { background: #fff; border: 1.5px solid var(--teal-light); transform: rotateY(180deg); font-size: 0.95rem; line-height: 1.5; color: var(--text); }
.crfa-flip[aria-pressed="true"] .crfa-flip-in { transform: rotateY(180deg); }
.crfa-journal { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; font: 400 1rem/1.6 var(--sans); resize: vertical; background: var(--cream); color: var(--text); }
.crfa-journal:focus { outline: none; border-color: var(--teal); background: #fff; }
.crfa-b-journal .crfa-row { margin: 12px 0 8px; }
.crfa-saved { font-size: 0.88rem; color: #2E7D5B; }
.crfa-quiz-q { font-weight: 500; font-size: 1.08rem; margin: 0 0 14px; color: var(--ink); }
.crfa-quiz-step { font-size: 0.85rem; color: var(--muted); margin: 0 0 6px; }
.crfa-quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.crfa-quiz-why { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; }
.crfa-quiz-nav { margin-top: 16px; }
.crfa-quiz-score { font-family: var(--serif); font-size: 1.8rem; color: var(--ink); margin: 0 0 6px; }
.crfa-note { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 14px; padding: 14px 18px; margin: 0 0 1.4em; font-size: 0.98rem; color: #3A4A50; }
.crfa-note .crfa-i { color: var(--teal-dark); margin-top: 3px; }

/* Pledge */
.crfa-pledge { background: var(--ink); color: #E6F4F6; border-radius: 24px; padding: clamp(24px, 4vw, 40px); margin: 1.6em 0; }
.crfa-pledge-title { font-family: var(--serif); font-size: 2rem; color: #fff; margin: 0 0 18px !important; }
.crfa-pledge ol { list-style: none; padding: 0 !important; margin: 0 0 24px !important; counter-reset: p; }
.crfa-pledge li { counter-increment: p; display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 1.05rem; }
.crfa-pledge li::before { content: counter(p); color: var(--orange); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; min-width: 18px; line-height: 1.3; }
.crfa-sign { display: grid; gap: 10px; max-width: 420px; }
.crfa-sign label { font-size: 0.92rem; color: var(--teal-light); }
.crfa-sign input[type="text"] { padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #fff; font: 400 1.05rem var(--sans); }
.crfa-sign .crfa-check { color: #E6F4F6; }
.crfa-sign .crfa-btn { justify-self: start; background: var(--orange); color: #fff; }
.crfa-err { color: #F6B38A; margin: 0 !important; font-size: 0.9rem; }
.crfa-signed { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 18px; }
.crfa-signed .crfa-sig { font-size: 2rem; }
.crfa-signed span:last-child { font-size: 0.88rem; color: var(--teal-light); }
.crfa-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; cursor: pointer; }
.crfa-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange); }

/* Explainer bubble */
.crfa-bubble { position: fixed; right: 28px; bottom: 28px; z-index: 50; display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; padding: 0; flex-direction: row-reverse; }
.crfa-bubble-face { width: 72px; height: 72px; border-radius: 50%; background: var(--deep); border: 4px solid var(--orange); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(13,18,21,0.25); }
.crfa-bubble-face .crfa-i { width: 26px; height: 26px; margin-left: 3px; }
.crfa-bubble-tag { background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 14px; font: 500 0.9rem var(--sans); box-shadow: 0 6px 20px rgba(13,18,21,0.12); }
@media (prefers-reduced-motion: no-preference) {
	.crfa-bubble-face { animation: crfa-pulse 2.4s ease-out 1.2s 2; }
	@keyframes crfa-pulse { 0% { box-shadow: 0 0 0 0 rgba(242,132,60,0.5), 0 10px 30px rgba(13,18,21,0.25); } 100% { box-shadow: 0 0 0 22px rgba(242,132,60,0), 0 10px 30px rgba(13,18,21,0.25); } }
}

/* Modal */
.crfa-modal { border: 0; padding: 0; background: transparent; width: min(900px, 94vw); max-width: none; }
.crfa-modal::backdrop { background: rgba(13,18,21,0.7); }
.crfa-modal-in { background: #fff; border-radius: 24px; padding: 18px; position: relative; }
.crfa-modal-x { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.2); cursor: pointer; display: grid; place-items: center; color: var(--ink); z-index: 2; }
.crfa-modal .crfa-embed { margin: 0; }
.crfa-celebrate { width: min(520px, 92vw); }
.crfa-celebrate-body { text-align: center; padding: 22px 10px 10px; }
.crfa-celebrate-body .crfa-i { width: 56px; height: 56px; color: var(--gold); }
.crfa-celebrate-body h2 { font-size: 2.2rem; margin: 10px 0 8px; }

/* Journal, certificates, support, empty */
.crfa-entries { display: grid; gap: 16px; max-width: 760px; }
.crfa-entry { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.crfa-entry-prompt { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.crfa-entry-text { line-height: 1.7; margin-bottom: 10px; }
.crfa-certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.crfa-certcard { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.crfa-certcard .crfa-i { width: 30px; height: 30px; color: var(--gold); margin-bottom: 6px; }
.crfa-certcard strong { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.crfa-certcard.is-pathway { background: var(--deep); color: #fff; border-color: var(--deep); }
.crfa-certcard.is-pathway .crfa-small { color: var(--teal-light); }
.crfa-support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: start; }
.crfa-support-grid .crfa-b { margin: 0; }
.crfa-empty { text-align: center; max-width: 460px; margin: 40px auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.crfa-empty .crfa-i { width: 44px; height: 44px; color: var(--teal); }
.crfa-empty p { margin: 0; color: var(--muted); }

/* ---------- Login ---------- */
.crfa-auth { background: var(--cream); }
.crfa-auth-wrap { min-height: calc(100vh - var(--bar-h)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.crfa-auth-brand { background: var(--ink); color: #E6F4F6; padding: clamp(32px, 6vw, 80px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.crfa-auth-quote { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.2; color: #fff; margin: 0; max-width: 20ch; }
.crfa-auth-brand .crfa-small { color: var(--teal-light); }
.crfa-auth-form { padding: clamp(32px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; max-width: 520px; width: 100%; margin: 0 auto; }
.crfa-auth-form h1 { font-size: 3rem; margin-bottom: 6px; }
.crfa-auth-form > p { color: var(--muted); margin: 0 0 24px; }
.crfa-auth-form form { display: grid; gap: 10px; }
.crfa-auth-form label { font-weight: 500; font-size: 0.95rem; color: var(--ink); }
.crfa-auth-form input[type="text"], .crfa-auth-form input[type="password"] { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: 400 1rem var(--sans); color: var(--ink); margin-bottom: 8px; }
.crfa-auth-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(74,155,171,0.2); }
.crfa-pw { position: relative; }
.crfa-pw input { padding-right: 52px !important; }
.crfa-pw-toggle { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.crfa-pw-toggle[aria-pressed="true"] { color: var(--orange); }
.crfa-auth-form .crfa-row { margin: 4px 0 14px; font-size: 0.92rem; }
.crfa-auth-alt { margin-top: 22px; color: var(--muted); }
.crfa-alert { background: #FDF3EC; border: 1px solid #F6C49E; color: #8A3F12; border-radius: 12px; padding: 12px 14px; }

/* ---------- Certificate ---------- */
.crfa-certpage { background: #E9E5DE; }
.crfa-cert-tools { display: flex; gap: 12px; justify-content: center; padding: 24px; }
.crfa-cert { display: flex; justify-content: center; padding: 0 20px 48px; }
.crfa-cert-frame { width: min(1060px, 100%); aspect-ratio: 297 / 210; background: #FFFDF9; border: 14px solid var(--deep); outline: 2px solid var(--gold); outline-offset: -26px; padding: 6% 8%; display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; gap: 0.6em; position: relative; }
.crfa-cert.is-pathway .crfa-cert-frame { border-color: var(--orange); }
.crfa-cert-logo { height: 64px; width: auto; margin-bottom: 8px; }
.crfa-cert-kind { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.8rem); color: var(--deep); margin: 0; font-weight: 600; }
.crfa-cert-pre { margin: 0; color: var(--muted); font-size: clamp(0.85rem, 1.4vw, 1.05rem); }
.crfa-cert-name { font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 5vw, 4rem); color: var(--ink); margin: 0; line-height: 1.1; border-bottom: 1.5px solid var(--gold); padding: 0 0.6em 0.1em; }
.crfa-cert-title { font-family: var(--serif); font-size: clamp(1.4rem, 2.8vw, 2.2rem); color: var(--orange-dark); margin: 0; font-weight: 600; }
.crfa-cert-org { margin: 0; color: var(--muted); font-size: clamp(0.8rem, 1.3vw, 1rem); }
.crfa-cert-foot { display: flex; justify-content: space-between; width: 100%; margin-top: 4%; gap: 24px; }
.crfa-cert-foot > div { display: flex; flex-direction: column; align-items: center; min-width: 38%; }
.crfa-cert-sign, .crfa-cert-date { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.8rem); color: var(--ink); padding: 0 0.6em; border-bottom: 1px solid var(--ink); }
.crfa-cert-line { font-size: clamp(0.7rem, 1.1vw, 0.85rem); color: var(--muted); margin-top: 6px; line-height: 1.4; }
.crfa-cert-code { position: absolute; bottom: 4.5%; left: 0; right: 0; font-size: clamp(0.6rem, 0.9vw, 0.72rem); color: var(--muted); margin: 0; }
@media print {
	@page { size: A4 landscape; margin: 0; }
	html { margin: 0 !important; }
	#wpadminbar, .crfa-cert-tools { display: none !important; }
	.crfa-certpage { background: #fff; }
	.crfa-cert { padding: 0; }
	.crfa-cert-frame { width: 297mm; height: 210mm; aspect-ratio: auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.crfa-home-grid { grid-template-columns: minmax(0, 1fr); }
	.crfa-lesson { grid-template-columns: minmax(0, 1fr); }
	.crfa-outline { position: static; max-height: none; }
	.crfa-outline ol { display: none; }
}
@media (max-width: 860px) {
	.crfa-shell { grid-template-columns: minmax(0, 1fr); }
	.crfa-side { position: fixed; left: 0; top: var(--bar-h); bottom: 0; width: 280px; z-index: 100; transform: translateX(-100%); transition: transform .25s ease; height: auto; }
	.crfa-side.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(13,18,21,0.5); }
	.crfa-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--ink); position: sticky; top: var(--bar-h); z-index: 40; }
	.crfa-menu { width: 42px; height: 42px; border: 0; border-radius: 10px; background: rgba(255,255,255,0.08); color: #fff; display: grid; place-items: center; cursor: pointer; }
	.crfa-top-brand { font-family: var(--serif); font-size: 1.4rem; color: #fff !important; text-decoration: none; font-weight: 600; }
	.crfa-page { padding: 24px 16px 100px; }
	.crfa-hero { grid-template-columns: minmax(0, 1fr); }
	.crfa-ring { width: 120px; } .crfa-ring span { width: 94px; } .crfa-ring strong { font-size: 1.8rem; }
	.crfa-path-head { grid-template-columns: minmax(0, 1fr); padding: 22px; }
	.crfa-path-meta { align-items: flex-start; }
	.crfa-auth-wrap { grid-template-columns: minmax(0, 1fr); }
	.crfa-auth-brand { padding: 28px 24px; gap: 20px; }
	.crfa-auth-quote { font-size: 1.5rem; }
	.crfa-bubble { right: 16px; bottom: 16px; }
	.crfa-bubble-face { width: 60px; height: 60px; }
	.crfa-bubble-tag { display: none; }
	.crfa-l-foot { flex-direction: column-reverse; align-items: stretch; }
	.crfa-l-actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
	.crfa *, .crfa *::before, .crfa *::after { transition: none !important; animation: none !important; }
}

/* v0.2: course overview */
.crfa-ov { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: center; background: var(--pt); border-radius: 30px; padding: clamp(26px, 4vw, 44px); border-top: 6px solid var(--pc); margin-bottom: 28px; }
.crfa-ov h1 { font-size: clamp(2.3rem, 4.2vw, 3.3rem); margin-bottom: 12px; }
.crfa-ov-eyebrow { margin: 0 0 6px; font-weight: 500; color: var(--pc); font-size: 0.95rem; }
.crfa-ov-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 20px; }
.crfa-ov-chips li { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 0.88rem; font-weight: 500; color: var(--ink); }
.crfa-ov-chips .crfa-i { width: 16px; height: 16px; color: var(--pc); }
.crfa-ov .crfa-lede { margin-bottom: 18px; }
.crfa-ov-video .crfa-embed { margin: 0; box-shadow: 0 14px 40px rgba(13,18,21,0.15); }
.crfa-ov-vlabel { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-weight: 500; color: var(--ink); }
.crfa-ov-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.crfa-ov-soon { aspect-ratio: 16 / 9; border-radius: 22px; background: var(--ink); color: #C8D6D9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; }
.crfa-ov-soon strong { color: #fff; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.crfa-ov-soon .crfa-bubble-face { box-shadow: none; margin-bottom: 6px; }
.crfa-ov-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.crfa-ov-about { margin-bottom: 26px; }
.crfa-ov-about h2 { font-size: 1.8rem; margin-bottom: 10px; }
.crfa-lcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.crfa-lcards li > a, .crfa-lcards li > span { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.crfa-lcards li > a:hover { border-color: var(--pc); transform: translateY(-1px); }
.crfa-lcards li.is-next > a { border-color: var(--pc); box-shadow: 0 0 0 3px var(--pt); }
.crfa-lcards .crfa-i { color: var(--muted); }
.crfa-lc-n { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; background: var(--pt); color: var(--pc); display: grid; place-items: center; font-weight: 600; }
.crfa-lcards li.is-done .crfa-lc-n { background: var(--orange); color: #fff; }
.crfa-lcards li.is-done .crfa-lc-n .crfa-i { color: #fff; width: 18px; }
.crfa-lc-text { flex: 1; min-width: 0; }
.crfa-lc-text strong { display: block; font-weight: 500; font-size: 1.04rem; }
.crfa-lc-text small { color: var(--muted); }
.crfa-lc-text em { color: var(--pc); font-style: normal; font-weight: 600; }
.crfa-lc-type { display: inline-block; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: var(--cream-2); color: var(--muted); }
.crfa-lc-type.t-video { background: #FDF0E6; color: #A44E14; }
.crfa-lc-type.t-activity { background: #E6F4F6; color: #1E4F5A; }
.crfa-lc-type.t-quiz { background: #F5EDD8; color: #6B5320; }
.crfa-lc-type.t-pledge { background: #EFE8F6; color: #5B3E8A; }
.crfa-ov-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--bar-h) + 24px); }
.crfa-ov-cert { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.crfa-ov-cert .crfa-i { width: 34px; height: 34px; color: var(--gold); margin-bottom: 6px; }
.crfa-ov-cert strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.crfa-ov-cert span { color: var(--muted); font-size: 0.92rem; }
.crfa-ov-cert.is-earned { background: var(--deep); border-color: var(--deep); color: #fff; }
.crfa-ov-cert.is-earned span { color: var(--teal-light); }
.crfa-ov-path ol { list-style: none; margin: 0; padding: 0; }
.crfa-ov-path li a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; text-decoration: none; color: var(--text); font-size: 0.93rem; line-height: 1.35; }
.crfa-ov-path li a:hover { background: var(--cream); }
.crfa-ov-path li.is-on a { background: var(--pt); font-weight: 500; }
.crfa-ov-path .crfa-tick { width: 26px; height: 26px; flex-basis: 26px; font-size: 0.78rem; }
.crfa-pledge-text p { margin: 0 0 14px; font-size: 1.06rem; line-height: 1.7; color: #E6F4F6; }
.crfa-pledge-text p:last-child { font-family: var(--serif); font-size: 1.4rem; color: #fff; line-height: 1.35; }
@media (max-width: 1100px) { .crfa-ov, .crfa-ov-grid { grid-template-columns: minmax(0, 1fr); } .crfa-ov-side { position: static; } }

/* v0.4 */
.crfa-org { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #8E9A9E !important; font-size: 0.78rem; line-height: 1.3; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.04); }
.crfa-org:hover { background: rgba(255,255,255,0.08); }
.crfa-org strong { color: #E6F4F6; font-weight: 500; }
.crfa-org-logo { background: #fff; border-radius: 8px; padding: 4px 6px; display: inline-flex; flex: 0 0 auto; }
.crfa-org-logo img { height: 26px; width: auto; display: block; }
.crfa-org-auth { margin-top: 18px; background: rgba(255,255,255,0.06); max-width: 320px; }
.crfa-cert-logos { display: flex; align-items: center; justify-content: center; gap: 28px; margin-bottom: 8px; }
.crfa-cert-logos .crfa-cert-logo { margin: 0; }
.crfa-cert-logo-main { height: 56px !important; }
.crfa-cert-sigimg { height: 52px; width: auto; border-bottom: 1px solid var(--ink); padding: 0 0.6em; }
.crfa-cert-detail { display: flex; justify-content: center; padding: 0 20px 60px; }
.crfa-cert-detail-in { width: min(1060px, 100%); background: #fff; border-radius: 18px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); }
.crfa-cert-detail h2 { font-size: 2rem; margin: 6px 0 8px; }
.crfa-cert-verified { display: inline-flex; align-items: center; gap: 8px; color: #2E7D5B; font-weight: 500; font-size: 0.9rem; margin: 0; }
.crfa-cert-verified .crfa-i { width: 18px; height: 18px; }
.crfa-cert-meta { color: var(--muted); margin: 0 0 18px; }
.crfa-cert-sub { font-weight: 600; color: var(--ink); margin: 18px 0 8px; }
.crfa-cert-outcomes, .crfa-cert-courses { margin: 0 0 12px; padding-left: 1.3em; line-height: 1.7; }
.crfa-certgroup { margin-bottom: 30px; }
.crfa-certgroup h2 { font-size: 1.7rem; margin-bottom: 12px; color: var(--pc); }
.crfa-certcard.is-locked { opacity: 0.62; background: var(--cream); border-style: dashed; }
.crfa-certcard.is-locked .crfa-i { color: var(--muted); }
.crfa-certcard.is-locked:hover { opacity: 0.85; }
.crfa-certcard .crfa-bar { margin: 6px 0 2px; }
.crfa-certcard.is-pathway.is-locked { background: var(--pt); color: var(--ink); border-color: var(--pc); }
.crfa-certcard.is-pathway.is-locked .crfa-small { color: var(--muted); }
.crfa-b-survey { background: #fff; border-color: var(--line); }
.crfa-b-survey .crfa-b-label { color: var(--teal-dark); }
.crfa-sq { border: 0; padding: 14px 0; margin: 0; border-top: 1px solid var(--cream-2); }
.crfa-sq legend { font-weight: 500; color: var(--ink); display: flex; gap: 10px; padding: 0; margin-bottom: 10px; }
.crfa-sq-n { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--teal-pale); color: var(--teal-dark); display: grid; place-items: center; font-size: 0.8rem; font-weight: 600; }
.crfa-sq-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.crfa-sq-opts label { cursor: pointer; }
.crfa-sq-opts input { position: absolute; opacity: 0; pointer-events: none; }
.crfa-sq-opts span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 0.92rem; }
.crfa-sq-opts input:checked + span { background: var(--deep); border-color: var(--deep); color: #fff; }
.crfa-sq-opts input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.crfa-sq-rating5 .crfa-sq-opts span, .crfa-sq-scale .crfa-sq-opts span { min-width: 44px; text-align: center; }
.crfa-sq-ends { display: flex; justify-content: space-between; max-width: 300px; font-size: 0.8rem; color: var(--muted); margin: 0 0 6px; }
.crfa-sq textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font: 400 1rem var(--sans); background: var(--cream); }
.crfa-survey .crfa-btn { margin-top: 14px; }
.crfa-survey-done { display: flex; align-items: center; gap: 8px; color: #2E7D5B; font-weight: 500; }
@media print { .crfa-cert-detail { page-break-before: always; padding: 20mm; } .crfa-cert-detail-in { border: 0; } }
/* v0.4.1 logo fix */
.crfa-org .crfa-org-logo{flex:0 0 auto;width:auto!important;height:auto!important;max-width:76px;padding:4px 6px}
.crfa-org .crfa-org-logo img{height:28px!important;width:auto!important;max-width:64px!important;object-fit:contain}

/* ---------- v0.5 Mentors ---------- */
.crfa-mstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 0 0 26px; }
.crfa-mstats .crfa-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); padding: 20px 22px; }
.crfa-mstats strong { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--deep); }
.crfa-mstats span { color: var(--muted); font-size: 0.92rem; }
.crfa-mlist { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.crfa-mlist a { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: 16px; padding: 14px 18px; text-decoration: none; color: var(--ink); }
.crfa-mlist a > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.crfa-mlist small { color: var(--muted); }
.crfa-mtable-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; margin: 0 0 26px; }
.crfa-mtable { width: 100%; border-collapse: collapse; min-width: 640px; }
.crfa-mtable th, .crfa-mtable td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.95rem; }
.crfa-mtable th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; background: var(--cream); }
.crfa-mtable tr:last-child td { border-bottom: 0; }
.crfa-mtable td small { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 3px; }
.crfa-mtable .crfa-bar { min-width: 110px; }
.crfa-mpath { margin: 0 0 14px; border-top: 4px solid var(--pc); }
.crfa-mpath ul { list-style: none; margin: 12px 0 0; padding: 0; }
.crfa-mpath li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 9px 0; border-top: 1px solid var(--cream-2); }
.crfa-mpath li > span:first-child { flex: 1 1 220px; display: inline-flex; align-items: center; gap: 6px; }
.crfa-mpath li .crfa-i { width: 16px; height: 16px; color: var(--teal-dark); }
.crfa-mpath .crfa-bar { margin-top: 8px; }
.crfa-mrules ul, .crfa-mentor-pending ul { margin: 6px 0 0; padding-left: 20px; color: var(--muted); }
.crfa-mrules li { margin-bottom: 5px; }
.crfa-mentor-pending { max-width: 760px; }

/* ---------- v0.5 HER Story capstone ---------- */
.crfa-cap-head { align-items: stretch; }
.crfa-cap-brief { align-self: center; border-left: 5px solid var(--orange); }
.crfa-cap-prompt { font-family: var(--serif); font-size: 1.45rem; line-height: 1.3; color: var(--ink); margin: 8px 0 0; }
.crfa-cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 0 0 22px; }
.crfa-cap-grid .crfa-card { padding: 22px; }
.crfa-cap-tips, .crfa-cap-safe ul { margin: 8px 0 0; padding-left: 20px; }
.crfa-cap-tips li, .crfa-cap-safe li { margin-bottom: 7px; }
.crfa-cap-rubric { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; gap: 8px; }
.crfa-cap-rubric li { display: flex; flex-direction: column; background: var(--cream); border-radius: 12px; padding: 10px 12px; }
.crfa-cap-rubric span { color: var(--muted); font-size: 0.9rem; }
.crfa-cap-safe { background: var(--orange-tint); border-color: #F6D3B8; }
.crfa-cap-rec { max-width: 760px; margin: 0 0 26px; border-top: 5px solid var(--orange); }
.crfa-cap-rec h2 { margin-bottom: 14px; }
.crfa-cap-kind { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.crfa-cap-kind label { position: relative; cursor: pointer; }
.crfa-cap-kind input { position: absolute; opacity: 0; }
.crfa-cap-kind span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 500; }
.crfa-cap-kind input:checked + span { border-color: var(--orange); background: var(--orange-tint); }
.crfa-cap-kind input:focus-visible + span { outline: 3px solid var(--orange); }
.crfa-cap-stage { background: var(--ink); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0 0 14px; }
.crfa-cap-live { width: 100%; max-width: 480px; border-radius: 12px; background: #000; transform: scaleX(-1); }
.crfa-cap-meter { width: 100%; max-width: 480px; height: 8px; background: rgba(255,255,255,0.12); border-radius: 99px; overflow: hidden; }
.crfa-cap-meter span { display: block; height: 100%; width: 0; background: var(--orange); transition: width 0.08s linear; }
.crfa-cap-timer { margin: 0; color: #fff; font: 600 2rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.crfa-cap-timer small { font-size: 0.9rem; font-weight: 400; color: var(--teal-light); }
.crfa-cap-timer.is-over small { color: var(--orange); }
.crfa-cap-rec.is-recording .crfa-cap-timer::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #E5484D; margin-right: 10px; vertical-align: middle; animation: crfa-pulse 1.2s infinite; }
@keyframes crfa-pulse { 50% { opacity: 0.3; } }
.crfa-cap-controls { margin: 0 0 12px; }
.crfa-cap-preview { margin: 6px 0 14px; }
.crfa-cap-media { width: 100%; max-width: 560px; display: block; border-radius: 12px; margin: 10px 0; background: #000; }
audio.crfa-cap-media { background: transparent; }
.crfa-cap-send { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.crfa-cap-send .crfa-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-weight: 400; }
.crfa-cap-send .crfa-check input { margin-top: 4px; }
.crfa-cap-progress { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.crfa-cap-msg { background: #FDF3EC; border: 1px solid #F6C49E; color: #8A3F12; border-radius: 12px; padding: 10px 14px; }
.crfa-guardian-box { background: var(--orange-tint); border: 1px solid #F6D3B8; border-radius: 16px; padding: 16px 16px 6px; margin: 0 0 14px; }
.crfa-guardian-box p { margin: 0 0 10px; color: #7A3E14; }
.crfa-input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: 400 1rem var(--sans); color: var(--ink); margin: 4px 0 10px; }
.crfa-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(74,155,171,0.2); }
.crfa-linkbtn { background: none; border: 0; padding: 0; color: var(--teal-dark); text-decoration: underline; font: inherit; cursor: pointer; }
.crfa-cap-result { max-width: 760px; margin: 0 0 24px; border-left: 5px solid var(--teal-dark); }
.crfa-cap-result.is-reviewed { border-left-color: var(--gold); }
.crfa-cap-result.is-returned { border-left-color: var(--orange); }
.crfa-cap-scores { list-style: none; margin: 10px 0 6px; padding: 0; display: grid; gap: 6px; }
.crfa-cap-scores li { display: grid; grid-template-columns: 120px auto 1fr; gap: 12px; align-items: center; }
.crfa-cap-dots { display: inline-flex; gap: 4px; }
.crfa-cap-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--cream-2); border: 1px solid var(--line); }
.crfa-cap-dots i.on { background: var(--gold); border-color: var(--gold); }
.crfa-cap-feedback { margin: 12px 0; padding: 14px 18px; background: var(--cream); border-radius: 14px; font-style: italic; }
.crfa-cap-feedback cite { display: block; margin-top: 6px; font-style: normal; font-size: 0.85rem; color: var(--muted); }
.crfa-cap-row .crfa-course-n { background: var(--orange-tint); color: var(--orange-dark); }
.crfa-cap-card.is-distinction { background: linear-gradient(135deg, #FFF8E6, #fff); border-color: var(--gold); }
.crfa-cap-review { margin: 0 0 16px; }
.crfa-cap-grid-form { width: 100%; border-collapse: collapse; margin: 12px 0 6px; }
.crfa-cap-grid-form th, .crfa-cap-grid-form td { padding: 8px 6px; border-bottom: 1px solid var(--cream-2); text-align: center; vertical-align: middle; }
.crfa-cap-grid-form tbody th { text-align: left; font-weight: 400; }
.crfa-cap-grid-form th small { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 400; }
.crfa-cap-grid-form input { width: 20px; height: 20px; accent-color: var(--orange); }
.crfa-cert-distinction { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.8rem); color: var(--gold); margin: 2px 0 0; letter-spacing: 0.02em; }
@media (max-width: 640px) {
	.crfa-cap-scores li { grid-template-columns: 1fr auto; }
	.crfa-cap-scores li > span:last-child { grid-column: 1 / -1; font-size: 0.85rem; color: var(--muted); }
	.crfa-cap-grid-form thead th small { display: none; }
}
.crfa [hidden] { display: none !important; }
.crfa-mentor-box .crfa-two { align-items: end; }

/* My path */
.crfa-mp-form fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.crfa-mp-form legend { font-weight: 600; font-size: 1.08rem; margin-bottom: 12px; color: var(--ink); }
.crfa-mp-form legend small { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.crfa-mp-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.crfa-mp-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; line-height: 1.35; }
.crfa-mp-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.crfa-mp-opt:has(input:checked) { border-color: var(--orange); background: var(--orange-tint); }
.crfa-mp-opt:has(input:disabled) { opacity: 0.5; cursor: not-allowed; }
.crfa-mp-list { list-style: none; margin: 0 0 22px; padding: 8px 24px; }
.crfa-mp-item { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--cream-2); }
.crfa-mp-item:first-child { border-top: 0; }
.crfa-mp-num { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--pc, #357080); }
.crfa-mp-num svg { width: 18px; height: 18px; }
.crfa-mp-item.is-done { opacity: 0.6; }
.crfa-mp-item.is-next .crfa-mp-num { box-shadow: 0 0 0 4px var(--orange-tint); background: var(--orange); }
.crfa-mp-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.crfa-mp-text small { color: var(--pc, #357080); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.02em; text-transform: uppercase; }
.crfa-mp-text strong { font-size: 1.08rem; }
.crfa-mp-text span { color: var(--muted); font-size: 0.95rem; }
.crfa-mp-text em { font-style: normal; font-size: 0.88rem; color: #A44E14; display: flex; gap: 6px; align-items: center; }
.crfa-mp-text em svg { width: 14px; height: 14px; }
.crfa-mp-support { margin-bottom: 22px; }
.crfa-mp-home { margin-bottom: 24px; }
@media (max-width: 560px) { .crfa-mp-item { flex-wrap: wrap; align-items: flex-start; } .crfa-mp-text { flex: 1 1 calc(100% - 54px); } .crfa-mp-item .crfa-btn { margin-left: 54px; } .crfa-mp-list { padding: 4px 16px; } }
