* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Inter", system-ui, Arial, sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.6;
  padding: 20px;
  display: flex;
  justify-content: center;
}
.container {
  width: 100%;
  max-width: 960px;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.95rem;
}
.brand {
  font-weight: 600;
  font-size: 1.3rem;
  color: #002366;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 25px;
}
header h1 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
}
header .subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  color: #555;
}

/* Analysis */
.analysis {
  margin: 35px 0;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.analysis-headline {
  font-weight: 600;
  font-size: 1.4rem;
  color: #002366;
  margin-bottom: 12px;
}
.analysis p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 12px;
}
.author-card {
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  background: #f9f9f9;
  display: inline-block;
}
.author-name {
  font-weight: 600;
  color: #002366;
  margin-bottom: 4px;
}
.author-role {
  font-size: 0.9rem;
  color: #555;
}

/* Card / Chart / Table */
.card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 28px;
  background: #f9f9f9;
}
.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-size: 0.9rem;
}
select,
button {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
}
canvas {
  width: 100% !important;
  height: 420px !important;
}
.note {
  font-size: 0.85rem;
  color: #555;
  margin-top: 10px;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th,
td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
th {
  font-weight: 600;
}
tr {
  cursor: pointer;
  transition: background 0.15s ease;
}
tr:hover {
  background: #f0f0f0;
}
.best {
  font-weight: 600;
  color: #002366;
}

/* Responsive Table for Mobile */
@media (max-width: 480px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }
  thead tr {
    display: none;
  }
  tr {
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
  }
  td {
    padding: 6px 10px;
    text-align: right;
    position: relative;
  }
  td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 50%;
    font-weight: 600;
    text-align: left;
  }
  canvas {
    height: 300px !important;
  }
}

/* Details */
.details {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  min-height: 120px;
}
.details h2 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.2rem;
  color: #002366;
}
.details p {
  font-size: 0.9rem;
  color: #333;
}

.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 1rem;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.copyright {
  font-size: 0.9rem;
  color: #111827;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.sources {
  font-size: 0.8rem;
  color: #6b7280;
  letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.7rem;
  }
  .analysis-headline {
    font-size: 1.25rem;
  }
  .controls {
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }
  .analysis-headline {
    font-size: 1.1rem;
  }
}
