.cr-ref {
  color: var(--ink, #202421);
  padding: clamp(36px, 6vw, 76px) 0 clamp(40px, 5vw, 72px);
}
.cr-ref *, .cr-ref *::before, .cr-ref *::after { box-sizing: border-box; }
.ref-intro { max-width: 750px; margin: 0 0 34px; }
.ref-intro h1 { margin: 0 0 14px; font-size: clamp(2.45rem, 5vw, 4.3rem); font-weight: 600; line-height: 1.02; letter-spacing: -.059em; }
.ref-intro p, .ref-description, .ref-conclusion, .ref-notes p {
  margin: 0; color: var(--muted, #505754); line-height: 1.65; max-width: 73ch;
}
.ref-intro p { font-size: clamp(1rem, 1.5vw, 1.125rem); }
.ref-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.ref-filters, .ref-links { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.ref-filter, .ref-search {
  min-height: 40px; border: 1px solid var(--line, #d5d6d0); border-radius: 5px; background: white;
  color: var(--ink, #202421); font: inherit; font-size: .875rem;
}
.ref-filter { padding: 8px 14px; cursor: pointer; }
.ref-filter:hover { border-color: #8b8e83; }
.ref-filter[aria-pressed="true"] { background: var(--ink, #202421); border-color: var(--ink, #202421); color: #fff; }
.ref-search { padding: 8px 12px; width: min(220px, 100%); }
.ref-results, .ref-file, .ref-type, .ref-table, .ref-stat dt {
  font-family: var(--mono, ui-monospace, Consolas, monospace);
}
.ref-results { margin: 22px 0 10px; font-size: .78rem; color: var(--muted, #505754); }
.ref-list, .ref-chart { overflow: hidden; border: 1px solid var(--line, #d5d6d0); border-radius: 10px; background: #fff; }
.ref-list > * + * { border-top: 1px solid var(--line, #d5d6d0); }
.ref-doc summary {
  position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 12px;
  align-items: center; gap: 16px; list-style: none; cursor: pointer; padding: 17px 22px;
}
.ref-doc summary::-webkit-details-marker { display: none; }
.ref-doc summary:hover, .ref-doc[open] summary { background: #f6f6f1; }
.ref-doc-icon {
  display: block; width: 19px; height: 23px; border: 1.5px solid #6c736c;
  border-radius: 3px; position: relative;
}
.ref-doc-icon::after {
  content: ''; position: absolute; width: 8px; height: 5px; left: 4px; top: 8px;
  border-top: 1.5px solid #6c736c; border-bottom: 1.5px solid #6c736c;
}
.ref-identity { display: grid; gap: 4px; min-width: 0; }
.ref-doc-title { font-size: 1rem; line-height: 1.35; font-weight: 600; }
.ref-file, .ref-type { font-size: .73rem; color: var(--muted, #505754); overflow-wrap: anywhere; }
.ref-chevron { width: 7px; height: 7px; border: solid #5d645c; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.ref-doc[open] .ref-chevron { transform: rotate(225deg); }
.ref-preview { padding: 20px clamp(16px, 5vw, 64px) 25px; }
.ref-preview h2, .ref-chart h2, .ref-notes h2 { margin: 0 0 9px; font-size: 1.35rem; font-weight: 600; line-height: 1.2; letter-spacing: -.035em; }
.ref-preview h2 { font-size: 1.06rem; }
.ref-preview p { color: var(--muted, #505754); white-space: pre-line; word-break: break-word; font-size: .94rem; line-height: 1.6; margin: 4px 0; max-width: 78ch; }
.ref-link { color: #9f411e; text-decoration: underline; text-underline-offset: .24em; font-size: .875rem; }
.ref-link:hover { color: #743112; }
.ref-preview .ref-link { display: inline-block; margin-top: 12px; }
.ref-empty { padding: 22px; margin: 0; }
.ref-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line, #d5d6d0); margin: 0 0 28px; }
.ref-stat { padding: 20px 24px; }
.ref-stat:first-child { padding-left: 0; }
.ref-stat + .ref-stat { border-left: 1px solid var(--line, #d5d6d0); }
.ref-stat dt { color: var(--muted, #505754); font-size: .78rem; }
.ref-stat dd { margin: 6px 0 0; font-size: clamp(1.45rem, 4.5vw, 2.55rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.12; font-variant-numeric: tabular-nums; }
.ref-chart { padding: clamp(16px, 3vw, 34px); }
.ref-table { width: 100%; margin: 18px 0; border-collapse: collapse; table-layout: fixed; font-size: .84rem; }
.ref-table th, .ref-table td { border-bottom: 1px solid var(--line, #d5d6d0); text-align: left; padding: 13px 8px; font-weight: 400; }
.ref-table th:first-child { width: 29%; padding-left: 0; }
.ref-table th:last-child, .ref-table td:last-child { width: 16%; text-align: right; padding-right: 0; }
.ref-table thead th { color: var(--muted, #505754); font-size: .75rem; }
.ref-score { display: grid; grid-template-columns: minmax(12px, 1fr) 6.5ch; align-items: center; gap: 14px; font-variant-numeric: tabular-nums; }
.ref-score span { text-align: right; }
.ref-meter { appearance: none; border: 0; border-radius: 4px; background: #eaeae4; display: block; width: 100%; height: 7px; }
.ref-meter::-webkit-meter-bar { height: 7px; border: 0; border-radius: 4px; background: #eaeae4; }
.ref-meter::-webkit-meter-optimum-value { border-radius: 4px; background: #b14b2a; }
.ref-meter::-moz-meter-bar { border-radius: 4px; background: #b14b2a; }
.ref-conclusion, .ref-notes p, .ref-description { font-size: .94rem; }
.ref-notes { margin-top: 27px; max-width: 80ch; }
.ref-links { gap: 12px 23px; margin-top: 13px; }
.ref-endpoint, .ref-case-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 14px; }
.ref-endpoint-url, .ref-case-controls select {
  border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); min-height: 40px;
  padding: 8px 10px; font: inherit; font-size: .875rem; width: 100%; min-width: 0;
}
.ref-endpoint-url { flex: 1 1 245px; font: .84rem var(--mono); }
.ref-copy-status { display: block; margin-top: 6px; font-size: .85rem; color: var(--muted); }
.ref-comparison .ref-link { display: inline-block; margin-top: 13px; }
.ref-comparison-table th:first-child { width: 48%; }
.ref-comparison-table th:nth-child(n+2), .ref-comparison-table td { width: 26%; text-align: right; }
.ref-cases { margin-top: 16px; }
.ref-case-controls label { color: var(--muted); font-size: .83rem; font-weight: 550; min-width: 0; }
.ref-case-controls label:first-child { flex: 1 1 155px; }
.ref-case-controls label:last-child { flex: 3 1 330px; }
.ref-case-controls select { display: block; margin-top: 4px; text-overflow: ellipsis; font-weight: 400; }
.ref-case-detail { margin-top: 21px; padding-top: 20px; border-top: 1px solid var(--line); }
.ref-case-labels h3 { margin: 0; font-size: 1.06rem; font-weight: 600; line-height: 1.45; }
.ref-case-detail h4 { margin: 11px 0 4px; font-size: .88rem; font-weight: 600; }
.ref-case-labels p, .ref-case-outcome p { margin: 3px 0; font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.ref-case-labels .ref-case-kind { margin: 4px 0 10px; font: .76rem var(--mono); }
.ref-fragments { margin: 0; padding-left: 18px; font: .8rem/1.6 var(--mono); overflow-wrap: anywhere; }
.ref-case-outcomes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.ref-case-outcome { background: #f6f6f1; border-radius: 6px; padding: 13px 16px; min-width: 0; }
.ref-case-outcome h4 { margin: 0 0 6px; }
.ref-case-retrieved { margin-top: 7px; font-size: .83rem; }
.ref-case-retrieved summary { cursor: pointer; color: #934019; width: fit-content; }
.ref-case-retrieved ol { margin: 5px 0 0; padding-left: 24px; overflow-wrap: anywhere; font: .75rem/1.6 var(--mono); }
.ref-case-retrieved blockquote { margin: 8px 0 3px; border-left: 2px solid var(--line); padding-left: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ref-case-retrieved h5 { margin: 10px 0 3px; font-size: .85rem; }
.ref-answer-controls { max-width: 265px; }
.ref-section-heading { margin: 35px 0 18px; }
.ref-section-heading h2 { margin: 0 0 6px; font-size: 1.45rem; font-weight: 600; letter-spacing: -.035em; }
.ref-chart h3 { margin: 0 0 8px; font-size: 1.14rem; font-weight: 600; }
.cr-ref :is(a,button,input,summary):focus-visible { outline: 2px solid #9f411e; outline-offset: 2px; }
.cr-ref summary:focus-visible { outline-offset: -3px; }
.ref-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .ref-intro { margin-bottom: 24px; }
  .ref-controls { display: grid; }
  .ref-search { width: 100%; }
  .ref-filter { padding: 7px 9px; }
  .ref-filters { gap: 5px; }
  .ref-doc summary { grid-template-columns: 18px minmax(0, 1fr) 9px; gap: 11px; padding: 14px; }
  .ref-doc-icon { width: 16px; height: 20px; }
  .ref-type { display: none; }
  .ref-stat, .ref-stat:first-child { padding: 15px 8px; }
  .ref-stat dt { font-size: .7rem; }
  .ref-table { font-size: .75rem; }
  .ref-table th:first-child { width: 35%; }
  .ref-table th, .ref-table td { padding: 12px 3px; }
  .ref-table thead th { font-size: .68rem; }
  .ref-score { gap: 4px; }
  .ref-comparison-table th:first-child { width: 44%; }
  .ref-comparison-table th:nth-child(n+2), .ref-comparison-table td { width: 28%; }
  .ref-case-controls { display: grid; grid-template-columns: minmax(0,1fr); }
  .ref-case-outcomes { grid-template-columns: minmax(0,1fr); }
}
