.sci-button {
  display: inline-flex;
  min-height: var(--sci-control-md);
  padding: 0 var(--sci-space-5);
  align-items: center;
  justify-content: center;
  gap: var(--sci-space-2);
  border: 1px solid transparent;
  border-radius: var(--sci-radius-sm);
  font-family: var(--sci-font-sans);
  font-size: 14px;
  font-weight: 680;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.sci-button--primary {
  background: var(--sci-blue);
  color: #fff !important;
}

.sci-button--primary:hover {
  background: var(--sci-blue-hover);
}

.sci-button--secondary {
  border-color: var(--sci-border-strong);
  background: transparent;
  color: var(--sci-text) !important;
}

.sci-story-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--sci-space-8);
  border-top: 1px solid var(--sci-border-strong);
}

.sci-story-card {
  display: grid;
  padding-block: var(--sci-space-6);
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: var(--sci-space-6);
  border-bottom: 1px solid var(--sci-border);
}

.sci-story-card__media {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 16 / 10;
  background: var(--sci-surface-subtle);
}

.sci-story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sci-story-card__body {
  grid-column: 1;
  grid-row: 1;
}

.sci-story-card__eyebrow {
  display: block;
  margin-bottom: var(--sci-space-2);
  color: var(--sci-blue);
  font-size: 13px;
  font-weight: 700;
}

.sci-story-card h2 {
  margin: 0;
  font-family: var(--sci-font-serif);
  font-size: 22px;
  line-height: 1.4;
}

.sci-story-card h2 a {
  color: var(--sci-text);
  text-decoration: none;
}

.sci-story-card h2 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--sci-blue);
  text-underline-offset: 4px;
}

.sci-story-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: var(--sci-space-3) 0;
  color: var(--sci-text-secondary);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sci-story-card time,
.sci-article-meta {
  color: var(--sci-text-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.sci-search {
  max-width: 760px;
  margin-bottom: var(--sci-space-12);
}

.sci-search label {
  display: block;
  margin-bottom: var(--sci-space-2);
  color: var(--sci-text);
  font-size: 14px;
  font-weight: 650;
}

.sci-search__row {
  display: flex;
  gap: var(--sci-space-3);
}

.sci-search input {
  width: 100%;
  min-height: var(--sci-control-lg);
  padding: 0 var(--sci-space-4);
  border: 1px solid var(--sci-border-strong);
  border-radius: var(--sci-radius-sm);
  background: var(--sci-surface);
  color: var(--sci-text);
  font: inherit;
}

.sci-state-panel {
  position: relative;
  overflow: hidden;
  max-width: 680px;
  padding: var(--sci-space-12);
  border: 1px solid var(--sci-border);
  border-top: 3px solid var(--sci-blue);
  border-radius: var(--sci-radius-md);
  background: var(--sci-surface-subtle);
}

.sci-state-panel--network,
.sci-state-panel--500,
.sci-state-panel--401,
.sci-state-panel--403,
.sci-state-panel--404,
.sci-state-panel--429,
.sci-state-panel--field-error {
  border-top-color: var(--sci-danger);
}

.sci-state-panel--success {
  border-top-color: var(--sci-success);
}

.sci-state-panel__eyebrow {
  margin: 0 0 var(--sci-space-3) !important;
  color: var(--sci-blue) !important;
  font-family: var(--sci-font-sans);
  font-size: 12px !important;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sci-state-panel h1 {
  margin: 0;
  font-family: var(--sci-font-serif);
  font-size: 28px;
  line-height: 1.3;
}

.sci-state-panel p {
  margin: var(--sci-space-4) 0 var(--sci-space-6);
  color: var(--sci-text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

.sci-state-panel__retry {
  display: inline-flex;
  margin: 0 0 var(--sci-space-6) !important;
  padding: var(--sci-space-2) var(--sci-space-3);
  border-radius: 999px;
  background: var(--sci-surface);
  color: var(--sci-text) !important;
  font-family: var(--sci-font-sans);
  font-size: 13px !important;
  font-weight: 650;
}

.sci-state-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sci-space-3);
}

.sci-state-skeleton {
  display: grid;
  margin-bottom: var(--sci-space-8);
  gap: var(--sci-space-3);
}

.sci-state-skeleton span {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--sci-border) 25%,
    var(--sci-surface) 50%,
    var(--sci-border) 75%
  );
  background-size: 200% 100%;
  animation: sci-state-shimmer 1.4s ease-in-out infinite;
}

.sci-state-skeleton span:nth-child(1) {
  width: 46%;
  height: 24px;
}

.sci-state-skeleton span:nth-child(3) {
  width: 72%;
}

@keyframes sci-state-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sci-state-skeleton span {
    animation: none;
  }
}

.sci-article-foundation {
  max-width: 1120px;
}

.sci-article-foundation > article {
  max-width: 760px;
}

.sci-article-content {
  color: var(--sci-text);
  font-family: var(--sci-font-serif);
  font-size: 18px;
  line-height: 1.75;
}

.sci-article-content a {
  color: var(--sci-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
