/* CFA Level I cluster on /learn. Loaded after learn-aws.css, whose generic
   components (answer-block, fact-grid, wbars, rank-list, week-timeline, worked,
   aws-tool) these pages reuse. Only CFA additions live here. */

/* Weight bars carry ranges ("10-15%"), so the label column is wider. */
.wbars--range .wbar { grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr) 64px; }
@media (max-width: 720px) { .wbars--range .wbar { grid-template-columns: minmax(0, 1fr) 64px; } }

.chg { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; background: #FEF3C7; color: #92400E; vertical-align: 1px; }
.table-note { margin: -8px 0 18px; font-size: 13px; }

/* Inline SVG charts */
.cfa-figure { margin: 22px 0 10px; padding: 16px 14px 6px; background: #FFFFFF; border: 1px solid var(--learn-border); border-radius: var(--learn-radius-lg); box-shadow: var(--learn-shadow-sm); }
.cfa-chart { display: block; width: 100%; height: auto; }
.cfa-figure figcaption { padding: 8px 4px 6px; font-size: .86rem; line-height: 1.5; color: var(--learn-text-muted); }
.cfa-figure figcaption strong { color: var(--learn-text); }

/* What the free paper is and is not */
.scope-note { margin: 18px 0 24px; padding: 16px 20px; background: #FFFBEB; border: 1px solid #FDE68A; border-left: 4px solid #F59E0B; border-radius: var(--learn-radius); font-size: 14.5px; line-height: 1.65; color: var(--learn-text); }
.scope-note strong { color: #92400E; }
.scope-note ul { margin: 6px 0 0; padding-left: 20px; }

/* Real candidate comments, scoped to the certification they were about */
.proof-block { margin: 24px 0; padding: 18px 20px; background: #F8FAFC; border: 1px solid var(--learn-border); border-radius: var(--learn-radius-lg); }
.proof-k { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--learn-primary-dark); }
.proof-note { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: var(--learn-text-muted); }
.proof-quote { margin: 10px 0 0; padding: 12px 16px; background: #FFFFFF; border: 1px solid var(--learn-border); border-left: 3px solid var(--learn-primary); border-radius: var(--learn-radius-sm); }
.proof-quote p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.6; color: var(--learn-text); }
.proof-quote cite { font-style: normal; font-size: 12.5px; color: var(--learn-text-muted); }

/* Calculator keys and keystroke sequences */
kbd.key { display: inline-block; min-width: 1.6em; padding: 1px 7px; margin: 1px 1px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; font-weight: 600; line-height: 1.6; text-align: center; color: #0F172A; background: linear-gradient(180deg, #FFFFFF 0%, #EEF2F7 100%); border: 1px solid #CBD5E1; border-bottom-width: 2px; border-radius: 5px; white-space: nowrap; }
kbd.key.k2 { color: #92400E; background: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 100%); border-color: #F59E0B; }
.keys { line-height: 2; }

/* Formula tables: the formula column reads as code */
.fx { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; color: #0F172A; white-space: normal; }
.formula-table td:first-child { font-weight: 600; width: 32%; }

/* Ethics standards list */
.std-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.std-card { background: #FFFFFF; border: 1px solid var(--learn-border); border-top: 3px solid var(--learn-primary); border-radius: var(--learn-radius); padding: 14px 18px; box-shadow: var(--learn-shadow-sm); }
.std-card h3 { margin: 0 0 6px; font-size: 15.5px; }
.std-card ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
@media (max-width: 720px) { .std-grid { grid-template-columns: 1fr; } }

/* Readiness estimator: ten score inputs */
.ready-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 12px 0; }
.ready-grid label { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 10px; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--learn-text); }
.ready-grid input { width: 100%; box-sizing: border-box; padding: 7px 9px; font: inherit; font-size: 14px; border: 1px solid var(--learn-border-dark); border-radius: var(--learn-radius-sm); }
@media (max-width: 640px) { .ready-grid { grid-template-columns: 1fr; } }

/* Four ranking criteria read as a 2 x 2 grid, not 3 + 1 */
.criteria-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .criteria-grid { grid-template-columns: 1fr; } }
