/* Measured model profile cards (scripts/report_cards.py): the tabbed gallery on diagnosis.html and the single
   card on models/<id>.html. The report card's panels in the site's own style: a header with the overall result,
   then four numbered sections. View colours: Mind green, Act blue, Mind2Act amber; step colours as in
   "Where failures break". */
.rc {
  --rc-ink: #17212b; --rc-text: #3a4f5c; --rc-muted: #5b6f7a; --rc-faint: #8b989f; --rc-line: #e4e9e7; --rc-wait: #e8ecee;
  --rc-mind: #416d62; --rc-act: #36566f; --rc-mind2act: #8a6a2f; --rc-navy: #203447; --rc-accent: #a8452e;
  color: var(--rc-ink); scroll-margin-top: 110px; font-variant-numeric: tabular-nums;
}
.rc * { box-sizing: border-box; }
.rc ul, .rc ol, .rc dl { margin: 0; padding: 0; list-style: none; }
.rc p, .rc blockquote, .rc figure, .rc dd { margin: 0; }
.rc small { font-size: .55em; font-weight: 650; margin-left: 1px; }
.rc-logo { flex: none; object-fit: contain; border-radius: 10px; background: #fff; }
.rc-type { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #e7eef0; color: var(--rc-act); font-size: 12px; font-weight: 700; letter-spacing: .05em; vertical-align: 5px; }

/* Tabs */
.rc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.rc-tab { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--rc-line); border-radius: 14px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.rc-tab:hover { border-color: #b9c7c4; }
.rc-tab:focus-visible { outline: 2px solid var(--rc-act); outline-offset: 2px; }
.rc-tab-text { display: grid; min-width: 0; }
.rc-tab-text b { color: var(--rc-ink); font-size: 16px; line-height: 1.25; }
.rc-tab-text small { margin: 0; color: var(--rc-muted); font-size: 13.5px; font-weight: 400; }
.rc-tab[aria-selected="true"] { border-color: #8fb1a7; background: #eef5f2; box-shadow: inset 0 0 0 1px #8fb1a7, 0 4px 14px rgba(65, 109, 98, .12); }
.rc-tab[aria-selected="true"] small { color: var(--rc-mind); }
.rc:not(.rc-js) .rc-tabs { display: none; }
.rc:not(.rc-js) .rc-panel + .rc-panel { margin-top: 24px; }
.rc-panel[hidden] { display: none; }

/* The card */
.rc-panel { overflow: hidden; border: 1px solid var(--rc-line); border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(23, 33, 43, .04), 0 16px 40px -24px rgba(23, 33, 43, .18); scroll-margin-top: 96px; }

/* Header: who, the overall result, the three views, the one-line reading */
.rc-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) auto auto; grid-template-areas: "id score rings" "take take profile"; gap: 22px 36px; align-items: center; padding: 28px 32px 24px; background: radial-gradient(120% 140% at 0% 0%, #eef5f2 0%, rgba(238, 245, 242, 0) 55%), linear-gradient(180deg, #fbfcfb, #fff); border-bottom: 1px solid var(--rc-line); }
.rc-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--rc-mind) 0 33.3%, var(--rc-act) 33.3% 66.6%, var(--rc-mind2act) 66.6%); }
.rc-id { grid-area: id; display: flex; align-items: center; gap: 16px; min-width: 0; }
.rc-id .rc-logo { padding: 6px; border: 1px solid var(--rc-line); border-radius: 14px; box-shadow: 0 2px 6px rgba(23, 33, 43, .06); }
.rc-kicker { color: var(--rc-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
html body .rc-id h3 { margin: 2px 0 0 !important; color: var(--rc-ink) !important; font-size: 30px !important; font-weight: 760 !important; letter-spacing: -.02em; line-height: 1.15 !important; }
.rc-org { color: var(--rc-muted); font-size: 14.5px; }
.rc-score { grid-area: score; display: grid; justify-items: start; padding-left: 28px; border-left: 1px solid var(--rc-line); }
.rc-score b { color: var(--rc-navy); font-size: 56px; font-weight: 780; line-height: .95; letter-spacing: -.035em; }
.rc-score span { margin-top: 6px; color: var(--rc-muted); font-size: 13px; }
.rc-rings { grid-area: rings; display: flex; gap: 14px; }
.rc-ring { position: relative; display: grid; justify-items: center; gap: 6px; width: 68px; }
.rc-ring svg { display: block; width: 68px; height: 68px; }
.rc-ring b { position: absolute; top: 0; left: 0; display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; }
.rc-ring b span { display: inline-flex; align-items: flex-start; color: var(--rc-ink); font-size: 16px; font-weight: 760; line-height: 1; letter-spacing: -.01em; }
.rc-ring b i { margin: 1px 0 0 1px; color: var(--k); font-size: 9.5px; font-style: normal; font-weight: 750; line-height: 1; }
.rc-ring figcaption { color: var(--k); font-size: 12.5px; font-weight: 700; }
.rc-take { grid-area: take; position: relative; padding: 2px 0 2px 34px; color: var(--rc-text); font-size: 17px; font-weight: 500; line-height: 1.5; letter-spacing: -.005em; }
.rc-take::before { content: "\201C"; position: absolute; left: 0; top: -10px; color: var(--rc-mind2act); font-family: Georgia, serif; font-size: 48px; line-height: 1; }
.rc-profile { grid-area: profile; justify-self: end; display: inline-flex; gap: 12px; align-items: center; padding: 6px 16px 6px 8px; border: 1px dashed #d8ccb0; border-radius: 14px; background: #fdfaf3; text-decoration: none; font-size: 14px; white-space: nowrap; transition: border-color .15s, background .15s; }
.rc-profile, .rc-profile b { color: var(--rc-ink) !important; }
.rc-profile:hover { border-style: solid; background: #fbf4e6; }
.rc-avatar { flex: none; width: 46px; height: 46px; }
.rc-profile small { color: var(--rc-muted); font-size: 12.5px; font-weight: 500; }

/* Numbered sections */
.rc-sec { padding: 24px 32px 28px; }
.rc-sec + .rc-sec { border-top: 1px solid var(--rc-line); }
.rc-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 20px; }
.rc-num { display: inline-block; color: var(--rc-faint); font-size: 12.5px; font-weight: 750; letter-spacing: .12em; }
.rc-num::after { content: ""; display: inline-block; width: 22px; height: 1px; margin: 0 0 4px 8px; background: currentColor; }
html body .rc-sec-head h4 { margin: 0 !important; color: var(--rc-ink) !important; font-size: 19px !important; font-weight: 740 !important; letter-spacing: -.01em; line-height: 1.25 !important; }
.rc-sec-head p { color: var(--rc-muted); font-size: 14px; line-height: 1.5; }
.rc-sec-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
.rc-sec-body > .rc-pane { padding: 0 28px; }
.rc-sec-body > .rc-pane:first-child { padding-left: 0; }
.rc-sec-body > .rc-pane:last-child { padding-right: 0; }
.rc-sec-body > .rc-pane + .rc-pane { border-left: 1px solid var(--rc-line); }
.rc-sec-can .rc-sec-body { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); }
.rc-sec-why .rc-sec-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.rc-sec-help .rc-sec-body { display: block; }
.rc-pane { min-width: 0; }
html body .rc-pane > h5 { margin: 0 !important; color: var(--rc-ink) !important; font-size: 13px !important; font-weight: 750 !important; letter-spacing: .07em; text-transform: uppercase; }
.rc-note { margin: 3px 0 16px !important; color: var(--rc-faint); font-size: 12.5px; }

/* Bars */
.rc-bar { display: block; height: 6px; overflow: hidden; border-radius: 999px; background: var(--rc-wait); }
.rc-bar i { display: block; height: 100%; border-radius: 999px; background: var(--k, var(--rc-act)); }

/* 01 Where failures break */
.rc-donut-row { display: flex; align-items: center; gap: 22px; }
.rc-donut { position: relative; flex: none; width: 124px; height: 124px; }
.rc-donut svg { display: block; width: 100%; height: 100%; }
.rc-donut p { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.rc-donut b { font-size: 19px; font-weight: 760; letter-spacing: -.01em; }
.rc-donut span { color: var(--rc-muted); font-size: 12px; }
.rc-legend { flex: 1; display: grid; gap: 7px; min-width: 0; }
.rc-legend li { display: grid; grid-template-columns: 10px 96px minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: 13.5px; color: var(--rc-text); }
.rc-legend li > i { width: 10px; height: 10px; border-radius: 3px; }
.rc-legend li > b { text-align: right; color: var(--rc-ink); }
.rc-legend li.is-top { color: var(--rc-ink); font-weight: 650; }
.rc-legend .rc-bar { height: 5px; }

/* 01 Which side failed */
.rc-side-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px !important; }
.rc-side-stats li { display: grid; gap: 4px; padding-top: 10px; border-top: 3px solid var(--k); }
.rc-side-stats b { font-size: 26px; font-weight: 760; line-height: 1; letter-spacing: -.02em; }
.rc-side-stats span { color: var(--rc-muted); font-size: 12.5px; }
.rc-stack { display: flex; height: 14px; overflow: hidden; border-radius: 999px; background: var(--rc-wait); }
.rc-stack i { height: 100%; }
.rc-stack i + i { box-shadow: inset 2px 0 0 #fff; }

/* 02 Rows: failure codes and task breakpoints */
.rc-rows { display: grid; gap: 14px; }
.rc-code-rows li { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; grid-template-areas: "tag lbl num" "tag bar bar"; gap: 6px 12px; align-items: center; }
.rc-code-rows code { grid-area: tag; align-self: start; justify-self: start; padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--k) 12%, #fff); color: var(--k); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 25%, #fff); font-size: 12px; font-weight: 750; letter-spacing: .02em; white-space: nowrap; }
.rc-code-rows .rc-lbl { grid-area: lbl; color: var(--rc-text); font-size: 14px; line-height: 1.35; }
.rc-code-rows b { grid-area: num; font-size: 16px; font-weight: 750; }
.rc-code-rows .rc-bar { grid-area: bar; }
.rc-task-rows li { --k: var(--rc-accent); display: grid; grid-template-columns: 74px minmax(0, 1fr); grid-template-areas: "frac lbl" "frac bar"; gap: 6px 14px; align-items: center; }
.rc-frac { grid-area: frac; display: flex; align-items: baseline; }
.rc-frac b { font-size: 26px; font-weight: 780; line-height: 1; letter-spacing: -.02em; color: var(--rc-accent); }
.rc-frac span { color: var(--rc-faint); font-size: 13px; font-weight: 600; }
.rc-task-rows .rc-lbl { grid-area: lbl; color: var(--rc-text); font-size: 14px; line-height: 1.4; }
.rc-task-rows .rc-bar { grid-area: bar; }
html body .rc .dg-task { display: inline-block; padding: 1px 7px; border: 1px solid #e0d3b4; border-radius: 6px; background: #f8f2e4; color: #7a5a1c !important; font-size: 12px; font-weight: 700; line-height: 1.45; text-decoration: none; white-space: nowrap; vertical-align: 1px; }
html body .rc .dg-task:hover { border-color: #b99c5e; background: #f3e8cf; }

/* 03 Capability profile: the wheel (diagnosis_figures.figures), key beside it */
.rc-wheel-row { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; align-items: center; }
.rc-wheel { min-width: 0; }
.rc-wheel .taxonomy { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.rc-wheel .suite { font-size: 19px; font-weight: 650; fill: #fff; }
.rc-wheel .cap-label { font-size: 13.5px; font-weight: 550; fill: #244450; letter-spacing: -.2px; }
.rc-wheel .task { font-size: 14px; font-weight: 500; fill: #354f5c; }
.rc-wheel .cell { stroke: #fff; stroke-width: .7; transition: filter .15s; }
.rc-wheel .cell:hover, .rc-wheel .cell:focus { stroke: #183f32; stroke-width: 2; outline: 0; filter: brightness(.85); }
.rc-wheel-key { display: grid; gap: 18px; align-content: center; color: var(--rc-muted); font-size: 13px; line-height: 1.5; }
.rc-wheel-rings b { display: block; margin-bottom: 2px; color: var(--rc-ink); font-size: 13px; }
.rc-wheel-legend .legend-head, .rc-wheel-legend .legend-row { display: grid; grid-template-columns: 70px repeat(5, minmax(0, 1fr)); gap: 4px; align-items: center; }
.rc-wheel-legend .legend-head { margin-bottom: 6px; color: var(--rc-muted); font-size: 11.5px; text-align: center; }
.rc-wheel-legend .legend-head span:first-child { color: var(--rc-ink); font-size: 13px; font-weight: 700; text-align: left; }
.rc-wheel-legend .legend-row { margin: 5px 0; }
.rc-wheel-legend .legend-row span { font-size: 13px; font-weight: 700; }
.rc-wheel-legend .legend-row i { height: 12px; border-radius: 3px; }
.rc-wheel-note { padding-top: 14px; border-top: 1px solid var(--rc-line); color: var(--rc-text); font-size: 13.5px; font-style: italic; }

/* 03 Under pressure */
.rc-press + .rc-press { margin-top: 14px; }
.rc-press > p { margin-bottom: 6px !important; color: var(--k); font-size: 13px; font-weight: 760; }
.rc-press ul { display: grid; gap: 7px; }
.rc-press li { display: grid; grid-template-columns: 52px minmax(0, 1fr) 36px; gap: 10px; align-items: center; font-size: 12.5px; }
.rc-press li > span:first-child { color: var(--rc-muted); }
.rc-press li b { text-align: right; font-weight: 700; }
.rc-press .rc-bar { height: 9px; }

/* 04 What could help */
.rc-help { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rc-help > li { position: relative; display: grid; align-content: start; gap: 12px; padding: 20px 22px; border: 1px solid #efe2db; border-radius: 16px; background: linear-gradient(180deg, #fdf8f6, #fff 60%); }
html body .rc-help h5 { display: flex; align-items: center; gap: 10px; margin: 0 !important; color: var(--rc-ink) !important; font-size: 16.5px !important; font-weight: 740 !important; letter-spacing: -.005em; }
.rc-help h5 span { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--rc-accent); color: #fff; font-size: 13px; font-weight: 750; }
.rc-evidence { color: var(--rc-text); font-size: 14px; line-height: 1.6; }
.rc-help dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; padding-top: 12px; border-top: 1px solid #f0e4de; }
.rc-help dt { align-self: start; padding: 2px 9px; border-radius: 999px; background: #f7e7e1; color: var(--rc-accent); font-size: 11.5px; font-weight: 750; letter-spacing: .03em; white-space: nowrap; }
.rc-help dd { color: var(--rc-ink); font-size: 14px; line-height: 1.55; }

/* Footer */
.rc-foot { display: flex; justify-content: flex-end; padding: 14px 32px 18px; border-top: 1px solid var(--rc-line); background: #fbfcfb; }
.rc-action { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--rc-line); border-radius: 999px; background: #fff; color: var(--rc-ink) !important; font-size: 14px; font-weight: 650; text-decoration: none; transition: border-color .15s; }
.rc-action:hover { border-color: var(--rc-ink); }

@media (max-width: 1000px) {
  .rc-hero { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id id" "score rings" "take take" "profile profile"; gap: 18px 24px; padding: 26px 22px 20px; }
  .rc-score { padding-left: 0; border-left: 0; }
  .rc-profile { justify-self: start; }
  .rc-sec { padding: 22px; }
  .rc-sec-body, .rc-sec-why .rc-sec-body, .rc-sec-can .rc-sec-body { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .rc-sec-body > .rc-pane { padding: 0; }
  .rc-sec-body > .rc-pane + .rc-pane { padding-top: 22px; border-left: 0; border-top: 1px solid var(--rc-line); }
  .rc-foot { padding: 14px 22px 18px; }
  .rc-wheel-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rc-wheel-key { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .rc-wheel-note { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .rc-panel { border-radius: 18px; }
  .rc-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "id" "score" "rings" "take" "profile"; padding: 22px 16px 18px; }
  html body .rc-id h3 { font-size: 25px !important; }
  .rc-score b { font-size: 48px; }
  .rc-take { font-size: 15.5px; padding-left: 28px; }
  .rc-sec { padding: 20px 16px; }
  .rc-sec-head { margin-bottom: 16px; }
  .rc-sec-head p { flex-basis: 100%; }
  .rc-wheel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rc-wheel .taxonomy { min-width: 440px; }
  .rc-donut-row { flex-direction: column; align-items: stretch; }
  .rc-donut { align-self: center; }
  .rc-legend li { grid-template-columns: 10px 92px minmax(0, 1fr) 46px; }
  .rc-side-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-code-rows li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tag num" "lbl lbl" "bar bar"; }
  .rc-help { grid-template-columns: minmax(0, 1fr); }
  .rc-help > li { padding: 18px 16px; }
  .rc-foot { padding: 12px 16px 16px; }
  .rc-tabs { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .rc-tab { padding: 8px 12px; }
  .rc-tab .rc-logo { width: 24px; height: 24px; }
}

/* Model pages (models/<id>.html): the model's own card under Efficiency */
.rc-model-lead { max-width: 860px; margin: 0 0 16px !important; color: var(--m2a-muted, #5b6f7a); font-size: 15px; line-height: 1.55; }

/* diagnosis.html: one-line legend of the four steps above the tabs, in the cards' "Where failures break" colours */
.rc-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 4px 0 18px; padding: 0; list-style: none; color: var(--dg-muted, #5b6f7a); font-size: 14.5px; line-height: 1.5; }
.rc-step { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rc-step + .rc-step::before { content: "\2192"; margin: 0 12px; color: #a3b0b7; }
.rc-step i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.rc-step b { color: #17212b; font-weight: 650; }
.rc-step-perceive { --c: #8db3a6; }
.rc-step-reason { --c: #416d62; }
.rc-step-act { --c: #36566f; }
.rc-step-close { --c: #8a6a2f; }
@media (max-width: 640px) { .rc-step + .rc-step::before { margin: 0 8px; } }

/* 03 Under pressure: All tasks as a summary card, anchored to the bottom so the column lines up with the wheel */
.rc-pressure { display: flex; flex-direction: column; }
.rc-all { --k: var(--rc-navy); padding: 14px 16px 16px; border-radius: 14px; background: linear-gradient(180deg, #f1f4f7, #f8f9fb); box-shadow: inset 0 0 0 1px #e1e6ec; }
.rc-press-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.rc-press-body .rc-press + .rc-press { margin-top: 0; }
.rc-all-title { margin-bottom: 12px !important; color: var(--k); font-size: 13px; font-weight: 760; }
.rc-all ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rc-all li { display: grid; gap: 4px; }
.rc-all li b { color: var(--rc-ink); font-size: 24px; font-weight: 780; line-height: 1.05; letter-spacing: -.02em; }
.rc-all li > span:not(.rc-bar) { color: var(--rc-muted); font-size: 12.5px; }
.rc-all .rc-bar { height: 6px; margin-top: 2px; background: #dfe4ea; }
