/* Mercury Alert identity, shared with the existing research page. No remote assets. */
:root {
  --ink: #13242d;
  --muted: #60737d;
  --paper: #fff;
  --teal: #246889;
  --mint: #eaf7ff;
  --claude: #7a8e9a;
  --line: #dce6eb;
  --dark: #123d53;
  --blue: #54aff5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.wrap { width: min(1180px, calc(100% - 72px)); }
.site-header { height: 82px; padding-inline: max(36px, calc((100vw - 1180px) / 2)); background: #fff; }
.brand { min-width: 0; gap: 20px; }
.brand-logo { display: block; width: 224px; height: auto; }
.brand-section { border-left: 1px solid var(--line); padding-left: 20px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.site-header nav { font-size: 12px; font-weight: 600; gap: 25px; }
.private-tag { border-radius: 999px; font-size: 9px; color: var(--teal); background: #f4faff; }
.private-tag > span { background: var(--blue); }
h1, h2, h3 { color: var(--teal); font-weight: 700; }
h1 { font-size: clamp(38px, 4.15vw, 58px); line-height: 1.12; letter-spacing: -.045em; }
h2 { letter-spacing: -.035em; }
.hero { padding-top: 62px; padding-bottom: 84px; position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0 calc((min(1180px, 100vw - 72px) - 100vw) / 2); z-index: -2; background: linear-gradient(115deg, #f9fdff, #eaf7ff); }
.hero::after { content: ""; position: absolute; width: 300px; height: 300px; top: 20px; right: 8%; border: 55px solid #54aff511; border-radius: 50%; z-index: -1; pointer-events: none; }
.hero > .eyebrow { color: var(--teal); font-family: inherit; font-weight: 750; font-size: 11px; letter-spacing: .1em; }
.hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 70px; margin-top: 32px; align-items: start; }
.hero h1 .highlight { color: var(--teal); }
.lede { color: #405d6b; font-size: 20px; line-height: 1.58; }
.hero-actions { flex-wrap: wrap; }
.button { min-height: 48px; padding-inline: 22px; font-size: 13px; font-weight: 750; border-radius: 5px; }
.benchmark-page { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
.bottom-actions { position: fixed; inset: auto 0 0; z-index: 1000; display: flex; justify-content: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fffffff5; border-top: 1px solid var(--line); box-shadow: 0 -6px 24px #174a6310; backdrop-filter: blur(12px); }
.bottom-actions .button { flex: 0 1 200px; min-width: 0; justify-content: center; padding-inline: 12px; white-space: nowrap; }
.benchmark-page :is(a, button, input, select) { scroll-margin-bottom: 110px; }
@media print { .bottom-actions { display: none; } .benchmark-page { padding-bottom: 0; } }
.primary:hover { background: #164d69; }
.text-link { border-color: #24688955; }
.hero-chart { background: #fffffff2; border-color: #24688920; border-radius: 18px; padding: 30px; box-shadow: 0 22px 55px #174a631c; }
.chart-top { color: var(--teal); font-family: inherit; font-weight: 750; font-size: 10px; }
.hero-bars { display: block; border: 0; height: auto; padding: 0; margin: 22px 0; }
.recall-row + .recall-row { margin-top: 20px; }
.recall-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: 14px; font-weight: 650; }
.recall-label strong { color: var(--teal); font-size: 28px; letter-spacing: -.03em; }
.recall-row .track { height: 12px; overflow: hidden; border-radius: 999px; background: #e8eff3; }
.recall-row .fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--blue)); }
.recall-row .fill.claude, .mini-bar.claude .fill { background: #9aaab3; }
.operating-chart-title { margin-top: 18px; }
.operating-bars .recall-label strong { font-size: 19px; }
.operating-bars .track { height: 9px; }
.operating-bars .fill { min-width: 4px; }
.delta-pill { display: inline-flex; gap: 5px; padding: 8px 13px; border-radius: 999px; color: var(--teal); background: #eaf7ff; font-size: 12px; font-weight: 650; }
.lede strong { color: var(--teal); }
.comparison-divider { height: 1px; margin: 24px 0; background: var(--line); }
.operating-kicker { font-size: 9px; font-weight: 700; letter-spacing: .08em; color: var(--teal); text-underline-offset: 4px; }
.hero-efficiency { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 15px; }
.hero-efficiency strong { display: block; color: var(--teal); font-size: 29px; }
.hero-efficiency span { display: block; color: var(--muted); font-size: 11px; }
.economics-card > strong { display: block; font-size: 45px; color: var(--teal); margin-top: 16px; }
#operating-metrics > .text-link, #paper-economics > .text-link { display: inline-block; margin-top: 15px; }
.hero-bar strong { color: var(--teal); font-weight: 750; }
.hero-bar .bar { background: linear-gradient(0deg, #246889, #54aff5); border-radius: 7px 7px 0 0; }
.hero-bar.claude .bar { background: linear-gradient(0deg, #708995, #9baeb8); }
.hero-bar.claude strong { color: #607783; }
.chart-bottom strong { color: var(--teal); font-weight: 750; }
.chart-bottom > span { max-width: 220px; }
.unit-note { max-width: 870px; padding-bottom: 5px; color: #526d7a; }
.unit-note strong { color: var(--teal); }
.facts { position: relative; z-index: 2; color: #fff; background: var(--teal); border-radius: 10px; border: 0; margin-top: -44px; box-shadow: 0 18px 45px #164d6938; }
.fact { padding: 23px !important; display: block; }
.fact + .fact { border-color: #ffffff30; }
.fact strong { font-weight: 750; font-size: 30px; }
.fact span { display: block; color: #d5edfb; margin-top: 3px; }
.section { padding-block: 76px; }
.section-heading .eyebrow { color: var(--teal); font-family: inherit; font-weight: 750; font-size: 10px; }
.panel, .scorecard { border-radius: 13px; background: #fff; }
.scorecard { background: #f4f8fa; }
.scorecard strong { color: var(--teal); font-weight: 750; }
.scorecard .opponent { color: #667d8a; }
.class-panel .panel-heading p, .matrix-panel .panel-heading p { color: var(--muted); }
.segmented button.active { background: var(--teal); color: #fff; }
.outcome-card { border-radius: 10px; background: #f8fbfd; }
.outcome-card:hover { background: #eaf7ff; }
.explorer-section { background: linear-gradient(145deg, #164d69, #102f43); --line: #ffffff26; --ink: #eff8ff; --muted: #b7cbd7; color: #eff8ff; }
.explorer-section h2, .explorer-section h3 { color: #fff; }
.explorer-section .eyebrow, .encoder-tag span { color: #85cbff; }
.explorer-section .section-heading p { color: #d0e2ec; }
.explorer-section .scope-control button.active { background: #eaf7ff; color: #164d69; }
.filter-group label, .filter-caption, .filter-caption > span, .globe-legend { color: #bdd4e3; }
.room-picker { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff05; }
.room-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.room-heading h3 { font-size: 17px; }
.room-heading .text-link { border-color: #80cbff66; }
.room-tabs { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.room-button { min-width: 0; padding: 13px 5px; border: 1px solid #ffffff30; border-radius: 7px; background: #163c53; text-align: center; }
.room-button strong { display: block; font-size: 12px; font-weight: 650; }
.room-button span { display: block; margin-top: 4px; font-size: 9px; color: #bdd4e3; }
.room-button:hover { border-color: #80cbff; background: #285c7b; }
.room-button.active { color: #164d69; background: #eaf7ff; border-color: #eaf7ff; }
.room-button.active span { color: #405d6b; }
.room-note { margin-top: 12px; font-size: 10px; color: #b7cbd7; line-height: 1.65; }
.source-id { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.secondary { color: var(--teal); border: 1px solid #24688955; background: transparent; }
.secondary:hover { background: #eaf7ff; }
.hero-actions { gap: 12px; }
.byline { margin-top: 20px; color: var(--muted); font-size: 12px; }
.byline a { color: var(--teal); font-weight: 650; text-underline-offset: 3px; }
#test-set { padding-bottom: 0; }
.composition-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.composition-card { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f4f8fa; }
.composition-card-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; }
.composition-card h3 { font-size: 14px; }
.composition-count { color: var(--teal); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.composition-card p { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.dataset-method { margin-top: 32px; padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); border-radius: 12px; background: #f4f8fa; }
.dataset-method .eyebrow { margin-bottom: 12px; }
.dataset-method h4 { margin-top: 24px; font-size: 16px; }
.dataset-method p, .selection-steps { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.selection-steps { padding-left: 22px; }
.selection-steps li + li { margin-top: 12px; }
.selection-steps strong { color: var(--ink); }
.expanded-results { margin-top: 40px; }
.expanded-results > p { margin: 12px 0 20px; max-width: 870px; color: var(--muted); font-size: 14px; }
.detail-table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.detail-table caption { text-align: left; padding: 15px; color: var(--muted); font-size: 11px; }
.detail-table td, .detail-table th { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: right; }
.detail-table th:first-child { text-align: left; }
.detail-table thead th { background: var(--teal); color: white; font-weight: 650; }
.detail-table tbody th { font-weight: 600; }
.detail-table tbody tr:nth-child(even) { background: #f8fbfc; }
.detail-table .focus-row { background: #eaf7ff!important; color: var(--teal); font-weight: 700; }
.detail-table .focus-row > th, .detail-table .focus-row > td { background: #eaf7ff; }
.detail-table .focus-row > th { box-shadow: inset 4px 0 var(--teal); }
.recall-advantage { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin: 18px 0 10px; color: var(--teal); }
.recall-advantage strong { font-size: 30px; letter-spacing: -1px; }
.recall-advantage span { font-size: 12px; font-weight: 650; }
.recall-definition { line-height: 1.7; }
.room-description-table { margin-top: 12px; }
.room-description-table .detail-table { min-width: 460px; }
.room-description-table th:nth-child(2), .room-description-table td:nth-child(2) { text-align: left; width: 68%; line-height: 1.65; }
.failure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.failure-card { padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: #f4f8fa; }
.failure-card p { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.75; }
.verified-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.verified-example { position: relative; padding: 0; text-align: left; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: white; box-shadow: 0 12px 28px #174a6310; }
.verified-example:hover { border-color: var(--blue); }
.verified-example img { width: 100%; aspect-ratio: 1.25; object-fit: contain; display: block; background: #102f43; }
.example-copy { padding: 22px; }
.example-copy .eyebrow { margin-bottom: 10px; color: var(--teal); }
.example-copy p { margin: 12px 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; }
.example-copy .example-result { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.example-status { display: inline-block; padding: 3px 7px; border-radius: 5px; font-weight: 600; white-space: nowrap; }
.example-match { color: #166534; background: #e4f5e8; }
.example-miss { color: #991b1b; background: #fee2e2; }
.demo-section { background: #f4f8fa; border-block: 1px solid var(--line); }
.demo-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 65px; align-items: center; }
.demo-grid h2 { margin-top: 16px; }
.demo-grid p { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 20px 0; }
.paper-callout { padding: 32px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.paper-callout h3 { margin-top: 15px; font-size: 25px; }
.paper-callout > a { display: table; margin-top: 18px; }
.explorer-section select, #find-image input { background: #163c53; border-color: #ffffff35; color: #fff; }
.explorer-layout { border-radius: 14px; }
.globe-shell { background: radial-gradient(ellipse at 50% 45%, #285c7b, #153c54 55%, #102f43); }
.live-dot { background: #80cbff; }
.orbit-guide { border-color: #80cbff26; }
.neighbor, .center-image, .gallery-image { background: #163c53; }
.center-image { border-radius: 12px; box-shadow: 0 0 0 8px #54aff516, 0 15px 45px #0005; }
.globe-status, .globe-bottom, .inspector-kicker, .truth-label, .image-meta dt { color: #b9d3e4; }
.layout-note, .private-image-note, .gallery-heading p, .gallery-copy small, .gallery-footer { color: #b2cadb; }
.image-inspector { background: #12364b; }
.image-meta dd, .image-meta code, .review-details, .review-details summary { color: #d4e8f5; }
.inspector-prediction small, .muted { color: #bdd5e3; }
.gallery-card { background: #173f57; border-color: #ffffff30; border-radius: 9px; }
.gallery-card:hover { border-color: #80cbff; }
.source-table th { color: #fff; background: var(--teal); font-weight: 650; }
.source-table tbody tr:nth-child(even) { background: #f5f9fb; }
.source-table tr:hover { background: #eaf7ff; }
.source-table td { padding-block: 14px; }
.table-scroll { border: 1px solid var(--line); border-radius: 12px; }
.method-section { background: #f4f8fa; }
.method-grid { gap: 32px; }
.method-grid p, .method-number, .run-footer { color: #60737d; }
.prompt-details, .method-grid article { border-color: #dce6eb; }
pre { background: #fff; }
.site-footer { padding-block: 30px; }
.site-footer .brand-logo { width: 200px; }
dialog { background: #102f43; border-color: #54aff560; }
@media (min-width: 1600px) { .hero h1 { font-size: 58px; } }
@media (max-width: 1100px) {
  .brand-section { display: none; }
  .site-header { padding-inline: 36px; }
  .hero-grid { gap: 28px; grid-template-columns: minmax(0, 1.4fr) minmax(270px, 1fr); }
  .room-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .composition-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { height: 72px; padding-inline: 18px; gap: 12px; }
  .brand-logo { width: 190px; }
  .private-tag { font-size: 8px; letter-spacing: .3px; padding: 6px 9px; }
  .hero { padding-top: 30px; }
  .hero::before { inset-inline: -18px; }
  .hero::after { width: 180px; height: 180px; right: 0; border-width: 35px; }
  .hero > .eyebrow { font-size: 9px; letter-spacing: .04em; flex-wrap: wrap; }
  .hero-date { font-size: 8px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 24px; }
  h1 { font-size: 39px; letter-spacing: -.045em; }
  .lede { font-size: 17px; }
  .hero-chart { padding: 24px; }
  .hero-bars { height: auto; }
  .room-picker { padding: 14px 12px; }
  .room-tabs { gap: 7px; }
  .room-button { padding: 11px 3px; }
  .room-button strong { font-size: 11px; }
  .room-button span { font-size: 8px; }
  .room-heading .text-link { font-size: 10px; }
  .composition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .composition-card { padding: 12px; }
  .failure-grid, .verified-examples, .demo-grid { grid-template-columns: 1fr; }
  .demo-grid { gap: 30px; }
  .paper-callout { padding: 24px; }
  .fact { padding: 18px !important; }
  .fact:nth-child(3), .fact:nth-child(4) { border-top-color: #ffffff30; }
  .fact strong { font-size: 27px; }
  .section { padding-block: 50px; }
  .method-grid { gap: 20px; }
}

.dataset-download { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 0 0 28px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.dataset-download-copy { min-width: 0; max-width: 720px; }
.dataset-download h3 { margin: 0 0 8px; font-size: 21px; }
.dataset-download p { margin: 0; font-size: 14px; }
.dataset-download .small-note { margin-top: 8px; font-size: 12px; }
.dataset-download .button { flex-shrink: 0; }
@media (max-width: 760px) { .dataset-download { align-items: stretch; flex-direction: column; gap: 18px; padding: 20px; } }
.explorer-section .dataset-download h3 { color: var(--teal); }
.explorer-section .dataset-download p { color: #385565; }
.explorer-section .dataset-download .small-note { color: #60737d; }
[hidden] { display: none !important; }
.dataset-download-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.explorer-section .outcome-card { color: #173e52; margin-bottom: 24px; }
.explorer-section .outcome-card span, .explorer-section .outcome-card strong { color: #246889; }
.explorer-section .outcome-card small { color: #385565; }
.explorer-section .example-copy h3 { color: #246889; }
.explorer-section .example-copy p { color: #385565; }
.explorer-section .example-copy .text-link { color: #246889; }
#study-results { padding-bottom: 28px; }
#study-results .section-intro { max-width: 86ch; }
#study-results + #results { padding-top: 28px; }
.economics-method { margin-top: 32px; }
.economics-method h3 { margin-bottom: 14px; }
.economics-method h4 { margin: 24px 0 10px; }
.economics-method p { margin: 12px 0; color: #385565; line-height: 1.65; }
.economics-method .table-scroll { margin: 20px 0; }
.economics-method .calculation { padding: 16px 20px; border-left: 3px solid #52adff; background: #eff8fd; color: #173e52; border-radius: 0 8px 8px 0; }
.globe.traveling { cursor: grab; }
.globe.dragging, .globe.dragging.traveling { cursor: grabbing; }
.neighbor.travel-target { outline: 3px solid #fff; outline-offset: 4px; }

/* Full collection globe: no pinned image or replacement neighborhoods. */
.dataset-globe { background: radial-gradient(circle at center,#285c7b55,transparent 68%); }
.dataset-globe .neighbor { border-radius: 6px; box-shadow: 0 3px 12px #0005; }
.dataset-globe .neighbor.selected { outline: 2px solid white; outline-offset: 2px; }
.dataset-globe .globe-status { z-index: 1100; background: #102f43df; border-radius: 5px; padding: 7px 10px; }
.selected-preview { display: block; width: 100%; padding: 0; margin: 0 0 18px; background: #102f43; border: 1px solid #628599; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.selected-preview img { display: block; width: 100%; max-height: 220px; object-fit: contain; }
.similarity-toggle { display:flex; align-items:center; gap:8px; font:11px 'Manrope',sans-serif; letter-spacing:0; cursor:pointer; }
.similarity-toggle input { appearance:none; width:32px; height:18px; border-radius:12px; background:#3a5b70; border:1px solid #83a4b8; position:relative; cursor:pointer; flex-shrink:0; }
.similarity-toggle input::after { content:''; position:absolute; width:12px; height:12px; border-radius:50%; background:white; top:2px; left:2px; transition:transform .15s; }
.similarity-toggle input:checked { background:#2389ca; }
.similarity-toggle input:checked::after { transform:translateX(14px); }
.similarity-toggle input:focus-visible { outline:2px solid white; outline-offset:3px; }
.spacing-note { margin:0; padding:0 20px 8px; color:#b9d3e4; font-size:10px; line-height:1.5; }
@media(max-width:760px){.globe-top{flex-wrap:wrap}.similarity-toggle{font-size:10px}.spacing-note{padding-inline:12px}}

.dataset-globe .neighbor:hover, .dataset-globe .neighbor:focus-visible, .dataset-globe .neighbor.selected { outline-offset: -2px; }
.globe-bottom { flex-wrap:wrap; }
.image-size-control { display:flex; align-items:center; gap:9px; white-space:nowrap; }
.image-size-control input { width:100px; accent-color:#6bc4ff; cursor:pointer; }

#demo { margin-top:28px; scroll-margin-top:20px; }
.demo-copy h2 { font-size:clamp(28px,3vw,38px); line-height:1.18; }
.demo-copy p { max-width:48ch; }
.demo-player { display:flex; justify-content:center; min-width:0; }
.demo-player video { display:block; width:auto; height:auto; max-width:100%; max-height:min(680px,78vh); background:#102f43; border-radius:16px; box-shadow:0 15px 45px #164d6920; }
.demo-data-links { display:flex; flex-wrap:wrap; gap:12px 24px; margin-top:24px; font-size:12px; }
@media(max-width:760px){#demo{scroll-margin-top:0}.demo-player video{max-height:72vh}.demo-copy h2{font-size:28px}}

/* Keep each globe tile visible while its private image URL and bytes load. */
.dataset-globe .neighbor.image-loading > img,
.dataset-globe .neighbor.image-failed > img { opacity: 0; }
.dataset-globe .image-placeholder { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; color: #96c9e7; background: linear-gradient(110deg, #1c4963 20%, #326783 45%, #1c4963 70%); background-size: 220% 100%; animation: globe-placeholder-shimmer 1.8s ease-in-out infinite; }
.dataset-globe .image-placeholder svg { width: 36%; max-width: 32px; height: auto; opacity: .75; }
@keyframes globe-placeholder-shimmer { from { background-position: 160% 0; } to { background-position: -60% 0; } }
@media (prefers-reduced-motion: reduce) { .dataset-globe .image-placeholder { animation: none; } }

#demo-modal { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 18px; border-radius: 16px; color: #fff; }
.demo-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.demo-modal-header h2 { margin: 0; font-size: 18px; line-height: 1.35; color: #fff; }
#close-demo-modal { flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 6px; background: #ffffff12; color: #fff; font-size: 28px; line-height: 1; }
.demo-modal-player { display: flex; justify-content: center; }
.demo-modal-player video { display: block; width: auto; height: auto; max-width: 100%; max-height: min(640px, 72dvh); border-radius: 10px; background: #102f43; }

@media(max-width:460px){
  .scorecards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .scorecard { min-width: 0; padding: 16px 12px; }
  .scorecard .values { flex-wrap: wrap; column-gap: 6px; row-gap: 2px; }
  .scorecard strong { font-size: 24px; }
  .scorecard .opponent { font-size: 15px; }
}
