/* shared.css — base styles for all glp1.app pages */

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

:root {
  --bg: #000000;
  --text: #ffffff;
  --dim: #999;
  --accent: #bb86fc;
  --glow: rgba(187, 134, 252, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M40 0H0v1h40zM0 0v40h1V0z' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
  transform: translateZ(0);
  mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

/* --- Nav --- */

body > nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 24px;
  height: 24px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.6;
  transition: opacity 0.4s;
}

.nav-link:hover { opacity: 1; }

/* --- Subpage shared --- */

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 2.5rem 4rem;
}

.reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-bottom {
  text-align: center;
  margin: 4rem 0 2rem;
}

.back-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 500;
  color: var(--text);
  padding: 1rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.03);
}

.back-home:hover {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(187, 134, 252, 0.2);
  transform: translateY(-2px);
  background: rgba(187, 134, 252, 0.08);
}

.back-home svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

/* --- Content links (inline cross-references) --- */

.content-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.3s ease;
}

.content-link:hover {
  opacity: 0.8;
}

.content-link-dim {
  color: var(--dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.content-link-dim:hover {
  color: var(--accent);
}

/* --- Resource hub/sidebar navigation --- */

.resource-container {
  max-width: 800px;
}

.resource-shell {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.resource-main {
  min-width: 0;
}

.resource-sidebar {
  position: fixed;
  right: auto;
  bottom: calc(env(safe-area-inset-bottom) + 1rem);
  left: 1rem;
  z-index: 120;
  width: min(224px, calc(100vw - 2rem));
  pointer-events: none;
}

.resource-sidebar-state {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.resource-sidebar-toggle {
  display: flex;
  width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(187, 134, 252, 0.36);
  border-radius: 999px;
  background: #0b0710;
  color: var(--text);
  font: inherit;
  font-size: 0;
  font-weight: 900;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.resource-sidebar-state:focus-visible + .resource-sidebar-toggle {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.resource-sidebar-toggle:active {
  transform: scale(0.94);
}

.resource-sidebar-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.resource-sidebar-toggle-icon {
  color: var(--accent);
  font-size: 1.65rem;
  line-height: 1;
  transition: transform 0.24s ease, color 0.24s ease;
}

.resource-sidebar-nav {
  position: fixed;
  right: auto;
  bottom: calc(env(safe-area-inset-bottom) + 4.75rem);
  left: 1rem;
  width: min(224px, calc(100vw - 2rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.72rem;
  max-height: min(82dvh, calc(100dvh - 7rem));
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: #050505;
  padding: 0.85rem 0.9rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(0.75rem) scale(0.98);
  transform-origin: bottom right;
  visibility: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.72);
  scrollbar-width: thin;
  scrollbar-color: rgba(187, 134, 252, 0.45) rgba(255, 255, 255, 0.06);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.resource-sidebar-state:checked ~ .resource-sidebar-nav {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  transition-delay: 0s;
}

.resource-sidebar-state:checked + .resource-sidebar-toggle {
  background: #120a1b;
  border-color: rgba(187, 134, 252, 0.72);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.62), 0 0 22px rgba(187, 134, 252, 0.2);
}

.resource-sidebar-state:checked + .resource-sidebar-toggle span {
  transform: rotate(45deg);
}

.resource-sidebar-nav::-webkit-scrollbar {
  width: 8px;
}

.resource-sidebar-nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.resource-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(187, 134, 252, 0.45);
  border-radius: 999px;
}

.resource-sidebar-group {
  display: block;
}

.resource-sidebar-section {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  opacity: 0.76;
  transition: opacity 0.42s ease;
}

.resource-sidebar-section:last-child {
  border-bottom: 0;
}

.resource-sidebar-section:hover,
.resource-sidebar-section:focus-within,
.resource-sidebar-section.is-open {
  opacity: 1;
}

.resource-sidebar-heading {
  display: flex;
  width: 100%;
  min-height: 2.35rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.35;
  padding: 0.56rem 0.1rem;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.36s ease;
}

.resource-sidebar-heading-text {
  display: inline-block;
}

.resource-sidebar-heading:focus-visible {
  outline: 2px solid rgba(187, 134, 252, 0.7);
  outline-offset: 3px;
}

.resource-sidebar-heading::after {
  content: "";
  flex: 0 0 auto;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.18rem;
  border-right: 2px solid rgba(187, 134, 252, 0.82);
  border-bottom: 2px solid rgba(187, 134, 252, 0.82);
  transform: rotate(45deg) translateY(-0.08rem);
  transition: transform 0.56s cubic-bezier(0.16, 1, 0.3, 1);
}

.resource-sidebar-section:hover .resource-sidebar-heading,
.resource-sidebar-section:focus-within .resource-sidebar-heading {
  color: rgba(255, 255, 255, 0.88);
}

.resource-sidebar-section.is-open .resource-sidebar-heading {
  color: var(--text);
}

.resource-sidebar-section.is-open .resource-sidebar-heading::after {
  transform: rotate(225deg) translate(-0.04rem, -0.04rem);
}

.resource-sidebar-links {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.32rem);
  transition: grid-template-rows 0.72s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.46s ease,
              transform 0.66s cubic-bezier(0.16, 1, 0.3, 1);
}

.resource-sidebar-links-inner {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 0.1rem;
  padding: 0 0.1rem 0 0.22rem;
  transition: padding-bottom 0.52s ease;
}

.resource-sidebar-section.is-open .resource-sidebar-links {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.resource-sidebar-section.is-open .resource-sidebar-links-inner {
  padding-bottom: 0.58rem;
}

.no-js .resource-sidebar-links {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.no-js .resource-sidebar-links-inner {
  padding-bottom: 0.58rem;
}

.resource-sidebar-links a {
  display: block;
  position: relative;
  border-radius: 0;
  padding: 0.38rem 0.5rem 0.38rem 0.62rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  line-height: 1.35;
  transition: color 0.28s ease,
              text-shadow 0.34s ease,
              transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.resource-sidebar-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(187, 134, 252, 0.76), 0 0 18px rgba(187, 134, 252, 0.38);
  transform: translateX(0.12rem);
}

.resource-sidebar-links a[aria-current="page"] {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(187, 134, 252, 0.95), 0 0 24px rgba(187, 134, 252, 0.72), 0 0 44px rgba(187, 134, 252, 0.45);
  transform: translateX(0.12rem);
}

@media (prefers-reduced-motion: reduce) {
  .resource-sidebar-section,
  .resource-sidebar-heading,
  .resource-sidebar-heading::after,
  .resource-sidebar-links,
  .resource-sidebar-links-inner,
  .resource-sidebar-links a {
    transition: none;
  }
}

.resource-sidebar-links a[data-new="true"] {
  padding-right: 2.45rem;
}

.resource-sidebar-links a[data-new="true"]::before {
  content: "";
  position: absolute;
  right: 2.15rem;
  bottom: 0.34rem;
  left: 0.5rem;
  border-bottom: 1px solid rgba(187, 134, 252, 0.22);
}

.resource-sidebar-links a[data-new="true"]::after {
  content: "new";
  position: absolute;
  right: 0.5rem;
  bottom: 0.1rem;
  color: rgba(187, 134, 252, 0.74);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

/* --- Subpage content (about, privacy, faq) --- */

.medical-warning {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.medical-warning-icon svg,
.medical-warning-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.medical-warning strong {
  color: var(--accent);
  font-weight: 600;
}

.container h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.subtitle {
  color: var(--dim);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.01em;
}

.content-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.section-num {
  color: var(--accent);
  font-weight: 900;
  font-size: 1.3rem;
}

.content-section {
  margin-bottom: 2.5rem;
}

.content-section p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.inline-warning {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.62rem;
  margin: 1.5rem 0 1.5rem;
  padding: 0.62rem 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 0 22px rgba(245, 158, 11, 0.08);
}

.inline-warning-icon {
  width: 1rem;
  height: 1rem;
  color: rgb(245, 158, 11);
  font-weight: 600;
  margin-top: 0.18rem;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.34));
}

.inline-warning-copy {
  min-width: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.5;
}

.inline-warning-copy p {
  margin: 0;
  color: inherit;
}

/* --- Reusable data charts --- */

.data-chart {
  margin: 1.5rem 0;
  padding: 0.55rem 0.75rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
}

.data-chart svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: 'Inter', system-ui, sans-serif;
}

.chart-title {
  fill: var(--text);
  font-size: 22px;
  font-weight: 900;
}

.chart-subtitle,
.chart-label,
.chart-axis,
.chart-note {
  fill: rgba(255, 255, 255, 0.88);
}

.chart-subtitle {
  font-size: 12px;
  font-weight: 600;
}

.chart-label {
  font-size: 13px;
  font-weight: 800;
  dominant-baseline: middle;
}

.chart-axis {
  font-size: 11px;
  font-weight: 700;
  dominant-baseline: middle;
}

.chart-note {
  font-size: 12px;
  dominant-baseline: middle;
}

.chart-value {
  fill: rgba(255, 255, 255, 0.96);
  font-size: 12px;
  font-weight: 900;
  dominant-baseline: middle;
}

.chart-value-dark {
  fill: #0b0611;
}

.chart-bar-primary {
  fill: var(--accent);
}

.chart-bar-secondary {
  fill: #56d8ff;
}

.chart-bar-muted {
  fill: rgba(255, 255, 255, 0.22);
}

.chart-grid {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.chart-baseline {
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 1.5;
}

.faq-block h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 1.25rem 0 0.45rem;
}

.faq-list {
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-left: 0;
  margin: 0;
}

.content-section .faq-list,
.resource-main article .faq-list {
  margin-top: 1.25rem;
  margin-bottom: 0;
  padding-left: 0;
  color: inherit;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 12px;
  margin: 0 -1rem;
  padding-left: 0;
}

.content-section .faq-item,
.resource-main article .faq-item {
  margin-bottom: 0;
  padding-left: 0;
  position: static;
  list-style-type: none;
}

.content-section .faq-item::before,
.resource-main article .faq-item::before {
  content: none;
}

.resource-main article .faq-item::marker {
  color: transparent;
}

.faq-question {
  padding: 1.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question h2,
.faq-question h3 {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.4s;
  margin: 0;
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--dim);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s;
}

.faq-answer {
  max-height: none;
  overflow: visible;
  opacity: 1;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease,
              padding 0.4s ease;
  padding: 0 1rem 1.6rem;
}

.faq-answer p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 0;
  letter-spacing: 0.01em;
}

.js .faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 1rem;
}

.no-js .faq-question h2,
.no-js .faq-question h3 {
  color: var(--text);
}

.no-js .faq-icon {
  display: none;
}

.faq-item.open {
  background: rgba(255, 255, 255, 0.02);
  padding-left: 0.5rem;
  border-bottom-color: transparent;
}

.faq-item.open .faq-question h2,
.faq-item.open .faq-question h3 {
  color: var(--text);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.js .faq-item.open .faq-answer {
  max-height: 600px;
  opacity: 1;
  padding: 0 1rem 1.6rem;
}

@media (hover: hover) and (pointer: fine) {
  .faq-item:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 0.5rem;
    border-bottom-color: transparent;
  }

  .faq-item:hover .faq-question h2,
  .faq-item:hover .faq-question h3 {
    color: var(--text);
  }
}

@media (min-width: 960px) {
  .resource-container {
    max-width: calc(224px + 3rem + 800px + 3rem + 224px + 5rem);
  }

  .resource-shell {
    display: grid;
    grid-template-columns: 224px minmax(0, 800px) clamp(0px, calc(100vw - 75rem), 224px);
    gap: 3rem;
    align-items: start;
    justify-content: center;
  }

  .resource-shell::after {
    content: "";
    grid-column: 3;
    min-width: 0;
  }

  .resource-main {
    grid-column: 2;
  }

  .resource-sidebar {
    position: sticky;
    top: 6.75rem;
    right: auto;
    bottom: auto;
    left: auto;
    grid-column: 1;
    width: 224px;
    z-index: 1;
    pointer-events: auto;
  }

  .resource-sidebar-toggle {
    display: none;
  }

  .resource-sidebar-state {
    display: none;
  }

  .resource-sidebar-nav {
    position: static;
    display: block;
    grid-template-columns: none;
    gap: 0;
    max-height: calc(100vh - 8rem);
    background: rgba(255, 255, 255, 0.035);
    pointer-events: auto;
    opacity: 1;
    transform: none;
    visibility: visible;
    box-shadow: none;
    transition: none;
  }
}

@media (max-width: 760px) {
  @media (prefers-reduced-motion: reduce) {
    .resource-sidebar-toggle,
    .resource-sidebar-toggle-icon,
    .resource-sidebar-nav {
      transition: none;
    }
  }

  .resource-sidebar-title {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .resource-sidebar-group {
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
  }
}

.content-section ul {
  list-style: none;
  padding-left: 0.5rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.content-section li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

.content-section li::before {
  content: "\2022";
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

/* --- Calculator SEO pages --- */

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin: 2.5rem 0;
}

.calculator-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 1.5rem;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 0.5rem;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.calculator-input,
.calculator-select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font: inherit;
  padding: 0.8rem 0.9rem;
  outline: none;
}

.calculator-select {
  min-width: 96px;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.72) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.35rem;
}

.calculator-select option {
  background: #000000;
  color: #ffffff;
}

.calculator-input:focus,
.calculator-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(187, 134, 252, 0.14);
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mode-button,
.calculator-button {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mode-button {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
}

.mode-button.is-active,
.calculator-button {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.calculator-button {
  width: 100%;
  margin-top: 1rem;
}

.calculator-result {
  display: none;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-result.is-visible {
  display: block;
}

.syringe-visual {
  margin-bottom: 1rem;
  padding: 0.8rem 0.25rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.syringe-visual svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.syringe-fill {
  transition: width 0.35s ease;
}

.syringe-note {
  margin-top: 0.5rem;
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.result-metric {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.25);
}

.result-label {
  display: block;
  color: var(--dim);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.result-value {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.result-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.formula-box {
  margin-top: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(187, 134, 252, 0.18);
  background: rgba(187, 134, 252, 0.07);
  padding: 1rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.6;
}

.calculator-error {
  display: none;
  margin-top: 1rem;
  color: #ffb4b4;
  font-size: 0.9rem;
}

.calculator-error.is-visible {
  display: block;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.quick-links a {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.quick-links a:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* --- Embed share blocks --- */

.embed-share {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.embed-code {
  width: 100%;
  min-height: 150px;
  margin: 0.75rem 0 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.88);
  font: 0.82rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
}

.embed-code:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(187, 134, 252, 0.14);
  outline: none;
}

.embed-copy-button {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.embed-note {
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.86rem;
}

/* --- CTA --- */

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 500;
  color: var(--text);
  padding: 1rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.cta-link::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.cta-link:hover {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(187, 134, 252, 0.2);
  transform: translateY(-2px);
  background: rgba(187, 134, 252, 0.08);
}

.cta-link svg { width: 18px; height: 18px; }

.cta-note {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--dim);
  letter-spacing: 0.06em;
}

/* --- Footer --- */

footer {
  padding: 2rem 1.5rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.03em;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 1.5rem;
}

.footer-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
  pointer-events: none;
}

.footer-disclaimer {
  max-width: 800px;
  width: 100%;
  font-size: 0.75rem;
  line-height: 1.5;
  opacity: 1;
  padding: 1.25rem 0;
  margin-bottom: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.76)
}

.footer-reference {
  font-size: 0.72rem;
  opacity: 0.5;
  margin-bottom: 0.8rem;
}

.footer-reference  > a {
  color: var(--bg)
}

.footer-reference  > a:hover {
  color: var(--bg)
}

footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}

footer a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.copyright {
  opacity: 1;
  font-size: 0.75rem;
}

/* --- Mobile --- */

@media (max-width: 768px) {
  body > nav { padding: 1.5rem 1.5rem; }
  .container { padding: 7rem 1.5rem 2rem; }
  .container h1 { font-size: 2.2rem; }
  .content-section h2 { font-size: 1.2rem; }
  .section-num { font-size: 1.2rem; }
  .input-row,
  .result-grid,
  .mode-switch {
    grid-template-columns: 1fr;
  }
  .calculator-select {
    min-width: 100%;
  }
}

/* --- MDX Article Styling --- */
.resource-main article:not(.legacy-article) {
  margin-bottom: 2.5rem;
}

.resource-main article:not(.legacy-article) .article-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.resource-main article:not(.legacy-article) .article-date {
  margin: 0.35rem 0 0.9rem;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
}

.resource-main article:not(.legacy-article) .subtitle {
  color: var(--dim);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.01em;
}

.resource-main article:not(.legacy-article) > p:nth-of-type(3) > em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.85);
}

.resource-main article:not(.legacy-article) .content-section {
  margin-bottom: 2.5rem;
}

.resource-main article:not(.legacy-article) .content-section h2 {
  margin: 0 0 0.75rem;
}

.resource-main article:not(.legacy-article) h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.resource-main article:not(.legacy-article) h3:not(.faq-question h3):not(blockquote h3):not(.reference-title):not(.takeaway-box h3):not(.insight-box h3):not(.formula-card h3) {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

.resource-main article:not(.legacy-article) p:not(.faq-answer p):not(.reference-title):not(.curve-caption):not(.article-date):not(.subtitle):not(.reference-note):not(.source-note) {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.resource-main article:not(.legacy-article) ul:not(.faq-list):not(.reference-list):not(.takeaway-box ul):not(.insight-box ul),
.resource-main article:not(.legacy-article) ol {
  color: rgba(255, 255, 255, 0.85);
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.resource-main article:not(.legacy-article) li:not(.faq-item):not(.reference-list li) {
  margin-bottom: 0.5rem;
}

.resource-main article:not(.legacy-article) li:not(.faq-item):not(.reference-list li)::marker {
  color: var(--accent);
}

.resource-main article:not(.legacy-article) a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.3s ease;
}

.resource-main article:not(.legacy-article) a:hover {
  opacity: 0.8;
}

.resource-main article:not(.legacy-article) blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid rgba(187,134,252,0.18);
  border-radius: 8px;
  background: rgba(187,134,252,0.07);
}

.resource-main article:not(.legacy-article) blockquote p:last-child {
  margin-bottom: 0;
}

.resource-main article:not(.legacy-article) blockquote h3 {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.resource-main article:not(.legacy-article) .takeaway-box,
.resource-main article:not(.legacy-article) .insight-box {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid rgba(187, 134, 252, 0.18);
  border-radius: 8px;
  background: rgba(187, 134, 252, 0.07);
}

.resource-main article:not(.legacy-article) .takeaway-box .box-title,
.resource-main article:not(.legacy-article) .insight-box .box-title {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.resource-main article:not(.legacy-article) .takeaway-box ul,
.resource-main article:not(.legacy-article) .insight-box ul {
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.resource-main article:not(.legacy-article) .takeaway-box .box-title,
.resource-main article:not(.legacy-article) .insight-box .box-title {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.resource-main article:not(.legacy-article) .takeaway-box ul,
.resource-main article:not(.legacy-article) .insight-box ul {
  margin: 0;
}

.resource-main article:not(.legacy-article) .takeaway-box li,
.resource-main article:not(.legacy-article) .insight-box li {
  margin-bottom: 0.5rem;
}

.resource-main article:not(.legacy-article) .stat-grid,
.resource-main article:not(.legacy-article) .evidence-grid,
.resource-main article:not(.legacy-article) .record-grid,
.resource-main article:not(.legacy-article) .field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.resource-main article:not(.legacy-article) .evidence-grid.evidence-grid-4,
.resource-main article:not(.legacy-article) .record-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resource-main article:not(.legacy-article) .record-grid.record-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-main article:not(.legacy-article) .stat-card,
.resource-main article:not(.legacy-article) .evidence-card,
.resource-main article:not(.legacy-article) .record-card,
.resource-main article:not(.legacy-article) .field-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.resource-main article:not(.legacy-article) .field-card strong {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}

.resource-main article:not(.legacy-article) .field-card span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1.45;
}

.resource-main article:not(.legacy-article) .record-grid.record-grid-2 .record-card strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.resource-main article:not(.legacy-article) .record-grid.record-grid-2 .record-card span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.55;
}

.resource-main article:not(.legacy-article) .stat-value {
  display: block;
  color: var(--accent);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.resource-main article:not(.legacy-article) .evidence-value,
.resource-main article:not(.legacy-article) .record-value {
  display: block;
  color: var(--accent);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.resource-main article:not(.legacy-article) .evidence-value {
  font-size: 1.25rem;
}

.resource-main article:not(.legacy-article) .evidence-grid.evidence-grid-4 .evidence-value {
  font-size: 1.35rem;
}

.resource-main article:not(.legacy-article) .record-value {
  font-size: 1.08rem;
}

.resource-main article:not(.legacy-article) .stat-label,
.resource-main article:not(.legacy-article) .evidence-label,
.resource-main article:not(.legacy-article) .record-label {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.45;
}

.resource-main article:not(.legacy-article) .stat-label {
  font-size: 0.86rem;
}

.resource-main article:not(.legacy-article) .source-note,
.resource-main article:not(.legacy-article) .reference-note {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
  line-height: 1.6;
}

.resource-main article:not(.legacy-article) table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin: 1.5rem 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  display: table;
  overflow-x: auto;
}

.resource-main article:not(.legacy-article) .feature-table-wrap,
.resource-main article:not(.legacy-article) .comparison-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.resource-main article:not(.legacy-article) .feature-table,
.resource-main article:not(.legacy-article) .comparison-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  text-align: left;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.resource-main article:not(.legacy-article) .feature-table th,
.resource-main article:not(.legacy-article) .feature-table td,
.resource-main article:not(.legacy-article) .comparison-table th,
.resource-main article:not(.legacy-article) .comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  vertical-align: top;
}

.resource-main article:not(.legacy-article) .feature-table th,
.resource-main article:not(.legacy-article) .comparison-table th {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
}

.resource-main article:not(.legacy-article) .feature-table tr:last-child td,
.resource-main article:not(.legacy-article) .comparison-table tr:last-child td {
  border-bottom: 0;
}

.resource-main article:not(.legacy-article) th,
.resource-main article:not(.legacy-article) td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  vertical-align: top;
}

.resource-main article:not(.legacy-article) th {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.05);
}

.resource-main article:not(.legacy-article) .table-container {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.6), rgba(0, 0, 0, 0.4));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.resource-main article:not(.legacy-article) .table-container .half-life-table {
  width: 100%;
  min-width: 560px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  border-collapse: collapse;
  text-align: left;
  overflow: visible;
}

.resource-main article:not(.legacy-article) .table-container .half-life-table th,
.resource-main article:not(.legacy-article) .table-container .half-life-table td {
  padding: 1rem 1.25rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  vertical-align: middle;
}

.resource-main article:not(.legacy-article) .table-container .half-life-table th {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.resource-main article:not(.legacy-article) .table-container .half-life-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.resource-main article:not(.legacy-article) .table-container .half-life-table td:nth-child(4) {
  font-weight: 700;
  color: #fff;
}

.resource-main article:not(.legacy-article) .table-container .half-life-table tr:last-child td {
  border-bottom: 0;
}

.resource-main article:not(.legacy-article) code {
  background: rgba(255,255,255,0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: monospace;
}

@media (max-width: 720px) {
  .resource-main article:not(.legacy-article) .stat-grid,
  .resource-main article:not(.legacy-article) .evidence-grid,
  .resource-main article:not(.legacy-article) .evidence-grid.evidence-grid-4,
  .resource-main article:not(.legacy-article) .record-grid,
  .resource-main article:not(.legacy-article) .record-grid.record-grid-2,
  .resource-main article:not(.legacy-article) .field-grid {
    grid-template-columns: 1fr;
  }
}

/* Resource-specific Styles */
.formula-card {
  margin: 1.25rem 0;
  padding: 1.25rem;
  border: 1px solid rgba(187, 134, 252, 0.18);
  border-radius: 8px;
  background: rgba(187, 134, 252, 0.07);
}

.formula-card h3 {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.equation {
  margin: 1rem 0;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 800;
  line-height: 1.7;
  text-align: center;
  overflow-wrap: anywhere;
}

.formula-terms {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  line-height: 1.7;
}

.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.6), rgba(0, 0, 0, 0.4));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.half-life-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  text-align: left;
}

.half-life-table th,
.half-life-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  vertical-align: middle;
}

.half-life-table th {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.half-life-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.half-life-table td:nth-child(4) {
  font-weight: 700;
  color: #fff;
}

.half-life-table tr:last-child td {
  border-bottom: 0;
}

.curve-card {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid rgba(187, 134, 252, 0.18);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(187, 134, 252, 0.07), rgba(255, 255, 255, 0.025));
}

.curve-card svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.curve-axis,
.curve-grid {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
}

.curve-grid {
  stroke-dasharray: 4 6;
}

.curve-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.curve-point {
  fill: #000;
  stroke: var(--accent);
  stroke-width: 3;
}

.curve-label {
  fill: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 700;
}

.curve-value {
  fill: #fff;
  font-size: 13px;
  font-weight: 900;
}

/* Reference Box Styles */
.reference-box {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid rgba(255,255,255,0.2);
  border-radius: 4px;
}

.reference-title {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.9);
}

.resource-main article:not(.legacy-article) .reference-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.6;
}

.resource-main article:not(.legacy-article) .reference-list li {
  margin-bottom: 0.55rem;
  color: rgba(255,255,255,0.68);
}

.resource-main article:not(.legacy-article) .reference-list li::marker {
  color: rgba(255,255,255,0.68);
}

.resource-main article:not(.legacy-article) .reference-list a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}
