/* EQUUS: an editorial research interface in the Cavall type and accent system. */
:root {
  /* Fluid type unit: 1px up to a 1280px-wide window, growing steadily to 1.4px on
     very large screens. Every font size (and text measure) is a multiple of it, so
     type scales uniformly with the screen. */
  --u: clamp(1px, calc(0.36px + 0.05vw), 1.4px);
  --ink: #152d50;
  --muted: #52617b;
  --accent: #355da0;
  --accent-soft: #edf3fc;
  --paper: #ffffff;
  --surface: #ffffff;
  --line: #e1e6ed;
  --max-width: calc(1320 * var(--u));
  --nav-height: 84px;
}
* { box-sizing: border-box; }
html { font-size: calc(16 * var(--u)); }
body, body.intro-nerfies {
  display: block;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  line-height: 1.55;
}
a { color: var(--accent); }
:focus-visible { outline: 3px solid #537bbb; outline-offset: 4px; }
h1, h2 { font-family: "GFS Didot", Georgia, serif; font-weight: 400; letter-spacing: -.035em; color: var(--ink); }
h1 { font-size: clamp(calc(36 * var(--u)), 4.4vw, calc(60 * var(--u))); line-height: 1.08; }
h2 { font-size: calc(40 * var(--u)); line-height: 1.17; }
h3 { color: var(--ink); font-weight: 600; letter-spacing: -.025em; }
p { color: var(--muted); }
.container, .container.intro-nerfies__main {
  max-width: var(--max-width);
  width: calc(100% - 80px);
  margin: 0 auto;
  padding: 54px 0 80px;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  min-height: calc(100vh - 190px);
  font-family: inherit;
}
.eyebrow { font: 600 calc(11 * var(--u))/1.6 "Plus Jakarta Sans", sans-serif; letter-spacing: .17em; text-transform: uppercase; color: #49658b; margin: 0 0 24px; }
.landing-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 550px; padding: 50px 0 84px; }
.landing-hero::before { content: ""; position: absolute; inset: 0 0 0 46%; background: url('../img/chemical-field.svg') center / cover; opacity: .85; z-index: -1; }
.hero-copy { max-width: calc(850 * var(--u)); }
.landing-hero h1 { font-size: clamp(calc(46 * var(--u)), 5.6vw, calc(78 * var(--u))); line-height: 1.1; margin: 0 0 28px; }
.landing-hero h1 em { color: var(--accent); font-weight: 400; }
.hero-description { max-width: calc(530 * var(--u)); font-size: calc(18 * var(--u)); line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.action { display: inline-flex; align-items: center; justify-content: center; gap: 32px; padding: 14px 24px; font-size: calc(14 * var(--u)); font-weight: 600; text-decoration: none; border: 1px solid transparent; border-radius: 3px; transition: background .18s; }
.action.primary { background: #355da0; color: #fff; }
.action.primary:hover { background: #28497f; }
.action.secondary { border-color: #c4d0e2; color: var(--ink); background: transparent; }
.action.secondary:hover { background: #f5f8fe; }
.hero-note { font-size: calc(12 * var(--u)); margin-top: 24px; color: #62718a; }
.discovery-strip { display: grid; grid-template-columns: repeat(3,1fr); padding: 32px 42px; background: #182e51; color: #ffffff; }
.discovery-strip > div { border-left: 1px solid #4c535c; padding-left: 36px; }
.discovery-strip > div:first-child { padding-left: 0; border: 0; }
.discovery-strip strong { display: block; font: calc(36 * var(--u))/1.3 "GFS Didot", Georgia, serif; }
.discovery-strip span { display: block; font-size: calc(12 * var(--u)); margin-top: 7px; color: #b9c3ce; }
.workflow-section { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding: 86px 0; }
.workflow-section h2 { font-size: calc(45 * var(--u)); margin-top: 0; }
.workflow-steps > a { display: flex; gap: 24px; padding: 25px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: calc(13 * var(--u)); }
.workflow-steps > a:first-child { padding-top: 0; }
.workflow-steps h3 { font-size: calc(20 * var(--u)); margin: 0 0 8px; }
.workflow-steps p { font-size: calc(15 * var(--u)); line-height: 1.75; margin: 0; }
.workflow-steps > a > span:last-child { margin-left: auto; color: var(--accent); font-size: calc(22 * var(--u)); }
.research-section { padding: 44px 48px; border: 1px solid var(--line); background: #edf3fc; border-left: 3px solid #ba8747; }
.intro-nerfies__main .intro-hero { text-align: left; max-width: none; margin-left: 0; margin-right: 0; }
.intro-nerfies__main .publication-title { font: 400 calc(30 * var(--u))/1.3 "GFS Didot",Georgia,serif; color: var(--ink); text-align: left; margin: 0 0 24px; max-width: calc(900 * var(--u)); }
.intro-nerfies__main .publication-meta { text-align: left; margin: 0; padding: 0; border: 0; }
.intro-nerfies__main .publication-authors { font: calc(14 * var(--u))/1.8 "Plus Jakarta Sans",sans-serif; color: var(--muted); text-align: left; }
.publication-authors a { color: #40566e !important; }
.intro-nerfies__main .publication-venue { font-size: calc(13 * var(--u)); text-align: left; color: var(--muted); }
.intro-nerfies__main .publication-links { justify-content: flex-start; gap: 10px; }
.intro-nerfies__main .link-button { color: #35465b; border: 1px solid #b9cce6; border-radius: 3px; background: transparent; padding: 9px 15px; font-size: calc(13 * var(--u)); }
.intro-nerfies__main .intro-section { padding: 54px 0; margin: 0; border-bottom: 1px solid var(--line); }
.intro-nerfies__main .intro-section h2 { font-size: calc(34 * var(--u)); color: var(--ink); }
.intro-nerfies__main .intro-section p, .intro-nerfies__main .intro-section li { color: var(--muted); font-size: calc(16 * var(--u)); line-height: 1.85; max-width: calc(940 * var(--u)); }
.intro-nerfies__main .intro-figure-wrap { overflow: hidden; background: #ffffff; padding: 24px; }
.intro-nerfies__main .intro-figure { max-width: 100%; transform: none !important; mix-blend-mode: multiply; }
.intro-nerfies__main .intro-caption { color: #52617b; }
.workspace-heading { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px 60px; padding: 0 0 38px; margin: 0; }
.workspace-heading .eyebrow { grid-column: 1/-1; margin-bottom: 6px; }
.workspace-heading h1 { margin: 0; font-size: clamp(calc(28 * var(--u)), 3vw, calc(46 * var(--u))); }
.workspace-heading > p:last-child { max-width: calc(390 * var(--u)); font-size: calc(15 * var(--u)); margin: 0 0 0 auto; align-self: end; line-height: 1.8; }
.explore-tabs { display: flex; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; }
.explore-tabs button { background: transparent; color: #616971; border: 0; border-radius: 3px; padding: 11px 18px; font: 500 calc(13 * var(--u)) "Plus Jakarta Sans",sans-serif; }
.explore-tabs button:hover { background: var(--accent-soft); }
.explore-tabs button[aria-selected=true] { background: #234b80; color: #fff; }
.tab-caption { font-size: calc(11 * var(--u)); opacity: .65; margin-left: 5px; }
.explore-panel { padding-top: 24px; }
.explore-panel[hidden] { display: none; }
.scroll-cue { position: fixed; right: 28px; bottom: 28px; z-index: 20; display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 6px 20px rgba(20, 34, 59, .08); color: var(--ink); font: 600 calc(11 * var(--u))/1 "Plus Jakarta Sans",sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: opacity .3s ease, transform .3s ease; }
.scroll-cue:hover { color: #4267ac; }
.scroll-cue:focus-visible { outline: 2px solid #4267ac; outline-offset: 3px; }
.scroll-cue.is-hidden { opacity: 0; transform: translateY(8px); pointer-events: none; }
.scroll-cue span { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); animation: scroll-cue-bob 1.6s ease-in-out infinite; }
@keyframes scroll-cue-bob { 50% { transform: translateY(1px) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }
.explore-panel iframe { display: block; width: 100%; height: 780px; background: var(--paper); border: 0; border-radius: 0; box-shadow: none; margin: 0; }
.signin-panel { max-width: calc(640 * var(--u)); margin: auto; padding: 70px 0 100px; }
.signin-panel p { max-width: calc(520 * var(--u)); }
button { background: #355da0; border-radius: 4px; font-family: inherit; }
button:hover { background: #28497f; }
.container > h1 { margin: 0 0 26px; }
iframe { box-shadow: none; }
.smiles-input { gap: 10px; margin-bottom: 18px; }
.smiles-input input { background: #ffffff; border-color: #ced9ea; color: var(--ink); }
#ifKetcher { background: #ffffff; border: 1px solid #cbd8eb; border-radius: 4px; }
.ketcher-example-banner { color: #52617b; font-size: calc(13 * var(--u)); padding: 10px 0; }
.step-runner-panel, .sdf-step-toggles { background: transparent; color: var(--ink); border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 22px 0; box-shadow: none; }
.step-runner-toggle, .step-runner-select, .step-runner-mode-option, .step-runner-field input, .sdf-step-option { background-color: #edf3fc; border-color: #cbd8eb; box-shadow: none; }
.result, .result-card, .result-group, .result-card-body { background: #edf3fc; color: var(--ink); border-color: #cbd8eb; box-shadow: none; }
.result { border-left-color: #5079b6; }
.table-container, .my-results { background: transparent; box-shadow: none; }
.result-table th, .result-table td { border-color: #cbd8eb; }
@media(max-width: 760px) {
  .container, .container.intro-nerfies__main { width: calc(100% - 40px); padding-top: 32px; }
  .landing-hero { padding: 30px 0 55px; min-height: 470px; }
  .landing-hero h1 { font-size: calc(48 * var(--u)); }
  .landing-hero::before { inset: 0; opacity: .35; }
  .hero-description { font-size: calc(16 * var(--u)); }
  .discovery-strip { padding: 24px; gap: 22px; grid-template-columns: 1fr; }
  .discovery-strip > div { border: 0; padding: 0; }
  .workflow-section { grid-template-columns: 1fr; padding: 50px 0; gap: 26px; }
  .workflow-section h2 { font-size: calc(38 * var(--u)); }
  .research-section { padding: 26px; }
  .workspace-heading { grid-template-columns: 1fr; gap: 18px; }
  .workspace-heading h1 { font-size: clamp(calc(20 * var(--u)), 6vw, calc(38 * var(--u))); }
  .workspace-heading > p:last-child { margin: 0; }
  .explore-tabs { gap: 3px; }
  .explore-tabs button { font-size: calc(11 * var(--u)); padding: 10px; }
  .tab-caption { display: none; }
  .explore-panel iframe { height: 750px; }
}
/* A canvas-first editor with a separate, compact inspector. */
.container.calculation-workspace { max-width: calc(1600 * var(--u)); width: calc(100% - 48px); padding-top: 30px; }
.canvas-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.canvas-page-heading .eyebrow { margin-bottom: 8px; }
.canvas-page-heading h1 { margin: 0; font-size: calc(40 * var(--u)); }
.canvas-page-heading > p { font-size: calc(13 * var(--u)); margin: 0; }
.studio-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; border: 1px solid #dce2eb; border-radius: 8px; overflow: hidden; }
.studio-canvas { min-width: 0; background: #fff; }
.canvas-titlebar { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #e1e6ed; font-size: calc(13 * var(--u)); font-weight: 600; }
.canvas-titlebar > span:last-child { font-size: calc(11 * var(--u)); text-transform: uppercase; letter-spacing: .1em; color: #778397; font-weight: 400; }
.studio-canvas .smiles-input { margin: 0; padding: 12px 16px; border-bottom: 1px solid #e1e6ed; }
.studio-canvas .smiles-input input { min-width: 100px; background: #fff; border-color: #e1e6ed; font: calc(13 * var(--u))/1.6 monospace; padding: 8px 12px; }
.studio-canvas .draw-smiles { font-size: calc(12 * var(--u)); padding: 8px 12px; }
.studio-canvas #ifKetcher { height: 620px; max-height: none; border: 0; border-radius: 0; margin: 0; }
.studio-canvas .ketcher-example-banner { margin: 0; padding: 12px 20px; font-size: calc(11 * var(--u)); border-top: 1px solid #e1e6ed; text-align: left; }
.studio-inspector { padding: 20px; background: #fff; border-left: 1px solid #e1e6ed; min-width: 0; }
.inspector-heading { font-size: calc(13 * var(--u)); font-weight: 700; margin-bottom: 18px; }
.studio-inspector .step-runner-title, .studio-inspector .sdf-step-label { font-size: calc(12 * var(--u)); }
.studio-inspector .step-runner-note, .studio-inspector .sdf-step-hint { font-size: calc(11 * var(--u)); line-height: 1.5; }
.studio-inspector .step-runner-header { gap: 8px; }
.studio-inspector .step-runner-panel { padding: 16px 0; margin: 0; }
.studio-inspector .step-runner-controls { display: flex; flex-direction: column; }
.studio-inspector .step-runner-field { width: 100%; min-width: 0; }
.studio-inspector .step-runner-select, .studio-inspector input { min-width: 0; max-width: 100%; font-size: calc(12 * var(--u)); }
.studio-inspector .sdf-step-options { display: grid; grid-template-columns: 1fr; gap: 6px; }
.studio-inspector .sdf-step-option { background: transparent; font-size: calc(11 * var(--u)); padding: 8px 10px; border: 1px solid #e1e6ed; box-shadow: none; }
.studio-inspector .sdf-step-option:has(input:checked) { background: #edf3fc; border-color: #b7cbe8; color: #284b80; }
.studio-inspector .sdf-step-header { display: block; }
.studio-inspector .sdf-step-hint { display: block; margin-top: 5px; }
.studio-inspector .ketcher-result { display: flex; flex-direction: column; gap: 12px; }
.studio-inspector #ketcher-prompt { font-size: calc(11 * var(--u)); overflow-wrap: anywhere; background: transparent; border: 0; padding: 0; }
.studio-inspector .submit-smiles { width: 100%; font-size: calc(13 * var(--u)); padding: 12px; }
.calculation-workspace #calc-result-container { margin-top: 24px; }
/* result panel under the calculator: a plain white panel, no mint/blue edge stripe or nested box */
.calculation-workspace #calc-result-container { padding: 24px 26px; background: #ffffff; border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 8px; }
.calculation-workspace #calc-result-container.failed:not(.disabled) { border-color: #e0b2a6; }
.calculation-workspace #calc-result { border: 0; border-radius: 0; background: transparent; font-size: calc(14 * var(--u)); color: var(--muted); }
/* copyable IDs and SMILES: site blue instead of the old mint */
.text-highlight { color: var(--accent); }
.text-highlight.copied { background-color: #edf3fc; }
@media(max-width: 1000px) {
  .studio-layout { grid-template-columns: minmax(0,1fr); }
  .studio-inspector { border-left: 0; border-top: 1px solid #e1e6ed; }
  .studio-inspector .sdf-step-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .canvas-page-heading { align-items: start; flex-direction: column; gap: 12px; }
}

.studio-help { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px; font-size: calc(13 * var(--u)); line-height: 1.6; }
.studio-help summary { cursor: pointer; font-weight: 600; }
.studio-help ol { padding-left: 18px; }
.studio-help li + li { margin-top: 20px; }
.studio-help img { max-width: 100%; margin: 12px auto !important; }
.studio-help .btn { padding: 7px 12px; font-size: calc(13 * var(--u)); }

/* Quiet, explicit selections in the calculation inspector. */
.studio-inspector .sdf-step-options { gap: 0; }
.studio-inspector .sdf-step-option,
.studio-inspector .sdf-step-option:has(input[type="checkbox"]:checked) {
  background: transparent; border: 0; border-bottom: 1px solid #edf0f4;
  border-radius: 0; box-shadow: none; padding: 11px 0; gap: 8px;
  color: #18283e; font-size: calc(12 * var(--u)); min-width: 0;
}
.studio-inspector .sdf-step-option:hover { background: #f8faff; }
.studio-inspector .sdf-step-option input[type="checkbox"] {
  position: static; opacity: 1; width: 14px; height: 14px; flex: 0 0 14px;
  pointer-events: auto; margin: 0; accent-color: #284b80;
}
.studio-inspector .sdf-step-option .sdf-step-name,
.studio-inspector .sdf-step-option:has(input[type="checkbox"]:checked) .sdf-step-name {
  color: #18283e; font-size: calc(12 * var(--u)); font-weight: 500;
}
.studio-inspector .sdf-step-option:has(input[type="checkbox"]:checked) > span:first-of-type { color: #627088; }
.studio-inspector .sdf-step-option > span:first-of-type { color: #627088; white-space: nowrap; }
.studio-inspector .sdf-step-toggles { margin: 0; padding: 18px 0; }
.studio-inspector .step-runner-header { display: grid; grid-template-columns: 1fr auto; }
.studio-inspector .step-runner-note { grid-column: 1; }
.studio-inspector .step-runner-toggle { grid-column: 2; grid-row: 1 / 3; margin: 0; padding: 6px 10px; background: white; font-size: calc(12 * var(--u)); align-self: start; }
.studio-inspector .ketcher-result { margin: 0; padding-top: 16px; border-top: 1px solid #e1e6ed; }
.studio-inspector #ketcher-prompt { font: calc(11 * var(--u))/1.7 monospace; color: #627088 !important; }
@media (max-width: 1000px) {
  .studio-inspector { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-items: start; }
  .studio-inspector .inspector-heading { grid-column: 1 / -1; }
  .studio-inspector .sdf-step-options { grid-template-columns: 1fr; }
  .studio-inspector .ketcher-result { grid-column: 2; }
}
@media (max-width: 600px) {
  .studio-inspector { display: block; }
}
.studio-inspector .ketcher-result #ketcher-prompt { flex: 0 0 auto; }

.discovery-strip > div { display: grid; grid-template-rows: 48px auto; align-content: start; min-width: 0; }
.discovery-strip strong { font-size: clamp(calc(26 * var(--u)), 3vw, calc(36 * var(--u))); line-height: 48px; white-space: nowrap; }
.discovery-strip span { max-width: calc(240 * var(--u)); line-height: 1.65; margin-top: 10px; }

.map-preview-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 60px; padding: 72px 0; border-bottom: 1px solid var(--line); }
.map-preview-copy h2 { max-width: calc(380 * var(--u)); margin: 14px 0 22px; }
.map-preview-copy > p:not(.eyebrow) { max-width: calc(360 * var(--u)); font-size: calc(15 * var(--u)); line-height: 1.8; color: var(--muted); margin-bottom: 28px; }
.map-preview-figure { margin: 0; min-width: 0; }
.map-preview-figure img { display: block; width: 100%; height: auto; }
.map-preview-figure figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: calc(11 * var(--u)); color: var(--muted); }
.map-preview-legend { display: inline-grid; grid-template-columns: auto auto auto; align-items: center; gap: 6px 10px; }
.map-preview-legend b { grid-column: 2; justify-self: center; font-weight: 600; font-size: calc(10 * var(--u)); letter-spacing: .14em; color: var(--ink); }
/* same stops as the map dots (scripts/build_map_preview.py) */
.map-preview-legend i { position: relative; width: calc(96 * var(--u)); height: 8px; border-radius: 999px; background: linear-gradient(90deg, #1e5cb8, #b2b6cc, #cc2840); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 1px 2px rgba(20, 34, 59, .12), 0 4px 12px -4px rgba(30, 92, 184, .35), 0 4px 12px -4px rgba(204, 40, 64, .3); }
.map-preview-legend i::before { content: ''; position: absolute; inset: 1px 1px 50%; border-radius: 999px 999px 0 0; background: linear-gradient(rgba(255, 255, 255, .45), rgba(255, 255, 255, 0)); }@media (max-width: 800px) { .map-preview-section { grid-template-columns: 1fr; gap: 24px; padding: 44px 0; } .map-preview-copy h2, .map-preview-copy > p:not(.eyebrow) { max-width: none; } }

/* Product hero: a live energy landscape, open on the white page. */
.landing-hero { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 24px; min-height: 640px; padding: 40px 0 56px; }
.landing-hero::before { display: none; }
.hero-copy { max-width: calc(580 * var(--u)); position: relative; z-index: 1; }
.landing-hero h1 { font-family: 'Plus Jakarta Sans',sans-serif; font-size: clamp(calc(36 * var(--u)),4.1vw,calc(62 * var(--u))); font-weight: 600; letter-spacing: -.055em; line-height: 1.15; margin-bottom: 26px; }
.landing-hero h1 em { font-style: normal; font-weight: 500; color: #4267ac; }
.hero-description { font-size: calc(16 * var(--u)); line-height: 1.85; max-width: calc(440 * var(--u)); }
.hero-energy { min-width: 0; position: relative; align-self: center; }
.hero-energy::before { content: ''; position: absolute; inset: 20% 5% 15%; background: radial-gradient(ellipse,#ede8ff66,transparent 68%); pointer-events: none; z-index: -1; }
.hero-energy iframe { display: block; width: 100%; height: 500px; border: 0; background: transparent; }
.action.secondary:hover { background: #f5f8fe; }
/* the hero keeps the plot beside the copy at every width (see landing.css) */

/* Status pages (errors, redirects): a quiet, left-aligned editorial block. */
.status-page { max-width: calc(680 * var(--u)); padding: 64px 0 110px; }
.status-code { margin: 0 0 6px; font: 400 calc(110 * var(--u))/1 "GFS Didot", Georgia, serif; letter-spacing: -.03em; color: #d3deee; }
.status-page h1 { margin: 0 0 18px; }
.status-page > p:not([class]) { max-width: calc(520 * var(--u)); font-size: calc(16 * var(--u)); line-height: 1.75; margin: 0; }
.status-page .hero-actions { margin-top: 32px; }
.status-note { margin-top: 32px; padding: 14px 18px; border-left: 3px solid #b9cce6; background: #f5f8fe; font-size: calc(13 * var(--u)); line-height: 1.6; color: var(--muted); }
.status-spinner { display: inline-block; width: calc(18 * var(--u)); height: calc(18 * var(--u)); margin-right: 10px; vertical-align: -3px; border: 2px solid #d3deee; border-top-color: var(--accent); border-radius: 50%; animation: status-spin .9s linear infinite; }
@keyframes status-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .status-spinner { animation: none; } }
