/* Risk profiles: the canvas draws every element with inline styles (spm-canvas-profiles.js).
   These rules only reset the shell's own element styles, and add the canvas's hover and focus states. */
body.spu-experience .spmc-profiles button { font: inherit; color: inherit; cursor: pointer; margin: 0; min-height: 0; min-width: 0; box-shadow: none; text-transform: none; letter-spacing: normal; line-height: inherit; }
body.spu-experience .spmc-profiles h2, body.spu-experience .spmc-profiles h3 { color: #3d3838; letter-spacing: normal; text-transform: none; }
body.spu-experience .spmc-profiles :focus-visible { outline: 2px solid #3d3838; outline-offset: 2px; }
.spmc-profiles [role=tooltip] { display: none; }
.spmc-profiles .spmc-p-seg:hover + [role=tooltip], .spmc-profiles .spmc-p-seg:focus-visible + [role=tooltip],
.spmc-profiles .spmc-p-row:hover + [role=tooltip], .spmc-profiles .spmc-p-row:focus-visible + [role=tooltip] { display: block; }
.spmc-profiles .spmc-p-row[aria-pressed=false]:hover { background: #f5f5f5 !important; }

/* Narrower than the canvas: its columns stack rather than clip (the position band needs 1180px). */
.spmc-profiles { container-type: inline-size; }
@container (max-width: 1179px) { .spmc-profiles .spmc-p-hero { grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 1100px) { .spmc-profiles .spmc-p-ybody { grid-template-columns: minmax(0, 1fr) !important; } }
/* The study-level chart keeps the canvas scale and scrolls sideways when the screen is narrower than it. */
.spmc-profiles .spmc-p-chartwrap { max-width: 100%; overflow-x: auto; overflow-y: visible; }
@media (max-width: 1180px) { .spmc-profiles .spmc-p-proggrid { grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 760px) {
  .spmc-profiles section, .spmc-profiles .spmc-p-yhead, .spmc-profiles .spmc-p-ybody { padding-left: 16px !important; padding-right: 16px !important; }
  .spmc-profiles #spmc-year-profile { padding: 0 !important; }
}
/* Phones: the canvas, fitted to a 375px screen. Every chart fits the width; nothing scrolls sideways. */
@media (max-width: 560px) {
  /* The figures wrap under the bar on phones, so no label column is reserved. */
  .spmc-profiles { --spmc-bw: .62; --spmc-lbl: 0px; }
  .spmc-profiles [role=tooltip] { display: none !important; }
  .spmc-profiles .spmc-p-hero { padding-top: 28px !important; padding-bottom: 24px !important; row-gap: 32px !important; }
  .spmc-profiles .spmc-p-big { font-size: 64px !important; letter-spacing: -2px !important; }
  .spmc-profiles .spmc-p-trio { gap: 6px !important; }
  .spmc-profiles .spmc-p-card { padding: 10px 8px 12px !important; gap: 4px !important; min-width: 0; }
  .spmc-profiles .spmc-p-card > span:first-child { font-size: 11px !important; gap: 5px !important; line-height: 1.25; }
  .spmc-profiles .spmc-p-cardn { font-size: 30px !important; letter-spacing: -0.5px !important; }
  .spmc-profiles .spmc-p-card > span:last-child { font-size: 11px !important; line-height: 1.3; }

  .spmc-profiles .spmc-p-chartwrap { overflow: visible; }
  .spmc-profiles .spmc-p-chart { width: 100% !important; min-width: 0 !important; }
  .spmc-profiles .spmc-p-gridlines { left: 32px !important; }
  .spmc-profiles .spmc-p-ticks { width: 26px !important; }
  .spmc-profiles .spmc-p-ticks span { font-size: 10px !important; }
  .spmc-profiles .spmc-p-cols { margin-left: 32px !important; gap: 6px !important; }
  .spmc-profiles .spmc-p-col { flex: 1 1 0 !important; width: auto !important; min-width: 0; }
  .spmc-profiles .spmc-p-top { font-size: 14px !important; }
  .spmc-profiles .spmc-p-col > div:first-child > span:last-child { font-size: 10px !important; }
  .spmc-profiles .spmc-p-col div[style*="padding-bottom: 5px"] { font-size: 10px !important; line-height: 1.2; }
  .spmc-profiles .spmc-p-name > div:first-child { font-size: 11px !important; hyphens: auto; -webkit-hyphens: auto; }
  .spmc-profiles .spmc-p-name > div:last-child { font-size: 10px !important; }
  .spmc-profiles .spmc-p-wbox { padding: 0 2px !important; }
  .spmc-profiles .spmc-p-wbox span:first-child { font-size: 11px !important; }
  .spmc-profiles .spmc-p-wbox span:last-child { font-size: 10px !important; }

  .spmc-profiles [aria-hidden=true][style*="232px"] { display: none !important; }
  .spmc-profiles .spmc-p-row { grid-template-columns: 22px minmax(0, 1fr) !important; row-gap: 6px; height: auto !important; min-height: 42px; padding: 8px 0 !important; }
  .spmc-profiles .spmc-p-row > span:nth-child(3) { grid-column: 2; height: auto !important; flex-wrap: wrap; row-gap: 4px; gap: 8px !important; }
  .spmc-profiles .spmc-p-row > span:nth-child(3) > span[style*="width: 210px"] { width: auto !important; padding-right: 10px; }
  .spmc-profiles .spmc-p-bar { height: max(8px, calc(var(--bh) * .3px)) !important; }
  .spmc-profiles .spmc-p-lbl { flex-direction: row !important; align-items: baseline !important; gap: 6px !important; }
  .spmc-profiles .spmc-p-lbl > span:first-child { font-size: 18px !important; }
  .spmc-profiles .spmc-p-proggrid > div > div[style*="padding-left: 42px"] { padding-left: 0 !important; }
  .spmc-profiles .spmc-p-lens { padding: 22px 16px !important; }
  .spmc-profiles .spmc-p-lensfig { font-size: 56px !important; }

  .spmc-profiles .spmc-p-yheadrow { flex-direction: column; gap: 14px !important; }
  .spmc-profiles .spmc-p-yheadrow > button { min-height: 36px !important; font-size: 13px !important; padding: 0 14px !important; }
  .spmc-profiles .spmc-p-ytitle { font-size: 22px !important; }
  .spmc-profiles .spmc-p-ybig { font-size: clamp(40px, 17vw, 72px) !important; letter-spacing: -2px !important; }
  .spmc-profiles .spmc-p-ybody { gap: 32px !important; padding-top: 28px !important; }
  .spmc-profiles .spmc-p-mwrap { overflow: visible !important; }
  .spmc-profiles .spmc-p-matrix { min-width: 0 !important; gap: 4px !important; }
  .spmc-profiles .spmc-p-mhead, .spmc-profiles .spmc-p-mrow { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 4px !important; }
  .spmc-profiles .spmc-p-mhead > span:first-child { display: none; }
  .spmc-profiles .spmc-p-mhead > span { padding: 0 0 4px 4px !important; font-size: 11px !important; }
  .spmc-profiles .spmc-p-mrow > button { grid-column: 1 / -1; flex-direction: row !important; flex-wrap: wrap; align-items: baseline !important; gap: 2px 8px !important; padding: 12px 0 2px !important; }
  .spmc-profiles .spmc-p-mdef { font-size: 11px !important; }
  .spmc-profiles .spmc-p-cell { height: 64px !important; padding: 5px !important; }
  .spmc-profiles .spmc-p-cell > span:first-child { font-size: 10px !important; }
  .spmc-profiles .spmc-p-cell > span:last-child { min-height: 0 !important; gap: 4px !important; align-items: center !important; }
  .spmc-profiles .spmc-p-val { font-size: 11px !important; }
  .spmc-profiles .spmc-p-sq + .spmc-p-val { font-size: 16px !important; }
  .spmc-profiles .spmc-p-sq { zoom: .45; }
  .spmc-profiles .spmc-p-mnores { grid-template-columns: minmax(0, 1fr) !important; }
  .spmc-profiles .spmc-p-mnores > div[role=cell] { flex-wrap: wrap; padding: 8px 10px !important; gap: 4px 10px !important; }
}
@media (hover: none) { .spmc-profiles [role=tooltip] { display: none !important; } }
