/* =========================
   EX PAGE BASE
========================= */

.ex-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  box-sizing: border-box;
}

.ex-header {
  margin-bottom: 48px;
}

.ex-header h1 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.ex-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #666;
  max-width: 720px;
}


/* =========================
   UNIT CARD
========================= */

.ex-unit-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.ex-unit-card {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px 24px 28px;
}


/* =========================
   CARD HEADER
========================= */

.ex-unit-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.ex-unit-name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.ex-unit-tag {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eee;
  color: #555;
}


/* =========================
   CARD SECTION
========================= */

.ex-unit-section {
  margin-top: 20px;
}

.ex-unit-section h3 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}


/* =========================
   RACE TABLE
========================= */

.ex-race-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.ex-race-table thead th {
  text-align: left;
  font-weight: 500;
  padding: 8px 6px;
  border-bottom: 1px solid #ddd;
  color: #555;
}

.ex-race-table tbody td {
  padding: 8px 6px;
  border-bottom: 1px solid #eee;
}

.ex-race-table tbody tr:last-child td {
  border-bottom: none;
}


/* =========================
   MEMO
========================= */

.ex-unit-memo ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.ex-unit-memo li {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 4px;
}

.ex-unit-section + table {
  margin-top: 6px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 640px) {

  .ex-container {
    padding: 28px 16px 64px;
  }

  .ex-unit-card {
    padding: 20px 18px 22px;
  }

  .ex-unit-header {
    flex-direction: column;
    gap: 6px;
  }

  .ex-race-table {
    font-size: 0.8rem;
  }
}
