:root {
  --ink: #17233b;
  --muted: #596579;
  --line: #e2e8f0;
  --paper: #f5f7fb;
  --card: #fff;
  --blue: #4f6df5;
  --cyan: #24b8c8;
  --navy: #101a31;
  --radius: 20px;
  --shadow: 0 12px 34px rgba(23, 35, 59, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
.wrap {
  width: min(1180px, calc(100% - 36px));
  margin: auto;
}
.topbar {
  background: var(--navy);
  color: #fff;
  padding: 18px 0;
}
.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}
.brand-logo {
  display: block;
  width: 190px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}
.brandmark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6785ff, #27c4cb);
  font-size: 1.3rem;
}
.brand small {
  display: block;
  color: #b9c8e5;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
}
.navlink {
  color: #d5def1;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 48%, rgba(38, 190, 210, 0.16), transparent 29%),
    radial-gradient(circle at 15% 10%, rgba(65, 105, 180, 0.18), transparent 35%),
    linear-gradient(120deg, #0b1428 0%, #122441 58%, #102e49 100%);
  color: #fff;
  padding: 76px 0 72px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 36px;
  min-height: 390px;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #9ce8ed;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
}

.eyebrow-mark {
  color: #55dce4;
  font-size: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
  max-width: 720px;
  margin: 21px 0 18px;
}

.hero h1 span {
  color: #65dce5;
}

.hero p {
  max-width: 650px;
  color: #c2d0e3;
  font-size: 1.06rem;
  line-height: 1.75;
  margin: 0 0 27px;
}

.searchbox {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  padding: 7px 8px 7px 17px;
  max-width: 790px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.searchbox span {
  font-size: 1.2rem;
  color: #718096;
}

.searchbox input {
  border: 0;
  outline: 0;
  min-width: 0;
  flex: 1;
  padding: 12px 0;
  color: var(--ink);
  background: transparent;
}

.searchbox .searchhint {
  font-size: 0.75rem;
  color: #596579;
  padding: 8px 10px;
  background: #f1f4fa;
  border-radius: 9px;
  white-space: nowrap;
}

.quicktags {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-top: 19px;
  white-space: nowrap;
  width: 100%;
  min-width: 0;
}

.quicktags a {
  flex-shrink: 0;
  padding: 7px 10px;
  font-size: 0.76rem;
}

.quicktags a {
  border: 1px solid rgba(190, 220, 245, 0.25);
  background: rgba(255, 255, 255, 0.045);
  color: #e5efff;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.quicktags a:hover {
  background: rgba(75, 205, 220, 0.13);
  border-color: rgba(100, 220, 230, 0.65);
}

.hero-visual {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
}

.hero-orbit {
  position: absolute;
  width: 76%;
  height: 35%;
  border: 1px solid rgba(105, 220, 235, 0.48);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(60, 190, 220, 0.08);
}

.hero-orbit-one {
  transform: rotate(32deg);
}

.hero-orbit-two {
  transform: rotate(-32deg);
}

.hero-core {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 25%, #285b78, #142b49 70%);
  border: 1px solid rgba(120, 225, 235, 0.65);
  box-shadow:
    0 0 35px rgba(57, 204, 220, 0.22),
    inset 0 0 28px rgba(91, 213, 226, 0.12);
}

.hero-core > span {
  color: #75e6ec;
  font-size: 1rem;
}

.hero-core strong {
  color: #fff;
  font-size: 3.2rem;
  line-height: 1;
  letter-spacing: -0.08em;
}

.hero-core small {
  color: #a8dce8;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  margin-top: 7px;
}

.hero-node {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126, 220, 235, 0.42);
  border-radius: 14px;
  color: #8ce8ed;
  background: rgba(19, 48, 75, 0.92);
  font-size: 1.35rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-node-one {
  top: 13%;
  left: 23%;
}

.hero-node-two {
  top: 22%;
  right: 13%;
}

.hero-node-three {
  bottom: 17%;
  left: 17%;
}

.hero-node-four {
  right: 19%;
  bottom: 13%;
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 15px;
  }

  .hero-visual {
    width: 300px;
  }

  .hero-core {
    width: 120px;
    height: 120px;
  }

  .hero-core strong {
    font-size: 2.7rem;
  }
}

@media (max-width: 650px) {
  .hero {
    padding: 48px 0 43px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 10vw, 3.35rem);
    margin: 17px 0 15px;
  }

  .hero p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .hero-visual {
    width: min(100%, 270px);
    margin: 0 auto;
  }

  .hero-core {
    width: 108px;
    height: 108px;
  }

  .hero-core strong {
    font-size: 2.4rem;
  }

    .hero-node {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }

  .searchhint {
    display: none;
  }

  .quicktags {
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .quicktags a {
    flex-shrink: 0;
  }
}

.section {
  padding: 38px 0;
}

.section {
  padding: 38px 0;
}
.sectionhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.sectionhead h2 {
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  margin: 0;
}
.sectionhead p {
  color: var(--muted);
  margin: 5px 0 0;
}
.count {
  font-size: 0.82rem;
  color: var(--muted);
}
.categorygrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.catcard {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  min-height: 188px;
  transition:
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
.catcard:hover {
  transform: translateY(-3px);
  border-color: #aab8ff;
  box-shadow: var(--shadow);
}
.caticon {
  width: 43px;
  height: 43px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: #425de5;
  font-size: 1.35rem;
  margin-bottom: 15px;
}
.catcard h3 {
  font-size: 1.03rem;
  margin: 0 0 6px;
}
.catcard p {
  font-size: 0.87rem;
  color: var(--muted);
  margin: 0;
}
.catmeta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.75rem;
  color: #59688f;
}
.pill {
  display: inline-flex;
  background: #edf1ff;
  color: #4158ca;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.toolsrow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolsrow input,
.toolsrow select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  outline-color: #8ea0ff;
}
.toolsrow input {
  flex: 1;
  min-width: 220px;
}
.results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.entrycard {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 17px;
  cursor: pointer;
  color: var(--ink);
}
.entrycard:hover {
  border-color: #98a9ff;
  box-shadow: var(--shadow);
}
.entrycard h3 {
  margin: 9px 0 4px;
  font-size: 1rem;
}
.entrycard p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.entryformula {
  font-size: 1.2rem;
  font-weight: 750;
  margin-top: 12px;
  color: #2c49c7;
}
.empty {
  padding: 30px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  grid-column: 1/-1;
}
.footer {
  background: #101a31;
  color: #cbd5e1;
  padding: 28px 0;
  margin-top: 30px;
}
.footerinner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.84rem;
}
.breadcrumbs {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 18px;
}
.topichead {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.topichead h1 {
  margin: 12px 0 8px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.05em;
  line-height: 1.1;
}
.topichead p {
  color: var(--muted);
  max-width: 780px;
  margin: 0;
}
.idline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.76rem;
}
.modalback {
  position: fixed;
  inset: 0;
  background: rgba(9, 17, 34, 0.68);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 20;
}
.modalback.open {
  display: flex;
}
.modal {
  background: #fff;
  width: min(760px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 22px;
  box-shadow: 0 24px 90px #0004;
}
.modalhead {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 25px 12px;
}
.modalhead h2 {
  margin: 8px 0 0;
  font-size: 1.6rem;
  line-height: 1.2;
}
.close {
  border: 0;
  background: #eef2f8;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 1.2rem;
}
.modalbody {
  padding: 0 25px 26px;
}
.bigformula {
  background: #f1f5ff;
  border: 1px solid #dce4ff;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 800;
  color: #304cc4;
  margin: 16px 0;
}
.detailgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 15px 0;
}
.detailitem {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.detailitem strong {
  display: block;
}
.detailitem small {
  color: var(--muted);
}
.modalbody h3 {
  margin: 20px 0 6px;
}
.modalbody p {
  color: #44536a;
}
.source {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}
.adslot {
  border: 1px dashed #cbd5e1;
  color: #7c8799;
  text-align: center;
  border-radius: 12px;
  padding: 15px;
  margin: 24px 0;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}
.backlink {
  display: inline-flex;
  gap: 8px;
  color: #4b5fda;
  font-weight: 700;
  margin-bottom: 18px;
}
.hide {
  display: none !important;
}
@media (max-width: 900px) {
  .categorygrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .hero {
    padding: 45px 0;
  }
  .categorygrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .catcard {
    padding: 15px;
    min-height: 178px;
  }
  .results {
    grid-template-columns: 1fr;
  }
  .sectionhead {
    align-items: start;
    flex-direction: column;
  }
  .searchhint {
    display: none;
  }
  .detailgrid {
    grid-template-columns: 1fr;
  }
  .topichead {
    padding: 21px;
  }
  .modalhead {
    padding: 20px 20px 10px;
  }
  .modalbody {
    padding: 0 20px 22px;
  }
}
@media (max-width: 390px) {
  .categorygrid {
    grid-template-columns: 1fr;
  }
}

/* Scienexy brand and Information Hub */
.topnav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.navlink:hover,
.navlink.active {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.hub-feature-section {
  padding-top: 8px;
  padding-bottom: 8px;
}
.hub-feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  background: linear-gradient(120deg, #fff, #f0f5ff);
  border: 1px solid #dce5ff;
  border-radius: 22px;
  padding: 25px 28px;
  box-shadow: var(--shadow);
}
.hub-symbol {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 20px;
  background: linear-gradient(135deg, #4f6df5, #24b8c8);
  color: white;
  font-size: 2rem;
  box-shadow: 0 10px 24px #4f6df52e;
}
.hub-feature-copy h2 {
  margin: 4px 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.04em;
}
.hub-feature-copy p {
  margin: 5px 0 12px;
  color: var(--muted);
  max-width: 720px;
}
.hub-eyebrow {
  color: #4f63d9;
  font-size: 0.68rem;
}
.hub-cta {
  font-weight: 800;
  color: #4058d5;
}
.hub-feature-stat {
  text-align: right;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}
.hub-feature-stat strong {
  display: block;
  color: #273c7b;
  font-size: 1.4rem;
}
.hub-hero {
  background:
    radial-gradient(
      ellipse at 82% 10%,
      rgba(39, 196, 203, 0.24),
      transparent 32%
    ),
    linear-gradient(130deg, #101a31, #172b4c 70%, #203f66);
  color: #fff;
  padding: 55px 0 38px;
}
.hub-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  letter-spacing: -0.055em;
  line-height: 1.02;
  margin: 15px 0;
}
.hub-hero > .wrap > p {
  font-size: 1.08rem;
  color: #c9d5e9;
  margin: 0 0 24px;
}
.hub-searchbox {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #ffffff66;
  border-radius: 16px;
  padding: 7px 8px 7px 17px;
  max-width: 850px;
  box-shadow: 0 18px 45px #0003;
}
.hub-searchbox > span:first-child {
  font-size: 1.35rem;
  color: #718096;
}
.hub-searchbox input {
  border: 0;
  outline: 0;
  min-width: 0;
  flex: 1;
  padding: 12px 0;
  color: var(--ink);
  background: transparent;
}
.hub-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #c9d5e9;
  font-size: 0.82rem;
  margin-top: 15px;
}
.hub-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.hub-toolbar h2 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}
.hub-toolbar p {
  margin: 5px 0 0;
  color: var(--muted);
}
.filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}
.filter-label select {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  max-width: 220px;
}
.hub-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.hub-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  min-width: 0;
  box-shadow: 0 5px 18px #17233b06;
}
.hub-card-top,
.hub-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.hub-item-id {
  font-size: 0.7rem;
  color: #8a96a8;
  overflow-wrap: anywhere;
}
.hub-card h3 {
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 13px 0 7px;
}
.hub-summary {
  margin: 0;
  color: #4b5b72;
}
.hub-details {
  margin-top: 12px;
  border-top: 1px solid #edf0f5;
  padding-top: 10px;
}
.hub-details summary {
  cursor: pointer;
  color: #4058d5;
  font-weight: 750;
  font-size: 0.88rem;
}
.hub-details p {
  color: #4b5b72;
  font-size: 0.92rem;
  margin: 10px 0 0;
  white-space: pre-line;
}
.hub-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.hub-tag {
  font-size: 0.72rem;
  background: #f0f4ff;
  color: #4c5db2;
  padding: 4px 8px;
  border-radius: 999px;
}
.hub-card-footer {
  border-top: 1px solid #edf0f5;
  padding-top: 11px;
  color: var(--muted);
  font-size: 0.76rem;
}
.hub-source {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 11px;
  overflow-wrap: anywhere;
}
.hub-source a {
  color: #4058d5;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hub-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0 10px;
}
.primary-button {
  border: 0;
  border-radius: 12px;
  background: #4f6df5;
  color: #fff;
  font-weight: 800;
  padding: 12px 19px;
  cursor: pointer;
  box-shadow: 0 8px 18px #4f6df526;
}
.primary-button:hover {
  background: #3f59db;
}
.primary-button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.hub-footnote {
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 15px;
}
@media (max-width: 800px) {
  .hub-feature {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 21px;
  }
  .hub-feature-stat {
    grid-column: 2;
    text-align: left;
  }
  .hub-results {
    grid-template-columns: 1fr;
  }
  .hub-toolbar {
    align-items: start;
    flex-direction: column;
  }
  .topnav {
    gap: 12px;
  }
}
@media (max-width: 560px) {
  .topbar .brandrow {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .topnav {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 16px;
  }
  .hub-feature {
    grid-template-columns: 1fr;
  }
  .hub-feature-stat {
    grid-column: 1;
  }
  .hub-symbol {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }
  .hub-searchbox .searchhint {
    display: none;
  }
  .hub-hero {
    padding: 42px 0 30px;
  }
  .hub-card {
    padding: 17px;
  }
  .hub-card-top {
    align-items: flex-start;
  }
}

.static-page {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 42px);
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.static-page h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  letter-spacing: -0.05em;
  line-height: 1.08;
  margin: 17px 0;
}
.static-page h2 {
  margin: 28px 0 8px;
  letter-spacing: -0.025em;
}
.static-page p,
.static-page li {
  color: #4b5b72;
}
.static-page li {
  margin: 7px 0;
}
.notice-panel {
  border: 1px solid #dbe4ff;
  background: #f3f6ff;
  border-radius: 14px;
  padding: 16px;
  margin: 20px 0;
  color: #35466f;
}
.footerlinks {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.footerlinks a {
  color: #d5def1;
  font-size: 0.84rem;
}
.footerlinks a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.catstatus {
  display: inline-flex;
  margin-top: 12px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
}
.catstatus.has-content {
  background: #e8f8ef;
  color: #17663a;
}
.catstatus.planned {
  color: #596579;
  background: #f1f4f8;
}

/* Direct reference-page cards and standalone reference articles */
.entrycard-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.entrycard-wrap .entrycard-link {
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 17px;
  flex: 1;
}
.entrycard-wrap .entrycard-link:hover {
  border-color: transparent;
  box-shadow: none;
}
.entrycard-wrap .entrycard-link h3 {
  margin: 9px 0 4px;
}
.entrycard-quick {
  align-self: flex-start;
  margin: 0 17px 15px;
  border: 1px solid var(--line);
  background: #f4f6ff;
  color: #263f9f;
  border-radius: 9px;
  padding: 7px 11px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}
.direct-label {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 650;
  color: #3153c7;
}
.reference-page {
  max-width: 900px;
}
.reference-page .reference-summary {
  font-size: 1.08rem;
  color: #4b5b72;
}
.reference-page .formula-display {
  padding: 16px;
  background: #f3f6ff;
  border: 1px solid #dbe4ff;
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.reference-page .table-wrap {
  overflow-x: auto;
}
.reference-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.reference-page th,
.reference-page td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}
.reference-page .source-note {
  font-size: 0.9rem;
  color: #64748b;
}
.reference-feedback {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hub-card-titlelink:hover {
  color: #4058d5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hub-readmore {
  margin: 12px 0 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #4058d5;
}
.hub-readmore a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hub-readmore a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hub-article {
  max-width: 900px;
}
.hub-article h1 {
  overflow-wrap: anywhere;
}
.hub-article .reference-summary {
  font-size: 1.12rem;
  color: #334155;
}
.hub-article-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin: 18px 0;
}
.hub-article .hub-tags {
  margin: 12px 0;
}
.hub-article .source-note {
  font-size: 0.84rem;
  border-left: 3px solid #cbd5e1;
  padding-left: 12px;
}
.hub-article a,
.related-hub a {
  color: #4058d5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.related-hub {
  max-width: 900px;
  margin: 28px auto 0;
}
.related-hub h2 {
  letter-spacing: -0.03em;
}
.related-hub ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.related-hub li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.related-hub li p {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 6px 0 0;
}
@media (max-width: 650px) {
  .related-hub ul {
    grid-template-columns: 1fr;
  }
}

/* Flexible JSON-driven reference fields: supports unknown scalar, list, table and nested-object fields. */
.reference-page .dynamic-field {
  margin: 24px 0;
  padding-top: 4px;
}
.reference-page .dynamic-field h2 {
  margin: 18px 0 8px;
}
.reference-page .dynamic-subsection {
  margin: 14px 0 14px 12px;
  padding-left: 14px;
  border-left: 3px solid #e2e8f0;
}
.reference-page .dynamic-subsection h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.reference-page .dynamic-list {
  padding-left: 22px;
}
.reference-page .dynamic-table-wrap {
  overflow-x: auto;
  margin: 12px 0;
}
.reference-page .dynamic-table {
  width: 100%;
  border-collapse: collapse;
}
.reference-page .dynamic-table th,
.reference-page .dynamic-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.reference-page .dynamic-empty,
.dynamic-empty {
  color: var(--muted);
  font-style: italic;
}
.modal-dynamic-fields .dynamic-field {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 18px;
}
.modal-dynamic-fields .dynamic-field h3 {
  margin: 8px 0;
}
.modal-dynamic-fields .dynamic-subsection {
  margin: 12px 0 12px 10px;
  padding-left: 12px;
  border-left: 3px solid #e2e8f0;
}
.modal-dynamic-fields .dynamic-subsection h4 {
  margin: 0 0 5px;
}
.modal-dynamic-fields .dynamic-table-wrap {
  overflow-x: auto;
}
.modal-dynamic-fields .dynamic-table {
  width: 100%;
  border-collapse: collapse;
}
.modal-dynamic-fields .dynamic-table th,
.modal-dynamic-fields .dynamic-table td {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}
.modal-dynamic-fields .dynamic-list {
  padding-left: 22px;
}

/* Formula Hub: formula-first browsing and readable equation displays. */
.formula-feature-section {
  padding-top: 8px;
  padding-bottom: 8px;
}
.formula-feature {
  background: linear-gradient(120deg, #fff, #f2fbfa);
  border-color: #d5eeea;
}
.formula-symbol {
  background: linear-gradient(135deg, #087f8c, #38a89b);
}
.formula-hub-hero {
  background:
    radial-gradient(
      ellipse at 82% 10%,
      rgba(56, 190, 166, 0.24),
      transparent 32%
    ),
    linear-gradient(130deg, #101a31, #153d4b 72%, #17665f);
}
.formula-card-expression {
  background: #f1f5ff;
  border: 1px solid #dce4ff;
  border-radius: 14px;
  padding: 18px 14px;
  margin: 14px 0;
  text-align: center;
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: #2d49b8;
  overflow-wrap: anywhere;
  line-height: 1.55;
}
.formula-expression-line {
  padding: 8px 4px;
  overflow-wrap: anywhere;
}

.formula-expression-line + .formula-expression-line {
  border-top: 1px solid #dce4ff;
}

.formula-expression-label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: capitalize;
}
.formula-card-summary {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}
.formula-large-display {
  background: #f1f5ff;
  border: 1px solid #dce4ff;
  border-radius: 16px;
  padding: 24px 18px;
  margin: 22px 0;
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 850;
  color: #2d49b8;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.formula-article {
  max-width: 940px;
}
.formula-detail-section {
  margin: 25px 0;
}
.formula-detail-section h2 {
  margin: 20px 0 9px;
}
.formula-article .dynamic-table-wrap {
  overflow-x: auto;
}
.formula-article .dynamic-table {
  width: 100%;
  border-collapse: collapse;
}
.formula-article .dynamic-table th,
.formula-article .dynamic-table td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}
@media (max-width: 800px) {
  .formula-feature {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

/* Daily Quiz: homepage challenge, searchable hub, and individual quiz pages. */
.daily-quiz-section {
  padding: 28px 0 38px;
}
.daily-quiz-card {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #d9e5f5;
  border-radius: 24px;
  background: linear-gradient(125deg, #f5f8ff, #fff 58%, #effafa);
  box-shadow: var(--shadow);
}
.daily-quiz-aside {
  min-width: 0;
}
.daily-quiz-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(135deg, #4f6df5, #24b8c8);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  box-shadow: 0 9px 22px #4f6df52b;
}
.daily-quiz-label,
.quiz-kicker {
  display: block;
  margin-top: 15px;
  color: #4e65d5;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.15em;
}
.daily-quiz-aside h2 {
  margin: 12px 0;
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  color: #182846;
}
.daily-quiz-aside h2 em {
  color: #4f6df5;
  font-style: normal;
}
.daily-quiz-aside p {
  max-width: 380px;
  color: var(--muted);
  font-size: 0.94rem;
}
.daily-quiz-all,
.daily-quiz-open,
.quiz-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: #4058d5;
  font-weight: 850;
  font-size: 0.88rem;
}
.daily-quiz-all:hover,
.daily-quiz-open:hover,
.quiz-card-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.daily-quiz-content {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #dce5f2;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 12px 32px #17233b0c;
}
.daily-quiz-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 13px;
  border-bottom: 1px solid #edf0f5;
  color: #8290a5;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}
.daily-quiz-content h3 {
  margin: 18px 0 7px;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.daily-quiz-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.daily-quiz-question {
  margin: 20px 0 10px;
  color: #263752;
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.55;
}
.daily-quiz-loading {
  color: var(--muted);
}
.quiz-hub-hero {
  padding: 52px 0 38px;
  background:
    radial-gradient(
      ellipse at 82% 10%,
      rgba(39, 196, 203, 0.22),
      transparent 32%
    ),
    linear-gradient(130deg, #101a31, #172b4c 70%, #203f66);
  color: #fff;
}
.quiz-hub-hero h1 {
  margin: 14px 0;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.quiz-hub-hero p {
  max-width: 700px;
  color: #c9d5e9;
  font-size: 1.05rem;
}
.quiz-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.quiz-hub-card {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 18px #17233b06;
}
.quiz-hub-card h2 {
  margin: 12px 0 7px;
  font-size: 1.15rem;
  line-height: 1.3;
}
.quiz-hub-card h2 a:hover {
  color: #4058d5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quiz-hub-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.quiz-hub-card .quiz-card-link {
  margin-top: 17px;
}
.hub-toolbar .filter-label input {
  max-width: 260px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font: inherit;
}
.quiz-detail-page {
  max-width: 900px;
}
.quiz-detail-page .quiz-summary {
  font-size: 1.08rem;
  color: #4b5b72;
}
.quiz-question-panel {
  margin: 25px 0;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid #dce5ff;
  border-radius: 18px;
  background: linear-gradient(145deg, #f8faff, #fff);
}
.quiz-question-panel h2 {
  margin: 12px 0 22px;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.35;
  color: #1b2b49;
}
.quiz-answer-form fieldset {
  display: grid;
  gap: 11px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}
.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;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #dce3ee;
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  color: #27364f;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.quiz-option:hover {
  border-color: #9aaaf5;
  background: #f8faff;
}
.quiz-option input {
  width: 17px;
  height: 17px;
  accent-color: #4f6df5;
}
.quiz-option-letter {
  display: grid;
  place-items: center;
  flex: 0 0 29px;
  height: 29px;
  border-radius: 9px;
  background: #edf1ff;
  color: #4058d5;
  font-size: 0.8rem;
  font-weight: 850;
}
.quiz-option-correct {
  border-color: #49a978;
  background: #effaf3;
}
.quiz-option-incorrect {
  border-color: #e49a9a;
  background: #fff5f5;
}
.quiz-feedback {
  margin: 18px 0 10px;
  padding: 13px 15px;
  border-radius: 12px;
  font-weight: 750;
}
.quiz-feedback-correct {
  background: #eaf8ef;
  color: #17663a;
}
.quiz-feedback-incorrect {
  background: #fff0f0;
  color: #a33b3b;
}
.quiz-feedback-neutral {
  background: #f1f5f9;
  color: #475569;
}
.quiz-explain-button {
  margin-top: 10px;
  padding: 10px 15px;
  border: 1px solid #cbd5ff;
  border-radius: 10px;
  background: #eef2ff;
  color: #4058d5;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.quiz-explanation {
  margin-top: 17px;
  padding: 16px;
  border-left: 4px solid #24b8c8;
  border-radius: 0 12px 12px 0;
  background: #f0fbfa;
}
.quiz-explanation h3 {
  margin: 0 0 6px;
}
.quiz-explanation p {
  margin: 0;
  white-space: pre-line;
  color: #40536b;
}
@media (max-width: 800px) {
  .daily-quiz-card {
    grid-template-columns: 1fr;
  }
  .quiz-hub-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .daily-quiz-section {
    padding: 20px 0 28px;
  }
  .daily-quiz-card {
    padding: 20px;
    border-radius: 19px;
  }
  .daily-quiz-content {
    padding: 18px;
  }
  .quiz-hub-hero {
    padding: 42px 0 30px;
  }
  .hub-toolbar .filter-label {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    white-space: normal;
  }
  .hub-toolbar .filter-label input {
    max-width: none;
    width: 100%;
  }
}

/* Unified homepage Global Search across all four Scienexy collections. */
.global-search-section {
  padding: 30px 0 36px;
  background: #eef3fb;
  border-bottom: 1px solid #e2e8f0;
}
.global-search-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.global-search-eyebrow {
  color: #4f6df5;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}
.global-search-heading h2 {
  margin: 5px 0 2px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}
.global-search-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.global-search-browse,
.global-group-link {
  color: #4058d5;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}
.global-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}
.global-search-filters button {
  border: 1px solid #d7deec;
  border-radius: 999px;
  background: #fff;
  color: #43516a;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.global-search-filters button:hover {
  border-color: #9baaf4;
}
.global-search-filters button.is-active {
  border-color: #4f6df5;
  background: #4f6df5;
  color: #fff;
}
.global-search-results {
  display: grid;
  gap: 24px;
}
.global-result-group {
  min-width: 0;
}
.global-result-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}
.global-result-group-head h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.global-result-group-head span {
  color: var(--muted);
  font-size: 0.76rem;
}
.global-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.global-result-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 15px #17233b08;
}
.global-result-card h4 {
  margin: 9px 0 5px;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.global-result-card h4 a:hover {
  color: #4058d5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.global-result-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
}
.global-result-card .pill {
  font-size: 0.68rem;
}
.global-result-link {
  display: inline-flex;
  gap: 7px;
  margin-top: 12px;
  color: #4058d5;
  font-size: 0.8rem;
  font-weight: 850;
}
.global-result-formula {
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid #dce4ff;
  border-radius: 10px;
  background: #f4f6ff;
  color: #304cc4;
  font-size: 0.85rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.global-result-question {
  margin: 9px 0 0 !important;
  color: #334155 !important;
  font-weight: 700;
}
.global-result-empty,
.global-search-loading {
  grid-column: 1/-1;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 13px;
  background: #fff;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 650px) {
  .global-search-section {
    padding: 24px 0 28px;
  }
  .global-search-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .global-result-grid {
    grid-template-columns: 1fr;
  }
  .global-search-filters {
    gap: 7px;
  }
  .global-search-filters button {
    padding: 7px 11px;
    font-size: 0.78rem;
  }
}

.global-show-more {
  margin-top: 12px;
  padding: 9px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #4058d5;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}
.global-show-more:hover {
  border-color: #8798ee;
  background: #f8faff;
}

/* Unified Daily Discovery: Daily Fact + Daily Quiz */

.daily-discovery-quiz {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: 30px;
  padding: 27px 0 25px;
  border-top: 1px solid rgba(201, 221, 250, 0.16);
  border-bottom: 1px solid rgba(201, 221, 250, 0.16);
}

.daily-discovery-quiz-heading {
  min-width: 0;
}

.daily-discovery-quiz-heading .daily-quiz-label {
  margin-top: 0;
  color: #83d9cf;
}

.daily-discovery-quiz-heading h2 {
  margin: 10px 0;
  color: #f4f7ff;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.daily-discovery-quiz-heading p {
  max-width: 360px;
  margin: 0;
  color: #aebdd2;
  font-size: 13px;
  line-height: 1.75;
}

.daily-discovery-quiz-heading .daily-quiz-all {
  margin-top: 18px;
  color: #83d9cf;
  font-size: 12px;
}

.daily-discovery-quiz-heading .daily-quiz-all:hover {
  color: #a0eee3;
}

.daily-discovery-quiz .daily-quiz-content {
  min-width: 0;
  padding: clamp(18px, 2.5vw, 27px);
  border: 1px solid rgba(194, 218, 255, 0.2);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13);
}

.daily-discovery-quiz .daily-quiz-topline {
  border-bottom-color: rgba(201, 221, 250, 0.15);
  color: #9db3d0;
}

.daily-discovery-quiz .daily-quiz-content h3 {
  color: #f4f7ff;
}

.daily-discovery-quiz .daily-quiz-question {
  color: #e2ecfb;
}

.daily-discovery-quiz .daily-quiz-summary {
  color: #b9cbe3;
}

.daily-discovery-quiz .daily-quiz-loading {
  color: #b9cbe3;
}

@media (max-width: 760px) {
  .daily-discovery-quiz {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px 0 23px;
  }

  .daily-discovery-quiz-heading h2 {
    font-size: 25px;
  }

  .daily-discovery-quiz-heading p {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .daily-discovery-quiz {
    gap: 18px;
    padding: 23px 0 20px;
  }

  .daily-discovery-quiz .daily-quiz-content {
    padding: 17px;
  }
}


/* Ad-ready layout: slots are emitted only when explicitly enabled at build time.
   Keep them visually distinct and separated from navigation and interactive UI. */
.ad-slot {
  display: block;
  width: min(100%, 970px);
  min-height: 280px;
  margin: 34px auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  text-align: center;
  contain: layout paint;
}
.ad-slot--wide {
  width: min(100%, 970px);
}
.ad-slot-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.ad-slot-inner {
  width: 100%;
  min-height: 240px;
}
@media (max-width: 600px) {
  .ad-slot {
    width: 100%;
    min-height: 250px;
    margin: 26px auto;
    padding: 8px;
  }
  .ad-slot-inner {
    min-height: 210px;
  }
}
