:root {
  --article-scroll-offset: 7.5rem;
}

body {
  font-family: "Rubik", sans-serif;
}

a.share-icon-btn {
  text-decoration: none;
}

.share-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.share-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(79, 114, 131, 0.8);
  color: #fff;
}

.share-icon-btn:focus-visible {
  outline: 2px solid #31bfff;
  outline-offset: 2px;
}

.share-icon-btn.is-copied {
  border-color: rgba(49, 191, 255, 0.6);
  color: #5cd1ff;
}

.article-glass-panel {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.resource-tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-transform: capitalize;
  line-height: 1.25;
  border: 1px solid rgba(79, 114, 131, 0.7);
  color: #c6dae3;
  font-weight: 500;
  font-family: "Rubik", sans-serif;
}

.resource-tag-pill--preserve-case {
  text-transform: none;
}

.article-meta-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  font-family: "Rubik", sans-serif;
}

.article-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.article-meta-pill--author {
  background: rgba(184, 164, 255, 0.2);
  color: #e2d6ff;
  border: 1px solid rgba(184, 164, 255, 0.35);
}

.article-meta-pill--date {
  background: rgba(79, 114, 131, 0.28);
  color: #c6dae3;
  border: 1px solid rgba(79, 114, 131, 0.45);
}

.article-meta-pill--read {
  background: rgba(37, 255, 208, 0.12);
  color: #8af0d8;
  border: 1px solid rgba(37, 255, 208, 0.28);
}

@media (min-width: 640px) {
  .article-meta-pill {
    font-size: 0.75rem;
    padding: 0.3125rem 0.75rem;
  }
}

.article-glass-panel h2[id],
.article-glass-panel h3[id] {
  scroll-margin-top: var(--article-scroll-offset);
}

.article-glass-panel h3[id].article-section-h3 {
  font-family: "Open Sans", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
  padding-top: 0.5rem;
}

@media (min-width: 820px) {
  .article-glass-panel h3[id].article-section-h3 {
    font-size: 1.25rem;
  }
}

.article-toc-panel {
  display: flex;
  flex-direction: column;
  padding: 0.875rem 0.75rem 0.875rem 0.875rem;
  max-height: calc(100vh - var(--article-scroll-offset) - 1.25rem);
  overflow: hidden;
}

.article-toc-panel__label {
  flex-shrink: 0;
  margin: 0 0 0.5rem;
  font-family: "Rubik", sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

#article-toc .toc-link--nested {
  padding-left: 0.875rem;
  font-size: 0.8125rem;
}

#article-toc .toc-link--nested + .toc-link:not(.toc-link--nested) {
  margin-top: 0.25rem;
}

.article-body ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

.article-body ul li + li {
  margin-top: 0.35rem;
}

.article-pullquote {
  border-left: 2px solid rgba(49, 191, 255, 0.6);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.82);
}

.article-table-wrap td ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.article-table-wrap .article-table-subhead {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.15rem;
}

.article-table-wrap {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.article-table-wrap table {
  min-width: 36rem;
}

.article-table-wrap th,
.article-table-wrap td {
  vertical-align: top;
  word-break: break-word;
}

#article-toc {
  flex: 1;
  min-height: 0;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 0.125rem 0 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

#article-toc .toc-link {
  display: block;
  padding: 0.3rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  font-family: "Rubik", sans-serif;
  font-size: 0.875rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

#article-toc .toc-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

#article-toc .toc-link.is-active {
  border-color: rgba(49, 191, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  color: #5cd1ff;
}

#article-toc .toc-link:focus-visible {
  outline: 2px solid #31bfff;
  outline-offset: 2px;
}

@media (max-width: 1099px) {
  :root {
    --article-scroll-offset: 6rem;
  }
}

.inline-cta {
  margin: 2rem 0;
  padding: 2rem 2.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(79, 114, 131, 0.45);
  background: linear-gradient(145deg, rgba(13, 23, 38, 0.96), rgba(11, 12, 22, 0.98));
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.inline-cta-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5cd1ff;
}

.inline-cta-title {
  margin-top: 0.75rem;
  font-family: "Open Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}

.inline-cta-copy {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
}

.inline-cta-btn {
  display: flex;
  width: fit-content;
  margin-top: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #fff;
  font-family: "Rubik", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  background: transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.inline-cta-btn:hover {
  background: #fff;
  color: #0b2a3c;
}

.inline-cta-btn:focus-visible {
  outline: 2px solid #31bfff;
  outline-offset: 2px;
}

@media (max-width: 639px) {
  :root {
    --article-scroll-offset: 5.5rem;
  }

  .article-glass-panel {
    border-radius: 16px;
  }

  .share-icon-btn {
    width: 2.25rem;
    height: 2.25rem;
  }

  .inline-cta {
    margin: 1.25rem 0;
    padding: 1.125rem 1rem;
    border-radius: 1rem;
  }

  .inline-cta-title {
    font-size: 1.125rem;
    line-height: 1.4;
  }

  .inline-cta-copy {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  .inline-cta-btn {
    width: 100%;
    max-width: 100%;
    padding: 0.6875rem 1rem;
    font-size: 0.9375rem;
  }

  .article-table-wrap {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    border-radius: 0.75rem;
  }

  .article-table-wrap table {
    min-width: 32rem;
    font-size: 0.8125rem;
  }

  .article-table-wrap th,
  .article-table-wrap td {
    padding: 0.625rem 0.75rem;
  }
}
