:root {
  color-scheme: light;
  background: #f4f6f9;
  color: #1f2937;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f4f6f9;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
}

.brand {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #111827;
  text-decoration: none;
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.nav {
  display: flex;
  gap: 0.75rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 1.2rem 1.9rem;
  border-radius: 18px;
  text-decoration: none;
  color: #475569;
  font-weight: 800;
  font-size: 1.05rem;
  background: #f8fafc;
  transition: background 150ms ease, color 150ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: #0f172a;
  background: #e2e8f0;
}

.search-inline {
  min-width: 150px;
  max-width: 180px;
}

.search-inline input {
  width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
  color: #0f172a;
  font-size: 0.95rem;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.hero {
  display: none;
}

.hero-left {
  display: grid;
  gap: 1rem;
}

.eyebrow {
  margin: 0;
  color: #2563eb;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 3.5vw, 4rem);
  line-height: 1.05;
  color: #0f172a;
}

.hero-subtitle {
  margin: 0;
  max-width: 640px;
  color: #475569;
  line-height: 1.8;
}

.hero-right {
  display: grid;
  gap: 1rem;
}

.hero-card {
  padding: 1.25rem 1.4rem;
  border-radius: 1.2rem;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.hero-card-label {
  display: block;
  margin-bottom: 0.55rem;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-card-value {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.controls {
  margin: 2rem 0 1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
}

.search-group,
.select-group {
  display: grid;
  gap: 0.65rem;
}

.search-group label,
.select-group label {
  color: #334155;
  font-size: 0.95rem;
  font-weight: 700;
}

.search-group input,
.select-group select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
  color: #0f172a;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.site-note {
  margin-bottom: 1.5rem;
}

.category-title {
  margin: 0 0 0.8rem;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #111827;
}

.site-note p {
  margin: 0;
  color: #334155;
  font-weight: 600;
}

.articles {
  display: grid;
  gap: 0.5rem;
}

.article-item {
  padding: 1rem 1rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: background 150ms ease, transform 150ms ease;
}

.article-item:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.article-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  color: #111827;
  font-weight: 700;
  font-size: 1rem;
}

.article-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.article-date {
  color: #64748b;
  white-space: nowrap;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border-radius: 9999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.button-primary {
  background: #2563eb;
  color: #ffffff;
}

.button-secondary {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.status-message {
  color: #94a3b8;
  padding: 2rem 1rem;
}

.footer {
  display: none;
}

.article-page {
  max-width: 860px;
  margin: 0 auto;
}

.article-detail .article-card {
  padding: 2rem;
}

.article-fullbody {
  margin: 1.5rem 0;
  line-height: 1.9;
  color: #334155;
}

.article-source-link {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.article-source-link p {
  margin: 0;
  color: #64748b;
}

@media (max-width: 720px) {
  .controls {
    grid-template-columns: 1fr;
  }
}

.article-fullbody p {
  margin: 0 0 1rem;
  line-height: 1.8;
}

.article-source {
  margin-top: 1.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.article-source a {
  color: #2563eb;
  font-weight: 600;
}

.footer {
  margin-top: 3rem;
  padding: 2rem 1rem 1rem;
  color: #475569;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  text-align: center;
  background: #ffffff;
}

@media (max-width: 720px) {
  .controls {
    flex-direction: column;
    gap: 0.75rem;
  }
  .article-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
