/* Rhemis benchmarks. Scoped styles; no external chart library. */
#performance { background: linear-gradient(180deg, #fff 0%, #f8f9fc 52%, #fff 100%); }
#performance .performance-content { max-width: 700px; margin-bottom: 48px; }
#performance .performance-content h2 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -.05em; font-weight: 600; margin: 14px 0 20px; }
#performance .performance-text { font-size: 17px; line-height: 1.7; }
#performance .performance-charts { max-width: none; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.bench-legend { display: flex; align-items: center; gap: 24px; padding: 0 4px; margin-bottom: 18px; color: #626977; font-size: 12px; }
.bench-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.bench-key { width: 7px; height: 7px; border-radius: 50%; background: #929aa7; }
.bench-key-brand { background: var(--color-navy); box-shadow: 0 0 0 3px #e7eaf3; }
.bench-legend .bench-interact { margin-left: auto; color: #737b88; }
.bench-card { min-width: 0; padding: 27px 26px 0; border: 1px solid #e4e7ee; border-radius: 24px; background: #fff; box-shadow: 0 3px 5px -4px #17223a18, 0 16px 36px -28px #17223a30; position: relative; }
.bench-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bench-card-header h3 { font-size: 21px; font-weight: 600; letter-spacing: -.035em; color: #172033; }
.bench-card-header p { margin-top: 3px; font-size: 12px; color: #727b88; }
.bench-card-index { border: 1px solid #e9ebf0; border-radius: 9px; color: #747d8a; font-size: 10px; font-weight: 600; letter-spacing: .08em; padding: 5px 9px; }
.bench-plot { position: relative; width: 100%; margin-top: 24px; aspect-ratio: 480 / 344; }
.bench-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bench-grid { stroke: #edf0f5; stroke-width: 1; }
.bench-axis { stroke: #dce1e9; stroke-width: 1; }
.bench-tick { fill: #7a8391; font: 10px 'Inter',system-ui,sans-serif; }
.bench-zone { fill: #f8f9fc; }
.bench-guide { stroke: #a9b1c9; stroke-dasharray: 3 5; opacity: 0; transition: opacity .18s ease; }
.bench-plot.has-selection .bench-guide { opacity: .7; }
.bench-dot { position: absolute; width: 26px; height: 26px; transform: translate(-50%,-50%); border: 0; border-radius: 50%; background: transparent; cursor: pointer; padding: 0; z-index: 2; color: var(--color-navy); }
.bench-dot::before { content: ''; position: absolute; width: 9px; height: 9px; top: 50%; left: 50%; transform: translate(-50%,-50%); border-radius: 50%; background: #9ba3b0; border: 2px solid white; box-sizing: content-box; transition: background .18s, box-shadow .18s; }
.bench-dot:hover::before,.bench-dot.is-active::before { background: #59677e; box-shadow: 0 0 0 4px #e9ecf4; }
.bench-dot.is-rhemis { z-index: 3; }
.bench-dot.is-rhemis::before { width: 11px; height: 11px; background: var(--color-navy); box-shadow: 0 0 0 5px #101b4d0b, 0 0 0 11px #101b4d04; }
.bench-dot.is-rhemis.is-active::before { box-shadow: 0 0 0 5px #101b4d18, 0 0 0 11px #101b4d06; }
.bench-dot-label { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); font: 600 12px 'Inter',system-ui,sans-serif; letter-spacing: -.025em; pointer-events: none; }
.bench-dot:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 2px; z-index: 5; }
.bench-axis-help { position: absolute; z-index: 4; color: #5c6676; font: 500 10px 'Inter',system-ui,sans-serif; background: #fff; border: 0; border-radius: 5px; cursor: help; padding: 5px 6px; display: flex; align-items: center; gap: 5px; }
.bench-axis-help span { border: 1px solid #c9ced7; color: #778292; border-radius: 50%; width: 12px; height: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 8px; }
.bench-axis-x { right: -3px; bottom: -8px; }
.bench-axis-y { top: -7px; left: -5px; }
.bench-direction { position: absolute; top: 0; right: 0; color: #8790a0; font-size: 10px; letter-spacing: -.01em; }
.bench-result { border-top: 1px solid #edf0f5; margin-top: 20px; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bench-result p { font-size: 12px; color: #556174; line-height: 1.5; max-width: 220px; }
.bench-result p strong { color: var(--color-navy); font-weight: 600; }
.bench-data { border: 1px solid #e5e8ef; border-radius: 20px; background: white; color: #5d6778; font: 500 11px 'Inter',system-ui,sans-serif; padding: 7px 11px; cursor: pointer; white-space: nowrap; }
.bench-data:hover { border-color: #bfc7d7; color: var(--color-navy); background: #f9fafd; }
.bench-table-wrap { overflow-x: auto; padding-bottom: 18px; }
.bench-table-wrap[hidden] { display: none; }
.bench-table { width: 100%; border-collapse: collapse; font-size: 11px; color: #556174; }
.bench-table th,.bench-table td { text-align: right; padding: 9px 5px; border-bottom: 1px solid #eef0f5; font-variant-numeric: tabular-nums; }
.bench-table th:first-child,.bench-table td:first-child { text-align: left; }
.bench-table th { font-weight: 500; color: #7a8391; }
.bench-table tr.is-rhemis { color: var(--color-navy); font-weight: 600; background: #f7f8fc; }
.bench-method { margin-top: 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; font-size: 11px; color: #7a8290; }
.bench-method > p { flex-shrink: 0; padding-top: 3px; }
.bench-method details { max-width: 590px; text-align: right; }
.bench-method summary { list-style: none; cursor: pointer; color: #5c6676; padding: 3px 0 8px; }
.bench-method summary::-webkit-details-marker { display: none; }
.bench-method summary span { margin-left: 6px; }
.bench-method-body { text-align: left; line-height: 1.8; padding: 15px 18px; border: 1px solid #e7eaf1; border-radius: 14px; background: white; color: #646e7e; }
.bench-method-body p + p { margin-top: 10px; }
.bench-sources a { text-decoration: underline; text-underline-offset: 3px; }
.bench-popover { position: fixed; z-index: 200; width: 310px; max-width: calc(100vw - 24px); border-radius: 17px; border: 1px solid #e1e5ed; background: rgba(255,255,255,.98); box-shadow: 0 8px 18px -10px #17223a25, 0 22px 60px -18px #17223a35; backdrop-filter: blur(18px); padding: 20px; color: #222d43; font-size: 12px; line-height: 1.65; animation: bench-appear .16s ease-out; }
.bench-popover[hidden] { display: none; }
.bench-popover h4 { font-size: 15px; font-weight: 600; letter-spacing: -.025em; line-height: 1.35; padding-right: 20px; }
.bench-popover .bench-config { color: #7a8391; font-size: 11px; margin-top: 5px; }
.bench-popover .bench-values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 15px 0; margin: 12px 0; border-block: 1px solid #edf0f5; }
.bench-values span { color: #7a8391; font-size: 10px; letter-spacing: .035em; }
.bench-values strong { display: block; color: var(--color-navy); font-size: 24px; font-weight: 500; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.bench-popover .bench-insight { color: #556174; font-size: 11px; }
.bench-popover .bench-provenance { margin-top: 11px; color: #8b93a0; font-size: 10px; }
.bench-popover .bench-formula { display: block; text-align: center; background: #f5f7fb; border: 1px solid #edf0f6; border-radius: 10px; margin: 14px 0 10px; padding: 12px 8px; font-size: 12px; color: var(--color-navy); font-weight: 500; }
.bench-popover .bench-definition { margin-top: 9px; color: #626e80; }
.bench-popover .bench-insight-metric { border-top: 1px solid #edf0f5; padding-top: 12px; margin-top: 12px; font-size: 11px; color: #556174; }
.bench-close { position: absolute; top: 12px; right: 12px; border: 0; background: #f4f5f8; color: #778190; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font: 16px system-ui; }
.bench-axis-help:focus-visible,.bench-data:focus-visible,.bench-close:focus-visible,.bench-method summary:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 3px; }
.bench-note { text-align: center; color: #697487; font-size: 12px; }
@keyframes bench-appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  #performance .performance-charts { grid-template-columns: 1fr; max-width: 560px; }
  .bench-legend,.bench-method { max-width: 560px; margin-inline: auto; }
  .bench-legend .bench-interact { display: none; }
  .bench-method { flex-direction: column; gap: 6px; }
  .bench-method details { text-align: left; }
}
@media (max-width: 440px) {
  .bench-card { padding: 22px 17px 0; border-radius: 20px; }
  .bench-plot { margin-top: 30px; }
  .bench-result p { font-size: 11px; max-width: 185px; }
  .bench-dot-label { font-size: 11px; bottom: 25px; }
  .bench-card-header h3 { font-size: 20px; }
  .bench-legend { gap: 18px; font-size: 11px; }
  .bench-tick { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .bench-popover { animation: none; }
  .bench-guide,.bench-dot::before { transition: none; }
}
