@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Manrope:wght@400;600;700&display=swap");

:root {
  --bg: #0a0e14;
  --panel: #121826;
  --text: #e6edf3;
  --muted: #8b9cb3;
  --accent: #3dff9a;
  --line: rgba(255, 255, 255, 0.08);
  font-family: "Manrope", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 10% -10%, #1a2744 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-right: auto;
}
.brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.page-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.lead {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 52ch;
}

/* —— Периодическая таблица —— */
.periodic-wrap {
  position: relative;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.periodic-grid {
  display: grid;
  grid-template-columns: repeat(18, minmax(28px, 1fr));
  grid-auto-rows: minmax(40px, 1fr);
  gap: 3px;
  min-width: 720px;
  max-width: 100%;
}

.el {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 0.62rem;
  line-height: 1.15;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  color: inherit;
  text-decoration: none;
  padding: 2px;
  font-family: "JetBrains Mono", monospace;
}
.el:hover {
  transform: scale(1.06);
  z-index: 1;
  box-shadow: 0 0 0 2px var(--accent);
  text-decoration: none;
  border-color: var(--accent);
}
.el-z {
  font-size: 0.55rem;
  opacity: 0.75;
}
.el-sym {
  font-weight: 700;
  font-size: 0.78rem;
}

.periodic-legend {
  position: absolute;
  top: 44px;
  left: 118px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem 0.55rem;
  padding: 0.2rem 0.1rem;
  max-width: 540px;
  pointer-events: none;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.58rem;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.legend-swatch {
  display: inline-block;
  width: 0.92rem;
  height: 0.92rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cat-diatomic { background: linear-gradient(145deg, #1e3a2f, #0f1f18); }
.cat-noble { background: linear-gradient(145deg, #2a1f4a, #151028); }
.cat-alkali { background: linear-gradient(145deg, #4a1f1f, #280f0f); }
.cat-alkaline { background: linear-gradient(145deg, #4a3a1a, #28200c); }
.cat-metalloid { background: linear-gradient(145deg, #2a3a1a, #14200c); }
.cat-polyatomic { background: linear-gradient(145deg, #1a3a3a, #0c2020); }
.cat-post-transition { background: linear-gradient(145deg, #2a3540, #151a22); }
.cat-transition { background: linear-gradient(145deg, #1a2840, #0c1428); }
.cat-lanthanide { background: linear-gradient(145deg, #352a40, #1a1422); }
.cat-actinide { background: linear-gradient(145deg, #403020, #221810); }
.cat-unknown { background: linear-gradient(145deg, #2a2a32, #16161c); }

/* Группа 17 (галогены): отдельный фиолетовый цвет на карточке */
.el.grp-halogens {
  background: linear-gradient(145deg, #5e35b1, #311b92);
}

/* Такой же сиреневый квадрат в легенде для галогенов */
.legend-swatch.grp-halogens {
  background: linear-gradient(145deg, #5e35b1, #311b92);
}

/* —— Карточка элемента —— */
.element-layout {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .element-layout {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.25fr);
    align-items: start;
  }
}

.element-media {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sample-real__fig {
  margin: 0;
  padding: 0 1rem 1rem;
  text-align: center;
}
.sample-real__img {
  display: block;
  width: auto;
  max-width: min(100%, 320px);
  max-height: 200px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 10px;
  background: #05070a;
}
.sample-real__cap {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.sample-real__attr {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  opacity: 0.9;
}
.sample-real--empty .sample-real__missing {
  padding: 0 1rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.viewer-panel__note {
  padding: 0 1rem 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.facts {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
}
.facts h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}
.facts .sym {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.facts .element-fact {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  line-height: 1.45;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(61, 255, 154, 0.06);
}
.facts .element-fact__label {
  color: var(--accent);
  font-weight: 600;
}
.facts .ig-rubric {
  margin: 0 0 1.25rem;
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  border: 1px dashed rgba(255, 196, 61, 0.45);
  background: rgba(255, 196, 61, 0.07);
}
.facts .ig-rubric__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffc43d;
}
.facts .ig-rubric__title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
}
.facts .ig-rubric__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}
.facts .ig-rubric__cite {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}
.facts dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.92rem;
}
.facts dt {
  color: var(--muted);
}
.facts .summary {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.facts .summary-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(61, 255, 154, 0.06);
}
.facts .summary-wiki-link {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.viewer-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.viewer-panel h2 {
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
#element-canvas {
  display: block;
  width: 100%;
  height: min(420px, 55vh);
  background: #05070a;
}

/* —— Лаборатории —— */
.lab-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.sponsor-banner {
  margin: 0.6rem 0 1.2rem;
}
.sponsor-banner__label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sponsor-banner__card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: 0.85rem;
}
.sponsor-banner__logo {
  display: block;
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
}
.sponsor-banner__name {
  margin-top: 0.6rem;
  font-weight: 700;
  color: var(--text) !important;
}

.lab-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.lab-card h2 {
  font-size: 1.1rem;
}
.lab-card p {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}
.lab-wiki-fact {
  font-size: 0.8rem !important;
  line-height: 1.45;
  color: var(--text) !important;
  opacity: 0.92;
  margin-top: 0.5rem !important;
}
.lab-wiki-src {
  font-size: 0.72rem !important;
  color: var(--muted) !important;
  margin-top: 0.25rem !important;
  margin-bottom: 0.35rem !important;
}
.lab-yt-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.65rem;
  background: rgba(255, 255, 255, 0.02);
}
.lab-yt-link {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  margin-bottom: 0.45rem;
  color: var(--text);
  text-decoration: none;
}
.lab-yt-link:hover {
  border-color: var(--accent);
  text-decoration: none;
}
.lab-yt-title {
  display: block;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text);
}
.lab-yt-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.lab-yt-src {
  margin-top: 0.1rem !important;
  font-size: 0.7rem !important;
  color: var(--muted) !important;
}
.lab-card .go {
  display: inline-block;
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: #041208;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
}
.lab-card .go:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

/* Лаборатории: canvas без класса .lab-page — задаём размер явно, иначе WebGL 0×0 */
#lab-canvas {
  display: block;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 5 / 3;
  min-height: 260px;
  margin: 1rem auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a0e14;
  box-sizing: border-box;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0;
}
.controls label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}
.controls input[type="range"] {
  width: min(360px, 100%);
}

.back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--muted);
}
.back:hover {
  color: var(--accent);
}

/* Лаборатория «смешивание в колбах» */
.lab-mix-h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--muted);
}

.lab-mix-palette {
  margin: 1.25rem 0;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.lab-mix-periodic-wrap {
  margin-top: 0.35rem;
}

.lab-mix-periodic-grid {
  min-width: 640px;
  grid-template-columns: repeat(18, minmax(24px, 1fr));
  grid-auto-rows: minmax(34px, auto);
  gap: 3px;
}

button.mix-chip {
  cursor: grab;
  appearance: none;
  width: 100%;
  height: 100%;
  min-height: 34px;
  color: inherit;
  font: inherit;
}
button.mix-chip:active {
  cursor: grabbing;
}
.mix-chip.mix-chip--picked {
  box-shadow: 0 0 0 2px var(--accent);
  border-color: var(--accent);
}

.lab-mix-bench {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 2.5rem);
  margin: 2rem 0 1rem;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0.25rem 0.5rem 0.5rem;
  box-sizing: border-box;
}

.lab-mix-bench-plus {
  flex: 0 0 auto;
  align-self: center;
  padding-bottom: 2.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--muted);
  user-select: none;
}

.lab-mix-flask-wrap {
  text-align: center;
  min-width: 108px;
  flex: 0 0 auto;
}

.lab-mix-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.lab-mix-flask {
  position: relative;
  width: 108px;
  margin: 0 auto;
  padding-bottom: 2px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.lab-mix-flask--over {
  filter: drop-shadow(0 0 10px rgba(61, 255, 154, 0.75));
  transform: scale(1.03);
}

.lab-mix-flask-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 108px;
  margin: 0 auto;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.lab-mix-flask-stroke {
  stroke: rgba(232, 244, 255, 0.88);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  paint-order: stroke fill;
}

.lab-mix-flask-stroke--shadow {
  stroke: rgba(8, 14, 22, 0.55);
  stroke-width: 2.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lab-mix-flask-stroke--rim {
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 1.15;
}

.lab-mix-flask-highlight {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.1;
  stroke-linecap: round;
}

.lab-mix-slot {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  min-width: 76px;
  min-height: 2.4rem;
  max-width: 92%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(8, 12, 18, 0.72);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lab-mix-slot-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  max-width: 100%;
  text-align: center;
  line-height: 1.25;
}

.lab-mix-slot-sym {
  font-weight: 700;
  font-size: 1.05rem;
  font-family: "JetBrains Mono", monospace;
  flex-shrink: 0;
}

.lab-mix-slot-name {
  font-size: 0.62rem;
  opacity: 0.9;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 600;
  word-break: break-word;
  hyphens: auto;
  max-width: 7.5rem;
}

.lab-mix-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.lab-mix-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #041208;
  font-family: inherit;
}
.lab-mix-btn:hover {
  filter: brightness(1.08);
}
.lab-mix-btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.lab-mix-result {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
  min-height: 3rem;
}

/* —— chemistrybrowser.com: главная и поиск —— */
body.page-home .main,
body.page-search .main {
  max-width: none;
  padding: 0;
}

body.page-home .site-header,
body.page-search .site-header {
  position: absolute;
  width: 100%;
  border-bottom: none;
  background: transparent;
}

.cb-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, #1e3a5f 0%, var(--bg) 70%);
}

.cb-hero__title {
  font-size: clamp(2rem, 8vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1rem;
}

.cb-hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 2rem;
}

.cb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cb-btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.cb-btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}
.cb-btn--primary {
  background: var(--accent);
  color: #041208;
}
.cb-btn--ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.eod {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.eod__heading {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}

.eod__date {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.eod-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.eod-card__main {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 640px) {
  .eod-card__main {
    grid-template-columns: 1fr;
  }
}

.eod-card__img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 1;
}

.eod-card__placeholder {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-weight: 800;
  font-family: "JetBrains Mono", monospace;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--accent);
}

.eod-card__sym {
  font-family: "JetBrains Mono", monospace;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.eod-card__name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.eod-card__fact {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.eod-card__summary {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.eod-why {
  background: rgba(61, 255, 154, 0.06);
  border: 1px solid rgba(61, 255, 154, 0.2);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.eod-why__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.eod-why__note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.eod-compounds__title {
  margin-bottom: 1rem;
}

.compound-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.compound-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.compound-card__img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.compound-card__body {
  padding: 0.75rem;
}

.compound-card__formula {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  color: var(--accent);
}

.compound-card__name {
  font-weight: 700;
  font-size: 0.9rem;
}

.compound-card__desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* Поиск */
.search-page {
  min-height: 100vh;
  padding: 5rem 1rem 3rem;
}

.search-top {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
}

.search-logo {
  display: inline-block;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-decoration: none;
}
.search-logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.search-form__wrap {
  position: relative;
  margin-bottom: 1rem;
}

.search-form__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.search-form__input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.search-form__input:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  list-style: none;
  z-index: 20;
  max-height: 280px;
  overflow-y: auto;
  text-align: left;
}

.search-suggest a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text);
}
.search-suggest a:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.search-form__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.search-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.search-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.search-btn--lucky {
  border-style: dashed;
}

.search-result {
  max-width: 720px;
  margin: 0 auto;
}

.search-result__head h1 {
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.15rem;
}
.search-result__head h1 a {
  color: #8ab4f8;
}
.search-result__sym {
  color: var(--muted);
  font-size: 0.9rem;
  margin-left: 0.35rem;
}

.search-result__url {
  color: #3dff9a;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.search-result__body {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 520px) {
  .search-result__body {
    grid-template-columns: 1fr;
  }
}

.search-result__img {
  width: 140px;
  border-radius: 8px;
}

.props-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.props-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  padding: 0.25rem 0.75rem 0.25rem 0;
  vertical-align: top;
  width: 40%;
}
.props-table td {
  padding: 0.25rem 0;
}

.search-compounds h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.search-empty {
  text-align: center;
  color: var(--muted);
  max-width: 480px;
  margin: 2rem auto;
}
