:root {
  --ink-950: #17212b;
  --ink-900: #263440;
  --ink-800: #394a58;
  --ink-700: #526370;
  --ink-600: #687783;
  --ink-500: #82909a;
  --ink-300: #c3cbd0;
  --ink-200: #dce1e4;
  --ink-100: #eff2f3;
  --paper: #ffffff;
  --paper-soft: #f6f7f8;
  --teal-700: #3f6273;
  --teal-600: #527486;
  --teal-500: #718e9c;
  --teal-100: #e7edef;
  --gold: #9b875f;
  --shadow-sm: 0 8px 24px rgba(23, 33, 43, .07);
  --shadow-lg: 0 20px 55px rgba(23, 33, 43, .14);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink-900);
  background: var(--paper);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 16px;
  border-radius: 8px; color: white; background: var(--teal-600); transition: top .2s;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(184, 198, 207, .55);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(18px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 42px; aspect-ratio: 1; display: grid; place-content: center; border-radius: 13px;
  color: white; background: var(--ink-950); box-shadow: inset 0 -8px 18px rgba(113, 142, 156, .16);
  font-family: "DM Mono", monospace; font-size: 12px; font-weight: 500; line-height: .78;
}
.brand-mark span:last-child { color: #aebfc7; transform: translateX(5px); }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 14px; letter-spacing: -.01em; }
.brand-copy small { margin-top: 3px; color: var(--ink-600); font-size: 11px; font-weight: 600; letter-spacing: .055em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 9px 12px; border-radius: 8px; color: var(--ink-600); font-size: 13px; font-weight: 700;
  text-decoration: none; transition: color .2s, background .2s;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--ink-950); background: var(--ink-100); }
.site-nav .nav-cta { margin-left: 6px; padding-inline: 15px; color: white; background: var(--ink-950); }
.site-nav .nav-cta:hover, .site-nav .nav-cta.is-active { color: white; background: var(--teal-700); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: 10px; background: var(--ink-100); }
.nav-toggle span:not(.sr-only) { display: block; width: 19px; height: 2px; margin: 4px auto; background: var(--ink-900); }

.hero { position: relative; overflow: hidden; color: white; background: var(--ink-950); }
.hero::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -210px; top: -250px;
  border-radius: 50%; background: radial-gradient(circle, rgba(113, 142, 156, .15), transparent 66%);
}
.hero-grid-pattern {
  position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(90deg, black, transparent 74%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr); align-items: center; gap: 80px; min-height: 680px; padding-block: 82px; }
.eyebrow, .section-kicker { margin: 0 0 16px; color: var(--teal-500); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; color: #adbec6; }
.eyebrow span { width: 26px; height: 1px; margin-right: 9px; background: currentColor; }
.hero h1 { max-width: 640px; margin: 0; font-size: clamp(2.65rem, 4vw, 4rem); line-height: 1.07; letter-spacing: -.045em; }
.hero-lead { max-width: 600px; margin: 28px 0 32px; color: #b9cad6; font-size: 18px; line-height: 1.72; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; color: #9fb4c3; font-size: 12px; }
.hero-meta span { display: inline-flex; gap: 6px; align-items: baseline; }
.hero-meta strong { color: white; font-family: "DM Mono", monospace; font-weight: 500; }

.search-card { color: var(--ink-900); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 28px 30px 22px; border-bottom: 1px solid var(--ink-100); }
.search-card-header h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.search-card-header .section-kicker { margin-bottom: 4px; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; color: var(--teal-700); background: var(--teal-100); font-size: 11px; font-weight: 800; }
.status-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 4px rgba(113, 142, 156, .12); }
.search-form { padding: 26px 30px 30px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; color: var(--ink-800); font-size: 12px; font-weight: 800; }
.field select, .field textarea, .field input {
  width: 100%; border: 1px solid var(--ink-200); border-radius: var(--radius-sm); color: var(--ink-900); background: var(--paper-soft); outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field select { height: 48px; padding: 0 13px; }
.field textarea { min-height: 108px; padding: 13px 14px; resize: vertical; font-family: "DM Mono", monospace; font-size: 13px; line-height: 1.55; }
.field select:focus, .field textarea:focus, .field input:focus { border-color: var(--teal-500); background: white; box-shadow: 0 0 0 4px rgba(113,142,156,.12); }
.field-query { margin-top: 17px; }
.examples { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; color: var(--ink-500); font-size: 11px; }
.examples button { padding: 4px 8px; border: 0; border-radius: 6px; color: var(--teal-700); background: var(--teal-100); font-size: 11px; font-weight: 800; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 10px; font-weight: 800; text-decoration: none; }
.button-primary { color: white; background: var(--teal-700); box-shadow: 0 8px 20px rgba(63, 98, 115, .18); }
.button-primary:hover { background: var(--teal-600); }
.button-full { width: 100%; }
.form-note { margin: 14px 0 0; color: var(--ink-500); font-size: 10px; text-align: center; }

.section { padding-block: 88px; }
.section-heading h2, .workflow-grid h2 { margin: 0; color: var(--ink-950); font-size: clamp(2rem, 3vw, 3rem); line-height: 1.14; letter-spacing: -.04em; }
.split-heading { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 90px; margin-bottom: 48px; }
.split-heading > p { margin: 0 0 7px; color: var(--ink-600); font-size: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { min-height: 300px; padding: 30px; border: 1px solid var(--ink-200); border-radius: var(--radius-md); background: var(--paper); box-shadow: var(--shadow-sm); }
.feature-index { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ink-200); border-radius: 50%; color: var(--ink-500); font-family: "DM Mono", monospace; font-size: 11px; }
.feature-card h3 { margin: 78px 0 12px; color: var(--ink-950); font-size: 20px; letter-spacing: -.025em; }
.feature-card p { margin: 0; color: var(--ink-600); font-size: 14px; }
.feature-card-accent { color: white; border-color: var(--ink-800); background: var(--ink-800); }
.feature-card-accent .feature-index { color: white; border-color: rgba(255,255,255,.34); }
.feature-card-accent h3 { color: white; }
.feature-card-accent p { color: #d6dde1; }

.workflow-section { color: white; background: var(--ink-950); }
.workflow-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; align-items: start; }
.workflow-grid h2 { max-width: 550px; color: white; }
.muted-copy { max-width: 520px; margin: 26px 0; color: #a8bdca; }
.text-link { display: inline-flex; gap: 8px; color: #b7c6cd; font-weight: 800; text-decoration: none; }
.workflow-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.14); }
.workflow-list li { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.workflow-list li > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink-950); background: #b7c6cd; font-family: "DM Mono", monospace; font-size: 12px; font-weight: 500; }
.workflow-list strong { color: white; }
.workflow-list p { margin: 6px 0 0; color: #9fb5c3; font-size: 14px; }

.site-footer { padding: 70px 0 22px; color: #a9b4bb; background: #111820; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .6fr .8fr 1.3fr; gap: 44px; }
.brand-footer .brand-copy strong { color: white; }
.brand-footer .brand-copy small { color: #89a2b2; }
.footer-intro p { max-width: 340px; margin: 20px 0 0; font-size: 13px; }
.site-footer h2 { margin: 0 0 16px; color: white; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer p { margin: 0; font-size: 13px; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-logo-wrap { display: grid; place-items: start center; padding-top: 2px; }
.footer-logo-wrap img { width: 100%; max-width: 340px; height: auto; object-fit: contain; opacity: .95; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 58px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 10px; }

[hidden] { display: none !important; }
.flash-stack { position: fixed; z-index: 200; top: 94px; left: 50%; transform: translateX(-50%); display: grid; gap: 10px; pointer-events: none; }
.flash { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 16px; border: 1px solid var(--ink-200); border-radius: 12px; color: var(--ink-900); background: white; box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 700; pointer-events: auto; }
.flash-success { border-color: #bdcbc7; background: #f4f7f6; }
.flash-error { border-color: #efb7b7; background: #fff5f5; }
.flash button { border: 0; color: var(--ink-500); background: transparent; font-size: 20px; line-height: 1; }

.page-hero, .result-hero { position: relative; overflow: hidden; color: white; background: var(--ink-950); }
.page-hero::after, .result-hero::after { content: ""; position: absolute; width: 460px; height: 460px; right: -170px; top: -230px; border: 1px solid rgba(151,172,181,.2); border-radius: 50%; box-shadow: 0 0 0 80px rgba(151,172,181,.025), 0 0 0 160px rgba(151,172,181,.018); }
.page-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 80px; min-height: 360px; padding-block: 76px; }
.page-hero h1, .result-hero h1 { margin: 0; max-width: 780px; font-size: clamp(2.5rem, 4.5vw, 4rem); line-height: 1.06; letter-spacing: -.045em; }
.page-hero-grid > p { max-width: 480px; margin: 0 0 9px; color: #afc2ce; font-size: 17px; }

.form-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; align-items: start; }
.form-aside { position: sticky; top: 112px; }
.form-aside h2 { margin: 0; color: var(--ink-950); font-size: 29px; line-height: 1.2; letter-spacing: -.035em; }
.form-aside > p:not(.section-kicker) { color: var(--ink-600); }
.compact-steps { margin: 34px 0; padding: 0; list-style: none; }
.compact-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--ink-200); }
.compact-steps li > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--teal-700); background: var(--teal-100); font-family: "DM Mono", monospace; font-size: 11px; }
.compact-steps p { margin: 0; color: var(--ink-600); font-size: 13px; }
.compact-steps strong { color: var(--ink-900); }
.notice { margin-top: 26px; padding: 18px 20px; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; background: #f7f5f0; }
.notice strong { color: var(--ink-900); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.notice p { margin: 5px 0 0; color: var(--ink-600); font-size: 12px; }
.panel-form { padding: 38px; border: 1px solid var(--ink-200); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); }
.panel-form .field input { height: 48px; padding: 0 13px; }
.field-spaced { margin-top: 17px; }
.form-section-heading { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: center; margin: 4px 0 24px; }
.form-section-heading:not(:first-child) { margin-top: 46px; padding-top: 34px; border-top: 1px solid var(--ink-200); }
.form-section-heading > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--teal-700); background: var(--teal-100); font-family: "DM Mono", monospace; font-size: 11px; font-weight: 500; }
.form-section-heading h2 { margin: 0; color: var(--ink-950); font-size: 20px; letter-spacing: -.025em; }
.form-section-heading p { margin: 1px 0 0; color: var(--ink-500); font-size: 11px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button-secondary { color: var(--ink-800); border: 1px solid var(--ink-200); background: white; box-shadow: none; }
.button-secondary:hover { border-color: var(--ink-500); background: var(--paper-soft); }

.resource-toolbar, .table-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.resource-toolbar h2, .table-toolbar h2 { margin: 0; color: var(--ink-950); font-size: 27px; letter-spacing: -.035em; }
.resource-toolbar .section-kicker, .table-toolbar .section-kicker { margin-bottom: 4px; }
.filter-field input { width: 260px; height: 46px; padding: 0 15px; border: 1px solid var(--ink-200); border-radius: 10px; color: var(--ink-900); background: var(--paper-soft); outline: none; }
.filter-field input:focus { border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(113,142,156,.12); }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.resource-card { position: relative; min-height: 260px; padding: 28px; border: 1px solid var(--ink-200); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.resource-card:hover { transform: translateY(-3px); border-color: #aab7be; box-shadow: 0 16px 36px rgba(23,33,43,.1); }
.resource-category { color: var(--teal-700); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.resource-card h2 { margin: 64px 0 8px; color: var(--ink-950); font-size: 22px; letter-spacing: -.03em; }
.resource-card p { margin: 0; color: var(--ink-600); font-size: 13px; }
.resource-arrow { position: absolute; top: 24px; right: 24px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink-700); background: var(--ink-100); }
.empty-filter { padding: 28px; border: 1px dashed var(--ink-300); border-radius: 12px; color: var(--ink-600); text-align: center; }
.security-note { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; margin-top: 32px; padding: 18px; border: 1px solid #d0d9dd; border-radius: 12px; background: #f5f7f8; }
.security-note > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: white; background: var(--teal-700); font-family: "DM Mono", monospace; font-size: 12px; }
.security-note p { margin: 0; color: var(--ink-600); font-size: 12px; }
.security-note strong { display: block; color: var(--ink-900); font-size: 13px; }

.protocol-grid, .audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.protocol-grid article, .audience-grid article { min-height: 330px; padding: 28px; border: 1px solid var(--ink-200); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); }
.protocol-grid article > span, .audience-grid article > span { color: var(--teal-600); font-family: "DM Mono", monospace; font-size: 12px; font-weight: 500; }
.protocol-grid h2, .audience-grid h2 { margin: 82px 0 12px; color: var(--ink-950); font-size: 20px; line-height: 1.25; letter-spacing: -.03em; }
.protocol-grid p, .audience-grid p { color: var(--ink-600); font-size: 13px; }
.protocol-grid small { display: block; margin-top: 22px; color: var(--ink-500); font-family: "DM Mono", monospace; font-size: 9px; }
.method-note, .cta-panel { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 80px; margin-top: 54px; padding: 38px; border-radius: var(--radius-md); color: white; background: var(--ink-950); }
.method-note h2, .cta-panel h2 { margin: 0; font-size: 26px; letter-spacing: -.03em; }
.method-note p:last-child { margin: 0; color: #aec1cc; }
.audience-grid { grid-template-columns: repeat(3, 1fr); }
.audience-grid article { min-height: 300px; }
.cta-panel { grid-template-columns: 1fr auto; }

.compact-heading { margin-bottom: 38px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.team-card { overflow: hidden; border: 1px solid var(--ink-200); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); }
.team-card > img { width: 100%; height: 330px; object-fit: cover; object-position: center top; background: var(--ink-100); }
.team-card > div { padding: 24px; }
.team-card p { margin: 0 0 4px; color: var(--teal-700); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.team-card h2 { margin: 0; color: var(--ink-950); font-size: 20px; letter-spacing: -.03em; }
.team-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 20px; }
.team-links a { color: var(--ink-600); font-size: 11px; font-weight: 700; text-decoration: none; }
.team-links a:hover { color: var(--teal-700); }
.contact-section { padding-block: 88px; background: var(--paper-soft); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.contact-copy > h2 { margin: 0; color: var(--ink-950); font-size: 37px; line-height: 1.14; letter-spacing: -.04em; }
.contact-copy > p:not(.section-kicker) { color: var(--ink-600); }
.address-card { display: grid; grid-template-columns: 50px 1fr; gap: 16px; align-items: start; margin: 28px 0 18px; }
.address-card > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: white; background: var(--teal-700); font-family: "DM Mono", monospace; font-size: 11px; }
.address-card strong { color: var(--ink-950); }
.address-card p { margin: 3px 0 0; color: var(--ink-600); font-size: 12px; }
.map-card { overflow: hidden; border: 1px solid var(--ink-200); border-radius: 14px; background: var(--ink-100); }
.map-card iframe { display: block; width: 100%; height: 240px; border: 0; }
.contact-form { box-shadow: var(--shadow-lg); }

.result-hero-inner { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; min-height: 390px; padding-block: 74px; }
.result-hero-inner > div:first-child { max-width: 820px; }
.result-hero-inner > div:first-child > p:last-child { max-width: 690px; margin: 24px 0 0; color: #adc1cc; font-size: 16px; }
.result-metric { min-width: 180px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.055); }
.result-metric span, .result-metric small { display: block; color: #98b2c1; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.result-metric strong { display: block; margin: 4px 0; color: #b5c5cc; font-family: "DM Mono", monospace; font-size: 38px; line-height: 1; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; min-width: max-content; }
.button-light { color: var(--ink-950); background: white; }
.button-outline-light { color: white; border: 1px solid rgba(255,255,255,.3); background: transparent; }
.result-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.result-sidebar { position: sticky; top: 112px; }
.result-sidebar h2 { margin: 0; font-size: 29px; letter-spacing: -.03em; }
.result-sidebar > p:not(.section-kicker) { color: var(--ink-600); font-size: 13px; }
.result-sidebar .button { margin-top: 20px; }
.dark-link { color: var(--teal-700); font-size: 13px; }
.sequence-preview { padding: 16px; border: 1px solid var(--ink-200); border-radius: 12px; background: var(--paper-soft); }
.sequence-preview code { display: block; max-height: 180px; overflow: auto; color: var(--ink-800); font-family: "DM Mono", monospace; font-size: 11px; overflow-wrap: anywhere; }
.copy-button { margin-top: 10px; padding: 4px 8px; border: 1px solid var(--ink-200); border-radius: 6px; color: var(--ink-600); background: white; font-size: 9px; font-weight: 800; }
.match-list { display: grid; gap: 12px; }
.match-card { display: grid; grid-template-columns: 44px 1fr 34px; gap: 18px; align-items: center; padding: 20px; border: 1px solid var(--ink-200); border-radius: 14px; background: white; box-shadow: 0 5px 20px rgba(7,26,43,.05); text-decoration: none; transition: border-color .2s, transform .2s; }
.match-card:hover { transform: translateX(3px); border-color: #a4b3ba; }
.match-rank { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--teal-700); background: var(--teal-100); font-family: "DM Mono", monospace; font-size: 11px; }
.mono-label { color: var(--teal-700); font-family: "DM Mono", monospace; font-size: 10px; }
.match-card h3 { margin: 3px 0; color: var(--ink-950); font-size: 14px; font-weight: 700; }
.match-card p { margin: 0 0 5px; color: var(--ink-500); font-size: 10px; }
.match-card code { color: var(--ink-700); font-family: "DM Mono", monospace; font-size: 10px; overflow-wrap: anywhere; }
.match-arrow { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--ink-700); background: var(--ink-100); }
.empty-state { display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; align-items: center; padding: 30px; border: 1px solid var(--ink-200); border-radius: var(--radius-md); background: var(--paper-soft); }
.empty-state > span { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; color: var(--teal-700); background: var(--teal-100); font-family: "DM Mono", monospace; font-weight: 500; }
.empty-state h2 { margin: 0; font-size: 20px; }
.empty-state p { margin: 4px 0 0; color: var(--ink-600); font-size: 12px; }

.table-wrap { overflow: auto; border: 1px solid var(--ink-200); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }
.data-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.data-table th { padding: 13px 16px; border-bottom: 1px solid var(--ink-200); color: var(--ink-600); background: var(--paper-soft); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.data-table th button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; color: inherit; background: none; font: inherit; text-transform: inherit; }
.data-table td { padding: 16px; border-bottom: 1px solid var(--ink-100); color: var(--ink-700); font-size: 12px; vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #f5f7f8; }
.data-table td strong { color: var(--ink-950); }
.data-table td code { display: block; color: var(--ink-800); font-family: "DM Mono", monospace; font-size: 10px; overflow-wrap: anywhere; }
.data-table td a { color: var(--teal-700); font-weight: 700; }
.record-facts { margin: 0; }
.record-facts > div { padding: 13px 0; border-bottom: 1px solid var(--ink-200); }
.record-facts dt { color: var(--ink-500); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.record-facts dd { margin: 3px 0 0; color: var(--ink-950); font-family: "DM Mono", monospace; font-size: 12px; }
.match-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 11px 14px; border: 1px solid #d0d8dc; border-radius: 9px; background: #f5f7f8; }
.match-banner > span { width: 9px; height: 9px; border-radius: 2px; background: #c8b47f; }
.match-banner p { margin: 0; color: var(--ink-600); font-size: 10px; }
.match-banner strong { color: var(--ink-900); font-family: "DM Mono", monospace; }
.fasta-viewer { overflow: hidden; border: 1px solid #2d3a44; border-radius: 14px; color: #c3cdd2; background: #141d24; box-shadow: var(--shadow-lg); }
.fasta-header { padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.1); color: #b5c5cc; background: rgba(255,255,255,.035); font-family: "DM Mono", monospace; font-size: 10px; }
.fasta-viewer > code { display: block; max-height: 600px; overflow: auto; padding: 22px; font-family: "DM Mono", monospace; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; word-break: break-all; }
.fasta-viewer mark { padding: 1px 0; color: #17212b; background: #d8c99e; }
.blast-toolbar { align-items: center; }
.toolbar-actions { display: flex; align-items: center; gap: 10px; }
.blast-table-wrap { max-height: none; }
.alignment-details summary { cursor: pointer; list-style: none; }
.alignment-details summary::-webkit-details-marker { display: none; }
.alignment-details summary > span { display: block; max-width: 600px; color: var(--ink-900); font-size: 12px; font-weight: 700; }
.alignment-details summary > small { display: block; margin-top: 4px; color: var(--teal-700); font-size: 9px; font-weight: 800; }
.alignment-details pre { width: min(760px, 75vw); max-height: 480px; overflow: auto; margin: 14px 0 0; padding: 16px; border-radius: 10px; color: #c9d1d5; background: #17212b; font: 10px/1.55 "DM Mono", monospace; white-space: pre; }
.metric-pill { display: inline-block; min-width: 46px; padding: 4px 7px; border-radius: 999px; color: var(--teal-700); background: var(--teal-100); font-size: 10px; font-weight: 800; text-align: center; }

.not-found { display: grid; place-items: center; min-height: 72vh; padding-block: 80px; text-align: center; background: var(--paper-soft); }
.not-found > div { max-width: 680px; }
.not-found > div > span { color: var(--teal-100); font-family: "DM Mono", monospace; font-size: 130px; font-weight: 500; line-height: .8; }
.not-found h1 { margin: 18px 0 12px; color: var(--ink-950); font-size: 40px; letter-spacing: -.04em; }
.not-found p:not(.section-kicker) { margin: 0 auto 28px; color: var(--ink-600); }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; padding-block: 72px; }
  .hero-copy { max-width: 720px; }
  .search-card { max-width: 680px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-logo-wrap { display: none; }
  .form-layout, .contact-grid { gap: 44px; }
  .protocol-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card > img { height: 270px; }
  .result-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 30px; }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 28px, 680px); }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; inset: 78px 14px auto; display: none; padding: 12px; border: 1px solid var(--ink-200);
    border-radius: 14px; background: white; box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: grid; }
  .site-nav .nav-cta { margin: 4px 0 0; text-align: center; }
  .split-heading, .workflow-grid { grid-template-columns: 1fr; gap: 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 240px; }
  .feature-card h3 { margin-top: 44px; }
  .workflow-grid { gap: 54px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero-grid, .form-layout, .contact-grid, .result-layout { grid-template-columns: 1fr; }
  .page-hero-grid { gap: 22px; min-height: 330px; }
  .form-aside, .result-sidebar { position: static; }
  .resource-grid, .team-grid, .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .method-note { grid-template-columns: 1fr; gap: 20px; }
  .result-hero-inner { align-items: flex-start; flex-direction: column; min-height: 350px; }
  .result-actions { justify-content: flex-start; min-width: 0; }
  .result-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .result-sidebar > .section-kicker, .result-sidebar > h2, .result-sidebar > p:not(.notice) { grid-column: 1 / -1; }
  .result-sidebar .notice { margin-top: 0; }
  .result-sidebar .button { align-self: end; margin-top: 0; }
}

@media (max-width: 560px) {
  .header-inner { min-height: 70px; }
  .site-nav { inset-block-start: 70px; }
  .brand-copy { display: none; }
  .hero-grid { min-height: auto; padding-block: 56px; }
  .hero h1 { font-size: clamp(2.25rem, 11vw, 3rem); }
  .hero-lead { font-size: 16px; }
  .hero-meta { display: grid; }
  .search-card-header, .search-form { padding-inline: 20px; }
  .search-card-header { align-items: center; }
  .status-chip { font-size: 9px; }
  .field-grid { grid-template-columns: 1fr; }
  .section { padding-block: 76px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: grid; }
  .page-hero-grid { padding-block: 54px; }
  .page-hero h1, .result-hero h1 { font-size: 2.3rem; }
  .panel-form { padding: 24px 20px; }
  .resource-toolbar, .table-toolbar { display: grid; align-items: stretch; }
  .filter-field input { width: 100%; }
  .resource-grid, .protocol-grid, .team-grid, .audience-grid { grid-template-columns: 1fr; }
  .protocol-grid article, .audience-grid article { min-height: 250px; }
  .protocol-grid h2, .audience-grid h2 { margin-top: 44px; }
  .team-card > img { height: 310px; }
  .contact-copy > h2 { font-size: 32px; }
  .cta-panel, .result-sidebar { grid-template-columns: 1fr; }
  .cta-panel { gap: 22px; }
  .result-hero-inner { gap: 32px; padding-block: 54px; }
  .result-metric { min-width: 150px; }
  .empty-state { grid-template-columns: 1fr; }
  .match-card { grid-template-columns: 38px 1fr; }
  .match-arrow { display: none; }
  .toolbar-actions { align-items: stretch; flex-direction: column; }
  .not-found > div > span { font-size: 90px; }
  .not-found h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Reference-inspired v3: warm editorial canvas, black type, controlled yellow accents. */
:root {
  --ink-950: #111111;
  --ink-900: #1b1b1a;
  --ink-800: #2e2e2c;
  --ink-700: #4f4f4b;
  --ink-600: #6d6d67;
  --ink-500: #92928a;
  --ink-300: #cecec7;
  --ink-200: #deded8;
  --ink-100: #eeeeea;
  --paper: #fffefa;
  --paper-soft: #f1f1ed;
  --teal-700: #171716;
  --teal-600: #30302e;
  --teal-500: #c5a300;
  --teal-100: #fff5b7;
  --gold: #ffd82f;
  --shadow-sm: 0 16px 34px rgba(22, 22, 20, .07);
  --shadow-lg: 0 28px 70px rgba(22, 22, 20, .17);
  --radius-sm: 9px;
  --radius-md: 15px;
  --radius-lg: 22px;
  --shell: min(1240px, calc(100% - 48px));
}

body { background: #e9e9e6; font-family: "Manrope", system-ui, sans-serif; }
h1, h2, h3, .brand-copy strong { font-family: "Inter Tight", "Manrope", system-ui, sans-serif; }
.site-header { border-color: rgba(17,17,17,.08); background: rgba(247,247,243,.92); }
.header-inner { min-height: 84px; }
.brand-mark { border-radius: 50%; color: white; background: #111; box-shadow: none; }
.brand-mark span:last-child { color: var(--gold); }
.brand-copy strong { font-size: 15px; font-weight: 600; }
.brand-copy small { color: #777770; font-weight: 500; letter-spacing: .035em; }
.site-nav a { border-radius: 999px; color: #666660; font-weight: 600; }
.site-nav a:hover, .site-nav a.is-active { color: #111; background: #fff7c9; }
.site-nav .nav-cta { color: #111; background: var(--gold); }
.site-nav .nav-cta:hover, .site-nav .nav-cta.is-active { color: #111; background: #f1c900; }

.hero { color: #111; background: #f4f4f1; border-bottom: 2px solid var(--gold); }
.hero::before { width: 720px; height: 720px; right: -270px; top: -330px; background: radial-gradient(circle, rgba(255,202,194,.36), transparent 66%); }
.hero-grid-pattern { opacity: .28; background-image: linear-gradient(rgba(17,17,17,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,17,.055) 1px, transparent 1px); mask-image: linear-gradient(90deg, black, transparent 68%); }
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(500px, .92fr); gap: 84px; min-height: 690px; padding-block: 88px; }
.eyebrow { color: #666660; font-weight: 600; letter-spacing: .08em; }
.eyebrow span { height: 3px; background: var(--gold); }
.hero h1 { max-width: 680px; color: #0b0b0b; font-size: clamp(3.35rem, 5.1vw, 5.1rem); font-weight: 500; line-height: .97; letter-spacing: -.058em; }
.hero-lead { max-width: 575px; margin-block: 32px 34px; color: #555550; font-size: 17px; line-height: 1.65; }
.hero-meta { color: #777770; }
.hero-meta strong { color: #111; }
.search-card { border-color: rgba(17,17,17,.11); border-radius: 18px; background: #fffefa; box-shadow: 0 34px 80px rgba(25,25,22,.21); }
.search-card-header { color: white; border-bottom: 0; background: #111; }
.search-card-header h2 { color: white; font-family: "Inter Tight", sans-serif; font-size: 23px; font-weight: 500; }
.search-card-header .section-kicker { color: #cfcfc7; }
.status-chip { color: #111; background: var(--gold); }
.status-chip i { background: #111; box-shadow: none; }
.search-form { background: #fffefa; }
.field { color: #333330; font-weight: 600; }
.field select, .field textarea, .field input { border-color: #dadad3; background: #f3f3ef; }
.field select:focus, .field textarea:focus, .field input:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(255,216,47,.55); }
.examples button { color: #111; background: #fff1a0; }
.button-primary { color: #111; background: var(--gold); box-shadow: 0 10px 22px rgba(132,108,0,.16); }
.button-primary:hover { color: white; background: #111; }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .search-card { max-width: 720px; }
}

@media (max-width: 560px) {
  :root { --shell: min(100% - 28px, 680px); }
  .header-inner { min-height: 72px; }
  .hero-grid { padding-block: 64px; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 3.7rem); }
}

/* Shared reference-theme treatment across supporting pages and data views. */
main { background: #f4f4f1; }
.section { padding-block: 82px; }
.section-kicker {
  color: #707069;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .055em;
}
.search-card-header .section-kicker { color: #cfcfc7; }
.section-heading h2, .workflow-grid h2 {
  color: #111;
  font-family: "Inter Tight", "Manrope", sans-serif;
  font-size: clamp(2.15rem, 3.3vw, 3.15rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.048em;
}
.split-heading { gap: 110px; margin-bottom: 42px; padding-bottom: 24px; border-bottom: 2px solid var(--gold); }
.split-heading > p { color: #65655f; }
.feature-grid { gap: 12px; }
.feature-card {
  min-height: 286px;
  padding: 27px;
  border-color: rgba(17,17,17,.07);
  border-radius: 13px;
  background: #fffefa;
  box-shadow: 0 20px 45px rgba(24,24,21,.075);
}
.feature-index { border-color: #111; color: #111; }
.feature-card h3 { margin-top: 72px; color: #111; font-family: "Inter Tight", sans-serif; font-size: 22px; font-weight: 500; }
.feature-card p { color: #64645e; }
.feature-card-accent { color: #111; border-color: #f2d121; background: #ffef83; }
.feature-card-accent .feature-index { color: #111; border-color: #111; background: #ffd82f; }
.feature-card-accent h3 { color: #111; }
.feature-card-accent p { color: #4d4937; }

.workflow-section { color: white; background: #111; border-block: 2px solid var(--gold); }
.workflow-grid h2 { color: white; }
.workflow-section .section-kicker { color: #c8c8c1; }
.muted-copy { color: #a9a9a1; }
.text-link { color: #111; padding: 10px 15px; border-radius: 999px; background: var(--gold); }
.workflow-list { border-color: rgba(255,255,255,.22); }
.workflow-list li { border-color: rgba(255,255,255,.19); }
.workflow-list li > span { color: #111; background: var(--gold); }
.workflow-list p { color: #a9a9a1; }

.site-footer { color: #a9a9a2; background: #0f0f0f; }
.brand-footer .brand-copy small { color: #8d8d86; }
.footer-logo-wrap img { opacity: .92; }
.footer-bottom { border-color: rgba(255,255,255,.16); }

.flash { border-color: rgba(17,17,17,.14); border-radius: 10px; box-shadow: 0 24px 55px rgba(17,17,17,.17); }
.flash-success { border-color: #d5bd35; background: #fff8cf; }
.flash-error { border-color: #dfaaaa; background: #fff5f3; }

.page-hero, .result-hero { color: #111; background: #eeeeea; border-bottom: 2px solid var(--gold); }
.page-hero::after, .result-hero::after {
  width: 590px;
  height: 590px;
  right: -230px;
  top: -330px;
  border: 0;
  background: radial-gradient(circle, rgba(255,199,191,.33), transparent 66%);
  box-shadow: none;
}
.page-hero-grid { min-height: 330px; padding-block: 66px; }
.page-hero h1, .result-hero h1 {
  color: #111;
  font-family: "Inter Tight", "Manrope", sans-serif;
  font-size: clamp(2.6rem, 4.2vw, 4rem);
  font-weight: 500;
  line-height: .99;
  letter-spacing: -.052em;
}
.page-hero-grid > p { color: #5f5f59; }

.form-aside h2, .result-sidebar h2, .resource-toolbar h2, .table-toolbar h2, .contact-copy > h2 {
  color: #111;
  font-family: "Inter Tight", "Manrope", sans-serif;
  font-weight: 500;
}
.compact-steps li { border-color: #d5d5ce; }
.compact-steps li > span, .form-section-heading > span { color: #111; background: var(--gold); }
.notice { border-left-color: var(--gold); background: #fff8d2; }
.panel-form, .resource-card, .protocol-grid article, .audience-grid article, .team-card {
  border-color: rgba(17,17,17,.09);
  border-radius: 13px;
  background: #fffefa;
  box-shadow: 0 18px 42px rgba(24,24,21,.075);
}
.panel-form { padding: 36px; }
.form-section-heading h2 { font-family: "Inter Tight", sans-serif; font-size: 22px; font-weight: 500; }
.button { border-radius: 999px; font-weight: 700; }
.button-secondary { color: #111; border-color: #cfcfc7; background: #fffefa; }
.button-secondary:hover { border-color: #111; background: #fffefa; }
.filter-field input { border-color: #d2d2cb; border-radius: 999px; background: #fffefa; }
.filter-field input:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(255,216,47,.5); }

.resource-grid { gap: 12px; }
.resource-card { min-height: 250px; }
.resource-card:hover { border-color: #111; box-shadow: 0 26px 54px rgba(24,24,21,.12); }
.resource-category, .team-card p { color: #7b6900; }
.resource-card h2 { color: #111; font-family: "Inter Tight", sans-serif; font-size: 24px; font-weight: 500; }
.resource-arrow { color: #111; background: var(--gold); }
.security-note { border-color: #e1ca48; background: #fff8d2; }
.security-note > span { color: #111; background: var(--gold); }

.protocol-grid, .audience-grid, .team-grid { gap: 12px; }
.protocol-grid article > span, .audience-grid article > span { color: #7b6900; }
.protocol-grid h2, .audience-grid h2, .team-card h2 { color: #111; font-family: "Inter Tight", sans-serif; font-size: 22px; font-weight: 500; }
.method-note, .cta-panel { border: 1px solid #111; border-bottom: 3px solid var(--gold); border-radius: 14px; background: #111; box-shadow: 0 25px 54px rgba(17,17,17,.17); }
.method-note h2, .cta-panel h2 { font-family: "Inter Tight", sans-serif; font-weight: 500; }
.method-note p:last-child { color: #b0b0a8; }
.team-card { overflow: hidden; }
.team-card > img { filter: saturate(.7) contrast(.97); }
.team-links a:hover { color: #111; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; }

.contact-section { background: #e9e9e5; }
.contact-copy > h2 { font-size: 39px; line-height: 1.04; }
.address-card > span { color: #111; background: var(--gold); }
.map-card { border-color: rgba(17,17,17,.1); border-radius: 13px; background: #dddcd5; }

.result-hero-inner { min-height: 350px; padding-block: 66px; }
.result-hero-inner > div:first-child > p:last-child { color: #5f5f59; }
.result-metric { border-color: rgba(17,17,17,.12); border-radius: 12px; background: #fffefa; box-shadow: var(--shadow-sm); }
.result-metric span, .result-metric small { color: #72726b; }
.result-metric strong { color: #111; }
.button-light { color: white; background: #111; }
.button-outline-light { color: #111; border-color: #111; background: transparent; }
.dark-link { color: #111; text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
.sequence-preview { border-color: #d3d3cc; background: #ecece7; }
.match-list { gap: 9px; }
.match-card { border-color: rgba(17,17,17,.09); border-radius: 12px; box-shadow: 0 12px 30px rgba(24,24,21,.055); }
.match-card:hover { border-color: #111; }
.match-rank, .match-arrow { color: #111; background: var(--gold); }
.mono-label { color: #756400; }
.empty-state { border-color: #d3d3cc; background: #ecece7; }
.empty-state > span { color: #111; background: var(--gold); }

.table-wrap { border-color: rgba(17,17,17,.1); border-radius: 12px; box-shadow: 0 18px 44px rgba(24,24,21,.075); }
.data-table th { color: #3b3b37; border-color: #e0cd60; background: #fff3a8; }
.data-table td { border-color: #ecece6; }
.data-table tbody tr:hover { background: #fffbea; }
.data-table td a { color: #111; text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
.match-banner { border-color: #dfca50; background: #fff8d2; }
.match-banner > span { background: var(--gold); }
.fasta-viewer { border-color: #111; border-bottom: 3px solid var(--gold); color: #deded7; background: #111; box-shadow: 0 26px 58px rgba(17,17,17,.2); }
.fasta-header { color: #c8c8c0; }
.fasta-viewer mark { color: #111; background: var(--gold); }
.alignment-details summary > small { color: #766400; }
.alignment-details pre { color: #deded7; border-bottom: 3px solid var(--gold); background: #111; }
.metric-pill { color: #111; background: #fff0a0; }

.not-found { background: #eeeeea; }
.not-found > div > span { color: #ddd26f; }
.not-found h1 { font-family: "Inter Tight", sans-serif; font-weight: 500; }

@media (max-width: 820px) {
  .site-nav { border-color: rgba(17,17,17,.1); background: #fffefa; }
  .split-heading { gap: 24px; }
  .page-hero-grid { min-height: 310px; }
}

@media (max-width: 560px) {
  .section { padding-block: 68px; }
  .section-heading h2, .workflow-grid h2 { font-size: 2.25rem; }
  .feature-card { min-height: 235px; }
  .page-hero h1, .result-hero h1 { font-size: 2.55rem; }
  .panel-form { padding: 24px 20px; }
  .contact-copy > h2 { font-size: 34px; }
}

/* v6: image-free, typography-led home stage. */
.hero-typographic {
  padding: 28px 0 38px;
  color: white;
  border: 0;
  background: #e9e9e5;
}
.hero-typographic::before { display: none; }
.typographic-hero-frame {
  position: relative;
  width: min(1420px, calc(100% - 36px));
  min-height: 820px;
  margin-inline: auto;
  overflow: hidden;
  border: 14px solid #fffefa;
  border-radius: 46px;
  background:
    radial-gradient(circle at 84% 24%, rgba(255,216,47,.12), transparent 28%),
    radial-gradient(circle at 10% 80%, rgba(255,154,133,.1), transparent 24%),
    #111;
  box-shadow: 0 38px 90px rgba(17,17,17,.2);
}
.typographic-hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.075) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}
.typographic-hero-top {
  position: absolute;
  z-index: 5;
  inset: 27px 34px auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #8f8f87;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.typographic-hero-top span:first-child { text-transform: none; }
.typographic-hero-top span:last-child { display: inline-flex; align-items: center; gap: 9px; }
.typographic-hero-top i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(255,216,47,.1); }
.typographic-word {
  position: absolute;
  z-index: 1;
  top: 72px;                    /* wordart nudged down slightly */
  left: 3%;
  display: flex;
  align-items: baseline;
  white-space: nowrap;
  line-height: .76;
  letter-spacing: -.075em;
  pointer-events: none;
}
.typographic-word span { color: rgba(255,255,255,.96); font-family: "Inter Tight", sans-serif; font-size: clamp(6.3rem, 10.8vw, 10.9rem); font-weight: 600; }
.typographic-word em { margin-left: .02em; color: var(--gold); font-family: "Instrument Serif", serif; font-size: clamp(7.4rem, 12vw, 12rem); font-weight: 400; }
.typographic-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  gap: 76px;
  align-items: end;
  min-height: 655px;
  padding: 112px 48px 42px;   /* query card sits high in the frame */
}
.hero-typographic .hero-copy { max-width: 560px; padding-bottom: 30px; }
.hero-typographic .eyebrow { color: #b5b5ad; font-family: "DM Mono", monospace; font-size: 9px; font-weight: 500; letter-spacing: .08em; }
.hero-typographic .eyebrow span { height: 2px; background: var(--gold); }
.hero-typographic .hero-copy h1 { max-width: 545px; color: white; font-size: clamp(2.45rem, 3.2vw, 3.45rem); font-weight: 500; line-height: .99; letter-spacing: -.05em; }
.hero-typographic .hero-copy h1 em { display: block; color: var(--gold); font-family: "Instrument Serif", serif; font-weight: 400; letter-spacing: -.025em; }
.hero-typographic .hero-lead { max-width: 510px; margin: 22px 0; color: #aaa9a1; font-size: 14px; line-height: 1.62; }
.hero-caps {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-width: 560px; margin: 0; padding: 0; list-style: none;
}
.hero-caps li {
  display: grid; gap: 1px; flex: 0 1 auto; min-width: 0;
  padding: 10px 15px; border: 1px solid rgba(17,17,17,.06);
  border-radius: 12px; background: #fffefa; box-shadow: 0 10px 26px rgba(0,0,0,.16);
}
.hero-caps b {
  color: #8e7436; font-family: "DM Mono", monospace;
  font-size: 16px; font-weight: 500; line-height: 1.15; letter-spacing: -.01em;
}
.hero-caps span { color: #2c2c28; font-size: 11px; font-weight: 600; line-height: 1.35; white-space: nowrap; }
.hero-caps small { color: #7b7b73; font-family: "DM Mono", monospace; font-size: 8.5px; line-height: 1.35; white-space: nowrap; }

@media (max-width: 520px) {
  .hero-caps li { flex: 1 1 100%; }
  .hero-caps span, .hero-caps small { white-space: normal; }
}

.hero-typographic .search-card { width: 100%; border-color: rgba(255,255,255,.13); border-radius: 17px; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.hero-typographic .search-card-header { padding: 22px 24px 18px; background: #1b1b19; }
.hero-typographic .search-card-header h2 { font-size: 21px; }
.hero-typographic .search-form { padding: 20px 24px 22px; }
.hero-typographic .field select { height: 44px; }
.hero-typographic .field textarea { min-height: 78px; }
.hero-typographic .field-query { margin-top: 13px; }
.hero-typographic .examples { margin: 9px 0 14px; }
.hero-typographic .button { min-height: 44px; }
.hero-typographic .form-note { margin-top: 10px; }
.typographic-stat-row {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 48px 56px;
  border-top: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.typographic-stat-row > div { display: grid; gap: 7px; padding: 18px 20px; }
.typographic-stat-row > div + div { border-left: 1px solid rgba(255,255,255,.14); }
.typographic-stat-row span { color: #777770; font-family: "DM Mono", monospace; font-size: 8px; letter-spacing: .055em; text-transform: uppercase; }
.typographic-stat-row strong { color: white; font-family: "Inter Tight", sans-serif; font-size: 15px; font-weight: 500; }
.sequence-ticker { position: absolute; z-index: 4; inset: auto 0 0; height: 44px; overflow: hidden; color: #111; background: var(--gold); }
.sequence-ticker > div { display: flex; align-items: center; gap: 26px; width: max-content; height: 100%; padding-left: 26px; font-family: "DM Mono", monospace; font-size: 9px; font-weight: 500; letter-spacing: .06em; animation: typeTicker 28s linear infinite; }
.sequence-ticker b { font-size: 12px; }

/* Calmer type scale throughout content pages. */
.section-heading h2, .workflow-grid h2 { font-size: clamp(1.95rem, 2.65vw, 2.7rem); line-height: 1.08; }
.page-hero h1, .result-hero h1 { font-size: clamp(2.35rem, 3.35vw, 3.3rem); line-height: 1.03; }
.form-aside h2, .result-sidebar h2 { font-size: 26px; }
.resource-toolbar h2, .table-toolbar h2 { font-size: 24px; }
.contact-copy > h2 { font-size: 33px; line-height: 1.08; }
.method-note h2, .cta-panel h2 { font-size: 23px; }
.not-found h1 { font-size: 35px; }
.section-kicker, .resource-category, .team-card p { font-family: "DM Mono", monospace; }

@keyframes typeTicker {
  to { transform: translateX(-50%); }
}

@media (max-width: 1040px) {
  .typographic-hero-grid { grid-template-columns: 1fr; gap: 38px; padding-top: 225px; }
  .hero-typographic .hero-copy { max-width: 690px; }
  .hero-typographic .search-card { max-width: 720px; }
}

@media (max-width: 820px) {
  .typographic-hero-frame { border-width: 9px; border-radius: 32px; }
  .typographic-hero-top { inset: 22px 22px auto; }
  .typographic-hero-top span:first-child { display: none; }
  .typographic-word { top: 77px; left: 5%; }
  .typographic-word span { font-size: 17vw; }
  .typographic-word em { font-size: 19vw; }
  .typographic-hero-grid { padding: 205px 24px 38px; }
  .typographic-stat-row { margin-inline: 24px; }
}

@media (max-width: 560px) {
  .hero-typographic { padding-top: 16px; }
  .typographic-hero-frame { width: calc(100% - 18px); border-width: 7px; border-radius: 25px; }
  .typographic-hero-top { inset: 18px 16px auto; }
  .typographic-word { top: 70px; }
  .typographic-hero-grid { padding: 165px 14px 32px; }
  .hero-typographic .hero-copy h1 { font-size: 2.35rem; }
  .hero-typographic .search-card-header, .hero-typographic .search-form { padding-inline: 17px; }
  .typographic-stat-row { grid-template-columns: 1fr; margin: 0 14px 56px; }
  .typographic-stat-row > div { padding: 13px 16px; }
  .typographic-stat-row > div + div { border-top: 1px solid rgba(255,255,255,.14); border-left: 0; }
  .section-heading h2, .workflow-grid h2 { font-size: 2rem; }
  .page-hero h1, .result-hero h1 { font-size: 2.2rem; }
  .contact-copy > h2 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .sequence-ticker > div { animation: none !important; }
}

/* v7: low-fatigue light hero while preserving the typographic identity. */
.typographic-hero-frame {
  color: #111;
  border-color: #fffefa;
  background:
    radial-gradient(circle at 88% 15%, rgba(255,216,47,.26), transparent 29%),
    radial-gradient(circle at 8% 83%, rgba(255,169,150,.23), transparent 27%),
    linear-gradient(135deg, #f5f4ef 0%, #ecece6 100%);
  box-shadow: 0 34px 78px rgba(35,35,31,.14);
}
.typographic-hero-frame::before {
  opacity: .42;
  background-image: linear-gradient(rgba(17,17,17,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,17,.055) 1px, transparent 1px);
  mask-image: linear-gradient(90deg, black, transparent 78%);
}
.typographic-hero-top { color: #6f6f68; }
.typographic-hero-top i { background: #111; box-shadow: 0 0 0 5px rgba(17,17,17,.07); }
.typographic-word span { color: #151514; }
.typographic-word em { color: #c79d00; }
.hero-typographic .eyebrow { color: #66665f; }
.hero-typographic .hero-copy h1 { color: #111; }
.hero-typographic .hero-copy h1 em { color: #a87900; }
.hero-typographic .hero-lead { color: #5d5d57; }
.hero-typographic .hero-meta { color: #777770; }
.hero-typographic .hero-meta strong { color: #111; }
.hero-typographic .search-card {
  border-color: rgba(17,17,17,.11);
  box-shadow: 0 27px 62px rgba(34,34,30,.16);
}
.hero-typographic .search-card-header { background: #171716; }
.hero-typographic .search-card-header h2 { color: white; }
.hero-typographic .search-form { background: #fffefa; }
.typographic-stat-row {
  border-top-color: rgba(17,17,17,.14);
  border-bottom-color: rgba(17,17,17,.14);
}
.typographic-stat-row > div + div { border-left-color: rgba(17,17,17,.14); }
.typographic-stat-row span { color: #72726b; }
.typographic-stat-row strong { color: #111; }
.sequence-ticker { color: var(--gold); background: #171716; }

@media (max-width: 560px) {
  .typographic-stat-row > div + div { border-top-color: rgba(17,17,17,.14); }
}

/* v8: full-bleed hero surface with quieter near-white color atmospherics. */
.hero-typographic { padding: 0; background: #f8f7f4; }
.typographic-hero-frame {
  width: 100%;
  min-height: 820px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 88% 14%, rgba(255,247,220,.72), transparent 30%),
    radial-gradient(circle at 7% 82%, rgba(255,239,236,.66), transparent 28%),
    linear-gradient(135deg, #fbfaf7 0%, #f5f4f0 100%);
  box-shadow: none;
}
.typographic-hero-frame::before {
  opacity: .25;
  background-image: linear-gradient(rgba(17,17,17,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,17,.045) 1px, transparent 1px);
}
.typographic-hero-top {
  left: 50%;
  right: auto;
  width: var(--shell);
  transform: translateX(-50%);
}
.typographic-word {
  left: 50%;
  width: var(--shell);
  transform: translateX(-50%);
}
.typographic-word em { color: #c6af6f; }
.hero-typographic .hero-copy h1 em { color: #8e7436; }
.typographic-hero-grid {
  width: var(--shell);
  margin-inline: auto;
  padding-inline: 0;
}
.typographic-stat-row {
  width: var(--shell);
  margin-inline: auto;
}
.sequence-ticker > div { gap: 30px; }

@media (max-width: 820px) {
  .typographic-hero-top { top: 22px; }
}

@media (max-width: 560px) {
  .typographic-hero-top { top: 18px; }
  .typographic-hero-grid { padding-inline: 0; }
}

/* v9: compact hero/header rhythm and a wider evidence table. */
.typographic-hero-frame { min-height: 700px; }
.typographic-word { top: 52px; }
.typographic-word span { font-size: clamp(4.8rem, 8.1vw, 8.2rem); }
.typographic-word em { font-size: clamp(5.6rem, 9.25vw, 9.35rem); }
.typographic-hero-grid {
  min-height: 0;
  padding-top: 168px;
  padding-bottom: 32px;
  align-items: start;
}
.hero-typographic .hero-copy { padding-top: 10px; padding-bottom: 0; }
.typographic-stat-row { margin-bottom: 56px; }

.page-hero-grid {
  min-height: 235px;
  padding-block: 38px;
  align-items: center;
  gap: 56px;
}
.result-hero-inner {
  min-height: 245px;
  padding-block: 40px;
  align-items: center;
}
.result-hero-inner > div:first-child > p:last-child { margin-top: 14px; }
.result-metric { padding: 14px 17px; }
.result-metric strong { font-size: 32px; }

.primer-result-layout {
  width: min(1480px, calc(100% - 48px));
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 38px;
}
.primer-table { min-width: 1180px; table-layout: fixed; }
.primer-table .primer-col-name { width: 170px; }
.primer-table .primer-col-sequence { width: 235px; }
.primer-table .primer-col-conditions { width: 360px; }
.primer-table .primer-col-reference { width: 180px; }
.primer-table th, .primer-table td { padding-inline: 18px; }
.primer-table td code { font-size: 10.5px; line-height: 1.65; }
.pcr-condition-cell { color: #55554f; line-height: 1.58; }
.published-condition { color: #777770; font-style: italic; }
.reference-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 7px;
  align-items: center;
  text-decoration: none;
}
.reference-link span { grid-column: 1 / -1; color: #85857e; font-family: "DM Mono", monospace; font-size: 8px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.reference-link strong { font-family: "DM Mono", monospace; font-size: 10px; font-weight: 500; }
.reference-link b { color: #9a7a16; font-size: 13px; }
.reference-link:hover strong { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
.inhouse-reference { display: inline-block; padding: 6px 9px; border-radius: 999px; color: #111; background: #fff1a0; font-size: 9px; font-weight: 700; }

@media (max-width: 1040px) {
  .typographic-hero-frame { min-height: 0; }
  .typographic-hero-grid { padding-top: 150px; }
  .primer-result-layout { grid-template-columns: 1fr; width: var(--shell); }
}

@media (max-width: 820px) {
  .typographic-word span { font-size: 13vw; }
  .typographic-word em { font-size: 15vw; }
  .page-hero-grid { min-height: 220px; padding-block: 34px; }
  .result-hero-inner { min-height: 225px; padding-block: 36px; }
}

@media (max-width: 560px) {
  .typographic-word { top: 62px; }
  .typographic-hero-grid { padding-top: 122px; }
  .page-hero-grid { min-height: 0; padding-block: 32px; }
  .result-hero-inner { min-height: 0; padding-block: 34px; }
}

/* v10: premium refinement — softer contrast, clearer wordmark and calmer evidence UI. */
.site-header {
  border-bottom-color: rgba(31, 45, 57, .1);
  background: rgba(250, 250, 247, .93);
  box-shadow: 0 8px 26px rgba(31, 45, 57, .065);
}
.header-inner {
  min-height: 84px;
  padding-top: 4px;
}
.brand-mark {
  background: #1a2332;
  box-shadow: 0 7px 18px rgba(26, 35, 50, .13);
}
.site-nav .nav-cta { background: #1a2332; color: white; }
.site-nav .nav-cta:hover,
.site-nav .nav-cta.is-active { background: #2d3b4c; color: white; }

.typographic-word {
  gap: clamp(12px, 1.15vw, 20px);
  align-items: baseline;
  letter-spacing: normal;
}
.typographic-word span {
  color: #263744;
  font-weight: 500;
  letter-spacing: -.047em;
  opacity: .94;
}
.typographic-word em {
  margin-left: 0;
  color: #7f7662;
  letter-spacing: -.026em;
  opacity: .82;
}
.hero-typographic .hero-copy h1 { color: #1c2b36; }
.hero-typographic .hero-copy h1 em { color: #806d40; }
.hero-typographic .hero-lead { color: #5f696e; }

.hero-typographic .search-card {
  border: 1px solid rgba(38, 55, 68, .14);
  background: rgba(255, 255, 252, .76);
  box-shadow: 0 24px 56px rgba(32, 45, 55, .13);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.hero-typographic .search-card-header {
  background: rgba(26, 35, 50, .96);
}
.hero-typographic .search-card-header .section-kicker { color: #c9d0d5; }
.hero-typographic .search-form { background: rgba(255, 255, 252, .72); }
.hero-typographic .field select,
.hero-typographic .field textarea,
.hero-typographic .field input {
  border-color: rgba(38, 55, 68, .13);
  border-radius: 11px;
  background: rgba(247, 247, 243, .88);
}
.hero-typographic .field select:focus,
.hero-typographic .field textarea:focus,
.hero-typographic .field input:focus {
  border-color: #c9a917;
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 216, 47, .2), 0 8px 24px rgba(68, 57, 9, .06);
}
.search-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.search-actions .button-primary { flex: 1 1 auto; }
.search-reset {
  flex: 0 0 auto;
  padding: 10px 4px;
  border: 0;
  color: #727a7e;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  text-underline-offset: 4px;
}
.search-reset:hover,
.search-reset:focus-visible {
  color: #1a2332;
  outline: none;
  text-decoration: underline;
  text-decoration-color: #c9a917;
  text-decoration-thickness: 2px;
}

.hero-typographic .hero-meta { align-items: center; gap: 10px 18px; }
.hero-typographic .hero-meta .trust-stat {
  align-items: center;
  gap: 7px;
  padding: 7px 11px 7px 7px;
  border: 1px solid rgba(38, 55, 68, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 7px 18px rgba(38, 55, 68, .055);
}
.trust-stat i {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #1a2332;
  background: #f2d84e;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.hero-typographic .hero-meta .trust-stat strong {
  color: #1a2332;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.045em;
}
.trust-stat small {
  color: #5d676d;
  font-size: 8px;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.typographic-stat-row {
  gap: 12px;
  padding-block: 12px;
  border-top-color: rgba(38, 55, 68, .085);
  border-bottom-color: rgba(38, 55, 68, .085);
}
.typographic-stat-row > div {
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid rgba(38, 55, 68, .065);
  border-radius: 13px;
  background: rgba(255, 255, 255, .28);
}
.typographic-stat-row > div + div { border-left-color: rgba(38, 55, 68, .065); }
.stat-icon {
  grid-row: 1 / -1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(38, 55, 68, .11);
  border-radius: 50%;
  color: #263744;
  background: rgba(255, 255, 255, .7);
  font-family: "DM Mono", monospace;
  font-size: 18px;
  font-style: normal;
  line-height: 1;
}
.stat-icon-dna { font-size: 24px; transform: rotate(-18deg); }
.typographic-stat-row span,
.typographic-stat-row strong { grid-column: 2; }
.typographic-stat-row span { color: #6c7579; }
.typographic-stat-row strong {
  color: #263744;
  font-size: 17px;
  font-weight: 550;
}
.sequence-ticker { color: #eadb91; background: #1a2332; }

@media (max-width: 820px) {
  .typographic-word { gap: 10px; }
  .typographic-stat-row { gap: 8px; }
  .typographic-stat-row > div { padding-inline: 11px; }
  .typographic-stat-row strong { font-size: 15px; }
}

@media (max-width: 560px) {
  .header-inner { min-height: 74px; padding-top: 3px; }
  .typographic-word { gap: 7px; }
  .hero-typographic .hero-meta { display: flex; }
  .hero-typographic .hero-meta .trust-stat { width: fit-content; }
  .search-actions { gap: 11px; }
  .search-reset { padding-inline: 2px; }
  .typographic-stat-row { padding-block: 10px; }
  .typographic-stat-row > div + div { border-top-color: rgba(38, 55, 68, .065); }
}

/* v11: hPHD identity, bilingual controls and preview-first homology flow. */
.brand { min-width: 0; }
.brand-logo {
  display: block;
  width: 154px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}
.brand-footer {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
}
.brand-logo-footer { width: 178px; height: 62px; }

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-inline: 4px 2px;
  padding: 3px;
  border: 1px solid rgba(38, 55, 68, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
}
.language-switch button {
  min-width: 31px;
  height: 27px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  color: #69737a;
  background: transparent;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  font-weight: 500;
}
.language-switch button[aria-pressed="true"] {
  color: white;
  background: #1a2332;
  box-shadow: 0 5px 12px rgba(26, 35, 50, .14);
}
.language-switch button:focus-visible { outline: 3px solid rgba(255, 216, 47, .42); outline-offset: 2px; }

.hero-typographic .hero-copy { padding-top: 28px; }
.hero-typographic .hero-meta .trust-stat-compact {
  min-height: 40px;
  gap: 4px;
  padding: 7px 12px;
}
.hero-typographic .hero-meta .trust-stat-compact strong { font-size: 13px; letter-spacing: -.02em; }
.hero-typographic .hero-meta .trust-stat-compact small { font-size: 7.5px; }

.typographic-stat-row > div {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 5px;
  padding: 15px 18px;
  border-left: 2px solid rgba(201, 163, 58, .55);
}
.typographic-stat-row span,
.typographic-stat-row strong { grid-column: 1; }
.typographic-stat-row span b {
  margin-right: 8px;
  color: #9a7a16;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  font-weight: 500;
}
.typographic-stat-row strong { padding-left: 0; }

.page-hero-grid {
  min-height: 178px;
  padding-block: 24px;
  gap: 42px;
}
.page-hero h1 { font-size: clamp(2.2rem, 3vw, 2.9rem); }
.page-hero-grid > p { max-width: 520px; font-size: 14px; line-height: 1.58; }
.result-hero-inner {
  min-height: 205px;
  padding-block: 29px;
}

.match-card-preview {
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  transform: none;
}
.match-card-preview:hover { transform: none; border-color: rgba(26, 35, 50, .28); }
.match-card-content { min-width: 0; }
.match-sequence-preview {
  margin-top: 13px;
  border-top: 1px solid rgba(38, 55, 68, .09);
  border-bottom: 1px solid rgba(38, 55, 68, .09);
}
.match-sequence-preview summary {
  position: relative;
  padding: 10px 24px 10px 0;
  color: #263744;
  font-size: 10px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.match-sequence-preview summary::-webkit-details-marker { display: none; }
.match-sequence-preview summary::after {
  content: "+";
  position: absolute;
  right: 3px;
  top: 50%;
  color: #9a7a16;
  font-family: "DM Mono", monospace;
  font-size: 15px;
  font-weight: 500;
  transform: translateY(-50%);
}
.match-sequence-preview[open] summary::after { content: "−"; }
.match-sequence-preview > div {
  display: grid;
  gap: 7px;
  padding: 0 0 12px;
}
.match-sequence-preview > div > span {
  color: #7b858a;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.match-sequence-preview code {
  display: block;
  max-height: 120px;
  padding: 11px 12px;
  overflow: auto;
  border: 1px solid rgba(38, 55, 68, .09);
  border-radius: 9px;
  color: #4f5c63;
  background: #f6f6f2;
  line-height: 1.65;
}
.match-sequence-preview mark {
  padding: 1px 2px;
  color: #1a2332;
  background: #f3dc69;
}
.match-continue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  color: #1a2332;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}
.match-continue span { color: #9a7a16; font-size: 13px; transition: transform .2s; }
.match-continue:hover span { transform: translateX(3px); }

@media (max-width: 1120px) {
  .site-nav { gap: 2px; }
  .site-nav a { padding-inline: 9px; }
  .brand-logo { width: 142px; }
}

@media (max-width: 820px) {
  .site-nav { top: 82px; }
  .language-switch { justify-self: start; margin: 4px 0; }
  .hero-typographic .hero-copy { padding-top: 18px; }
  .page-hero-grid { min-height: 0; padding-block: 26px; }
  .result-hero-inner { min-height: 0; padding-block: 31px; }
}

@media (max-width: 560px) {
  .brand-logo { width: 132px; height: 48px; }
  .site-nav { top: 74px; }
  .hero-typographic .hero-meta .trust-stat { min-height: 38px; }
  .typographic-stat-row > div { grid-template-columns: 1fr; }
  .match-card-preview { grid-template-columns: 36px minmax(0, 1fr); gap: 13px; }
  .match-rank { width: 34px; height: 34px; }
}

/* v12: a restrained retro home signature with restored compact match cards. */
.typographic-word {
  top: 38px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: .74;
  transform: translateX(-50%) rotate(-1.2deg);
}
.typographic-word span,
.typographic-word em {
  color: #f5f1e6;
  font-family: "Shrikhand", "Cooper Black", "Arial Black", sans-serif;
  font-size: clamp(3.9rem, 6.05vw, 6.15rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -.025em;
  -webkit-text-stroke: 3px #263744;
  paint-order: stroke fill;
  text-shadow: 4px 5px 0 rgba(201, 163, 58, .52), 0 12px 24px rgba(38, 55, 68, .12);
}
.typographic-word em {
  margin-top: -.12em;
  margin-left: .7em;
  opacity: 1;
  transform: rotate(1.4deg);
}

.hero-typographic .hero-meta { align-items: stretch; }
.hero-typographic .hero-meta .trust-stat {
  height: 42px;
  min-height: 42px;
  white-space: nowrap;
}
.hero-typographic .hero-meta .trust-stat-compact {
  display: grid;
  grid-template-rows: 1fr 1fr;
  align-content: center;
  align-items: center;
  min-width: 124px;
  height: 42px;
  padding-block: 6px;
}
.hero-typographic .hero-meta .trust-stat-compact strong {
  align-self: end;
  line-height: 1.05;
}
.hero-typographic .hero-meta .trust-stat-compact small {
  align-self: start;
  line-height: 1.05;
}

.homology-results-hero .result-hero-inner {
  min-height: 245px;
  padding-block: 40px;
}
.homology-results-layout .match-list { gap: 9px; }
.homology-results-layout .match-card-preview {
  grid-template-columns: 44px minmax(0, 1fr) 34px;
  align-items: center;
  transition: border-color .2s, transform .2s;
}
.homology-results-layout .match-card-preview:hover {
  border-color: #73808a;
  transform: translateX(3px);
}
.match-arrow-link {
  align-self: center;
  color: #1a2332;
  text-decoration: none;
}
.match-arrow-link:focus-visible {
  outline: 3px solid rgba(255, 216, 47, .45);
  outline-offset: 3px;
}
.homology-results-layout .match-sequence-preview { margin-top: 10px; }
.homology-results-layout .match-sequence-preview summary { padding-block: 8px; }

@media (max-width: 1040px) {
  .typographic-word { top: 42px; }
  .typographic-word span,
  .typographic-word em { font-size: clamp(3.8rem, 9vw, 5.7rem); }
  .typographic-hero-grid { padding-top: 174px; }
}

@media (max-width: 820px) {
  .typographic-word { top: 45px; }
  .typographic-word span,
  .typographic-word em {
    font-size: clamp(3.3rem, 13vw, 5.2rem);
    -webkit-text-stroke-width: 2.5px;
    text-shadow: 3px 4px 0 rgba(201, 163, 58, .5), 0 10px 20px rgba(38, 55, 68, .11);
  }
  .typographic-hero-grid { padding-top: 170px; }
  .homology-results-hero .result-hero-inner { min-height: 225px; padding-block: 36px; }
}

@media (max-width: 560px) {
  .typographic-word { top: 48px; }
  .typographic-word span,
  .typographic-word em { font-size: clamp(2.75rem, 14.5vw, 4rem); }
  .typographic-word em { margin-left: .55em; }
  .typographic-hero-grid { padding-top: 160px; }
  .hero-typographic .hero-meta .trust-stat-compact { min-width: 116px; }
  .homology-results-hero .result-hero-inner { min-height: 0; padding-block: 34px; }
  .homology-results-layout .match-card-preview { grid-template-columns: 36px minmax(0, 1fr) 30px; }
  .homology-results-layout .match-arrow { display: grid; width: 29px; height: 29px; }
}

/* v13: clearer retro wordmark spacing and a coordinated editorial subline. */
.typographic-word {
  line-height: .78;
  transform: translateX(-50%) rotate(-.55deg);
}
.typographic-word span,
.typographic-word em {
  letter-spacing: -.012em;
  -webkit-text-stroke-width: 2.35px;
  text-shadow: 3px 4px 0 rgba(201, 163, 58, .46), 0 10px 20px rgba(38, 55, 68, .1);
}
.typographic-word em {
  margin-top: -.065em;
  margin-left: 1.08em;
  transform: rotate(.55deg);
}
.hero-typographic .hero-copy h1 em {
  position: relative;
  display: block;
  width: fit-content;
  margin-top: .06em;
  padding-right: .14em;
  color: #786333;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.03em;
  font-style: italic;
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.012em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .72);
}
.hero-typographic .hero-copy h1 em::after {
  content: "";
  position: absolute;
  right: .12em;
  bottom: -.12em;
  left: .02em;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(201, 163, 58, .9), rgba(201, 163, 58, .12));
}

@media (max-width: 820px) {
  .typographic-word em { margin-left: .94em; }
}

@media (max-width: 560px) {
  .typographic-word span,
  .typographic-word em { -webkit-text-stroke-width: 2px; }
  .typographic-word em { margin-left: .8em; }
  .hero-typographic .hero-copy h1 em::after { bottom: -.09em; }
}

/* v14: use the supplied transparent Pseudogene word artwork as the hero signature. */
.typographic-word-art {
  top: 27px;
  display: block;
  line-height: normal;
  transform: translateX(-50%) rotate(-.35deg);
}
.typographic-word-art img {
  display: block;
  width: clamp(340px, 31.5vw, 430px);
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(38, 55, 68, .09));
}
.typographic-hero-grid { padding-top: 215px; }

@media (max-width: 1040px) {
  .typographic-word-art { top: 31px; }
  .typographic-word-art img { width: clamp(330px, 39vw, 400px); }
  .typographic-hero-grid { padding-top: 205px; }
}

@media (max-width: 820px) {
  .typographic-word-art { top: 34px; }
  .typographic-word-art img { width: min(76vw, 360px); }
  .typographic-hero-grid { padding-top: 198px; }
}

@media (max-width: 560px) {
  .typographic-word-art { top: 40px; }
  .typographic-word-art img { width: min(84vw, 320px); }
  .typographic-hero-grid { padding-top: 185px; }
}

/* v15: integrated evidence, supplied hero artwork and transparent footer mark. */
.typographic-word-art {
  top: 34px;
  transform: translateX(-50%) rotate(-.25deg);
}
.typographic-word-art img {
  width: clamp(390px, 36vw, 515px);
  filter: drop-shadow(0 10px 22px rgba(38, 55, 68, .1));
}
.typographic-hero-grid { padding-top: 190px; }
.hero-typographic .search-card { transform: translateY(-15px); }

.primer-table { min-width: 1060px; }
.primer-table .primer-col-name { width: 175px; }
.primer-table .primer-col-sequence { width: 240px; }
.primer-table .primer-col-conditions { width: 405px; }
.published-condition {
  display: grid;
  gap: 10px;
  color: #58636a;
  font-style: normal;
}
.published-condition > span {
  color: #777770;
  font-size: 11px;
  font-style: italic;
}
.condition-reference {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  align-items: center;
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid rgba(38, 55, 68, .12);
  border-radius: 10px;
  color: #263744;
  background: rgba(255, 255, 252, .7);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.condition-reference span {
  grid-column: 1 / -1;
  color: #727b80;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.condition-reference strong {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 600;
}
.condition-reference b { color: #9a7a16; font-size: 13px; }
.condition-reference:hover {
  border-color: rgba(154, 122, 22, .35);
  background: #fff8d7;
  transform: translateY(-1px);
}
.inhouse-condition { display: grid; gap: 9px; }
.inhouse-condition span {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: #263744;
  background: #fff4b8;
  font-size: 9px;
  font-weight: 700;
}
.inhouse-condition p { margin: 0; }

.brand-footer {
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.brand-logo-footer {
  width: 178px;
  height: 62px;
  filter: grayscale(1) brightness(0) invert(1);
  opacity: .94;
}

@media (max-width: 1040px) {
  .typographic-word-art { top: 34px; }
  .typographic-word-art img { width: clamp(380px, 48vw, 485px); }
  .typographic-hero-grid { padding-top: 180px; }
  .hero-typographic .search-card { transform: translateY(-8px); }
}

@media (max-width: 820px) {
  .typographic-word-art { top: 38px; }
  .typographic-word-art img { width: min(82vw, 430px); }
  .typographic-hero-grid { padding-top: 172px; }
}

@media (max-width: 560px) {
  .typographic-word-art { top: 43px; }
  .typographic-word-art img { width: min(88vw, 360px); }
  .typographic-hero-grid { padding-top: 160px; }
  .hero-typographic .search-card { transform: translateY(-4px); }
}

/* Multi-gene primer evidence database. */
.omim-link-list {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 18px;
}
.source-meta {
  margin-top: 18px;
  color: #7a8388;
  font-size: 11px;
  font-style: italic;
}
.source-notes {
  margin-top: 20px;
  border: 1px solid rgba(38, 55, 68, .12);
  border-radius: 12px;
  background: rgba(255, 255, 252, .7);
}
.source-notes summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #344753;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.source-notes summary::-webkit-details-marker { display: none; }
.source-notes summary span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding-inline: 6px;
  border-radius: 999px;
  color: #263744;
  background: #fff1a0;
  font-family: "DM Mono", monospace;
  font-size: 9px;
}
.source-notes > div {
  max-height: 320px;
  padding: 0 14px 14px;
  overflow: auto;
  border-top: 1px solid rgba(38, 55, 68, .1);
}
.source-notes p { margin: 12px 0 0; font-size: 11px; line-height: 1.65; }
.condition-reference-list { display: flex; flex-wrap: wrap; gap: 7px; }

.available-genes-panel {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  gap: 64px;
  align-items: start;
  padding: 36px;
  border: 1px solid rgba(38, 55, 68, .12);
  border-radius: 18px;
  background: rgba(255, 255, 252, .82);
  box-shadow: 0 20px 46px rgba(38, 55, 68, .08);
}
.available-genes-panel h2 { margin: 0 0 12px; color: #1c2b36; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.045em; }
.available-genes-panel p:not(.section-kicker) { margin: 0; color: #667178; font-size: 13px; line-height: 1.7; }
.available-gene-list { display: flex; flex-wrap: wrap; gap: 9px; }
.available-gene-list a {
  padding: 9px 12px;
  border: 1px solid rgba(38, 55, 68, .12);
  border-radius: 999px;
  color: #263744;
  background: #fffefa;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.available-gene-list a:hover { border-color: #c7a12e; background: #fff5bc; transform: translateY(-1px); }

@media (max-width: 820px) {
  .available-genes-panel { grid-template-columns: 1fr; gap: 28px; padding: 26px; }
}

/* GENCODE v50 local BLAST result details. */
.homology-results-hero .result-hero-inner {
  min-height: 205px;
  padding-block: 29px;
}
.alignment-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  gap: 7px;
  margin-top: 13px;
}
.alignment-stats > span {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid rgba(38, 55, 68, .1);
  border-radius: 9px;
  background: #f8f8f4;
}
.alignment-stats strong {
  color: #263744;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 700;
}
.alignment-stats small {
  color: #7b858a;
  font-size: 8px;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.match-card .transcript-list {
  margin-top: 10px;
  color: #667178;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  overflow-wrap: anywhere;
}
.match-card .transcript-list strong { color: #344753; }
.alignment-sequences { gap: 9px !important; }
.alignment-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.match-sequence-preview .alignment-row > span {
  padding-top: 11px;
  color: #68747b;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.alignment-row code { white-space: pre; }
.record-facts dd { overflow-wrap: anywhere; }

@media (max-width: 680px) {
  .alignment-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alignment-row { grid-template-columns: 1fr; gap: 0; }
  .match-sequence-preview .alignment-row > span { padding-top: 0; }
}

/* BLAST pairwise report with dots marking identical bases. The report is
   far wider than the summary columns, so it lives in its own full-width
   row and scrolls inside itself; embedding it in a normal cell stretched
   the table and knocked every column out of alignment. */
.blast-summary-hint { margin: 0 0 16px; color: var(--ink-600); font-size: 12px; }
.blast-table { table-layout: fixed; }
.blast-col-desc { width: 34%; }
.blast-col-action { width: 96px; }
.blast-hit-name { display: grid; gap: 3px; }
.blast-hit-name strong { font-size: 11px; }
.blast-hit-name small { color: #788288; font-family: "DM Mono", monospace; font-size: 8px; }
.alignment-button {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border: 1px solid var(--ink-200); border-radius: 999px;
  color: var(--ink-800); background: white; cursor: pointer;
  font-family: "DM Mono", monospace; font-size: 9px; font-weight: 700;
}
.alignment-button:hover { border-color: var(--ink-500); }
.alignment-button i { position: relative; width: 13px; height: 13px; border: 1px solid rgba(38,55,68,.3); border-radius: 50%; }
.alignment-button i::before, .alignment-button i::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 6px; height: 1px; background: currentColor; transform: translate(-50%, -50%);
}
.alignment-button i::after { transform: translate(-50%, -50%) rotate(90deg); }
.alignment-button.is-open i::after { display: none; }
.pairwise-key { margin-top: 6px !important; }
.pairwise-key b.mm, .pairwise-line code b.mm {
  padding: 0 1px; border-radius: 2px; color: #8c2f26; background: #ffe0da; font-weight: 700;
}

/* Gene-specific region map, shared by the BLASTN page and the designer. */
.specificity-map, .assay-map { margin: 4px 0 26px; }
.specificity-track, .assay-track {
  position: relative; height: 34px;
  border: 1px solid var(--ink-200); border-radius: 9px;
  background: repeating-linear-gradient(90deg, var(--ink-100) 0 1px, transparent 1px 48px);
  background-color: #fbfcfc; overflow: hidden;
}
.specificity-band, .assay-segment { position: absolute; top: 7px; bottom: 7px; min-width: 2px; border-radius: 3px; }
.specificity-band.specificity-high, .assay-segment.specificity-high { background: #2f8f57; }
.specificity-band.specificity-moderate, .assay-segment.specificity-moderate { background: #c9a33a; }
.specificity-band.specificity-low, .assay-segment.specificity-low { background: #b9c2c7; }
.assay-target {
  position: absolute; top: 0; bottom: 0; min-width: 3px;
  border: 2px solid var(--teal-700); border-radius: 6px; background: rgba(63,98,115,.12);
}
.specificity-scale { display: flex; justify-content: space-between; margin-top: 6px; color: var(--ink-500); font-family: "DM Mono", monospace; font-size: 9px; }
.specificity-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: var(--ink-600); font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.specificity-legend span { display: inline-flex; align-items: center; gap: 6px; }
.specificity-legend-note { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-500); }
.legend-swatch { width: 12px; height: 8px; border-radius: 3px; background: var(--ink-300); }
.legend-swatch.specificity-high { background: #2f8f57; }
.legend-swatch.specificity-moderate { background: #c9a33a; }
.legend-swatch.specificity-low { background: #b9c2c7; }
.legend-swatch.legend-target { background: rgba(63,98,115,.2); border: 2px solid var(--teal-700); }
.segment-table-wrap { margin-bottom: 8px; }
.segment-table { min-width: 620px; }
.segment-use { color: var(--ink-600); }
.result-metric-inline { min-width: 150px; padding: 12px 16px; border: 1px solid var(--ink-200); border-radius: 12px; background: var(--paper-soft); }
.result-metric-inline span, .result-metric-inline small { display: block; color: var(--ink-500); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.result-metric-inline strong { display: block; margin: 2px 0; color: var(--ink-950); font-family: "DM Mono", monospace; font-size: 24px; line-height: 1; }
.target-summary { margin: 0 0 22px; color: var(--ink-700); font-size: 13px; }
.reuse-badge { padding: 4px 9px; border-radius: 999px; color: #1c6b3f; background: #dcf3e4; font-size: 9px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.primer-card-reused { border-style: dashed; background: #f4faf6; }
.primer-genomic { margin: 10px 0 0; color: var(--ink-500); font-family: "DM Mono", monospace; font-size: 9px; }
.primer-pair-meta-top { margin: 0 0 16px !important; color: var(--ink-700); font-size: 12px; }

.pairwise-report { margin-top: 12px; }
.pairwise-report {
  gap: 14px !important;
  padding: 14px !important;
  border: 1px solid rgba(38, 55, 68, .11);
  border-radius: 10px;
  background: #f7f7f3;
}
.pairwise-description { display: grid; gap: 4px; }
.pairwise-description strong {
  color: #263744;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.pairwise-description span {
  color: #6d787e;
  font-family: "DM Mono", monospace;
  font-size: 9px;
}
.pairwise-metrics {
  display: grid;
  gap: 4px;
  padding-block: 11px;
  border-top: 1px solid rgba(38, 55, 68, .1);
  border-bottom: 1px solid rgba(38, 55, 68, .1);
}
.pairwise-metrics p {
  margin: 0;
  color: #4f5c63;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  line-height: 1.65;
}
.pairwise-metrics strong { color: #263744; }
.pairwise-blocks {
  display: grid;
  gap: 5px;
  padding: 3px 0 6px;
  overflow-x: auto;
}
.pairwise-line {
  display: grid;
  grid-template-columns: 44px 62px minmax(0, 1fr) 62px;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
  color: #344753;
  font-family: "DM Mono", monospace;
  font-size: 9px;
}
.pairwise-line span { color: #263744; font-weight: 700; }
.pairwise-line b { color: #68747b; font-weight: 500; }
.pairwise-line b:last-child { text-align: right; }
.pairwise-line code {
  padding: 0;
  border: 0;
  color: #1d2d38;
  background: transparent;
  font-size: 10px;
  letter-spacing: .035em;
  white-space: pre;
}

@media (max-width: 680px) {
  .pairwise-report { padding: 12px !important; }
  .blast-alignment-toggle > .pairwise-report { margin-top: 10px; }
}

/* Three-step FASTA → selected record → full-gene BLAST workflow. */
.fasta-match-position {
  margin-top: 10px !important;
  color: #344753 !important;
  font-family: "DM Mono", monospace;
  font-weight: 600;
}

/* AI-assisted region-specific primer designer. */
.primer-form-grid { margin-bottom: 8px; }
.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  color: var(--ink-800);
  font-size: 12px;
  font-weight: 600;
}
.checkbox-inline input { width: 17px; height: 17px; accent-color: var(--teal-700); }

.notice-caution { border-left-color: #b5842f; background: #fbf3e4; }

.primer-pair-card {
  margin-bottom: 26px;
  padding: 22px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-sm);
}
.primer-pair-card h3 { margin: 0 0 16px; color: var(--ink-950); font-size: 18px; letter-spacing: -.02em; }
.primer-pair-card h3 small { display: block; margin-top: 4px; color: var(--ink-600); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.primer-pair-card-outer { border-style: dashed; background: #fbf9f5; }
.primer-pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.primer-card { padding: 16px; border: 1px solid var(--ink-100); border-radius: 12px; background: var(--paper-soft); }
.primer-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.primer-card-label { color: var(--ink-800); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.specificity-badge { padding: 4px 9px; border-radius: 999px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.specificity-badge.specificity-high { color: #1c6b3f; background: #dcf3e4; }
.specificity-badge.specificity-moderate { color: #8a6110; background: #fbeecb; }
.specificity-badge.specificity-low { color: #9b3b34; background: #fbe3e0; }
.primer-sequence-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.primer-sequence-row code {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink-900);
  background: white;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.primer-card-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.primer-card-facts div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--ink-100); padding-bottom: 4px; }
.primer-card-facts dt { color: var(--ink-500); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.primer-card-facts dd { margin: 0; color: var(--ink-900); font-family: "DM Mono", monospace; font-size: 11px; font-weight: 600; }
.primer-flag { margin: 10px 0 0; color: #9b5a4a; font-size: 11px; font-weight: 600; }
.primer-pair-meta { margin: 4px 0 0; color: var(--ink-600); font-size: 12px; }

@media (max-width: 680px) {
  .primer-pair-grid { grid-template-columns: 1fr; }
  .primer-card-facts { grid-template-columns: 1fr; }
}

/* Grounded literature chatbot. */
.chat-hero { color: white; background: var(--ink-950); }
.chat-hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: end; padding: 74px 0 54px; }
.chat-hero h1 { margin: 0; font-size: clamp(2.2rem, 3.6vw, 3.1rem); line-height: 1.05; letter-spacing: -.04em; }
.chat-hero-lead { max-width: 540px; margin: 20px 0 0; color: #adc1cc; font-size: 15px; line-height: 1.62; }
.chat-hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chat-stat { padding: 16px 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.05); }
.chat-stat strong { display: block; color: white; font-family: "DM Mono", monospace; font-size: 30px; line-height: 1; letter-spacing: -.02em; }
.chat-stat span { display: block; margin-top: 6px; color: #9db2c0; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.4; }
.chat-stat-wide { grid-column: 1 / -1; }
.chat-stat-wide strong { font-size: 22px; }

.chat-layout { display: grid; grid-template-columns: 1.55fr .45fr; gap: 40px; align-items: start; }
.chat-main { display: grid; gap: 12px; min-width: 0; }
.chat-window {
  display: grid; grid-template-rows: auto 1fr auto;
  height: min(70vh, 720px); min-height: 520px; overflow: hidden;
  border: 1px solid var(--ink-200); border-radius: var(--radius-md);
  background: white; box-shadow: var(--shadow-lg);
}
.chat-window-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 20px; border-bottom: 1px solid var(--ink-200); background: var(--paper-soft);
}
.chat-window-title { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-950); font-size: 13px; font-weight: 700; }
.chat-window-title i { width: 8px; height: 8px; border-radius: 50%; background: #2f8f57; box-shadow: 0 0 0 4px rgba(47,143,87,.14); }
.chat-window-model { color: var(--ink-500); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }

.chat-thread { display: flex; flex-direction: column; gap: 16px; padding: 22px; overflow-y: auto; scroll-behavior: smooth; }
.chat-message { max-width: 78%; padding: 14px 17px; border-radius: 16px; font-size: 14px; line-height: 1.68; }
.chat-message p { margin: 0 0 10px; }
.chat-message p:last-child { margin-bottom: 0; }
.chat-message-user { align-self: flex-end; border-bottom-right-radius: 5px; color: white; background: var(--teal-700); }
.chat-message-assistant { align-self: flex-start; border-bottom-left-radius: 5px; color: var(--ink-800); background: var(--paper-soft); border: 1px solid var(--ink-100); }
.chat-message-refusal { border-left: 3px solid var(--gold); background: #f7f5f0; }
.chat-intro { max-width: 92%; color: var(--ink-600); font-size: 13px; }
.chat-intro-tr { padding-top: 10px; border-top: 1px solid var(--ink-200); color: var(--ink-500); font-size: 12.5px; }
.chat-pending { color: var(--ink-500); font-style: italic; }
.chat-warning { padding: 9px 11px; border-radius: 8px; color: #8c2f26; background: #ffe0da; font-size: 12px; font-weight: 600; }
.chat-note { color: var(--ink-500); font-size: 12px; }
.chat-cite { color: var(--teal-700); font-weight: 700; font-size: 10px; }

.chat-sources { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--ink-200); }
.chat-sources-title { margin: 0 0 9px !important; color: var(--ink-500) !important; font-size: 10px !important; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.chat-sources ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.chat-source { display: grid; grid-template-columns: 28px 1fr; gap: 8px; font-size: 12px; }
.chat-source-number { color: #9aa6ad; font-family: "DM Mono", monospace; font-size: 10px; }
.chat-source.is-cited .chat-source-number { color: var(--teal-700); font-weight: 700; }
.chat-source a { color: var(--teal-700); font-weight: 600; }
.chat-source small { display: block; margin-top: 2px; color: var(--ink-500); font-family: "DM Mono", monospace; font-size: 9px; }
.chat-source details { margin-top: 6px; }
.chat-source summary { color: var(--ink-600); cursor: pointer; font-size: 11px; }
.chat-source blockquote { margin: 7px 0 0; padding: 10px 12px; border-left: 2px solid var(--ink-200); color: var(--ink-700); background: white; font-size: 12px; line-height: 1.62; }

.chat-composer { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; padding: 14px 16px; border-top: 1px solid var(--ink-200); background: white; }
.chat-composer textarea {
  width: 100%; max-height: 160px; padding: 12px 14px; border: 1px solid var(--ink-200);
  border-radius: 14px; color: var(--ink-900); background: var(--paper-soft); resize: none; outline: none;
  font-family: inherit; font-size: 14px; line-height: 1.5;
}
.chat-composer textarea:focus { border-color: var(--teal-500); background: white; box-shadow: 0 0 0 4px rgba(113,142,156,.12); }
.chat-composer textarea:disabled { opacity: .55; }
.chat-send {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  color: white; background: var(--teal-700); cursor: pointer; font-size: 17px;
}
.chat-send:hover { background: var(--teal-600); }
.chat-send:disabled { opacity: .45; cursor: not-allowed; }
.chat-disclaimer { text-align: left; font-size: 11px; line-height: 1.6; }

.chat-sidebar { position: sticky; top: 112px; }
.chat-sidebar-copy { color: var(--ink-600); font-size: 12px; line-height: 1.62; }
.chat-examples { display: grid; gap: 8px; }
.chat-examples button {
  padding: 11px 13px; border: 1px solid var(--ink-200); border-radius: 10px;
  color: var(--ink-800); background: white; cursor: pointer;
  font-size: 11.5px; font-weight: 600; text-align: left; line-height: 1.45;
}
.chat-examples button:hover { border-color: var(--teal-500); background: var(--paper-soft); }

@media (max-width: 1000px) {
  .chat-hero-inner { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .chat-layout { grid-template-columns: 1fr; gap: 30px; }
  .chat-sidebar { position: static; }
  .chat-message { max-width: 92%; }
  .chat-window { height: auto; min-height: 460px; }
}


/* Full-gene BLASTN alignment panel. It lives OUTSIDE the summary table:
   inside a <td colspan> the panel inherited the table's fixed column
   sizing and kept being squeezed into the description column's width, no
   matter how the inner grid was set. As a block below the table it simply
   takes the full page width, and the 60-character alignment rows fit
   without any horizontal scrolling. */
.blast-alignment-row > td { padding: 0 18px 18px; background: #fff; }
.blast-alignment-row .pairwise-report {
  margin: 0; padding: 22px 24px !important; border: 0; border-radius: 14px;
  color: #d6e0e6; background: #0f1720; box-shadow: 0 18px 44px rgba(15,23,32,.22);
}
.blast-alignment-row .pairwise-description strong { color: #e8eef2; font-size: 12px; }
.blast-alignment-row .pairwise-description span { color: #8fa3b0; }
.blast-alignment-row .pairwise-metrics { border-color: rgba(255,255,255,.12); }
.blast-alignment-row .pairwise-metrics p { color: #a9bcc7; font-size: 10px; }
.blast-alignment-row .pairwise-metrics strong { color: #f0f4f7; }
.blast-alignment-row .pairwise-key { color: #8fa3b0 !important; }
.blast-alignment-row .pairwise-key span { color: #d6e0e6; }
.blast-alignment-row .pairwise-blocks { overflow-x: auto; }
.blast-alignment-row .pairwise-line {
  display: grid; grid-template-columns: 40px 54px minmax(0, 1fr) 54px;
  gap: 7px; align-items: baseline; min-width: 0;
  color: #c7d5de; font-family: "DM Mono", monospace; font-size: 10.5px;
}
.blast-alignment-row .pairwise-line span { color: #7fd1a6; font-weight: 700; }
.blast-alignment-row .pairwise-line b { color: #7d8f9b; font-weight: 500; }
.blast-alignment-row .pairwise-line b:last-child { text-align: right; }
.blast-alignment-row .pairwise-line code {
  padding: 0; border: 0; background: transparent; color: #e6edf2;
  /* Scales with the viewport so a 60-character block fits at any window
     width - no horizontal scrollbar on a laptop, still large and legible
     on a wide screen. */
  font-size: clamp(10.5px, 1.02vw, 13.5px);
  letter-spacing: .04em; white-space: pre;
}
.blast-alignment-row .pairwise-line code b.mm,
.blast-alignment-row .pairwise-key b.mm { color: #ffd166; background: rgba(255,209,102,.16); }

/* Target region panel on the primer designer. */
.assay-map { padding: 20px 22px; border: 1px solid var(--ink-200); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); }
.assay-track { height: 46px; border-radius: 10px; }
.assay-segment { top: 10px; bottom: 10px; border-radius: 4px; }
.assay-target { border-width: 2px; border-radius: 8px; background: rgba(63,98,115,.10); box-shadow: 0 0 0 1px rgba(255,255,255,.7) inset; }
.assay-target::after {
  content: "inner amplicon"; position: absolute; left: 50%; top: -1px;
  padding: 2px 7px; border-radius: 0 0 6px 6px; color: white; background: var(--teal-700);
  font-family: "DM Mono", monospace; font-size: 8px; letter-spacing: .04em; white-space: nowrap;
  transform: translateX(-50%);
}
.assay-map .specificity-scale { margin-top: 8px; }
.assay-map .specificity-legend { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ink-100); }
.target-summary { margin: 16px 0 24px; padding: 14px 16px; border-left: 3px solid var(--teal-600); border-radius: 0 10px 10px 0; background: var(--paper-soft); color: var(--ink-700); font-size: 13px; line-height: 1.65; }
.target-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; }
.target-facts > div { padding: 14px 16px; border: 1px solid var(--ink-200); border-radius: 12px; background: var(--paper-soft); }
.target-facts span { display: block; color: var(--ink-500); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.target-facts strong { display: block; margin: 4px 0 2px; color: var(--ink-950); font-family: "DM Mono", monospace; font-size: 20px; line-height: 1.1; }
.target-facts small { color: var(--ink-600); font-size: 11px; }
@media (max-width: 760px) { .target-facts { grid-template-columns: 1fr; } }

/* Site guide launcher and panel. */
.site-guide { position: fixed; right: 22px; bottom: 22px; z-index: 60; }
.site-guide-launcher {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px 11px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  color: white; background: var(--ink-950); cursor: pointer;
  box-shadow: 0 16px 40px rgba(23,33,43,.32); font-size: 12px; font-weight: 700;
}
.site-guide-launcher:hover { background: var(--teal-700); }
.site-guide-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.1); }
.site-guide-mark svg { width: 20px; height: 20px; }
.site-guide-mark .helix { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; }
.site-guide-mark .rung { stroke: rgba(255,255,255,.75); stroke-width: 1.7; stroke-linecap: round; }
.site-guide-panel {
  position: absolute; right: 0; bottom: 58px; width: min(380px, calc(100vw - 44px));
  max-height: min(620px, calc(100vh - 120px)); overflow-y: auto;
  padding: 20px; border: 1px solid var(--ink-200); border-radius: var(--radius-md);
  background: white; box-shadow: var(--shadow-lg);
}
.site-guide-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.site-guide-head h2 { margin: 2px 0 0; color: var(--ink-950); font-size: 19px; letter-spacing: -.02em; }
.site-guide-close { width: 30px; height: 30px; border: 1px solid var(--ink-200); border-radius: 50%; background: white; color: var(--ink-600); cursor: pointer; font-size: 16px; line-height: 1; }
.site-guide-note { margin: 10px 0 14px; color: var(--ink-500); font-size: 11px; line-height: 1.55; }
.site-guide-topics { display: grid; gap: 7px; }
.site-guide-topics button {
  padding: 11px 13px; border: 1px solid var(--ink-200); border-radius: 10px;
  color: var(--ink-800); background: white; cursor: pointer; font-size: 12px; font-weight: 600; text-align: left;
}
.site-guide-topics button:hover { border-color: var(--teal-500); background: var(--paper-soft); }
.site-guide-body { margin-bottom: 14px; padding: 14px 16px; border-radius: 12px; background: var(--paper-soft); }
.site-guide-body h3 { margin: 0 0 10px; color: var(--ink-950); font-size: 14px; }
.site-guide-body ol { margin: 0 0 14px; padding-left: 18px; display: grid; gap: 8px; color: var(--ink-700); font-size: 12px; line-height: 1.6; }
.site-guide-body .button { min-height: 40px; font-size: 12px; }
.site-guide-miss { margin: 0; color: var(--ink-600); font-size: 12px; }
.site-guide-search { display: block; margin-top: 12px; }
.site-guide-search input {
  width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm); background: var(--paper-soft); color: var(--ink-900); outline: none; font: inherit; font-size: 12px;
}
.site-guide-search input:focus { border-color: var(--teal-500); background: white; box-shadow: 0 0 0 4px rgba(113,142,156,.12); }
.team-card { display: grid; gap: 6px; }

@media (max-width: 680px) {
  .site-guide { right: 14px; bottom: 14px; }
  .site-guide-label { display: none; }
  .site-guide-launcher { padding: 10px; }
}

/* Protocol page prose. */
.protocol-body > p { max-width: 76ch; margin: 0 0 14px; color: var(--ink-700); font-size: 14px; line-height: 1.72; }
.protocol-body > p code { padding: 1px 5px; border-radius: 4px; color: var(--ink-900); background: var(--ink-100); font-family: "DM Mono", monospace; font-size: 12px; }
.protocol-body > p strong { color: var(--ink-950); }
.protocol-body .notice, .protocol-body .security-note { max-width: 76ch; }
.protocol-body .form-section-heading { margin-top: 46px; }

/* Gene context panel: fetched reference summary beside the curated note. */
.gene-fullname { margin: -6px 0 12px !important; color: var(--ink-500) !important; font-size: 12px !important; }
.gene-summary { margin-top: 18px; padding: 16px 18px; border-left: 3px solid var(--teal-600); border-radius: 0 10px 10px 0; background: var(--paper-soft); }
.gene-summary-label { margin: 0 0 8px !important; color: var(--ink-500) !important; font-size: 9px !important; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.gene-summary p { color: var(--ink-700); font-size: 12px; line-height: 1.68; }
.gene-summary-source { margin-top: 10px !important; font-size: 10px !important; }
.gene-aliases { margin-top: 8px !important; color: var(--ink-500) !important; font-size: 10px !important; }
