@scope (.rx-native){
:scope{--sans:"Source Sans 3",sans-serif;--serif:Manrope,sans-serif;--serif-weight:550;--mono:"Source Sans 3",sans-serif;--ink:#242447;--ink-2:#525779;--ink-3:#64667b;--brand:#454a73;--brand-deep:#343474;--brand-soft:#b2b1d3;--brand-wash:#e8e5f2;--accent:#d47b48;--line:#d4d1dc;--line-2:#bcb8d0;--surface:#fff;--surface-alt:#f7f6fa;--r-lg:4px;--r-md:4px;--shadow-sm:none;--shadow-md:none;--ease-out:ease;}
.find-stack{display:flex;flex-direction:column;gap:clamp(1.4rem,3vw,2.2rem)}
.finding{
  display:grid;grid-template-columns:1.02fr .98fr;align-items:stretch;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  overflow:hidden;box-shadow:var(--shadow-sm);
  transition:transform .5s var(--ease-out),box-shadow .5s var(--ease-out),border-color .3s;
}
.finding:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:var(--line-2)}
/* alternate the figure side for rhythm */
.finding:nth-child(even) .finding-fig{order:2;border-left:1px solid var(--line);border-right:0}
.finding-fig{
  background:radial-gradient(120% 120% at 30% 20%,#FFFFFF,#F5F7FA);
  border-right:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;
  padding:clamp(1rem,2.5vw,2rem);position:relative;min-height:320px;
}
.finding-fig .plot{width:100%;aspect-ratio:16/10;display:block;position:relative}
.figure-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.figure-fallback>img{display:block;width:100%;height:100%;object-fit:contain}
.plot.is-rendered>.figure-fallback{display:none}
.finding-fig--erdos{padding-inline:clamp(.65rem,1.2vw,1.15rem)}
.finding-fig svg{display:block}
.finding-fig .plot>svg{width:100%;height:100%}
.finding-body{
  padding:clamp(1.6rem,3vw,2.6rem);display:flex;flex-direction:column;flex:1;
  justify-content:center;
}
.finding .tag{font-family:var(--mono);font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);margin-bottom:.9rem}
.finding h3{font-family:var(--serif);font-size:clamp(1.5rem,2.4vw,2rem);font-weight:var(--serif-weight);letter-spacing:-0.02em;line-height:1.12;margin-bottom:.7rem}
.finding h3.single-line-title{font-size:clamp(1.35rem,2.1vw,1.85rem);white-space:nowrap}
@media(max-width:520px){
  .finding h3.single-line-title{white-space:normal}
  .finding-fig,.finding-fig--erdos{padding:.5rem}
  .finding-fig .plot{aspect-ratio:6/5}
}
.finding .headline{font-size:1.08rem;color:var(--ink);font-weight:500;margin:0 0 .7rem;font-variant-numeric:tabular-nums;line-height:1.4}
.finding .headline b{color:var(--brand-deep)}
.finding .headline em{font-style:italic;color:var(--brand-deep)}
.finding p{font-size:.96rem;color:var(--ink-2);margin:0;line-height:1.6;max-width:none}
.finding p em{font-style:italic;color:var(--ink)}
.finding .prov{
  margin-top:1.3rem;padding-top:1rem;font-family:var(--mono);font-size:.8rem;color:var(--ink-3);
  display:flex;flex-wrap:wrap;gap:.5rem 1.2rem;align-items:center;border-top:1px solid var(--line);
}
.finding .prov .delta{color:#1a8a4a;font-weight:500}
.finding .prov .proof-link{margin-left:auto;color:var(--brand);font-weight:600;text-decoration:none}
.finding .prov .proof-link:hover{text-decoration:underline;text-underline-offset:3px}
/* the kissing finding spans the whole row: the three constructions on top,
   the explanation beneath — matching the paper's figure layout */
.finding--wide{grid-template-columns:1fr}
.finding--wide .finding-fig{
  order:0;border-right:0;border-bottom:1px solid var(--line);
  min-height:0;padding:clamp(1.2rem,2.5vw,2rem) clamp(1rem,3vw,2.4rem);
}
.finding--wide .finding-fig .plot{width:100%;aspect-ratio:auto}
.finding--wide .finding-body{padding-top:clamp(1.3rem,2.5vw,1.8rem)}
.kiss3{display:flex;gap:14px;width:100%;justify-content:center;align-items:flex-start}
.kiss-panel{margin:0;flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center}
.kiss-panel canvas{display:block;max-width:100%}
.kiss-panel figcaption{
  margin-top:.5rem;text-align:center;font-family:var(--sans);font-size:.92rem;color:var(--ink-2);line-height:1.35;
}
.kiss-panel figcaption b{display:block;color:var(--ink);font-weight:600;font-size:1rem}
.kiss-panel figcaption span{font-family:var(--mono);font-size:.82rem;color:var(--ink-3)}
.kiss-legend{
  display:flex;flex-wrap:nowrap;gap:.3rem clamp(.35rem,.8vw,.7rem);justify-content:center;
  margin-top:1.1rem;font-family:var(--mono);font-size:clamp(.72rem,.88vw,.8rem);color:var(--ink-2);
}
.kiss-legend span{display:inline-flex;align-items:center;gap:.3em;white-space:nowrap}
.kiss-legend i{width:9px;height:9px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.kiss-figure-title{margin-top:.75rem;text-align:center;font-family:var(--sans);font-size:.9rem;font-weight:600;color:var(--ink)}
.kissing-paper-mobile{display:none}
.kissing-paper-panel{
  position:relative;width:100%;aspect-ratio:340/365;overflow:hidden;background:#fff
}
.kissing-paper-panel img{
  position:absolute;top:0;left:0;display:block;width:300%;max-width:none;height:auto;
  pointer-events:none;user-select:none
}
.kissing-paper-panel:nth-child(2) img{left:-100%}
.kissing-paper-panel:nth-child(3) img{left:-200%}
@media(max-width:820px){
  .finding{grid-template-columns:1fr}
  .finding:nth-child(even) .finding-fig{order:0;border-left:0;border-right:0}
  .finding-fig{border-right:0;border-bottom:1px solid var(--line);min-height:0}
  .finding-fig .plot{max-width:520px}
  .finding--wide .finding-fig .plot{max-width:none}
  .finding-fig .plot.plot--static-svg{aspect-ratio:auto;overflow:hidden}
  .finding-fig .plot.plot--static-svg>svg{width:100%;height:auto;overflow:hidden}
  .kiss3{flex-direction:column;gap:1.4rem;align-items:center}
  /* Keep the static publication panels authoritative on mobile, including
     when a browser has retained the pre-mobile figure renderer. */
  .plot[data-fig="kissing"]>.kiss3,
  .plot[data-fig="kissing"]>.kiss-legend,
  .plot[data-fig="kissing"]>.kiss-figure-title{display:none}
  .kissing-paper-mobile{
    display:flex;flex-direction:column;gap:.8rem;width:min(100%,380px);margin-inline:auto
  }
  .kissing-paper-mobile .kiss-legend{margin-top:.35rem}
  .kissing-paper-mobile .kiss-figure-title{margin-top:0}
  .kiss-legend{justify-content:space-between;font-family:var(--sans);font-size:.64rem;gap:.2rem .25rem;letter-spacing:-.015em}
  .kiss-legend i{width:8px;height:8px}
}
@media(max-width:750px){.kiss-legend{flex-wrap:wrap;justify-content:center;font-size:.72rem}.kiss-legend i{width:9px;height:9px}}


}

.research-explorer .native-figure-title{margin:0 0 1rem;font:600 18px/1.4 Manrope,sans-serif;color:#242447;text-align:center}

/* Match the SVG box to its viewBox, avoiding centered blank side gutters. */
.research-explorer .rx-native .finding-fig .plot.plot--static-svg{aspect-ratio:auto}
.research-explorer .rx-native .finding-fig .plot.plot--static-svg>svg{width:100%;height:auto}
