/* Component styles */
.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: transform 150ms ease, border-color 150ms ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(77, 208, 225, 0.35);
}

.card__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.card__text {
  margin: 0;
  color: rgba(245, 247, 255, 0.82);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(77, 208, 225, 0.12);
  color: var(--color-fg);
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
  text-decoration: none;
}

.button:hover,
.button:focus {
  background: rgba(77, 208, 225, 0.2);
  transform: translateY(-1px);
}

.button--primary {
  border-color: rgba(77, 208, 225, 0.35);
  background: rgba(77, 208, 225, 0.16);
}

.button--secondary {
  background: rgba(208, 74, 74, 0.12);
}

.toggle-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  margin: 1rem 0;
}

.toggle-panel__header {
  padding: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
}

.toggle-panel__body {
  padding: 1rem;
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.toggle-panel--open .toggle-panel__body {
  display: block;
}

.toggle-panel__title {
  margin: 0;
  font-weight: 600;
}

.toggle-panel__icon {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  transition: transform 160ms ease;
}

.toggle-panel--open .toggle-panel__icon {
  transform: rotate(45deg);
}

.slider {
  width: 100%;
}

/* Comparison table styles */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border: 2px solid rgba(77, 208, 225, 0.4);
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table thead {
  background: rgba(77, 208, 225, 0.15);
  border-bottom: 2px solid rgba(77, 208, 225, 0.4);
}

.comparison-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: rgba(77, 208, 225, 0.95);
  border-right: 1px solid rgba(77, 208, 225, 0.25);
}

.comparison-table th:last-child {
  border-right: none;
}

.comparison-table td {
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(245, 247, 255, 0.9);
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(77, 208, 225, 0.08);
}

.comparison-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-table tbody tr:hover {
  background: rgba(77, 208, 225, 0.12);
}

.tooltip {
  background: rgba(0,0,0,0.75);
  color: var(--color-fg);
  padding: 0.35rem 0.6rem;
  border-radius: 0.35rem;
  font-size: 0.85rem;
  position: absolute;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
}

.tooltip--visible {
  opacity: 1;
}

/* Diagram styles */
.accelerator-diagram {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 2rem;
}

.accelerator-diagram__svg {
  width: 100%;
  height: auto;
  background: radial-gradient(circle at left, rgba(77,208,225,0.12), transparent 60%), radial-gradient(circle at right, rgba(208,74,74,0.10), transparent 55%);
  border-radius: 14px;
  padding: 1rem;
}

.accelerator-diagram__stage {
  fill: rgba(77, 208, 225, 0.18);
  stroke: rgba(77, 208, 225, 0.6);
  stroke-width: 2;
  cursor: pointer;
  transition: fill 160ms ease-in-out, stroke 160ms ease-in-out, filter 160ms ease-in-out;
}

.accelerator-diagram__stage:hover,
.accelerator-diagram__stage:focus {
  fill: rgba(77, 208, 225, 0.28);
  filter: drop-shadow(0 0 10px rgba(77, 208, 225, 0.35));
}

.accelerator-diagram__stage.is-active {
  fill: rgba(208, 74, 74, 0.35);
  stroke: rgba(208, 74, 74, 0.9);
  filter: drop-shadow(0 0 16px rgba(208, 74, 74, 0.5));
}

.accelerator-diagram__label {
  fill: #ffffff;
  font-family: var(--font-ui);
  font-size: 1.1rem;
  pointer-events: none;
  user-select: none;
}

.accelerator-diagram__details {
  background: rgba(10, 26, 47, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 1.3rem;
  border-radius: 14px;
}

.accelerator-diagram__details-title {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.accelerator-diagram__details-text {
  margin: 0;
  color: rgba(255,255,255,0.9);
}

.accelerator-diagram__legend {
  margin-top: 1.2rem;
}

.accelerator-diagram__legend-title {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.accelerator-diagram__legend-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
}

.accelerator-diagram__legend-item {
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(10, 26, 47, 0.45);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-ui);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.accelerator-diagram__legend-item:hover,
.accelerator-diagram__legend-item:focus {
  border-color: rgba(77, 208, 225, 0.8);
  background: rgba(77, 208, 225, 0.14);
  outline: none;
}

.accelerator-diagram__legend-item.is-active {
  background: rgba(208, 74, 74, 0.35);
  border-color: rgba(208, 74, 74, 0.9);
}

/* Page styles */
.card, .site-header, .site-footer, .section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card__title {
  color: var(--text);
}

.card__text {
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.button--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(77, 208, 225, 0.45);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  color: #0b1221;
}

.button--primary:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.55);
}

.site-header, .site-footer {
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.markdown-content .markdown-table-wrap,
.markdown .markdown-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}

.markdown-content table,
.markdown table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: rgba(10, 26, 47, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.markdown-content th,
.markdown-content td,
.markdown th,
.markdown td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  text-align: left;
  vertical-align: top;
}

.markdown-content thead th,
.markdown thead th {
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
  white-space: nowrap;
}

.markdown-content tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.markdown-content tbody tr:hover {
  background: rgba(77, 208, 225, 0.12);
}

.markdown-content tbody tr:last-child td {
  border-bottom: none;
}

.page-header {
  padding: 2.5rem 0;
}

.page-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

.page-subtitle {
  color: var(--muted);
}

.section, .card, .site-header, .site-footer {
  background: rgba(18, 26, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 1.6rem;
}

.section {
  padding: 2.5rem 1.6rem;
  margin: 0 0 2.25rem;
}

.card {
  padding: 1.6rem 1.4rem;
  margin: 0.85rem 0;
}

.page-header {
  padding: 2.4rem 0 1.6rem;
}

.page-header--panel {
  background: rgba(12, 20, 36, 0.82);
  border: 1px solid rgba(77, 208, 225, 0.35);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: 1.3rem 1.5rem;
  margin: 2.2rem 0 1.2rem;
  position: relative;
}

.page-header--panel .page-title {
  margin-bottom: 0.45rem;
}

.page-header--panel .page-subtitle {
  margin: 0;
  color: rgba(242, 245, 255, 0.9);
  max-width: none;
}

.page-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 0 0 0.55rem;
}

.page-subtitle {
  color: var(--muted);
  margin: 0;
}

.card-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.button--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(77, 208, 225, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  color: #0b1221;
}
.button--primary:hover {
  filter: brightness(1.1);
}

.site-header, .site-footer {
  padding: 1.25rem 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.site-footer {
  font-size: 0.85rem;
  color: rgba(210, 220, 240, 0.66);
}

.markdown-table-wrap {
  overflow-x: auto;
}

.markdown table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.markdown th,
.markdown td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

/* Ion index — three-column classification layout */
.ion-columns {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 720px) {
  .ion-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ion-col__heading {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
}

.ion-col__range {
  font-weight: 400;
  opacity: 0.7;
}

.card-grid--col {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}