:root {
  --reading-width: 1060px;
  --family: #8cd7cd;
}
.element-bar,
.element-main,
.element-footer {
  width: min(calc(100% - 48px), var(--reading-width));
  margin-inline: auto;
}
.element-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  gap: 16px;
}
.element-bar nav { gap: clamp(12px, 3vw, 27px); }
.element-main { padding-block: 34px 52px; }
.element-main a:not(.element-button):not(.element-directory a):not(.compare-links a) {
  color: var(--glow);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.element-main a:hover { color: #fff3e3; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 26px;
}
.element-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  align-items: center;
  gap: clamp(22px, 5vw, 58px);
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid color-mix(in srgb, var(--family) 33%, #202633);
  border-radius: 26px;
  background: radial-gradient(ellipse at 95% 15%, color-mix(in srgb, var(--family) 16%, transparent), transparent 62%), #151822;
}
.element-number {
  margin-bottom: 8px;
  color: var(--family);
  font-size: .84rem;
  letter-spacing: .035em;
  font-weight: 720;
}
.element-number span {
  margin-left: .45rem;
  padding: .22em .5em;
  border: 1px solid color-mix(in srgb, var(--family) 35%, #343642);
  border-radius: .4em;
  color: var(--text);
  font-weight: 520;
}
.element-main h1 { margin: 0 0 .23em; }
.element-hero h1 { font-size: clamp(2.45rem, 7vw, 5.15rem); overflow-wrap: anywhere; }
.element-hero h1 em {
  color: var(--family);
  letter-spacing: -.055em;
  font-size: .72em;
}
.element-lede { margin: .75rem 0; font-size: 1.1rem; line-height: 1.55; color: #d2d7e0; }
.element-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 20px; font-size: .92rem; }
.element-button {
  display: inline-flex;
  align-items: center;
  min-height: 43px;
  padding: 8px 15px;
  border-radius: 9px;
  background: var(--orange);
  color: #190e06;
  font-weight: 750;
}
.element-button:hover { background: var(--glow); color: #190e06 !important; }
.element-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 20px; margin-bottom: 0; }
.element-facts > div {
  min-width: 0;
  padding: 10px;
  line-height: 1.3;
  border: 1px solid #ffffff17;
  border-radius: 10px;
  background-color: #0a0c1255;
}
.element-facts dt { color: #b2b9c8; font-size: .78rem; min-height: 2.55em; margin-bottom: 4px; }
.element-facts dd { margin: 0; font-size: 1.1rem; font-weight: 740; font-variant-numeric: tabular-nums; }
.element-photo { margin: 0; overflow: hidden; border: 1px solid #ffffff20; border-radius: 16px; background: #0b0e14; }
.element-photo img { display: block; width: 100%; height: auto; max-height: 350px; object-fit: cover; }
.element-photo figcaption { padding: 10px 13px 12px; font-size: .83rem; color: #d1d4de; line-height: 1.45; }
.element-photo figcaption span { display: block; margin-top: .3rem; font-size: .77rem; color: #aab0bd; }
.element-content { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 23px; align-items: start; }
.element-card {
  min-width: 0;
  padding: clamp(17px, 2.6vw, 26px);
  border: 1px solid #323643;
  border-radius: 17px;
  background: #151822;
  scroll-margin-top: 12px;
}
.element-card > p { margin-block: .55rem; line-height: 1.56; }
.element-card h2 { font-size: clamp(1.18rem, 2vw, 1.47rem); letter-spacing: -.027em; }
.element-card .muted, .element-main .muted { font-size: .88rem; color: #aab0bd; }
.property-list { margin: .75rem 0; }
.property-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding-block: .5rem;
  border-bottom: 1px solid #2d313d;
}
.property-list dt { color: #c4c9d3; }
.property-list dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.property-list dd span { color: #c1c8d5; font-size: .85em; font-weight: 450; }
.element-card .configuration { font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 700; color: #ffd49d; }
.element-table-wrap { overflow-x: auto; }
.element-card table { width: 100%; border-collapse: collapse; text-align: left; margin: .7rem 0; font-variant-numeric: tabular-nums; }
.element-card th, .element-card td { padding: .46rem .4rem; border-bottom: 1px solid #2d313d; }
.element-card thead { color: #c1c7d4; font-size: .86em; }
.element-card td { color: #dce0e9; }
.compare-links {
  list-style: none;
  padding: 0;
  margin: .45rem 0 1.1rem;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.compare-links a {
  display: inline-flex;
  padding: 6px 9px;
  min-height: 33px;
  align-items: center;
  border: 1px solid #454a58;
  border-radius: 8px;
  color: #e1e6ee;
  font-size: .89rem;
}
.compare-links a:hover { border-color: var(--glow); }
.element-sources { margin: .6rem 0; line-height: 1.65; padding-left: 1.25rem; }
.element-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #353846;
  padding-block: 14px 22px;
  color: #afb6c3;
  font-size: .9rem;
}
.element-footer div { display: flex; gap: 14px; flex-wrap: wrap; }
.symbol-stage { min-height: 210px; aspect-ratio: 1.3; position: relative; isolation: isolate; display: grid; place-items: center; }
.symbol-stage strong {
  display: grid;
  place-items: center;
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--family);
  font-size: clamp(4rem, 13vw, 8rem);
  letter-spacing: -.075em;
  background: radial-gradient(circle, color-mix(in srgb, var(--family) 28%, #141621), transparent 70%);
}
.symbol-stage .orbit { position: absolute; inset: 35% 14%; border: 1px solid color-mix(in srgb, var(--family) 60%, transparent); border-radius: 50%; z-index: -1; }
.symbol-stage .orbit-one { transform: rotate(-32deg); }
.symbol-stage .orbit-two { transform: rotate(32deg); }
.symbol-stage .orbit-three { transform: rotate(90deg); }
.element-directory {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 8px;
}
.element-directory a {
  display: grid;
  grid-template-columns: 1.7rem 1.8rem 1fr;
  align-items: center;
  gap: 5px;
  padding: 9px;
  min-height: 46px;
  border: 1px solid #333745;
  border-radius: 10px;
  background-color: color-mix(in srgb, var(--family) 9%, #151821);
}
.element-directory a:hover { border-color: var(--family); }
.element-directory a strong { color: var(--family); }
.index-number { color: #aab0bd; font-size: .82rem; font-variant-numeric: tabular-nums; }
[data-category="nonmetal"] { --family: #69e2d2; }
[data-category="noble-gas"] { --family: #bca6ff; }
[data-category="halogen"] { --family: #a4d884; }
[data-category="alkali-metal"] { --family: #ffc281; }
[data-category="alkaline-earth-metal"] { --family: #f3a883; }
[data-category="transition-metal"] { --family: #8abaff; }
[data-category="post-transition-metal"] { --family: #a8c6ee; }
[data-category="metalloid"] { --family: #edd680; }
[data-category="lanthanide"] { --family: #d0a8e5; }
[data-category="actinide"] { --family: #ffabbf; }
@media (max-width: 660px) {
  .element-bar, .element-main, .element-footer { width: min(calc(100% - 28px), var(--reading-width)); }
  .element-bar .brand { gap: 6px; font-size: 1rem; }
  .element-bar nav { gap: 11px; font-size: .8rem; }
  .element-main { padding-block: 24px 40px; }
  .element-hero { grid-template-columns: 1fr; padding: 17px; border-radius: 17px; }
  .element-content { grid-template-columns: 1fr; gap: 13px; }
  .element-photo img { max-height: 275px; }
  .symbol-stage { min-height: 150px; max-height: 215px; margin-inline: auto; width: min(100%, 320px); }
  .element-directory { grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); }
  .element-directory a { font-size: .88rem; }
  .element-footer { flex-direction: column; align-items: flex-start; }
}

.element-card-wide { grid-column: 1 / -1; }
.element-faq { margin: 0; }
.element-faq > div { padding-block: 14px; }
.element-faq > div + div { border-top: 1px solid #323643; }
.element-faq dt { color: var(--text); font-weight: 700; margin-bottom: .35rem; }
.element-faq dd { margin: 0; color: #dce0e9; line-height: 1.56; }
.orbital-figure { margin: 1.12rem 0 .65rem; }
.orbital-figure figcaption { color: #dce0e9; font-weight: 680; }
.orbital-list { list-style: none; padding: 0; margin: .6rem 0; }
.orbital-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  margin-block: 5px;
  color: #dce0e9;
  font: 650 .92rem system-ui, sans-serif;
}
.orbital-boxes { display: flex; flex-wrap: wrap; gap: 4px; }
.orbital-boxes span {
  display: grid;
  place-items: center;
  width: 1.68rem;
  height: 1.68rem;
  border: 1px solid #a9b6cc;
  border-radius: 4px;
  color: var(--glow);
  background: #0f1115;
}
.orbital-core { margin-top: .65rem; }
.orbital-core summary {
  min-height: 44px;
  width: max-content;
  max-width: 100%;
  padding: .65rem .3rem;
  color: var(--glow);
  cursor: pointer;
}
.element-button, .element-hero-actions a, .compare-links a { min-height: 44px; }
.element-hero-actions a { display: inline-flex; align-items: center; }
.element-card p, .element-faq dd, .element-sources { overflow-wrap: anywhere; }

@media (max-width: 660px) {
  .element-bar nav a,
  .element-footer a,
  .element-sources a,
  .element-main .breadcrumb a,
  .element-card p a,
  .element-photo figcaption a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
}

.element-table-scroll { overflow-x: auto; max-width: 100%; }
.element-corrections { width: 100%; border-collapse: collapse; text-align: left; }
.element-corrections th, .element-corrections td { padding: .55rem; border-bottom: 1px solid #3a3e4a; vertical-align: top; }
.element-corrections a { display: inline-flex; min-height: 44px; align-items: center; }

@media print {
  body, main.element-main, .element-card, .atom-stage-frame, .element-facts {
    color: #000 !important;
    background: #fff !important;
  }
  main.element-main { width: 100%; max-width: none; margin: 0; padding: 0; }
  main.element-main > .element-content { display: block; width: auto; margin: 0; }
  .element-content .element-card {
    margin: 0 0 .8cm;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .element-card h2, .element-card h3 { break-after: avoid; }
  main.element-main :is(p, span, dt, dd, h1, h2, h3, strong, a, time, figcaption) { color: #000 !important; }
  .element-main a { text-decoration: underline; }
  .atom-stage .atom-stage-frame { min-height: 0; height: auto; overflow: visible; }
  .atom-stage .atom-hero-copy { position: static; width: 100%; max-width: none; padding: 0; }
  .atom-stage .atom-hero-copy::before { display: none; }
  .atom-stage :is(.atom-viewport, .atom-model-caption, .atom-stage-tabs, .atom-hero-actions,
    .atom-hero-tools, .atom-facts-jump, .atom-stage-ui, .element-hero-actions),
    .element-main > .breadcrumb { display: none !important; }
  .atom-stage .atom-fact-strip { width: auto; margin: 0 0 1cm; }
}

#discovery-and-uses h3 { margin: 1.15rem 0 .3rem; font-size: 1.05rem; }
#discovery-and-uses p { max-width: 72ch; }
