/* PHASE6 course-page common CSS v0.2
   Card rules are not page-local. This file must be enqueued on JRA course pages. */
.p6-course-page {
  max-width: 1200px;
  margin: 0 auto;
}
.p6-section {
  margin-block: 64px;
}
.p6-section + .p6-section {
  margin-top: 64px;
}
.p6-course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.p6-course-tags span {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
}
.p6-data-update,
.p6-table-condition,
.p6-graph-note {
  font-size: 0.92em;
}
.p6-course-figure img,
.p6-graph img {
  display: block;
  width: 100%;
  height: auto;
}
.p6-basic-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.p6-basic-card {
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  padding: 14px 16px;
}
.p6-basic-card-title {
  font-size: 0.85em;
  margin-bottom: 4px;
}
.p6-basic-card-value {
  font-weight: 700;
}
.p6-graph + .p6-graph {
  margin-top: 40px;
}
.p6-lap-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.p6-lap-table {
  border-collapse: collapse;
  min-width: 900px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.p6-lap-table th,
.p6-lap-table td {
  border: 1px solid #ddd;
  padding: 7px 9px;
  text-align: right;
}
.p6-lap-table thead th,
.p6-lap-table tbody th {
  text-align: left;
}
.p6-lap-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
}
@media (max-width: 640px) {
  .p6-section {
    margin-block: 40px;
  }
  .p6-basic-card-grid {
    grid-template-columns: 1fr;
  }
}
